[iprconfig 5/8] Creating RAIDs from AFD disks

If you already have your disks formatted as AFD, you can create RAIDs of several levels using ‘raid-create’ and passing the desired level through the ‘-r’ switch:

iprconfig -c raid-create -r <N> [sdA | sgX]…

NOTE: Use show-alt-config to get the disk names. NOTE: The raid-create command also accepts JBOD disks as command line parameters. If a JBOD disk is specified, it will automatically be reformatted for RAID prior to creating the RAID array. Additionally, if all the devices specified are RAID devices, the devices will be “known zeroed” when the actual array creation occurs, which will reduce the overall time needed to create the RAID array.

[17:42:55] system:~# iprconfig -c raid-create -r 0 sg2 sg3 sg4 sg5 sg6 sg7 sg8 sg9
[17:43:38] system:~# iprconfig -c show-config
Name   PCI/SCSI Location          Description               Status
------ -------------------------  ------------------------- -----------------
       001f:01:00.0/126:          PCI-E SAS RAID Adapter    Operational
sdb    001f:01:00.0/126:2:0:0     RAID 0  SSD Disk Array    Optimized
       001f:01:00.0/126:0:10:0      RAID 0  SSD Member      Active
       001f:01:00.0/126:0:3:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:4:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:5:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:6:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:7:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:8:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:9:0       RAID 0  SSD Member      Active
       001f:01:00.0/126:0:1:0     Enclosure                 Active
       001f:01:00.0/126:0:2:0     Enclosure                 Active
       0029:01:00.0/120:          PCI-E SAS RAID Adapter    Operational
sda    0029:01:00.0/120:2:0:0     RAID 0  SSD Disk Array    Non-Optimized
       0029:01:00.0/120:0:10:0      RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:3:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:4:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:5:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:6:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:7:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:8:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:9:0       RAID 0  SSD Member      Remote
       0029:01:00.0/120:0:1:0     Enclosure                 Active
       0029:01:00.0/120:0:2:0     Enclosure                 Active

In above scenario, we used disks sg[2-9] to create a RAID level 0. Notice it took less than a minute to complete. Next, we can see how to create a RAID level 10:

[19:15:08] system:~# iprconfig -c raid-create -r 10 sg6 sg7 sg8 sg9 sg10 sg11 sg12 sg13 sg14 sg15 sg17 sg20
[20:06:43] system:~# iprconfig -c show-config
Name   PCI/SCSI Location         Description               Status
------ ------------------------- ------------------------- -----------------
       0000:00:01.0/1:            PCI-X SAS RAID Adapter    Operational
sdf    0000:00:01.0/1:255:0:0     RAID 10 Disk Array        Optimized
       0000:00:01.0/1:4:0:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:10:0        RAID 10 Array Member    Active
       0000:00:01.0/1:4:11:0        RAID 10 Array Member    Active
       0000:00:01.0/1:4:1:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:2:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:3:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:4:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:5:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:6:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:7:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:8:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:9:0         RAID 10 Array Member    Active
       0000:00:01.0/1:4:24:0      Enclosure                 Active
       0000:00:01.0/1:6:24:0      Enclosure                 Active
       0001:00:01.0/2:            PCI-X SAS RAID Adapter    Operational
sde    0001:00:01.0/2:255:0:0     RAID 10 Disk Array        Non-Optimized
       0001:00:01.0/2:4:2:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:3:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:1:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:4:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:0:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:5:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:6:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:8:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:10:0        RAID 10 Array Member    Remote
       0001:00:01.0/2:4:9:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:11:0        RAID 10 Array Member    Remote
       0001:00:01.0/2:4:7:0         RAID 10 Array Member    Remote
       0001:00:01.0/2:4:24:0      Enclosure                 Active
       0001:00:01.0/2:6:24:0      Enclosure                 Active

Notice it took more than 50 minutes for the array creation, so you might want to take that in consideration.

Please mind the time spent for formatting and for each RAID creation, which are close to these (needs update):

Formatting for raid/JBOD : around 20 minutes;
raid-create -r 0 :  0:00:03 a few seconds;
raid-create -r 5 :  1:30:00 (1.5 hours);
raid-create -r 6 :  2:35:00 (2.5 hours);
raid-create -r 10 : 0:50:00 (50 minutes);

Important Considerations

  • The default RAID level is 5. That means if you forget to pass the “-r” switch, iprutils will use raid level 5. That will keep you 1.5 hours from touching the disks.
  • The disk formatting is done in parallel. That means that it does not matter the number of disks you want to format. In other words, the time spent to format 1 disk is the same to format many disks.

[prev]  [next]

Advertisements

1 thought on “[iprconfig 5/8] Creating RAIDs from AFD disks”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s