Resize LVM -Centos

Here We are sharing guide to resize LVM size.

create new partition (partition id should be 8e Linux LVM)

ADD PHYSICAL VOLUME

pvcreate /dev/new_partition

Verify new physical volume

pvdisplay
Or
pvscan

Extend existing VOLUME GROUP

vgextend VolGroup00 /dev/xvda3

make sure vg free size is = new partition size using vgdisplay command

Extend existing LVM by adding new partition

lvextend /dev/VolGroup00/LogVol00 /dev/xvda3

make sure lv size is increased, use lvdisplay

RESIZE FILE SYSTEM

umount /dev/VolGroup00/LogVol00

fsck -f /dev/VolGroup00/LogVol00

resize2fs /dev/VolGroup00/LogVol00

One Comments

    • LVM Resize root partition -Centos | LinuxReaders says:

      [...] This is more of Resize LVM I have tested this on CentOS 5.5. Since this is root partition modification, I’ll recommend to keep config backup before proceeding. [...]

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    *

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

    Archives

    Categories

    Page optimized by WP Minify WordPress Plugin