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


if you find any missing point in here, please let us know in comment section or tweet us at @linuxreaders. To get more articles like this, subscribe to our RSS feeds / Mails.
Read 240 articles by
  • Pingback: LVM Resize root partition -Centos | LinuxReaders

Trending Posts