Filesystem Doesn't Reflect Instance Resize (Ephemeral)
Problem
An OpenStack instance, leveraging an ephemeral, non-boot-from-volume disk for its root partition, has been resized, but, the file system does not reflect the increased size (e.g. according to thedf
output).
Environment
- Platform9 Managed OpenStack - All Versions
- Nova
Cause
The respective filesystem has yet to be expanded within the guest OS.
Resolution
Ext2/3/4
- Leverage the resize2fs utility to resize the EXT filesystem.
- If the root partition is provisioned using LVM, you may need to expand the associated LV and then specify the path to it on the filesystem, e.g.
# resize2fs /dev/mapper/vg-root
XFS
- Leverage the xfs_growfs utility to resize the XFS filesystem.
Was this page helpful?