Marek Wywiał

python software developer

extend lvm2 filesystem

by Marek Wywiał
  |   Source

Just self memo

# Added new physical partition /dev/sda3
# create a physical volume out of it
$ pvcreate /dev/sda3


# Now, add it to the volume group
#that my logical volume is on
$ vgextend VolGroup00 /dev/sda3


# Now that the volume group has more
# disk space, the logical volume can grow
$ lvextend -L+11G /dev/VolGroup00/LogVol00


# Ok, last of all, I want to filesystem to
# recognize that more space is available
$ fsadm resize /dev/VolGroup00/LogVol00

# sweet, I have more space now
$ df -h
Comments powered by Disqus
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/IT dx s: a C+++$ U>$ P+ L++$ !E-(+) W++$ N+ !o K--? !w !O !M !V PS PE !Y PGP !t !5 X++ R tv+ b+++ DI D G e+++(++++) h--- r y+++
------END GEEK CODE BLOCK------