Windows VMWare guests can easily be resized live. For linux guests I've used LVM (add disk, partprobe, add disk to vg, lvextend, resize2fs). This works.
I've just stumbled across the sketch of better approaches. The first seems eminently doable, use LVM physical volume without partitions. This allows extending with one extra volume (and significanly simpler and less work). It'd be even better if I could whittle it down to s single VMDK
The more tantilizing option though is hinted at in a couple of posts scattered about the internet (including the unix cousin of this sight) running off of a partitionless VMDK. This seems very clean, but I'm running into a major roadblock for testing (and implementation) installing to a partionless system.
We are a SLES/OES shop, this may well be easy with another distro, but I cannot get the installer to skip partitioning. I've tried presenting it with preformatted whole disk and various permutations of the SLES installation disk formatting process.
FWIW, here are some postings...
https://unix.stackexchange.com/questions/14010/the-merits-of-a-partitionless-filesystem (last post)
http://v-reality.info/2010/06/working-with-linux-volumes-n-vsphere/
I could manually copy/move things about. Does anyone have any suggestions?
If it is possible to use a whole disk as PV I would go for that. This would allow using different LVs for different mountpoints even without partitions.
As for the installer - install your system into a partitioned VM and then clone it into the raw disk of another vm. Be sure to change
/boot/grub/device.map
,/etc/fstab
,/boot/grub/menu.lst
to /dev/sda from /dev/sdaN.You will possibly have to reinstall grub, using a rescue cd as well.
Over the last few months I've worked out a (set of) answers.
First, I worked out a method for a partionless install. I've ended up with a (to my mind) better approach, so the explanation is incomplete:
There were several issues with this approach. Live resizing works to point, but none of the "reread partion table" commands (kpartx and the like) work. This makes some sense, as there is no partition to read. There has to be a reboot for the resize to be recognized. But as I indicated:
THE BETTER APPROACH
This was non-intuitive to me. It does require two reboots, but that's the extent of the downtime.
This has minimal downtime and will work with stock installs. It's considerably simpler then LVM approaches. It can be retroactively applied to almost any install (multiple partitions just make the recreation more complicated). It's much much quicker (and I'd counter-intuitively argue safer) then the gparted approach.