HP Smartarray under Debian

Debian GNU/Linux (kernel 2.6.x) + Smartarray 64xx (cciss0: HP Smart Array 6i Controller)

more on this topic

hpacucli instalation

 apt-get install alien libstdc++2.10-glibc2.2
 wget ftp://ftp.compaq.com/pub/products/servers/supportsoftware/linux/hpacucli-7.20-16.linux.rpm
alien hpacucli-7.20-16.linux.rpm
hpacucli_7.20-17_i386.deb generated
dpkg -i hpacucli_7.20-17_i386.deb

hpacucli usage (example)

=> controller all show status

Smart Array 6i in Slot 0
   Controller Status: OK
   Cache Status: OK


=> controller slot=0 array all show


Smart Array 6i in Slot 0
      array A    (Parallel SCSI, Unused Space: 0 MB)

=> controller slot=0 logicaldrive all show status

logicaldrive 1 (273 GB, RAID 5): Ok

HP Servers: hwraidinfo and hwraidstatus in Linux

 #!/bin/sh
 SLOTLIST=$(hpacucli ctrl all show | \
 grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g')
 for i in $SLOTLIST
 do
  echo
  hpacucli ctrl slot=$i show | grep -v "^$"
  echo
  hpacucli ctrl slot=$i ld all show | grep -v "^$"
  hpacucli ctrl slot=$i pd all show | grep -v "^$"
 done
 echo

And here is the script equivalent of hwraidstatus:

 #!/bin/sh
 SLOTLIST=$(hpacucli ctrl all show | \
 grep Slot | sed -e 's/^.*Slot //g' -e 's/ .*$//g')
 for i in $SLOTLIST
 do
  echo
  hpacucli ctrl slot=$i show status | grep -v "^$"
  echo
  hpacucli ctrl slot=$i ld all show status | grep -v "^$"
  hpacucli ctrl slot=$i pd all show status | grep -v "^$"
 done
 echo
linux/smartarray.txt · Last modified: 2009/05/25 00:35 (external edit)
CC Attribution-Noncommercial-Share Alike 4.0 International
Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0 ipv6 ready