Tuesday, May 19, 2009

to PV, VG, LV

1) To add space to an existing LVM system it needs to add free space from an existing VG by command lvextend.
2) If it doesn't VG free space, then it needs to add spare space from PV by vgextend.
3) If all of available PV's are taken, it needs to create new PV from unassigned partintion or hard drive by pvcreate.
==
1) To create PV from new hard drive.
# pvcreate /dev/hdc
2) To create PV from /dev/hdc2 partition
It needs to change partintion type by fdisk or parted to LVM (in fdisk - 8e, in parted - lvm)
3) then create PV # pvcreate /dev/hdc2

No comments: