To check whether the volume has a partition that must be extended, use the lsblk command to display information about the NVMe block devices attached to your instance.
For volumes that have a partition, such as the root volume shown in the previous step, use the growpart command to extend the partition.
growpart /dev/nvme1n1 1
(Optional) To verify that the partition reflects the increased volume size, use the lsblk command again.
To verify the size of the file system for each volume, use the df -h command.
[ext4 file system] To extend the file system on each volume, use the resize2fs command
(Optional) To verify that each file system reflects the increased volume size, use the df -h command again.