In this section:
To perform any of the activities mentioned in this article, you must log on to your AWS account and navigate to Services > Compute > EC2. For the rest of this article, the webpage you reach after this navigation is referred as "AWS EC2 dashboard".
In this sub-section, creation of volumes from a 6.2.1R000 AMI snapshot is illustrated.
You must perform the following operations sequentially.
Ensure you have the AMI ID of the instance whose snapshot you want to use for creating volumes. If you have the AMI ID, skip to Get the Snapshot ID.
To get the AMI ID:
Select the desired instance.On the lower half of the window, detailed information about the selected instance is displayed.
If you are creating volumes in context of AWS Volume-Based Upgrade, the volumes created using an AMI snapshot of the new version must be in the same "Availability zone" as that of the existing version instances. Ensure to select an instance that is in the same "Availability zone" as that of the existing version instances that you want to use for volume-based upgrade.
Note the Instance ID and the AMI ID, as highlighted in the above image (excluding the parenthesis that encloses the highlighted part of the AMI ID value).
Copy the AMI ID of SBC version to which you want to upgrade, and then paste it into the search/filter text box. The desired AMI is displayed.
You can restrict your search of the type of images (Public/Private/Owned) using the dropdown list on the left of the search box.
Select the machine image to display its details in the lower half of the window.
Note the snapshot ID from the value of the field Block Devices, as highlighted in the above image.
As shown in the above image, the snapshot ID ends before the first colon of the highlighted string. For example, if the value of the field Block Devices is /dev/sda1=snap-0d06965xxxf045c6e:30:false:standard
, the snapshot ID is snap-0d06965xxxf045c6e
.
Creation of a standalone volume is illustrated here.
If you want to use the volumes as an HA pair, create two volumes. You can refer the first volume as active, and the second volume as standby.
If you want to create two volumes for an HA configuration, you can distinguish between the active and the standby volumes by adding an appropriate tag (for example, "Role") and providing appropriate value for that tag while creating the volumes. The tag's value is ideally based on the CERole that the volume may assume in future.
Copy the snap ID that you noted down, and paste it in the search/filter box. The desired snapshot is displayed.
You can restrict your search of the type of snapshots (Public/Private/Owned) using the dropdown list on the left of the search box.
Select the snapshot to display its description in the lower half of the window.
Right click on the selected instance and select Create Volume
.
The Create Volume window is displayed.
65
.After all necessary modifications, click Create Volume. A success message is displayed.
The newly created volume is displayed.
In this sub-section, the procedure to detach volumes is illustrated, which may be used extensively in context of AWS Volume-Based Upgrade.
Ensure the instance whose volume you want to detach is shut down. To shut down a running instance:
Using the left navigation panel of the AWS EC2 dashboard, navigate to INSTANCES > Instances and select the desired instance.
To quickly find the desired instance, filter the instances by using AMI ID. To find the AMI ID, use the techniques illustrated in Get the AMI ID.
Right click on the selected instance, and select Instance State > Stop.
Click Yes, Stop when prompted for confirmation.
After shut down, the Instance State of the instance must display "stopped".
Detaching the root volume of a stopped instance is illustrated here. However, the same procedure can be used to detach any active and standby volumes associated with the instance, as required for an AWS Volume-Based Upgrade.
To detach the active and standby volumes, perform the procedure twice.
Click on the value of the Block Devices field. A pop-up is displayed.
Select the volume, right click and select Detach Volume
.
Click Yes, Detach when prompted for confirmation.
Detaching a standalone volume to a stopped instance is illustrated here. However, the same procedure can be used to attach any active and standby volumes associated with the instance, as required for AWS Volume-Based Upgrade.
To attach the active and standby volumes, perform the procedure twice.
Select the volume displayed, right click and select Attach Volume
.
The Attach Volume pop-up is displayed. Provide appropriate values for the fields and click Attach.
For volume-based upgrade, the value for the field Device must be /dev/sda1
, as the volumes must be attached as root volumes.