View Single Post

   
  #2 (permalink)  
Old 02-16-2008, 06:42 AM
Ryoko
 
Posts: n/a
Default Re: RaidFrame and multiple arrays on same disks

In article <SIPke.25463$d5.174702@newsb.telia.net>,
"transpetaflops" <usenet@pp.dyndns.biz> wrote:

> Hi.
>
> I've been reading the man-pages for raid and raidctl but can't seem to find
> any info about the following scenario. If I have 4 identical disks, would it
> be possible to create the following configuration with RaidFrame?
>
> Array 1 - RAID1
> 50% of disk 1
> 50% of disk 2
>
> Array 2 - RAID1
> 50% of disk 3
> 50% of disk 4
>
> Array 3 - RAID5
> Remaining 50% of disks 1, 2, 3 and 4
>
> How would the config files look to accomplish this? Should I create 2
> disklabels on each disk or could I define in the config that only part of
> the disklabel should be used for a certain array?
>
> An extra bonus would be if I could stripe the two RAID1-arrays thus creating
> one RAID10.


as a starting point ...
for each disk use disklabel to create 2 partitions (or type RAID)
(using f and g)

riad0.conf would be
start array
1 2 0
start disks
/dev/wd0f
/dev/wd1f
start layout
32 1 1 1

riad1.conf would be
start array
1 2 0
start disks
/dev/wd2f
/dev/wd3f
start layout
32 1 1 1

and riad2.conf would be
start array
1 4 0
start disks
/dev/wd0g
/dev/wd1g
/dev/wd2g
/dev/wd3g
start layout
32 1 1 5

disklabel up raid0 and raid1 with 1 partition each - h and the

raid3.conf would be
start array
1 2 0
start disks
/dev/raid0h
/dev/raid1h
start layout
32 1 1 0

Note the above is a starting point that should give you one raid 5 on
dec raid2 and a raid 10 on raid3

hope that helps
R.
Reply With Quote