Using hpacucli to Manage Disks on HP Servers Running Linux

DL380Hpacucli is the a command line Array Configuration Utility program for Smart Array Controllers and RAID Array Controllers. The command can be installed in one of two ways; either by standalone rpm, or as part of the Proliant Support Pack. The utility is useful as it allows you to create and delete raid configs without having to reboot.

First run the hpacucli command to start the utility. Once the utility is started run the command below to show your arrays and disks.

=> ctrl all show config

In my case I had added 3 additonal drives to a DL385 G1 with the intention of creating a simple raid1 mirror with a hot spare. The command below creates the second array, array B.

=>ctrl slot=0 create type=ld drives=2:3,2:4 raid=1

Now I can view my new array using ctrl all show config.

  array B (Parallel SCSI, Unused Space: 0 MB)

      logicaldrive 2 (67.8 GB, RAID 1, OK)
      physicaldrive 2:3   (port 2:id 3 , Parallel SCSI, 72.8 GB, OK)
      physicaldrive 2:4   (port 2:id 4 , Parallel SCSI, 72.8 GB, OK)

Now I add the remaining drive as a hot spare to the newly created array B

=> ctrl slot=0 array B add spares=2:5

The command below can be used to show the status of your array, which in my case is not good.

=> ctrl all show status

Smart Array 6i in Slot 0 (Embedded)
   Controller Status: OK
   Cache Status: Temporarily Disabled
   Battery/Capacitor Status: Failed (Replace Batteries/Capacitors)

3 thoughts on “Using hpacucli to Manage Disks on HP Servers Running Linux

  1. Nice, you can get the serial number and rotational speed using the detail command.
    Logical Drive: 1
    Size: 136.7 GB
    Fault Tolerance: RAID 1+0
    Heads: 255
    Sectors Per Track: 32
    Cylinders: 35132
    Stripe Size: 128 KB
    Status: OK
    Array Accelerator: Enabled
    Unique Identifier: 600508B1001046395656433135430003
    Disk Name: /dev/cciss/c0d0
    Mount Points: / 28.7 GB, /var 100.0 GB
    Logical Drive Label: A01F59F6P61620F9VVC15CA3AE

    Like

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