Penile-extendr… Oh wait, sorry… vgextendr…


So you should know that I am all about ‘quick-n-dirty’ and this one is the epitome of that statement…  I did this one following some preliminary steps in VMware to add another virtual disk to my settings for this host.  I added a 12G Persistent SCSI vdisk to work with on this host… I am assuming you know how to do that… ( Edit ‘Virtual Machine Settings’, ‘Add…’, ‘Add Harddisk’, ‘ Create a new virtualdisk’, etc… ) So make sure you have done that before proceeding or of course nothing will work 🙂

cat /proc/partitions
/usr/sbin/pvcreate /dev/sdb
major minor  #blocks  name

8     0   12582912 sda
8     1     104391 sda1
8     2   12474472 sda2
8    16   12582912 sdb <– This is the newly created vdisk based on size and order…
253     0    2850816 dm-0
253     1    3047424 dm-1
253     2    2097152 dm-2
253     3    4128768 dm-3
vgdisplay|grep Free
#  Free  PE / Size       10 / 320.00 MB
vgextend /dev/mapper/VolGroup00 /dev/sdb
vgdisplay|grep Free
#  Free  PE / Size       393 / 12.28 GB <– Oooo… lots bigger now 🙂
lvextend -l +93 /dev/mapper/VolGroup00-LogVol00 ( +93 just to make a nice round number in remainder…)
resize2fs /dev/mapper/VolGroup00-LogVol00
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/mapper/VolGroup00-LogVol00 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/mapper/VolGroup00-LogVol00 to 1474560 (4k) blocks.
The filesystem on /dev/mapper/VolGroup00-LogVol00 is now 1474560 blocks long
vgdisplay|grep Free
Free  PE / Size       300 / 9.38 GB
EOFarce…

Advertisements

, , , , , , , , , ,

  1. lvcreator… Interactice :) « A Technological Farce

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: