[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Hi,

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

Tks


Eric Monjoin IT Architect IBM france


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]