Resizing The EBS Volume
Resizing The EBS Volume
Scenario1 : we have modified the EBS volume of our ec2 instance from 8Gb to 32Gb
what all action we need to takeup so that it should get reflected in the instance
After the modifiaction is completed in the AWS console, login to the particular
ubuntu instance
now we should see the updated storage in nvme0n1 1
after the above command is executed run the below command, this command resizes the
ext2, ext3, or ext4 file system located on the first partition of the NVMe storage
device /dev/nvme0n1
===================================================================================
=====================
Scenario2: how to attach instance store volume to our ec2 instance
important: Instance family should support instance store volume
we have two types of volume built on the Nitro System, which exposes EBS volumes as
NVMe block devices.
which has two partitions named nvme0n1p1 and nvme0n1p128. The attached volume is
/dev/nvme1n1, which has no partitions and is not yet mounted.
file -s command to get information about a specific device, such as its file system
type.
then use sudo file -s /dev/nvme1n1
Use the lsblk -f command to get information about all of the devices attached to
the instance.
sudo lsblk -f
Use the mkdir command to create a mount point directory for the volume. The mount
point is where the volume is located in the file system tree and where you read and
write files to after you mount the volume.
sudo mkdir /opt/xlparts
Mount the volume or partition at the mount point directory you created in the
previous step.
sudo mount /dev/nvme1n1 /opt/xlparts