Resizing NVMe Volumes

Steps to resize NVMe volumes for Nitro Instances.

List information about all block devices on your machine.

ubuntu@localhost$ sudo lsblk

Increase the block size

ubuntu@localhost$ sudo growpart /dev/nvme0n1 1

If you are using XFS then do

xfs_growfs /dev/nvme1n1

Resize the root volume

ubuntu@localhost$ sudo resize2fs /dev/nvme0n1p1

See the resized blocks

ubuntu@localhost$ df -h

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store