On 3/21/07, Gregory K. Ruiz-Ade <[EMAIL PROTECTED]> wrote:
On Mar 21, 2007, at 3:30 PM, John Oliver wrote:

> It's easy to add disk space with VMware, yes.  But then you have to
> utilize that disk space... either by creating and formatting a new
> partition, or (what I want to be able to do) resize an existing LVM
> partition.  But since that requires unmounting the file system on the
> partition, it would be kinda tough to resize one big /  Unless
> there's a
> way to temporarily add that disk to another VM, resize the partitions,
> and then re-mount it in the original VM.


Assuming VMWare:

1) shut down the VM

2) extend the virtual disk or add another

3) restart the VM

4) if extended:

"lvextend /dev/vgwhatever/lvol -L <new_size>"

if new vdisk:

"fdisk /dev/sdb; pvcreate /dev/sdb1; vgextend vg00 /dev/sdb"
"lvextend /dev/vgwhatever/lvol -L <new_size>"

5) "ext2online /dev/vgwhatever/lvol"

6) done.

Well, that's it in a nutshell.

Just for clarification, I believe that only steps  1, 2, 3 are
specific to VMWare.
Corrections to this belief are welcome.

Regarding step 5, is support for ext2online enabled in current kernels?

   carl
--
   carl lowenstein         marine physical lab     u.c. san diego
                                                [EMAIL PROTECTED]


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to