Preparing the AWS upgrade volume

Last Updated : Jul 24, 2023 |

About this task

This process uploads the upgrade vmdk file to an AWS storage bucket.

Procedure

  1. If you do not already have one, create an S3 bucket in the same region as the instances:
    1. In the AWS Management Console, under STORAGE select S3.
    2. Select Create Bucket and enter a memorable name, for this example "vmdk-ipo".
    3. Select the Region that matches the instances you are upgrading and click Create.
  2. Upload the vmdk file to the bucket:
    1. Click Upload and select the vmdk file. Wait until the upload of the file to the bucket has completed.
  3. From the AWS command line, create a snapshot from the vmdk file using the following command:
    aws ec2 import-snapshot --description "INSTALLER" --disk-container ⮠ "Format=VMDK,UserBucket={S3Bucket=vmdk-ipo,S3Key=ABE-upgradedisk.vmdk}"
  4. Note the ImportTaskID shown in the output.
    { 
    "SnapshotTaskDetail": { 
    "Status": "active", 
    "Description": "INSTALLER", 
    "DiskImageSize": 0.0, 
    "UserBucket": { 
    "S3Bucket": "demogermany", 
    "S3Key": "ABE-11.1.100-59-upgradedisk.vmdk" 
    }, 
    "Progress": "0", 
    "StatusMessage": "pending" 
    }, 
    "Description": "INSTALLER", 
    "ImportTaskId": "import-snap-0c938d492b68484da"
    }
  5. Check the status of snapshot using the following command. Replace the <snap-id> with the ImportTaskID value shown in the previous step.
    aws ec2 describe-import-snapshot-tasks --import-task-ids <snap-id>
  6. Do not continue until the status in the command output shows as "Completed". For example:
    { 
    "ImportSnapshotTasks": [ 
    { 
    "SnapshotTaskDetail": { 
    "Status": "completed", 
    "Description": "INSTALLER", 
    …
  7. Once the snapshot import has completed, create a volume based on the snapshot:
    1. Select Elastic Block Storage > Snapshots.
    2. Select the snapshot and select Actions > Create Volume.
    3. For Volume Type, select General Purpose SSD (gp2).
    4. For Size (GiB), enter 200GB.
    5. For Availability Zone, select the same zone as the instances you are upgrading.