Für alle die öfter HP Server in Verbindung mit Linux nutzen, habe ich hier evtl. ein paar nützliche Befehle.
Das HP Tool "hpacucli" wird für das administrieren der Platten/Kontroller genutzt.
Detaillierte Informationen über alle Kontroller auszulesen
user@server: ~ > hpacucli ctrl all show detail
Smart Array E200i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: XXXXXXXXX
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Hardware Revision: A
Firmware Version: 1.86
Rebuild Priority: Low
Expand Priority: Low
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 100% Read / 0% Write
Drive Write Cache: Disabled
Total Cache Size: 64 MB
Total Cache Memory Available: 32 MB
No-Battery Write Cache: Disabled
Battery/Capacitor Count: 0
SATA NCQ Supported: False
Informationen über die aktuellen Platten auslesen
user@server: ~ > hpacucli ctrl all show config
Smart Array E200i in Slot 0 (Embedded) (sn: XXXXXXXX )
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)
Detaillierte Informationen über alle Platten & Kontroller auslesen
user@server: ~ > hpacucli ctrl all show config detail
Smart Array E200i in Slot 0 (Embedded)
Bus Interface: PCI
Slot: 0
Serial Number: XXXXXXXX
RAID 6 (ADG) Status: Disabled
Controller Status: OK
Hardware Revision: A
Firmware Version: 1.86
Rebuild Priority: Low
Expand Priority: Low
Surface Scan Delay: 15 secs
Surface Scan Mode: Idle
Post Prompt Timeout: 0 secs
Cache Board Present: True
Cache Status: OK
Cache Ratio: 100% Read / 0% Write
Drive Write Cache: Disabled
Total Cache Size: 64 MB
Total Cache Memory Available: 32 MB
No-Battery Write Cache: Disabled
Battery/Capacitor Count: 0
SATA NCQ Supported: False
Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK
Array Type: Data
Logical Drive: 1
Size: 136.7 GB
Fault Tolerance: 1
Heads: 255
Sectors Per Track: 32
Cylinders: 35132
Strip Size: 128 KB
Full Stripe Size: 128 KB
Status: OK
Caching: Enabled
Unique Identifier: XXXXXXXXXXXXXXXXXXXXX
Disk Name: /dev/sda
Mount Points: /boot 512 MB, / 2.0 GB
OS Status: LOCKED
Logical Drive Label: YYYYYYYYYYY 875D
Mirror Group 0:
physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS, 146 GB, OK)
Mirror Group 1:
physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS, 146 GB, OK)
Drive Type: Data
physicaldrive 1I:1:1
Port: 1I
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDF
Serial Number: XXXXXXXXXXXXXX
Model: HP DG146ABAB4
PHY Count: 1
PHY Transfer Rate: 3.0Gbps
physicaldrive 1I:1:2
Port: 1I
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 146 GB
Rotational Speed: 10000
Firmware Revision: HPDF
Serial Number: XXXXXXXXXXXXX
Model: HP DG146ABAB4
PHY Count: 1
PHY Transfer Rate: 3.0Gbps
Erstellen eines RAID1
hapacucli controller slot=9 create type=ld drives=2I:1:5,2I:1:6 raid=1
Die Bezeichnung des Kontrollers ist hier "slot=9". Die Option "type=ld" sagt im Grunde nur das es ein "Logical Drive" ist.
hpacucli Prompt
Das "hpacucli" hat auch ein Prompt wo man sich mit "help" alle Optionen erklären lassen kann.
user@server: ~ > hpacucli
HP Array Configuration Utility CLI 9.40.12.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=> help
CLI Syntax
A typical ACU CLI command line consists of three parts: a target device,
a command, and a parameter with values if necessary. Using angle brackets to
denote a required variable and plain brackets to denote an optional
variable, the structure of a typical ACU CLI command line is as follows:
<target> <command> [parameter=value]
<target> is of format:
[controller all|slot=#|wwn=#|chassisname="AAA"|
serialnumber=#|chassisserialnumber=#|ctrlpath=#:# ]
[array all|<id>]
[physicaldrive all|allunassigned|[#:]#:#|[#:]#:#-[#:]#:#]
[ssdphysicaldrive all|allunassigned|[#:]#:#|[#:]#:#-[#:]#:#]
[logicaldrive all|#]
[enclosure all|#:#|serialnumber=#|chassisname=#]
[licensekey all|<key>]
[ssdinfo]
Note 1: The #:#:# syntax is only needed for systems that
specify port:box:bay. Other physical drive targeting
schemes are box:bay and port:id.
Note 2: The chassisserialnumber is known in ACU as the
RAID Array Serial Number. The chassisname is known
in ACU as the RAID Array ID.
Note 3: ctrlpath=#:# maps to "smart enclosure hooked up to
host bus adapter slot:host bus adapter port"
Example targets:
controller slot=5
controller chassisname="Lab C"
controller serialnumber=P21DA2322S
controller chassisserialnumber=9J3CJN71XDCH
controller wwn=500308B300701011
controller slot=7 array A
controller slot=5 logicaldrive 5
controller slot=5 physicaldrive 1:5
controller slot=5 physicaldrive 1E:2:3
controller slot=5 ssdphysicaldrive all
controller slot=5 enclosure 4E:1 show
controller slot=5 licensekey XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
For detailed command information type any of the following:
help add
help create
help delete
help diag
help modify
help remove
help shorthand
help show
help target
help rescan
help version
Help also accepts commonly used CLI parameters and ACU keywords. Adding
additional keywords will further filter the help output. Examples:
help ssp (shows all ssp help including show and modify commands)
help ssp modify (restricts ssp help to only modify commands)
help migrate
help expand
help extend
help <keyword> <keyword> ... <keyword>
Please note that beginning with ACU/ACUCLI version 8.55, the term
"stripe size" has been replaced by "strip size." This is a change
of labeling and does not signify a change in functionality. When
distributing data across multiple physical drives (striping) the
"strip size" is the amount of data that is written to each physical
drive. The "full stripe size" refers to the combined size of all
the strips across all physical drives, excluding parity-only drives.
=>