Friday, April 16, 2010

How to create stripped lvm volumes in linux rhel5 / centos

Advertisements


How to create stripped lvm volumes:

We have seen that how to configure logical volumes(lvm) in linux systems, How to create snapshot of a logical volume and how to create mirrored logical volumes. Here we see how to create stripped logical volumes. 

We can create lvms in stripped manner so that it will increase the performance. It can be done using the command #lvcreate with -i option.

The syntax is as follows:
#lvcreate -L Size -i2 -n Name_LV Name_VG 1st _LV 2nd _LV

[root@vm4 ~]# lvcreate -L 100M -i2 -n slvm redhat /dev/sda8 /dev/sda9
Using default stripesize 64.00 KB

/dev/cdrom: open failed: Read-only file system
Rounding size (25 extents) up to stripe boundary size (26 extents)
Logical volume "slvm" created

[root@vm4 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
mlvm redhat mwi-a- 100.00M mlvm_mlog 100.00
slvm redhat -wi-a- 104.00M

For extending a stripped lvm u need to extend the VG with two different PVs . Else it wont work.

1 comment:

  1. Thxs buddy...
    Try this link, very easy to understand

    http://www.redhatlinux.info/2010/11/lvm-logical-volume-manager.html

    ReplyDelete

Be nice. That's all.