Strony

sobota, 20 grudnia 2008

lvm extend short reminder

OK, I had one lvm volume group called aquarius, and it was at md6:
# pvs
PV VG Fmt Attr PSize PFree
/dev/md6 aquarius lvm2 a- 913.70G 0

so... I have additional md3 which I want to add to my existing LVM volume group.
First - create a new pv at md3:
# pvcreate /dev/md3

then, add it to yours volume group
# vgextend aquarius /dev/md3

result:
# pvs
PV VG Fmt Attr PSize PFree
/dev/md3 lvm2 a- 186.30G 100
/dev/md6 aquarius lvm2 a- 913.70G 0


then extend your phisical volume:
# lvextend -l 100%VG /dev/aquarius/storage

0 komentarze: