Resizing NVMe Volumes

Mir Adnan
Jul 16, 2019

--

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

--

--

Mir Adnan
Mir Adnan

No responses yet