Figured I'd throw this out there for all to benefit as a golden nugget one of these days. My Red Hat Satellite Server at work is abt toast on it's VG for free space and I needed to add some more space, on the fly/HOT. Done this a few times before for various reasons (usually to get out of a not so well thought out disk partitioning scheme or one that we simply outgrew) so I thought I'd actually document it and post for prosperity. This is all done hot/live while vm is up. This is definitely a production lifesaver, all of these cmds really, muuuhahaha the pwr of LVM, ALMOST as good as ZFS :-D
I know you can do the dance of 'just add another vdisk, pvcreate, vgextend, lvresize, resize2fs, etc.' but this is WAY cleaner and does not introduce vmdk cruft, that's just editing a secondary data disk that was 100GB and taking it to 120GB with zero downtime on the Linux server VM. (My prd VM went from 1.5TB to 2TB), had to test in the home lab first ya know before I introduce a CLM if ya know what I mean :-D
Easy enough to port to whatever virt technology (KVM/Xen/etc.) as long as you can change vdisk size live.
Take care, all, hopefully someone gains something out of this.
I know you can do the dance of 'just add another vdisk, pvcreate, vgextend, lvresize, resize2fs, etc.' but this is WAY cleaner and does not introduce vmdk cruft, that's just editing a secondary data disk that was 100GB and taking it to 120GB with zero downtime on the Linux server VM. (My prd VM went from 1.5TB to 2TB), had to test in the home lab first ya know before I introduce a CLM if ya know what I mean :-D
Easy enough to port to whatever virt technology (KVM/Xen/etc.) as long as you can change vdisk size live.
Take care, all, hopefully someone gains something out of this.
Last edited: