Click Connect. A new tab will be opened in your browser with a command line interface (CLI) to the EC2 Initiator Instance.
Run the command:
and note the device of the 500GB volume we have attached. Providing no other EBS volumes have been attached, it will be nvme[0-26]n1. We can also see previous 200GB volume as sda, take a note of this.
Note: The device names that you specify for NVMe EBS volumes in a block device mapping are renamed using NVMe device names (/dev/nvme[0-26]n1). The block device driver can assign NVMe device names in a different order than you specified for the volumes in the block device mapping. For more details on Amazon EC2 Device naming on Linux instances: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
We are going to unmount the 200GB Volume Gateway Volume under data1 and mount the 500GB EBS Volume. To start, run the following commands:
sudo umount /data1
sudo mount /dev/<devicename> /data1
There should be the 1GB files pre-populated on the volume. This can be confirmed with the following two commands. To see the list of files:
ls -l /data1
and to check the amount of data used on /dev/[devicename]
Note: the disk partition has not been expanded on nvme[0-26]n1 / the snapshot clone volume, so this will still show as 200GB in size.