LVM management
To add a new mounting using LVM, following these steps:
1. Use
fdisk to create the partition, tag it as type 0x8e (Linux LVM)
2.
pvcreate -v /dev/cciss/c0d0p4 #create the physical volume using the entire partition. One can also use the entire disk.
3.
vgcreate vg0 /dev/cciss/c0d0p4 #create a new volume group
4.
lvcreate -L10240M -nlv_u01 /dev/vg0 #create a 10G logical volume on vg0, set its name to lv_u01
5. Assuming you need to use the remaining space for a second logical volume, use
vgdisplay vg0 to find the available extents, say it's 12345.
6.
lvcreate -l12345 -nlv_u02 /dev/vg0 #create a second logical volume on vg0, using all available extents
7. mkfs, edit fstab, mount -a
Activate LVM
When you boot you a box with a CD, sometimes it is necessary to activate the LV before you can mount them.
vgscan
vgchange -a y VG_NAME
lvscan
LVM tuning
Striping
http://tldp.org/HOWTO/LVM-HOWTO/recipethreescsistripe.html∞
There are no comments on this page. [Add comment]