Re: Raid10, six drives, two mirrors

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

 



>>>>> "Wols" == Wols Lists <antlists@xxxxxxxxxxxxxxx> writes:

Wols> On 09/09/18 15:32, Wilson Jonathan wrote:
>> I've tried to google, but its not being my friend as I may be using the
>> incorrect terms.
>> 
Wols> Warning! As far as linux is concerned, raid-10 and raid-1+0 are
Wols> different beasts ...

>> What I'm trying to find out is if I can create a raid10 with six/6
>> drives but with a triple mirror where there are only 2 mirrors
>> containing 3 drives a piece.

Wols> That should be doable. If you want a raid-1+0, create two 3-drive
Wols> raid-0s, and then create a raid-1 over the top. That will give you 3
Wols> raid arrays to manage at the linux level :-(

I think you're mixing up what he wants here... He wants two triple
disk RAID1s (three way mirrors) with a RAID0 stripe on top.  Easy
peasy.  Do all the following as root.  I'm just doing it on fake
devices, you do it on regular disks, which I suggest you format and
put partitions on and use the partitions instead.  

  truncate -s 10m /var/tmp/loop1
  losetup loop1 /var/tmp/loop1
  # Repeat for other five devices

  mdadm -C /dev/md91 -l 1 -n 3 /dev/loop[123]
  mdadm -C /dev/md92 -l 1 -n 3 /dev/loop[456]
  
  mdadm -C /dev/md9 -l 0 -n 2 /dev/md9[12]

  # cat /proc/mdstat
  Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5]
  [raid4] [multipath] [faulty]
  md9 : active raid0 md92[1] md91[0]
	17408 blocks super 1.2 512k chunks

  md92 : active raid1 loop6[2] loop5[1] loop4[0]
	10176 blocks super 1.2 [3/3] [UUU]

  md91 : active raid1 loop3[2] loop2[1] loop1[0]
	10176 blocks super 1.2 [3/3] [UUU]



Wols> I don't know the syntax off the top of my head, but telling mdadm to
Wols> create a raid-10 with two mirrors should be pretty easy, then it's just
Wols> the one raid to manage.

Wols> Look at the raid wiki. This page in particular has an explanation of
Wols> raid-10 and raid-1+0
Wols> https://raid.wiki.kernel.org/index.php/What_is_RAID_and_why_should_you_want_it%3F

Wols> Note in particular that certain variants of raid-10 can *not* be
Wols> explanded, so if you decide you want a bigger raid you're stuck with
Wols> creating the new raid then moving the old one across.

Wols> Cheers,
Wols> Wol



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux