Forum Moderators: bakedjake
example from them man page:
We have disk partitions /dev/sda3, /dev/sdb1 and /dev/hda2 free for use
and want to create a volume group named "test_vg". Steps required:1. Change partition type for these 3 partitions to 0x8e with fdisk.
(see pvcreate(8): 0x8e identifies LVM partitions)2. pvcreate /dev/sda3 /dev/sdb1 /dev/hda2
3. vgcreate test_vg /dev/sda3 /dev/sdb1 /dev/hda2
With our volume group "test_vg" now online, we can create logical vol-
umes. For example a logical volume with a size of 100MB and standard
name (/dev/test_vg/lvol1) and another one named "my_test_lv" with size
200MB striped (RAID0) across all the three physical volumes.Steps required:
1. lvcreate -L 100 test_vg
2. lvcreate -L 200 -n my_test_lv -i 3 test_vg
Now let's rock and roll. For example create a file system with "mkfs
-t ext2 /dev/test_vg/my_test_lv" and mount it with "mount
/dev/test_vg/my_test_lv /usr1"