Sunday, February 21, 2010

HP Smart Array - Brief Tutorial

HP/Compaq servers use cciss drivers to represent the disks.

This cciss driver doesn't use the regular SCSI stack,
that's why the disks will appear as:

#ls -lah /dev/cciss/
total 0

brw-rw----  1 root disk 104,  0 2008-08-28 14:36 c0d0
brw-rw----  1 root disk 104,  1 2008-08-28 14:36 c0d0p1
brw-rw----  1 root disk 104,  2 2008-08-28 14:36 c0d0p2
brw-rw----  1 root disk 104,  3 2008-08-28 14:36 c0d0p3
brw-rw----  1 root disk 104, 16 2008-08-28 14:36 c0d1
brw-rw----  1 root disk 104, 17 2008-08-28 14:36 c0d1p1

When:
  • c0=controller 0
  • d0=disk 0
  • p1=partition 1
HP offers a CLI tool for Disks information querry / management called "hpacucli" (can be obtained from their page).
This tool can do both (detailed) reporting and management, let's see how it works:

#hpacucli controller all show
Smart Array 6i in Slot 0      ()


#hpacucli ctrl slot=0 logicaldrive all show status

logicaldrive 1 (33.9 GB, RAID RAID 1+0):  OK
logicaldrive 2 (136.7 GB, RAID RAID 1+0):  OK

Let's list the drives on controller in slot 0:
#hpacucli ctrl slot=0 pd all show status

physicaldrive 1:0 (port 1:id 0, 36.4 GB): OK
physicaldrive 1:1 (port 1:id 1, 36.4 GB): OK
physicaldrive 1:2 (port 1:id 2, 146.8 GB): OK
physicaldrive 1:3 (port 1:id 3, 146.8 GB): OK

This tool can be extremely useful when implemented in monitoring scripts.
Also it makes easier on the user instead of searching /var/log/messages

No comments: