This shows you the differences between two versions of the page.
hp_raid_controller [2012/05/31 11:32] root |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== HP Raid Utils ====== | ||
- | |||
- | # hpacucli ctrl all show config | ||
- | | ||
- | # hpacucli ctrl slot=0 ld all show status | ||
- | | ||
- | ===== Status & Physical drive S/N and model ===== | ||
- | |||
- | # hpacucli ctrl all show config detail | ||
- | |||
- | ===== Thorough information including hard drive S/N ===== | ||
- | |||
- | # hpacucli ctrl all diag file=/tmp/test | ||
- | | ||
- | /tmp/test is output file for result | ||
- | |||
- | ===== Smartctl hints for HP smart array (CCISS driver) ===== | ||
- | Drive0: | ||
- | # smartctl -a -d cciss,0 /dev/cciss/c0d0 | ||
- | | ||
- | Drive1: | ||
- | # smartctl -a -d cciss,1 /dev/cciss/c0d0 | ||
- | | ||
- | [http://www.datadisk.co.uk/html_docs/redhat/hpacucli.htm] | ||
- | |||
- | ===== Smartctl hints for HP smart array (HPSA driver) ===== | ||
- | |||
- | The HPSA driver was introduced with RHEL6 to the RHEL family. | ||
- | |||
- | Drive0: | ||
- | # smartctl -a -d cciss,0 /dev/sg0 | ||
- | | ||
- | Drive1: | ||
- | # smartctl -a -d cciss,1 /dev/sg0 | ||
- | | ||
- | Ref: man smartctl | ||
- | |||
- | ===== Information about hpsa driver ===== | ||
- | |||
- | [[http://h20000.www2.hp.com/bc/docs/support/SupportManual/c02677069/c02677069.pdf]] | ||
- | |||
- | ===== List HP array information ===== | ||
- | |||
- | # lsscsi --long | ||
- | [3:0:0:0] storage HP P410i 5.14 - | ||
- | state=running queue_depth=1020 scsi_level=6 type=12 device_blocked=0 timeout=0 | ||
- | [3:0:0:1] disk HP LOGICAL VOLUME 5.14 /dev/sda | ||
- | state=running queue_depth=1020 scsi_level=6 type=0 device_blocked=0 timeout=30 | ||
- | | ||
- | Alternatively | ||
- | | ||
- | # dmesg | grep "^scsi " | ||
- | scsi 3:0:0:0: RAID HP P410i 5.14 PQ: 0 ANSI: 5 | ||
- | scsi 3:0:0:1: Direct-Access HP LOGICAL VOLUME 5.14 PQ: 0 ANSI: 5 | ||
- | |||
- | ===== Display mapping between linux sg and other SCSI devices ===== | ||
- | |||
- | Requires installation of sg3_utils RPM. | ||
- | |||
- | # sg_map | ||
- | /dev/sg0 | ||
- | /dev/sg1 /dev/sda | ||
- | /dev/sg2 /dev/sdb | ||
- | /dev/sg3 /dev/sdc | ||
- | /dev/sg4 /dev/sdd | ||
- | /dev/sg5 /dev/sde | ||
- | /dev/sg6 /dev/sdf | ||
- | /dev/sg7 /dev/sdg | ||
- | /dev/sg8 /dev/sdh | ||
- | /dev/sg9 /dev/sdi | ||