Adding Disk Space to an Array on a Dell PERC using AFACLI

Adding Disk Space to an Array on a Dell PERC using AFACLI

This blog describes the commands necessary to add a disk to existing RAID V array in the case where you have an empty available slot where you can add a disk.
The actual manual for afacli can be found here:
http://docs.us.dell.com/support/edocs/storage/57kgr/cli/en/index.htm

Accessing the CLI from the UNIX Prompt

To access the CLI from the UNIX prompt, display a window and type afacli in any directory. The system displays the FASTCMD> prompt, which indicates you can now use CLI commands. The path in the startup file (.login or .cshrc) must include the directory where the software is installed for the command to work in any directory. See your UNIX documentation for information on setting up directory paths in the .login and .cshrc files.

To view all controllers use €˜controller list€™
To connect to the controller with the command line utility, execute:

FASTCMD> open afa0

AFA0>

To show the status of all disks in all arrays and get an overview of the disks in the RAID, execute €˜enclosure show status€™.

AFA0> enclosure show status

Executing: enclosure show status

Enclosure
ID (B:ID:L) UpTime D:H:M   PowerCycle Interval Door     Alarm
———– ————– ———- ——– ——– —–
0  0:06:0         0:00:00        0       10   UNLOCKED OFF

Enclosure
ID (B:ID:L) Fan Status
———– — ————-

Enclosure
ID (B:ID:L) Power State        Status
———– —– ———— ——-

Enclosure
ID (B:ID:L) Slot scsiId Insert  Status
———– —- —— ——- ——————————————
0  0:06:0   0   0:00:0     1   OK ACTIVATE
0  0:06:0   1   0:01:0     1   OK ACTIVATE
0  0:06:0   2   0:02:0     1   OK ACTIVATE
0  0:06:0   3   0:03:0     1   OK ACTIVATE
0  0:06:0   4   0:255:0     0   OK UNCONFIG EMPTY I/R READY NOTACTIVATE

Enclosure
ID (B:ID:L) Sensor Temperature Threshold Status
———– —— ———– ——— ——–
0  0:06:0   0       73 F         120    NORMAL
0  0:06:0   1       69 F         120    NORMAL

Above, there is no disk in slot 4, insert the disk again and execute the command again to see it again.

AFA0> enclosure show status
Executing: enclosure show status

Enclosure
ID (B:ID:L) UpTime D:H:M   PowerCycle Interval Door     Alarm
———– ————– ———- ——– ——– —–
0  0:06:0         0:00:00        0       10   UNLOCKED OFF

Enclosure
ID (B:ID:L) Fan Status
———– — ————-

Enclosure
ID (B:ID:L) Power State        Status
———– —– ———— ——-

Enclosure
ID (B:ID:L) Slot scsiId Insert  Status
———– —- —— ——- ——————————————
0  0:06:0   0   0:00:0     1   OK ACTIVATE
0  0:06:0   1   0:01:0     1   OK ACTIVATE
0  0:06:0   2   0:02:0     1   OK ACTIVATE
0  0:06:0   3   0:03:0     1   OK ACTIVATE
0  0:06:0   4   0:04:0     1   OK UNCONFIG ACTIVATE

Enclosure
ID (B:ID:L) Sensor Temperature Threshold Status
———– —— ———– ——— ——–
0  0:06:0   0       73 F         120    NORMAL
0  0:06:0   1       73 F         120    NORMAL

You can see that the disk in slot 4 is waiting to be configured.  lets take a look at the RAID V container that we are going to add the new disk to,  execute “container list”

AFA0> container list
Executing: container list
Num          Total  Oth Chunk          Scsi   Partition
Label Type   Size   Ctr Size   Usage   B:ID:L Offset:Size
—– —— —— — —— ——- —— ————-
0    RAID-5  101GB       64KB Valid   0:00:0 64.0KB:33.8GB
/dev/sda                                         0:01:0 64.0KB:33.8GB
0:02:0 64.0KB:33.8GB
0:03:0 64.0KB:33.8GB

Even though it is visible in the enclosure list above,  you will need to execute a “controller rescan” to find the new disk.

AFA0> controller rescan
Executing: controller rescan

Now initialize the disk so it can be used.

AFA0> disk initialize 4
Executing: disk initialize (ID=4)

