How do you grow a cloud root disk that is a plain partition (no LVM)?
IntermediateConceptStorage & Memory
Answer
After enlarging the volume in the cloud console:
lsblk # disk bigger, partition not
sudo growpart /dev/nvme0n1 1 # from cloud-guest-utils / cloud-utils-growpart
sudo xfs_growfs / # XFS
sudo resize2fs /dev/nvme0n1p1 # ext4
df -h /
Note the space between disk and partition number in growpart.
More on Storage & Memory
How do you list disks, partitions and filesystems?IntermediateMBR vs GPT partition tables?IntermediateWalk through adding a new disk and mounting it permanently.IntermediateExplain the six fields of an /etc/fstab line.IntermediateWhy use UUIDs and `nofail` in fstab?IntermediateWhat does a bad fstab entry do, and how do you recover?Advanced