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 the**df** 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

  1. Leverage the resize2fsarrow-up-right utility to resize the EXT filesystem.

# resize2fs /dev/sda1
- 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

  1. Leverage the xfs_growfsarrow-up-right utility to resize the XFS filesystem.

Last updated