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.

Gregory

--
Gregory K. Ruiz-Ade <[EMAIL PROTECTED]>
OpenPGP Key ID: EAF4844B  keyserver: pgpkeys.mit.edu


Attachment: PGP.sig
Description: This is a digitally signed message part

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

Reply via email to