guoyu07 / aspersa

Automatically exported from code.google.com/p/aspersa
0 stars 0 forks source link

Added Support for HP Smart Array controllers #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Here is a template for the HP Smart Array controller. I have not 
implemented parsing of the output from hpacucli.

612d611
<    ls -l /sys/block > /tmp/aspersa2
621,622d619
<    elif grep -q 'cciss' /tmp/aspersa2; then
<       controller='HP Smart Array'
643,648d639
<    elif [ "${controller}" = "HP Smart Array" ]; then
<       if [ -x /usr/sbin/hpacucli ]; then
<          if /usr/sbin/hpacucli ctrl all show config > /tmp/aspersa; then
<             cat /tmp/aspersa
<          fi
<       fi

The result looks like this:

# RAID Controller ############################################
  Controller | HP Smart Array

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

   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)

# Virtualization #############################################

Original issue reported on code.google.com by misak...@gmail.com on 17 May 2010 at 7:33

GoogleCodeExporter commented 9 years ago
can you attach the output of hpaculi as a file so I can write tests?

Original comment by baron.schwartz on 17 May 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Sure.

Original comment by misak...@gmail.com on 17 May 2010 at 8:21

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for adding the file.  I'll look at how to parse that now.  Can you 
attach (or
just add to SVN) the output of dmesg and lspci so there are more samples for 
test cases?

Original comment by baron.schwartz on 22 May 2010 at 2:25

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r66.

Add parsing and tests for hpaculi output, but not (yet) for detecting
the controller.  Waiting for sample output from dmesg and lspci first.

Original comment by baron.schwartz on 22 May 2010 at 2:43

GoogleCodeExporter commented 9 years ago

Original comment by baron.schwartz on 22 May 2010 at 3:20

GoogleCodeExporter commented 9 years ago
"config show all" is parsed, but there is a lot more information available from 
the controller in various modes.  Things like battery status, cache mode 
("array accelerator"), and so on.

Original comment by baron.schwartz on 11 Jun 2010 at 11:51

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r322.

Add another sample of hpacucli output

Original comment by baron.schwartz on 5 Feb 2011 at 2:06

GoogleCodeExporter commented 9 years ago
This issue was updated by revision r330.

Add another sample

Original comment by baron.schwartz on 5 Feb 2011 at 11:29

GoogleCodeExporter commented 9 years ago
Another sample is on Percona case # 14530

Original comment by baron.schwartz on 22 Feb 2011 at 7:05