I have a ProLiant DL360 G5 running Red Hat 4.1.2-14.
This server has a Smart Array 6400 with 13 300GB SCSI disks allocated in two arrays and 1 disk unallocated.
This server also has a Smart Array P400i with 4 disks allocated in 2 arrays and 1 disk unallocated.
My goal is to add the unallocated disk as a spare to both arrays on each controller. This server does not have a GUI so I must use the HP Array Configuration Utility CLI called "hpacucli".
To run the HP Array Configuration Utility CLI simply type "hpacucli" in the shell.
Next lets look at all our arrays using the following command:
ctrl all show config
We can see that Smart Array 6400 is in Slot 2 and Smart Array P400i is in Slot 0. We can also see the unassigned disks are physicaldrive 1:8 and physicaldrive 2I:1:5.
To assign the drives as hot spares run the following commands:
ctrl slot=2 array all add spares=1:8
ctrl slot=0 array all add spares=2I:1:5
We specify "array all" as we want to make the disk available to all disks on the controller. We could go "array A" if we wanted to make the spare available to just onje array... I don't know why you would though!
Now if we run the "ctrl all show config" command again we see it's added it in as a spare:
If you want more information about performing other tasks using hpacucli the following link is the best documentation I could find: