Wissensdatenbank
Buehl, Kevin
14 Juli 2019
23 Juli 2019
752

Wissensdatenbank

HPE Storage Controller Management (ssacli) unter Debian Buster installieren

Vorwort


Ich habe einen Hewlett-Packard DL380 G10 Server mit einem Hewlett-Packard P816i-a SmartArray Controller, welchen ich gerne über das Betriebssystem Debian Buster auslesen möchte. Wie Sie das HPE Storage Controller Management Konfigurationstool installieren können erkläre ich Ihnen hier.

Paketquellen


Öffnen Sie die sources.list Datei mit einem Editor und fügen Sie die folgende Zeile ein:
nano /etc/apt/sources.list
## Hewlett-Packard Software Delivery Repository
deb http://downloads.linux.hpe.com/SDR/repo/mcp buster/current non-free
deb https://apt.dockerproject.org/repo debian-buster main
Aktualisieren Sie anschliessend die Paketquellen:
apt update


Installation


Nun können Sie das Paket hpacucli installieren:
apt install ssacli
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
ssacli
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.3 MB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://downloads.linux.hpe.com/SDR/repo/mcp stretch/current/non-free amd64 ssacli amd64 3.30-13.0 [10.3 MB]
Fetched 8019 kB in 19s (415 kB/s)
Selecting previously unselected package ssacli.
(Reading database ... 68224 files and directories currently installed.)
Preparing to unpack .../ssacli_3.30-13.0_amd64.deb ...
Unpacking ssacli (3.30-13.0) ...
Setting up ssacli (3.30-13.0) ...


Befehle


Konfiguration des RAID Controllers anzeigen lassen:
ssacli ctrl all show config
HPE Smart Array P816i-a SR Gen10 in Slot 0 (Embedded)  (sn: 4b42D0DR4b42E2)
Internal Drive Cage at Port 1I, Box 1, OK
Internal Drive Cage at Port 2I, Box 2, OK
Internal Drive Cage at Port 3I, Box 0, OK
Internal Drive Cage at Port 4I, Box 6, OK

Port Name: 1I (Mixed)
Port Name: 2I (Mixed)
Port Name: 3I (Mixed)
Port Name: 4I (Mixed)

Array A (SAS, Unused Space: 6 MB)

logicaldrive 1 (136.70 GB, RAID 1, OK)

physicaldrive 4I:6:1 (port 4I:box 6:bay 1, SAS HDD, 146 GB, OK)
physicaldrive 4I:6:2 (port 4I:box 6:bay 2, SAS HDD, 146 GB, OK)


Array B (SATA, Unused Space: 0 MB)

logicaldrive 2 (21.83 TB, RAID 6, OK)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA HDD, 12 TB, OK)

Unassigned

physicaldrive 2I:2:1 (port 2I:box 2:bay 1, SATA HDD, 12 TB, OK)
physicaldrive 2I:2:2 (port 2I:box 2:bay 2, SATA HDD, 12 TB, OK)

SEP (Vendor ID HPE, Model Smart Adapter) 379 (WWID: 4b422EC04b428D40, Port: Unknown)


Status des logischen RAID-Verbundes auslesen:
ssacli ctrl slot=0 logicaldrive all show detail
HPE Smart Array P816i-a SR Gen10 in Slot 0 (Embedded)

Array A

Logical Drive: 1
Size: 136.70 GB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 256 KB
Full Stripe Size: 256 KB
Status: OK
Unrecoverable Media Errors: None
MultiDomain Status: OK
Caching: Enabled
Unique Identifier: 4b4208B14b4233D44b42E1BE4b4243AA
Disk Name: /dev/sda
Mount Points: /boot 763 MB Partition Number 3
OS Status: LOCKED
Logical Drive Label: Operating System
Mirror Group 1:
physicaldrive 4I:6:1 (port 4I:box 6:bay 1, SAS HDD, 146 GB, OK)
Mirror Group 2:
physicaldrive 4I:6:2 (port 4I:box 6:bay 2, SAS HDD, 146 GB, OK)
Drive Type: Data
LD Acceleration Method: Controller Cache


Array B

Logical Drive: 2
Size: 21.83 TB
Fault Tolerance: 6
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 512 KB
Status: OK
Unrecoverable Media Errors: None
MultiDomain Status: OK
Caching: Enabled
Parity Initialization Status: Initialization Completed
Unique Identifier: 4b4208B14b4291A14b42A9254b428EE8
Disk Name: /dev/sdb
Mount Points: None
Logical Drive Label: Data
Drive Type: Data
LD Acceleration Method: Controller Cache


LEDs ein-/ausschlaten:
ssacli ctrl slot=0 pd 1I:1:1 modify led=on
ssacli ctrl slot=0 pd 1I:1:1 modify led=off



Nicht zugewiesene Festplatten (Unassigned) zum RAID hinzufügen
ssacli ctrl slot=0 ld 2 add drives=allunassigned

Nun können Sie prüfen ob die Festplatten erfolgreich hinzugefügt wurden:
ssacli ctrl slot=0 show config
HPE Smart Array P816i-a SR Gen10 in Slot 0 (Embedded)  (sn: 4b42D0DR4b42E2)
[...]
Array B (SATA, Unused Space: 34332576 MB)

logicaldrive 2 (21.83 TB, RAID 6, Transforming, 0.00% complete)

physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SATA HDD, 12 TB, OK)
physicaldrive 1I:1:4 (port 1I:box 1:bay 4, SATA HDD, 12 TB, OK)
physicaldrive 2I:2:1 (port 2I:box 2:bay 1, SATA HDD, 12 TB, OK)
physicaldrive 2I:2:2 (port 2I:box 2:bay 2, SATA HDD, 12 TB, OK)
[...]

Den Status des Logischen Laufwerks können Sie wie folgt auslesen:
ssacli ctrl slot=0 ld 2 show detail
HPE Smart Array P816i-a SR Gen10 in Slot 0 (Embedded)

Array B

Logical Drive: 2
Size: 21.83 TB
Fault Tolerance: 6
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Strip Size: 256 KB
Full Stripe Size: 1024 KB
Status: Transforming, 0.00% complete
Unrecoverable Media Errors: None
MultiDomain Status: OK
Caching: Enabled
Parity Initialization Status: In Progress
Parity Initialization Progress: 0% complete
Unique Identifier: 600508B1001C91A19278A92514688EE8
Disk Name: /dev/sdb
Mount Points: None
Logical Drive Label: Data
Drive Type: Data
LD Acceleration Method: Controller Cache

Logisches Volume erweitern


ssacli ctrl slot=0 ld 2 modify size=max
Warning: Extension may not be supported on certain operating systems.
Performing extension on these operating systems can cause data to
become inaccessible. See SSA documentation for details. Continue?
(y/n) y