Advertisements

Tag Archives: hpacucli

hpacucli still running! Stop it first.

If you have a Proliant Generation 9

root@linux:~ # dmidecode | grep -i proliant
Product Name: ProLiant BL660c Gen9
Family: ProLiant
HP ProLiant System/Rack Locator

Use hpssacli to check the disk array. Remove hpacucli

root@linux:~ # rpm -e hpacucli
hpacucli still running! Stop it first.
error: %preun(hpacucli-9.40-12.0.x86_64) scriptlet failed, exit status 1

root@linux:~ # ps -ef | grep hpacucli
root 38972 1 0 Jun09 ? 00:00:00 /opt/compaq/hpacucli/bld/.hpacucli ctrl all show config
root 89907 4947 0 10:03 pts/7 00:00:00 grep hpacucli

root@linux:~ # kill -9 38972

Advertisements

Discover disk model to replace in an HP Proliant running Linux

You ran hpacucli to verify the internal disks in an HP Proliant Server and one of them is failed.

root@linux:~ # hpacucli ctrl all show config
Smart Array P410i in Slot 0 (Embedded) (sn: 5001438013FD2D00)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, Interim Recovery Mode)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, Failed)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 5001438013FD2D0F)

To discover the hard disk model, run hpacucli ctrl all show config detail and look for the physical drive model

root@linux:~ # hpacucli ctrl all show config detail

Smart Array P410i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: 5001438013FD2D00
Cache Serial Number: PBCDH0CRH1TCEG
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Hardware Revision: C
Firmware Version: 5.76
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 3 secs
Surface Scan Mode: Idle
Queue Depth: Automatic
Monitor and Performance Delay: 60 min
Elevator Sort: Enabled
Degraded Performance Optimization: Disabled
Inconsistency Repair Policy: Disabled
Wait for Cache Room: Disabled
Surface Analysis Inconsistency Notification: Disabled
Post Prompt Timeout: 15 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 25% Read / 75% Write
Drive Write Cache: Disabled
Total Cache Size: 512 MB
Total Cache Memory Available: 400 MB
No-Battery Write Cache: Disabled
Cache Backup Power Source: Capacitors
Battery/Capacitor Count: 1
Battery/Capacitor Status: OK
SATA NCQ Supported: True

Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: Failed Physical Drive
Array Type: Data

One of the drives on this array have failed or has been removed.

Logical Drive: 1
Size: 279.4 GB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 256 KB
Status: Interim Recovery Mode
Caching: Enabled
Unique Identifier: 600508B1001CD2D750A3CD6D749784BC
Disk Name: /dev/cciss/c0d0
Mount Points: /boot 250 MB
OS Status: LOCKED
Logical Drive Label: AEB333F050014380108763703899
Mirror Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, Failed)
Mirror Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)
Drive Type: Data

physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: Failed
Last Failure Reason: Write retries failed
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPD4
Serial Number: ECA1PC20D4NR1205
Model: HP EG0300FBDSP
Current Temperature (C): 25
Maximum Temperature (C): 36
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown

physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 10000
Firmware Revision: HPD4
Serial Number: EB01PC20V2RK1205
Model: HP EG0300FBDSP
Current Temperature (C): 28
Maximum Temperature (C): 35
PHY Count: 2
PHY Transfer Rate: 6.0Gbps, Unknown

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250
Device Number: 250
Firmware Version: RevC
WWID: 5001438013FD2D0F
Vendor ID: PMCSIERA
Model: SRC 8x6G

Then go to HP/Compaq Hard Disk Drives – Hard Drive Model Number Matrix and search for the hard drive model that showed when you got the details.

If you didn’t find the disk on the list, try this other list – HP/Compaq SCSI Hard Disk Drives – Hard Drive Model Number Matrix

hpacucli Error: No controllers detected

I have a HP Proliant server that is using hardware RAID for the boot disk but when I used hpacucli no status was shown

root@linux:~ # hpacucli ctrl all show config

Error: No controllers detected.

Verified if I have RAID and the server model

root@linux:~ # lspci | grep -i raid
02:00.0 RAID bus controller: Hewlett-Packard Company Smart Array Gen8 Controllers (rev 01)

root@linux:~ # dmidecode | grep -i proliant
Product Name: ProLiant DL380p Gen8
Family: ProLiant

I had hpacucli 8.70 and I read that old versions that causes problems like this. So I uninstalled

root@linux:~ # rpm -qa | grep hpacucli
hpacucli-8.70-8.0.i386

root@linux:~ # rpm -e hpacucli

