Skip to content

Extending a Disk on Linux

If you increase the size of additional block storage or of the primary disk on the virtual server, the operating system may not see the new capacity immediately. Sign in over SSH as root and run:

cloud-init -d single -n growpart
cloud-init -d single -n resizefs

The first command grows the partition; the second grows the file system. Rebooting the server may also run these steps—after boot, the disk should reflect the new size.