Create and restore a snapshot of an SBC SWe instance (standalone or HA pair) on Amazon Web Services (AWS).
Identify the Root Device Volume ID (EBS ID)
A Root Device Volume ID (EBS ID) is associated with each SBC instance, and is used to create a SBC SWe snapshot. Identify the applicable Root Device Volume ID (EBS ID) as follows:
- Navigate to the EC2 Management Console.
- From the left pane, select INSTANCES > Instances.
- Click the applicable SBC SWe instance.
- From the tabbed panel below, click Description.
- Locate and select the Root Device Value (/dev/sda1).
Create a Snapshot of the SBC SWe Instance
- Navigate to the EC2 Management Console.
- From the left pane, select INSTANCES > Instances.
- Stop the instance for which you want to take the snapshot, and note the root volume ID (see Identify the Root Device Volume ID). If the instance is an HA pair, stop the Standby SBC instance first, and then stop the active. Take note of which of the SBC instances is active.
- From the left pane, select ELASTIC BLOCK STORE > Snapshots. The snapshot page displays.
- Click Create Snapshot. The Create Snapshot window displays.
In the Create Snapshot window:
a. Enter the root volume ID of the instance (active instance if HA pair).
b. Enter the desired name for the snapshot.
c. Enter a description for the snapshot.
d. Click Create.
- In the search box of the snapshot page, select the Name filter and type in a name for the snapshot. The pending status changes to completed following the creation process.
Restore the SBC SWe Instance from a Snapshot
The steps below detail how to restore an SBC SWe instance from a snapshot.
- Navigate to the EC2 Management Console.
- From the left pane, select INSTANCES > Instances.
- Stop the standby instance first (for an HA pair), and then stop the active instance.
Detach the root volume from the instance (active if HA pair). Repeat for standby instance.
a. Identify the root device volume ID of instance (see Identify the Root Device Volume ID).
b. From the left pane, select ELASTIC BLOCK STORE > Volumes.
c. Select Volume ID as the search filter and type in the volume ID.
d. Click on the volume to select it.
e. From the Action drop down list, select Force Detach Volumes.
f. Click Yes, Detach. The volume is detached from the instance.
g. From the Action drop down list, select Delete. The volume is deleted. - Create a new volume from the snapshot for the active instance. Repeat for standby instance.
Two methods for creating a new volume are available: Method 1 or Method 2.
Create a New Volume from a Snapshot
There are two methods for creating a new volume from a snapshot: Method 1 or Method 2.
Create a New Volume from the Snapshot - Method 1
- Navigate to the EC2 Management Console.
- From the left pane, select ELASTIC BLOCK STORE >
- Locate and click the snapshot you wish to use for the restoration (you can also used Name as the filter and type in the name of the snapshot).
- From the Action drop down list, select Create Volume. The Create Volume window displays.
- Select the appropriate volume type (General Purpose SSD (GP2) or Provisional IOPS SSD (IO1)).
- Enter the size of the volume (must be either the same as the snapshot size or bigger).
- Enter the value for IOPS.
- Choose the Availability Zone (this selection must be the same as the instance you want to restore).
Click Create Volume.
Create a New Volume from the Snapshot - Method 2
- Navigate to the EC2 Management Console.
- From the left pane, select ELASTIC BLOCK STORE > Volumes.
- From the Action drop down list, select Create Volume. The Create Volume window displays.
- Select the appropriate volume type (General Purpose SSD (GP2) or Provisional IOPS SSD (IO1)).
- Enter the size of the volume (must be either the same as the snapshot size or bigger).
- Enter the value for IOPS.
- Choose the Availability Zone (this selection must be the same as the instance you want to restore).
- Enter the Snapshot ID of the snapshot you want to use for the restoration.
Click Create Volume.
Attach a New Volume to the Instance
- Navigate to the EC2 Management Console.
- From the left pane, select ELASTIC BLOCK STORE > Volumes.
- Select the volume you created from the snapshot (search for the volume by using the snapshot ID filter).
- From the Action drop down list, select Attach Volume.
- In the Instance field, enter the instance ID or select the instance you want to restore.
- In Device field, type /dev/sda1.
- Click Attach.
Topic | Limitations/Guidelines |
---|
Stopping an instance | To preserve data integrity, an instance must be stopped before a snapshot is taken. |
Stopping an instance for HA pairs | For HA pairs, stop the standby instance first, and then stop the active instance before taking the snapshot. Stop the instance where the sbxstatus shows standby, or where it does not show active. |
Restoring an instance | The snapshot of an instance is used to restore that instance alone; the snapshot cannot be used to restore another instance. This guideline also applies to HA pairs; the snapshot of an active instance cannot be used to perform a restoration on the standby instance. |
Creating a new Instance from a snapshot | If you create a brand new instance from a snapshot of an SBC, the new instance is created, but one of the instances needs to be deleted for the others to work. For example, - Create snapshot of instance A.
- Create instance B with a snapshot of instance A.
- Delete instance A for instance B to work, or vice versa.
|
Creating multiple snapshots | For creating multiple snapshots of an instance at the same time, the following restrictions apply:
- For single gp2, io1 or magnetic volumes, a maximum of 5 snapshots can be taken at a time.
- For st1 or sc1 volume, a maximum of 1 snapshot can be taken at a time.
|