And installed the newest version

root@linux:~ # rpm -ivh /tmp/hpacucli-9.40-12.0.x86_64.rpm
Preparing… ########################################### [100%]
1:hpacucli ########################################### [100%]

DOWNGRADE NOTE: To downgrade this application to any version prior to 9.10.x.x, the current RPM must be manually uninstalled using the “rpm -e” command before any prior versions can be installed.

LOCKING NOTE: The locking mechanism starting with versions 9.10.X.X, are not compatible with prior versions of the applications. Therefore, mixing older and newer versions of the various applications (ACU, HPACUCLI, HPACUSCRIPTING) is not recommended.

After this, the utility was showing my drives

root@linux:~ # hpacucli ctrl all show config

Smart Array P420i in Slot 0 (Embedded) (sn: 001438027AE8760)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, OK)

physicaldrive 1I:2:1 (port 1I:box 2:bay 1, SAS, 300 GB, OK)
physicaldrive 1I:2:2 (port 1I:box 2:bay 2, SAS, 300 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRCv8x6G) 380 (WWID: 5001438027AE876F)

Check if the server is not a VMware virtual guest. The server has become to virtual in one case.

root@linux:~ # dmidecode –type system | grep Manufacturer
Manufacturer: VMware, Inc.

And I also have a Proliant Gen9 and it shows the message Error: No controllers detected.

root@linux:~ # dmidecode | grep -i proliant
Product Name: ProLiant BL460c Gen9
Family: ProLiant
HP ProLiant System/Rack Locator

I’m using the hpacucli v. 9.40

root@linux:~ # rpm -q hpacucli
hpacucli-9.40-12.0.x86_64

Use the command hpssacli to check the disks in the disk array

root@linux:~ # hpssacli ctrl all show config

Dynamic Smart Array B140i in Slot 0b ()

Port Name: P1I

Port Name: P2I

Port Name: P3I

Port Name: P4I

Internal Drive Cage at Port 1I, Box 0, OK
array A (Solid State SATA, Unused Space: 0 MB)

logicaldrive 1 (59.6 GB, RAID 1, OK)

physicaldrive P3I:0:9 (port P3I:box 0:bay 9, Solid State SATA, 64.0 GB, OK)
physicaldrive P4I:0:10 (port P4I:box 0:bay 10, Solid State SATA, 64.0 GB, OK)

Install the hpssacli package

root@linux:~ # which hpssacli
/usr/sbin/hpssacli
root@linux:~ # rpm -qf /usr/sbin/hpssacli
hpssacli-2.30-6.0.x86_64

Description for hpacucli and hpssacli

root@linux:~ # rpm -qi hpacucli
Name : hpacucli Relocations: (not relocatable)
Version : 9.40 Vendor: Hewlett-Packard Company
Release : 12.0 Build Date: Thu 13 Dec 2012 04:17:02 PM EST
Install Date: Wed 28 Oct 2015 02:43:48 PM EDT Build Host: lxminion01
Group : Applications/System Source RPM: hpacucli-9.40-12.0.src.rpm
Size : 19635298 License: See hpacucli.license
Signature : DSA/SHA1, Wed 20 Mar 2013 10:33:51 AM EDT, Key ID 527bc53a2689b887
Packager : Hewlett-Packard Company
URL : http://www.hp.com/linux
Summary : HP Command Line Array Configuration Utility
Description :
The HP Command Line Array Configuration Utility is the disk
array configuration program for Array Controllers.

root@linux:~ # rpm -qi hpssacli
Name : hpssacli Relocations: (not relocatable)
Version : 2.30 Vendor: Hewlett-Packard Company
Release : 6.0 Build Date: Fri 17 Jul 2015 04:29:32 PM EDT
Install Date: Wed 28 Oct 2015 02:43:47 PM EDT Build Host: localhost
Group : Applications/System Source RPM: hpssacli-2.30-6.0.src.rpm
Size : 29626310 License: See hpssacli.license
Signature : RSA/SHA1, Fri 02 Oct 2015 09:59:35 AM EDT, Key ID fadd8d64b1275ea3
Packager : Hewlett-Packard Company
URL : http://www.hp.com/linux
Summary : HP Command Line Smart Storage Administrator
Description :
The HP Command Line Array Configuration Utility is the disk
array configuration program for Array Controllers.

Migrating from RAID 0 to RAID 1 in an HP Smart Array

I have two disks in an HP Smart Array P410 and one disk is configured as a logicaldrive.

