How to configure add array on HP servers with hpacucli?

Sometimes you need to add a new array on HP Servers on running system (you can't boot SmartStart DVD to run Array Configuration Utility). In that situation you need to configure the array with command line utility called hpacucli.

Firstly let's do some exercises to be more familiar with hpacucli command line. Run utility:
hpacucli
To show all disk controllers on the machine run
=> controller show all

Smart Array P400i in Slot 0   (sn: XXXXXXXXXXXXXX)
Smart Array P700m in Slot 3   (sn: XXXXXXXXXXXXXX)
Let's show all physical disks connected to controller P700m
=> ctrl slot=3 physicaldrive

Smart Array P700m in Slot 3

   unassigned

      physicaldrive 75:1:29 (port 75:box 1:bay 29, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:30 (port 75:box 1:bay 30, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:31 (port 75:box 1:bay 31, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:32 (port 75:box 1:bay 32, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:33 (port 75:box 1:bay 33, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:34 (port 75:box 1:bay 34, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:35 (port 75:box 1:bay 35, SAS, 1000.2 GB, OK)

We have 7 unassigned drives. Let's create logicaldrive on RAID 1+0 from first six physicaldrives
=> ctrl slot=3  create type=ld drives=75:1:29,75:1:30,75:1:31,75:1:32,75:1:33,75:1:34 raid=1+0 stripesize=128
A new array has been created - now we can check that with:
=> ctrl slot=3 pd all show

Smart Array P700m in Slot 3

   array A

      physicaldrive 75:1:29 (port 75:box 1:bay 29, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:30 (port 75:box 1:bay 30, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:31 (port 75:box 1:bay 31, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:32 (port 75:box 1:bay 32, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:33 (port 75:box 1:bay 33, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:34 (port 75:box 1:bay 34, SAS, 1000.2 GB, OK)

   unassigned

      physicaldrive 75:1:35 (port 75:box 1:bay 35, SAS, 1000.2 GB, OK)

You can see that first six drives have been assigned to new array A on controller P700m. We have one unassigned drive - we will use it as a spare drive in our array. Let's check logical drives listing on slot 3 (controller P700m):
=> ctrl slot=3 ld all show

Smart Array P700m in Slot 3

   array A

      logicaldrive 1 (2.7 TB, RAID 1+0, OK)
Everything is going well. In last step we will add the spare drive to the array:
=> ctrl slot=3 array A add spares=allunassigned
After that we should check results. Physical drives on a controller:
=> ctrl slot=3 pd all show

Smart Array P700m in Slot 3

   array A

      physicaldrive 75:1:29 (port 75:box 1:bay 29, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:30 (port 75:box 1:bay 30, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:31 (port 75:box 1:bay 31, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:32 (port 75:box 1:bay 32, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:33 (port 75:box 1:bay 33, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:34 (port 75:box 1:bay 34, SAS, 1000.2 GB, OK)
      physicaldrive 75:1:35 (port 75:box 1:bay 35, SAS, 1000.2 GB, OK, spare)
You can see that the spare drive has been added to the array. Now check the logical drive view:
=> ctrl slot=3 ld all show

Smart Array P700m in Slot 3

   array A

      logicaldrive 1 (2.7 TB, RAID 1+0, OK)

All in the right order.

Comments

wrote

Yup, that shloud defo do the trick!

Comment