Finally you can add the disk to the container,  you will simply run the container reconfigure command with the container number (in our case 0) and the device number (in our case 4)

AFA0> container reconfigure 0 4
Executing: container reconfigure 0 (ID=4)

Now, wait for the disk to rebuild. You can view the rebuild process with €˜task list€™.

AFA0> task list
Executing: task list

Controller Tasks

TaskId Function  Done%  Container State Specific1 Specific2
—— ——– ——- ——— —– ——— ———
101   Reconfg   8.4%      0      RUN   00000000  00000000

Also while adding a new disk to this array I found that the existing array was only  using 25.6 GB of each disk and not the full 36 GB

I issued a “container reconfigure” command to utilize the more space on each disk

AFA0>  container reconfigure /partition_size=36388763000 0
Executing: container reconfigure /partition_size=36,388,763,000  0

PowerEdge 1750 RAID Array Repair

PowerEdge 1750 RAID Array Repair

This blog describes some basic commands to repair an array in the case of a failed disk on the Dell 1750 running Linux via Dells afacli command line utility.

The actual manual for afacli can be found here:
http://docs.us.dell.com/support/edocs/storage/57kgr/cli/en/index.htm

Accessing the CLI from the UNIX Prompt

To access the CLI from the UNIX prompt, display a window and type afacli in any directory. The system displays the FASTCMD> prompt, which indicates you can now use CLI commands. The path in the startup file (.login or .cshrc) must include the directory where the software is installed for the command to work in any directory. See your UNIX documentation for information on setting up directory paths in the .login and .cshrc files.

To view all controllers use ‘controller list’
To connect to the controller with the command line utility, execute:

FASTCMD> open afa0

AFA0>

To show the status of all disks in all arrays, execute ‘enclosure show status’.

AFA0> enclosure show status

Executing: enclosure show status

Enclosure
ID (B:ID:L) UpTime D:H:M   PowerCycle Interval Door     Alarm
———– ————– ———- ——– ——– —–
0  0:06:0         0:00:00        0       10   UNKNOWN  OFF

Enclosure
ID (B:ID:L) Fan Status
———– — ————-
0  0:06:0   0   OK
0  0:06:0   1   OK
0  0:06:0   2   OK

Enclosure
ID (B:ID:L) Power State        Status
———– —– ———— ——-

Enclosure
ID (B:ID:L) Slot scsiId Insert  Status
———– —- —— ——- ——————————————
0  0:06:0   0   0:00:0     0   OK ACTIVATE
0  0:06:0   1   0:01:0     0   OK ACTIVATE
0  0:06:0   2   0:02:0     0   ERROR FAILED CRITICAL WARNING ACTIVATE
0  0:06:0   3   0:03:0     0   ERROR FAILED CRITICAL WARNING ACTIVATE
0  0:06:0   4   0:04:0     0   ERROR FAILED CRITICAL WARNING ACTIVATE
0  0:06:0   5   0:05:0     0   ERROR FAULTY FAILED CRITICAL WARNING ACTIVATE

Enclosure
ID (B:ID:L) Sensor Temperature Threshold Status
———– —— ———– ——— ——–
0  0:06:0   0       82 F         120    NORMAL
0  0:06:0   1       86 F         120    NORMAL

Above, the disk in slot 5 is bad, so first deactivate the slot:

AFA0> enclosure prepare slot 0 5

Wait for the lights to go out, then remove the disk. Replace the disk with a functional, identical replacement disk.

Then, activate the slot:

AFA0> enclosure activate slot 0 5

Now, wait for the disk to rebuild. You can view the rebuild process with ‘task list’.

AFA0> task list
Executing: task list

Controller Tasks

TaskId Function  Done%  Container State Specific1 Specific2
—— ——– ——- ——— —– ——— ———
101   Rebuild   0.7%      1      RUN   00000000  00000000

The disk may be ready for use once this is complete however if it’s not try the command ‘disk initialize’

disk initialize

To initialize a SCSI disk for use with the currently opened controller, use the disk initialize command. This command writes data structures to the disk so that the controller can use the disk.

HINT: If you need to actually see which disk to pull out of the server ‘disk blink’ causes the disk drive light to blink.

Call Now Button(208) 344-1115

SIGN UP TO
GET OUR 
FREE
 APP BLUEPRINT

Join our email list

and get your free whitepaper