raidz2
December 28, 2017
If using a DELL PERL 6/i Integrated, configure each disk as RAID-0:
> mfiutil show config
mfi0 Configuration: 8 arrays, 8 volumes, 1 spares
array 0 of 2 drives:
drive 1 ( 1863G) ONLINE <ST2000DM006-2DM1 CC26 serial=Z4Z8BX6V> SATA
drive 6 ( 1863G) ONLINE <ST2000DM006-2DM1 CC26 serial=Z4Z8BY35> SATA
array 1 of 1 drives:
drive 0 ( 466G) ONLINE <SEAGATE ST500NM0001 PS07 serial=Z1M17ZJ0> SCSI-6
array 2 of 1 drives:
drive 2 ( 466G) ONLINE <SEAGATE ST500NM0001 0002 serial=Z1M0DAVE> SCSI-6
array 3 of 1 drives:
drive 3 ( 932G) ONLINE <SEAGATE ST1000NM0023 0004 serial=Z1W54HJV> SCSI-6
array 4 of 1 drives:
drive 4 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L94N> SAS
array 5 of 1 drives:
drive 5 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L9C4> SAS
array 6 of 1 drives:
drive 8 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L8DD> SAS
array 7 of 1 drives:
drive 9 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L824> SAS
volume mfid0 (1863G) RAID-1 64K OPTIMAL <raid1> spans:
array 0
volume mfid1 (465G) RAID-0 64K OPTIMAL <r0> spans:
array 1
volume mfid2 (465G) RAID-0 64K OPTIMAL <r2> spans:
array 2
volume mfid3 (931G) RAID-0 64K OPTIMAL <r3> spans:
array 3
volume mfid4 (465G) RAID-0 64K OPTIMAL <r4> spans:
array 4
volume mfid5 (465G) RAID-0 64K OPTIMAL <r5> spans:
array 5
volume mfid6 (465G) RAID-0 64K OPTIMAL <r8> spans:
array 6
volume mfid7 (465G) RAID-0 64K OPTIMAL <r9> spans:
array 7
dedicated spare 7 ( 1863G) HOT SPARE <ST2000DM006-2DM1 CC26 serial=Z4Z8BPTG> SATA backs:
array 0
Array has one RAID-1 using 3 disks and the others are disk are each one a RAID-0 volume
> mfiutil show volumes
mfi0 Volumes:
Id Size Level Stripe State Cache Name
mfid0 ( 1863G) RAID-1 64K OPTIMAL Disabled <raid1>
mfid1 ( 465G) RAID-0 64K OPTIMAL Disabled <r0>
mfid2 ( 465G) RAID-0 64K OPTIMAL Disabled <r2>
mfid3 ( 931G) RAID-0 64K OPTIMAL Disabled <r3>
mfid4 ( 465G) RAID-0 64K OPTIMAL Disabled <r4>
mfid5 ( 465G) RAID-0 64K OPTIMAL Disabled <r5>
mfid6 ( 465G) RAID-0 64K OPTIMAL Disabled <r8>
mfid7 ( 465G) RAID-0 64K OPTIMAL Disabled <r9>
To configure the raid:
zpool create -f <pool-name> raidz2 mfid1 mfid2 mfid3 mfid4 mfid5 mfid6
Add a spare:
zpool add <pool-name> spare mfid7
This is the output of zpool status
:
> zpool status
pool: sas
state: ONLINE
scan: none requested
config:
NAME STATE
sas ONLINE
raidz2-0 ONLINE
mfid1 ONLINE
mfid2 ONLINE
mfid3 ONLINE
mfid4 ONLINE
mfid5 ONLINE
mfid6 ONLINE
spares
mfid7 AVAIL
errors: No known data errors
In this case the pool named sas
is a mix of SAS, SCSI of different sizes:
> mfiutil show drives
mfi0 Physical Drives:
0 ( 466G) ONLINE <SEAGATE ST500NM0001 PS07 serial=Z1M17ZJ0> SCSI-6 E1:S0
1 ( 1863G) ONLINE <ST2000DM006-2DM1 CC26 serial=Z4Z8BX6V> SATA E1:S1
2 ( 466G) ONLINE <SEAGATE ST500NM0001 0002 serial=Z1M0DAVE> SCSI-6 E1:S2
3 ( 932G) ONLINE <SEAGATE ST1000NM0023 0004 serial=Z1W54HJV> SCSI-6 E1:S3
4 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L94N> SAS E1:S4
5 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L9C4> SAS E1:S5
6 ( 1863G) ONLINE <ST2000DM006-2DM1 CC26 serial=Z4Z8BY35> SATA E1:S6
7 ( 1863G) HOT SPARE <ST2000DM006-2DM1 CC26 serial=Z4Z8BPTG> SATA E1:S7
8 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L8DD> SAS E1:S8
9 ( 466G) ONLINE <SEAGATE ST3500620SS MS04 serial=9QM5L824> SAS E1:S9
Enable cache on all disks:
i=0; while [ $i -le 9 ]; do mfiutil cache mfid${i} enable; i=`expr $i + 1`; done