[CentOS] safest way to grow a LV under VMware ESXi5.5

Fri Oct 30 16:57:16 UTC 2015
m.roth at 5-cent.us <m.roth at 5-cent.us>

Boris Epstein wrote:
> Hello all,
>
> In your view, what is the most reliable and safe way to increase an LV
> housing the root filesystem of a Centos 6 VM. I am thinking either growing
> the virtual HD virtual device, or creating a new device and adding it as a
> PV to the VM, or perhaps migrating the whole FS to a new virtual disk.
>
> Any input on how best to proceed would be appreciated.
>
Dumb question: why do you need a larger root filesystem?

First, how big is root? And if this is for stuff under, say, /var/www, I'd
make a separate logical drive/partition, and mount that, rsync everything
from /var/www to that, then shut down the web, and remount the new
filesystem on /var/www.

Root, itself, doesn't need to be huge. We're using 500G, and seriously
considering making it 125G in the future, with data, or web stuff, is on a
separate partition, so when there's a sudden explosion of data, / is safe.

       mark