root@linux:~ # hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 5001438010849BE0)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 0, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)

unassigned

physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS, 300 GB, OK)

In order to do that, I’ll add the drive to the logical drive using the command below. Note that I can’t using the current configuration.

root@linux:~ # hpacucli ctrl slot=0 ld 1 add drives=1I:1:3

Error: This operation is not supported with the current configuration. Use the
“show” command on devices to show additional details about the
configuration.

I also try to modify the RAID to RAID 1 in this logical drive.

root@linux:~ # hpacucli ctrl slot=0 ld 1 modify raid=1

Error: This operation is not supported with the current configuration. Use the
“show” command on devices to show additional details about the
configuration.

According to Smart Array P410i Controller Technical Specifications

The HP Smart Array P410 is an 8 Port Serial Attached SCSI (SAS) RAID controller. The P410 is designed for RAID applications and can be upgraded with the 512MB battery-backed write cache (BBWC) or 512MB / 1GB flash-backed write cache (FBWC) and the Smart Array Advanced Pack.

Management Features:
Online array expansion (with BBWC/FBWC upgrade)
Online Advanced Capacity Expansion (with BBWC/FBWC and Smart Array Advanced Pack upgrade)
Online logical drive extension (with BBWC/FBWC upgrade)
Online RAID level migration (with BBWC/FBWC upgrade)
Online strip size migration (with BBWC/FBWC upgrade)
Offline Mirror splitting and recombining (with BBWC/FBWC and Smart Array Advanced Pack upgrade)
Unlimited global online spare assignment
User selectable expand and rebuild priority
User selectable RAID level and stripe size
User selectable read and write cache sizes

That means that you must have the Battery-Based Write Cache  (BBWC) or Flash-Based Write Cache (FBWC) upgrade in order to do that.

To check if you have BBWC, run hpacucli ctrl all show config detail and verify if it shows Battery/Capacitor Count: 1

hpacucli takes a long time to respond

If run hpacucli and your server is taking a long time to respond, it is because HP decided to change the hpacucli utility to scan multiple LUNs connected via Fibre or iSCSI storage

root@linux:~ # time hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 500143801176C960)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (136.7 GB, RAID 1, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 500143801176C96F)

real 2m25.058s
user 0m0.083s
sys 0m0.071s

Type INFOMGR_BYPASS_NONSA=1 to disable the scan hpacucli. To reenable type export -n INFOMGR_BYPASS_NONSA

root@linux:~# export INFOMGR_BYPASS_NONSA=1
root@linux:~# time hpacucli ctrl all show config

Smart Array P410i in Slot 0 (Embedded) (sn: 50014380226F2BA0)

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (279.4 GB, RAID 1, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 300 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 300 GB, OK)

SEP (Vendor ID PMCSIERA, Model SRC 8x6G) 250 (WWID: 50014380226F2BAF)

real 0m0.931s
user 0m0.130s
sys 0m0.167s

Source: http://h20564.www2.hp.com/hpsc/doc/public/display?docId=emr_na-c03696601

HP Proliant: Device is reporting an internal degraded status

When you see an exclamation mark next to the blade server, verify the server hardware
DeviceBays
First click on the server device bay and check its status
Degraded
If it shows Device is reporting an internal degraded status, first upgrade the iLO firmware. Then verify if it was solved.

If not, verify if there is a faulty disk in the disk array with hpacucli ctrl all show config

root@linux:~ # hpacucli ctrl all show config

Smart Array P400i in Slot 0 (Embedded) (sn: )

array A (SAS, Unused Space: 0 MB)

logicaldrive 1 (136.7 GB, RAID 1, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)

Install hpasmcli. Part of HP System Health Application and Command Line Utilities (hp-health)

root@linux:/tmp # rpm -ivh hp-health-9.40-1602.37.sles10.x86_64.rpm
Preparing… ########################################### [100%]
1:hp-health ########################################### [100%]
Please read the Licence Agreement for this software at

/opt/hp/hp-health/hp-health.license

By not removing this package, you are accepting the terms
of the “HP Proliant Essentials Software End User License Agreement”.
Using Proliant Standard
IPMI based System Health Monitor
Using standard Linux IPMI device driver
Starting ipmi drivers: done
Starting Proliant Standard
IPMI based System Health Monitor (hpasmlited):
done

Starting HP Advanced Server Recovery Daemon done
The hp-health RPM has installed successfully.

Start hpasmcli

root@linux:~ # hpasmcli
HP management CLI for Linux (v2.0)
Copyright 2008 Hewlett-Packard Development Group, L.P.

