LVM Resize




Step 1

First , reboot server and boot as linux rescue mode without mounting any LVM drives




Step 2

resize command :

lvm pvscan
lvm vgchange -ay -P
fsck -Cy /dev/VolGroup00/LogVol00
resize2fs -f -p /dev/VolGroup00/LogVol00 4000000K (the resize number , try G)
lvm lvreduce -L4000000K /dev/VolGroup00/LogVol00
lvm vgdisplay (see Free PE / Size)
lvm lvcreate --extents 97 -n LogVol02 VolGroup00 (replace 97 with the "Free PE / Size" in previous step)
mkfs.ext3 /dev/VolGroup00/LogVol02





Step 3

Rreboot server finally



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.