Hello,
I want to increase root partition ( / ) in VCSA 6.0. Its format is ext3 but it's not an LVM volume so vpxd_servicecfg storage lvm autogrow not working for me.
I've found couple articles about increasing it's size by running fdisk /dev/sda and then remove partition 3, recreate it, set it and at the end (after reboot of the server) use resize2fs /dev/sda3.
I have situation when vpxd_servicecfg storage lvm autogrow extends all lvms and rescan storage for all devices, so I can see that device /dev/sda has 5GB unallocated. Can I use only resize2fs /dev/sda3 to extend partition size with no downtime of the server?
Or maybe there is another way? And is it even supported by vmware to extend root partition?
Articles that I've found:
https://content.pivotal.io/blog/increasing-the-size-of-a-vcsa-root-filesystem
Thanks in advance,
Lukasz
What is causing the need to grow the root partition? If everything is in working order, expanding the drive should not be needed.
> Increasing the Size of a VCSA Root Filesystem
I can confirm that the steps described in this blog post work! rootFS on our vMA was 2.7G and filled-up by a messages file worth 608MB. Resized it to 10G.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 2.7G 2.0G 608M 77% /
udev 1004M 100K 1004M 1% /dev
tmpfs 1004M 676K 1003M 1% /dev/shm
/dev/sda1 128M 37M 85M 31% /boot
/dev/sdb1 49G 3.4G 43G 8% /vcenterbackup
sudo resize2fs /dev/sda3
vi-admin's password:
resize2fs 1.41.9 (22-Aug-2009)
Filesystem at /dev/sda3 is mounted on /; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 1
Performing an on-line resize of /dev/sda3 to 2553088 (4k) blocks.
The filesystem on /dev/sda3 is now 2553088 blocks long.
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 9.6G 2.0G 7.2G 22% /
udev 1004M 100K 1004M 1% /dev
tmpfs 1004M 676K 1003M 1% /dev/shm
/dev/sda1 128M 37M 85M 31% /boot
/dev/sdb1 49G 3.4G 43G 8% /vcenterbackup