————————————————————————–
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
Type ‘help’ to get a list of all top level commands.
————————————————————————–

Another component that usually gives problem is a Memory DIMM.

hpasmcli> show dimm
DIMM Configuration
——————
Cartridge #: 0
Module #: 1
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 2
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 3
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 4
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 5
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 6
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: DIMM is degraded

Cartridge #: 0
Module #: 7
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 8
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 9
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 10
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 11
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 12
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 13
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 14
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 15
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

Cartridge #: 0
Module #: 16
Present: Yes
Form Factor: fh
Memory Type: OTHER(14h)
Size: 4096 MB
Speed: 667 MHz
Supports Lock Step: No
Configured for Lock Step: No
Status: Ok

hpasmcli>

After this, you’ll have to run diagnostics using HP Insight Online Diagnostics that you installed on the operating system or boot with the CD/DVD to run the HP Insight Offline Diagnostics

Turn on disk UID on an HP Smart Array Controller

I have an HP ProLiant DL580 G3 and a disk had to be replaced.

It was identified the disk to be replaced was the Physicaldrive 2:2

root@linux:~ # hpacucli ctrl all show config

Smart Array 642 in Slot 3 (sn: P92260PXQS4036)

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

logicaldrive 1 (273.5 GB, RAID 5, OK)

