When using the vCenter Server Appliance it's possible that certain volumes (most likely those involving logs) may start to get full, generating alarms. Because you're all good people, you'll monitor those alarms and take action right?
There's a KB article available which details how to do this for VCSA version 6 and 6.5, however there appear to have been some slight changes to the appliance shell in 6.7, so the process is slightly different. This post covers what you need to do to extend a volume on vSphere 6.7.
First - identify which volume you need to extend. You can check in the VAMI interface (running on TCP port 5480) to see which volume is impacted. The most likely candidate is the volume marked out with the red arrow.
Let's say that this volume was starting to get full - I can simply login to the vSphere Client and extend this volume by going to Edit Settings
and extending the relevant disk. Note that you can't extend a virtual disk if there are snapshots on the machine, so you may need to commit those snapshots before you do this. In this case the disk in question is Hard Disk 5, so I'm adding an extra 5Gb to it.
Once this is complete, hit OK and verify that the disk extension completes successfully.
Now on to the magic! Log into your vCenter Server Appliance over SSH and run the command
This will resize all partitions on the appliance to be 100% of the size of disks attached
As we can see, the shell outputs the new size, the partition name and the old size. We can then verify this in the VAMI interface.
Job done! If you have any comments please drop me a line on Twitter @kev_johnson