Revision [1876]
Last edited on 2008-08-07 08:34:10 by WikiAdminAdditions:
===LVM tuning===
Striping http://tldp.org/HOWTO/LVM-HOWTO/recipethreescsistripe.html
Striping http://tldp.org/HOWTO/LVM-HOWTO/recipethreescsistripe.html
Revision [1533]
Edited on 2008-03-26 01:12:07 by WikiAdminAdditions:
lvscan
Deletions:
Revision [1532]
Edited on 2008-03-26 00:59:10 by WikiAdminAdditions:
===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
lvdisplay
%%
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
lvdisplay
%%
Revision [562]
Edited on 2007-05-16 00:25:53 by WikiAdminAdditions:
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
6. **lvcreate -l12345 -nlv_u02 /dev/vg0** #create a second logical volume on vg0, using all available extents
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
6. **lvcreate -l12345 -nlv_u02 /dev/vg0** #create a second logical volume on vg0, using all available extents
Deletions:
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
6. lvcreate -l12345 -nlv_u02 /dev/vg0 #create a second logical volume on vg0, using all available extents
Revision [561]
Edited on 2007-05-16 00:24:25 by WikiAdminAdditions:
===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