Ubuntu Install HP MSA60 hpssacli - SAS client

From Luniwiki
Jump to: navigation, search

Install software

echo 'deb http://downloads.linux.hpe.com/SDR/repo/mcp trusty/current non-free' > /etc/apt/sources.list.d/hp.list
echo 'deb http://downloads.linux.hpe.com/SDR/repo/mcp precise/current non-free' >> /etc/apt/sources.list.d/hp.list
wget -q http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp -O - | apt-key add -
apt update
apt install hpssacli

Usefull commands

Show controler status

# hpssacli ctrl all show status
Smart Array P812 in Slot 2
  Controller Status: OK
  Cache Status: OK
  Battery/Capacitor Status: OK

Show physical disk status

root@nas:/backups# hpssacli ctrl slot=2 pd all show status
  physicaldrive 1E:1:1 (port 1E:box 1:bay 1, 3 TB): OK
  physicaldrive 1E:1:2 (port 1E:box 1:bay 2, 3 TB): OK
  physicaldrive 1E:1:3 (port 1E:box 1:bay 3, 3 TB): OK
  physicaldrive 1E:1:4 (port 1E:box 1:bay 4, 3 TB): OK
  physicaldrive 1E:1:5 (port 1E:box 1:bay 5, 3 TB): OK
  physicaldrive 1E:1:6 (port 1E:box 1:bay 6, 3 TB): OK
  physicaldrive 1E:1:7 (port 1E:box 1:bay 7, 3 TB): OK
  physicaldrive 1E:1:8 (port 1E:box 1:bay 8, 3 TB): OK
  physicaldrive 1E:1:9 (port 1E:box 1:bay 9, 3 TB): OK
  physicaldrive 1E:1:10 (port 1E:box 1:bay 10, 3 TB): OK
  physicaldrive 1E:1:11 (port 1E:box 1:bay 11, 3 TB): OK
  physicaldrive 1E:1:12 (port 1E:box 1:bay 12, 3 TB): OK

Show logical drives

root@nas:/backups# hpssacli ctrl slot=2 ld all show status
  logicaldrive 1 (27.3 TB, 6): OK 

Show status of a logical drive

root@nas:/backups# hpssacli ctrl slot=2 ld 1 show
Smart Array P812 in Slot 2
  array A
     Logical Drive: 1
        Size: 27.3 TB
        Fault Tolerance: 6
        Heads: 255
        Sectors Per Track: 32
        Cylinders: 65535
        Strip Size: 256 KB
        Full Stripe Size: 2560 KB
        Status: OK
        MultiDomain Status: OK
        Caching:  Enabled
        Parity Initialization Status: In Progress
        Parity Initialization Progress: 34% complete
        Unique Identifier: 600508B1001C7225D45C94E6DCD31441
        Disk Name: /dev/sda
        Mount Points: None
        Logical Drive Label: A80E3441PAGXQ0BRH2L0OJ13DA
        Drive Type: Data
        LD Acceleration Method: Controller Cache


References

Daniel Simao (talk) 13:36, 20 July 2018 (EDT)