[linux-lvm] Software raid on top of lvm logical volume

Eric Monjoin eric at monjoin.net
Wed Oct 27 22:02:06 UTC 2004


I would like to know if it's possible (works perfectly) to create a 
software mirror (md0) on top of  2 LVM logical volumes :

Physical Devices : /dev/sdb1, /dev/sdc1, /dev/sdd1, /dev/sde1, 
/dev/sdf1, /dev/sdg1
pvcreate /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1
vgcreate -s 32 vgdata1 /dev/sdb1 /dev/sdc1 /dev/sdd1
lvcreate -l xxx vgdata1 lvdata1
vgcreate -s 32 vgdata2 /dev/sde1 /dev/sdf1 /dev/sdg1
lvcreate -l xxx vgdata2 lvdata2

/etc/raidtab :
raiddev /dev/md0
    raid-level                     1
    nr-raid-disks                2
    nr-spare-disks              0
    chunk-size                    32
    persistant-superblock   1
    device                          /dev/vgdata1
    raid-disk                       0
    device                          /dev/vgdata2
    raid-disk                       1


Eric Monjoin
IT Architect
IBM france

More information about the linux-lvm mailing list