Symptoms

  1. A Virtual Machine hard disk gets resized through PVA.
  2. After VM restart, the partition inside the VM remains unchanged.

Cause

Most likely, the "resize filesystem" option was not checked after the new disk size was set:

Resolution

Check the "resize filesystem" option before resizing the VM.

Alternatively, when the disk has already been resized, a partition resizing utility, suitable for the specific FS type, can be run inside the guest OS. For example, for ext4 partition, resize2fs should be used.

NOTE: The option "resize filesystem" always applies the changes on the last partition in the VM. It often happens with Linux VMs that the last partition is devoted to SWAP, so the applied changes are not immediately visible. In this case, it is required to resize the partitions manually by means of guest OS tools.

Internal content