physicaldrive 2:0 (port 2:id 0 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 2:1 (port 2:id 1 , Parallel SCSI, 146.8 GB, OK)
physicaldrive 2:2 (port 2:id 2 , Parallel SCSI, 146.8 GB, OK)

To turn on the disk UID, identify the controller and physical drive location

root@linux:~ # hpacucli ctrl slot=3 pd 2:2 modify led=on

To turn off the disk UID, identify the controller and physical drive location

root@linux:~ # hpacucli ctrl slot=3 pd 2:2 modify led=off

hpacucli – Error: Another instance of ACU is already running (possibly a service)

If you receive this error message

root@linux:~ # /usr/sbin/hpacucli
HP Array Configuration Utility CLI 8.70-8.0
Detecting Controllers…

Error: Another instance of ACU is already running (possibly a service). Please
terminate the ACU application before running the ACU CLI. Press ENTER to
exit.

But there is no process running

root@linux:~ # ps -ef | grep -i acu
root 4805 32086 0 10:00 pts/0 00:00:00 grep -i acu

Delete all files on /opt/compaq/cpqacuxe/bld/locks to solve this problem

root@linux:/opt/compaq/cpqacuxe/bld/locks # ls
. .. CPQACU_MUTEX

Checking LUN status in a HP Smart Array

To check a LUN that was created in a HP Proliant with Smart Array you need to have a package called hpacucli installed

root@linux:~ # rpm -qi hpacucli
Name        : hpacucli                     Relocations: (not relocatable)
Version     : 8.70                              Vendor: Hewlett-Packard Company
Release     : 8.0                           Build Date: Thu Dec  2 00:43:51 2010
Install date: Wed May 11 10:34:58 2011      Build Host: Prowl
Group       : Applications/System           Source RPM: hpacucli-8.70-8.0.src.rpm
Size        : 17788857                         License: See hpacucli.license
Signature   : (none)
Packager    : Hewlett-Packard Company
URL         : http://www.hp.com/linux
Summary     : HP Command Line Array Configuration Utility
Description :
The HP Command Line Array Configuration Utility is the disk
array configuration program for Array Controllers.
Distribution: (none)

Check which version you’re running

root@linux:~ # cat /etc/*release
SUSE LINUX Enterprise Server 9 (i586)
VERSION = 9
PATCHLEVEL = 3

Download it on this link: http://h18000.www1.hp.com/products/servers/proliantstorage/software-management/acumatrix/index.html

Install the package

root@linux:~ # rpm -ivh hpacucli-8.70-8.0.noarch.rpm
Preparing…                ########################################### [100%]
1:hpacucli               ########################################### [100%]

And run hpacucli

root@linux:~ # hpacucli ctrl all show config
Smart Array 642 in Slot 3                 (sn: P92260YXQT80I8)
array A (Parallel SCSI, Unused Space: 0 MB)
logicaldrive 1 (279.4 GB, RAID 1, OK)
physicaldrive 2:0   (port 2:id 0 , Parallel SCSI, 300 GB, OK)
physicaldrive 2:1   (port 2:id 1 , Parallel SCSI, 300 GB, OK)

Checking status of all controllers

root@linux:~ # hpacucli ctrl all show status
Smart Array 6i in Slot 0 (Embedded)
Controller Status: OK
Cache Status: OK

root@linux:~ # hpacucli ctrl all show config detail

Smart Array E200 in Slot 3
Bus Interface: PCI
Slot: 3
Serial Number: PA6C9%%BFTTEZI
Cache Serial Number: P9A3A0B9SUB9YB
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Chassis Slot:
Hardware Revision: Rev A
Firmware Version: 1.82
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 3 secs
Post Prompt Timeout: 15 secs
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 50% Read / 50% Write
Drive Write Cache: Disabled
Total Cache Size: 128 MB
Battery Pack Count: 1
Battery Status: OK
SATA NCQ Supported: False

Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK

Logical Drive: 1
Size: 410.1 GB
Fault Tolerance: RAID 5
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Stripe Size: 64 KB
Status: OK
Array Accelerator: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: 600508B100102542465454455A490012
Disk Name: /dev/cciss/c0d0
Mount Points: / 10.0 GB, swap 5.0 GB, /boot 513 MB
Logical Drive Label: A03C5226PA6C9%%BFTTEZI6260

physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPD6
Serial Number: BS05P880BW8H0834
Model: HP DG146BABCF
PHY Count: 2
PHY Transfer Rate: 3.0GBPS, Unknown
physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number: 3NM4P21D0000983193YT
Model: HP DG146ABAB4
PHY Count: 1
PHY Transfer Rate: 3.0GBPS
physicaldrive 1I:1:3
Port: 1I
Box: 1
Bay: 3
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPD6
Serial Number: PCY2S4AE
Model: HP DG0146FARVU
PHY Count: 2
PHY Transfer Rate: 3.0GBPS, Unknown
physicaldrive 1I:1:4
Port: 1I
Box: 1
Bay: 4
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDD
Serial Number: 3NM4LJ4Y00009831MEQU
Model: HP DG146ABAB4
PHY Count: 1
PHY Transfer Rate: 3.0GBPS


Quick cheat sheet on how to use the hpacucli taken from http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm

Utility Keyword abbreviations

Abbreviations chassisname = ch
controller = ctrl
logicaldrive = ld
physicaldrive = pd
drivewritecache = dwc

hpacucli utility

hpacucli # hpacucli# hpacucli helpNote: you can use the hpacucli command in a script

Controller Commands

Display (detailed) hpacucli> ctrl all show config
hpacucli> ctrl all show config detail
Status hpacucli> ctrl all show status
Cache hpacucli> ctrl slot=0 modify dwc=disable
hpacucli> ctrl slot=0 modify dwc=enable
Rescan hpacucli> rescanNote: detects newly added devices since the last rescan

Physical Drive Commands

Display (detailed) hpacucli> ctrl slot=0 pd all show
hpacucli> ctrl slot=0 pd 2:3 show detailNote: you can obtain the slot number by displaying the controller configuration (see above)
Status hpacucli> ctrl slot=0 pd all show status
hpacucli> ctrl slot=0 pd 2:3 show status
Erase hpacucli> ctrl slot=0 pd 2:3 modify erase
Blink disk LED hpacucli> ctrl slot=0 pd 2:3 modify led=on
hpacucli> ctrl slot=0 pd 2:3 modify led=off

Logical Drive Commands

Display (detailed) hpacucli> ctrl slot=0 ld all show [detail]
hpacucli> ctrl slot=0 ld 4 show [detail]
Status hpacucli> ctrl slot=0 ld all show status
hpacucli> ctrl slot=0 ld 4 show status
Blink disk LED hpacucli> ctrl slot=0 ld 4 modify led=on
hpacucli> ctrl slot=0 ld 4 modify led=off
re-enabling failed drive hpacucli> ctrl slot=0 ld 4 modify reenable forced
Create # logical drive – one disk
hpacucli> ctrl slot=0 create type=ld drives=1:12 raid=0# logical drive – mirrored
hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14 size=300 raid=1# logical drive – raid 5
hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14,1:15,1:16,1:17 raid=5Note:
drives – specific drives, all drives or unassigned drives
size – size of the logical drive in MB
raid – type of raid 0, 1 , 1+0 and 5
Remove hpacucli> ctrl slot=0 ld 4 delete
Expanding hpacucli> ctrl slot=0 ld 4 add drives=2:3
Extending hpacucli> ctrl slot=0 ld 4 modify size=500 forced
Spare hpacucli> ctrl slot=0 array all add spares=1:5,1:7
%d bloggers like this: