Increase the Size of the Root Partition on a vCSA
This is a workaround and might not supported
In my lab the VCSA root partition
/ residing on
/dev/sda3 was running out of space. To fix this I resized the partition using the following steps:
- Taking a backup of the appliance using the build in backup function in the VAMI.
- Shutting the vCenter Server down.
- Log in to the Host or vCenter that manages our test vCenter Server
Edit Settingsand increase the size for
Hard disk 1
- Take a snapshot of the VM, after increasing the hard disk
- Open the VMRC to the VM and power the VCSA back on
- When seeing the
Photon OSGRUB screen. Hit the
- Add at the end of the line starting with
linuxthe following text
[X]to boot into single user mode
Now we need to run the following commands:
To list the current layout of the disk. Use:
fdisk -l /dev/sda
To edit the Partition table on the disk we want to use the following commands:
After confirming that there is no partition after the
End of partition
3 we can continue to remove the partition.
This should show part 3 missing. Now we can recreate it.
mkpart 3 ext4 2365440 -1
2365440 as the beginning of the next partition as the
End of the previous partition was
Now we need to resize the filesystem itself.
And finally let's reset the VM using the web client.