[linux-lvm] help using LVM & md for RAID10

Jose Luis Domingo Lopez linux-lvm at 24x7linux.com
Sat May 10 12:56:02 UTC 2003


On Wednesday, 30 April 2003, at 18:16:02 -0700,
Alberto wrote:

> # cat /proc/mdstat
> Personalities : [linear] [raid0] [raid1] [raid5] [multipath]
> read_ahead 1024 sectors
> md4 : active raid0 md3[3] md2[2] md1[1] md0[0]
>       143372288 blocks 512k chunks
> md3 : active raid1 sdi[1] sdh[0]
>       35843584 blocks [2/2] [UU]
> md2 : active raid1 sdg[1] sdf[0]
>       35843584 blocks [2/2] [UU]
> md1 : active raid1 sde[1] sdd[0]
>       35843584 blocks [2/2] [UU]
> md0 : active raid1 sdc[1] sdb[0]
>       35843584 blocks [2/2] [UU]
> unused devices: <none>
> 
> # pvcreate /dev/md0
> # pvcreate /dev/md1
> # pvcreate /dev/md2
> # pvcreate /dev/md3
> # vgcreate vg01 /dev/md[0-3]
>
In short, you set up a RAID1+0, four RAID1 devices bounded together in
one big RAID0 (md4). But next, you configure md[0-3] as PVs, instead of
just creating a PV from md4, the higher level RAID device.

You should just do:
# pvcreate /dev/md4
# vgcreate vg01 /dev/md4

And then create LV from this new VG (vg01). Should work, and you get
high performance (RAID0 md4), protection agains physical disk failures
(between one and four disk crashes, depends on luck), and the ability to
hot create, modify and destroy "partitions" (LVM).

Hope it helps.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.5.69)




More information about the linux-lvm mailing list