Linux下在线查看和维护RAID的方法(针对HP服务器)

hpacucli是HP Array Configuration Utility CLI, 是Linux下在线维护HP阵列的命令行工具.

FTP地址:ftp://www.6688.cc/

用户名:

密码:

在2010年LinuxIDC.com\9月\Linux下在线查看和维护RAID的方法(针对HP服务器)\

# cd /u01/software/
# rpm -ivh hpacucli-8.0-14.noarch.rpm
# hpacucli
HP Array Configuration Utility CLI 7.70-12.0
Detecting Controllers...Done.
Type "help" for a list of supported commands.
Type "exit" to close the console.
=> help (查看详细帮助信息)
=> ctrl all show status (查看所有controller的状态信息)
Smart Array P800 in Slot 1
Controller Status: OK
Cache Status: OK
Battery Status: OK
=> ctrl slot=1 show config (查看插槽1上控制器的配置信息,可获知RAID模式,逻辑盘和物理盘类型大小)
Smart Array P800 in Slot 1    (sn: PAFGF0T9SYK033)
array A (SAS, Unused Space: 0 MB)
logicaldrive 1 (1.6 TB, RAID 1+0, OK)
physicaldrive 1E:1:1 (port 1E:box 1:bay 1, SAS, 300 GB, OK)
physicaldrive 1E:1:2 (port 1E:box 1:bay 2, SAS, 300 GB, OK)
physicaldrive 1E:1:3 (port 1E:box 1:bay 3, SAS, 300 GB, OK)
physicaldrive 1E:1:4 (port 1E:box 1:bay 4, SAS, 300 GB, OK)
physicaldrive 1E:1:5 (port 1E:box 1:bay 5, SAS, 300 GB, OK)
physicaldrive 1E:1:6 (port 1E:box 1:bay 6, SAS, 300 GB, OK)
physicaldrive 1E:1:7 (port 1E:box 1:bay 7, SAS, 300 GB, OK)
physicaldrive 1E:1:8 (port 1E:box 1:bay 8, SAS, 300 GB, OK)
physicaldrive 1E:1:9 (port 1E:box 1:bay 9, SAS, 300 GB, OK)
physicaldrive 1E:1:10 (port 1E:box 1:bay 10, SAS, 300 GB, OK)
physicaldrive 1E:1:11 (port 1E:box 1:bay 11, SAS, 300 GB, OK)
physicaldrive 1E:1:12 (port 1E:box 1:bay 12, SAS, 300 GB, OK)
=> ctrl slot=1 show config detail (查看插槽1上控制器的详细信息, 包括硬盘类型和转速等)
Smart Array P800 in Slot 1
Bus Interface: PCI
Slot: 1
Serial Number: PAFGF0T9SYK033
Cache Serial Number: PA82B0A9SYJXBQ
RAID 6 (ADG) Status: Enabled
RAID 6 (ADG) Enabler Status: Enabled
Controller Status: OK
Chassis Slot:
Hardware Revision: Rev E
Firmware Version: 7.08
Rebuild Priority: Medium
Expand Priority: Medium
Surface Scan Delay: 15 sec
Cache Board Present: True
Cache Status: OK
Accelerator Ratio: 25% Read / 75% Write
Total Cache Size: 512 MB
Battery Pack Count: 2
Battery Status: OK
Array: A
Interface Type: SAS
Unused Space: 0 MB
Status: OK
Logical Drive: 1
         Size: 1.6 TB
         Fault Tolerance: RAID 1+0
Heads: 255
Sectors Per Track: 32
Cylinders: 65535
Stripe Size: 128 KB
Status: OK
Array Accelerator: Enabled
Unique Identifier: 600508B10010543953594B3033330000
         Disk Name: /dev/cciss/c1d0
Mount Points: /u02 1.6 TB
physicaldrive 1:1
Port: 1E
Box: 1
Bay: 1
Status: OK
Drive Type: Data Drive
Interface Type: SAS
         Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM403ZD00009837TK60
Model: HP      DF300BB6C3     
physicaldrive 1:2
Port: 1E
Box: 1
Bay: 2
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM401GC00009837U3UU
Model: HP      DF300BB6C3     
physicaldrive 1:3
Port: 1E
Box: 1
Bay: 3
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPD5
Serial Number: 3QP2FFE100009009KT2E
Model: HP      DF0300B8053    
physicaldrive 1:4
Port: 1E
Box: 1
Bay: 4
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM41ERC00009837SY2L
Model: HP      DF300BB6C3     
physicaldrive 1:5
Port: 1E
Box: 1
Bay: 5
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM41MAB00009837TKHK
Model: HP      DF300BB6C3     
physicaldrive 1:6
Port: 1E
Box: 1
Bay: 6
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM408B600009837S7XX
Model: HP      DF300BB6C3     
physicaldrive 1:7
Port: 1E
Box: 1
Bay: 7
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM41PAJ00009837SQAY
Model: HP      DF300BB6C3     
physicaldrive 1:8
Port: 1E
Box: 1
Bay: 8
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM402X300009837SV67
Model: HP      DF300BB6C3     
physicaldrive 1:9
Port: 1E
Box: 1
Bay: 9
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM2NMB900009822B8AH
Model: HP      DF300BB6C3     
physicaldrive 1:10
Port: 1E
Box: 1
Bay: 10
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM41MYR00009837STY2
Model: HP      DF300BB6C3     
physicaldrive 1:11
Port: 1E
Box: 1
Bay: 11
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM41EQG00009837SZPR
Model: HP      DF300BB6C3     
physicaldrive 1:12
Port: 1E
Box: 1
Bay: 12
Status: OK
Drive Type: Data Drive
Interface Type: SAS
Size: 300 GB
Rotational Speed: 15000
Firmware Revision: HPDA
Serial Number: 3LM401FB00009837U3RY
Model: HP      DF300BB6C3
=> exit

还可以在线维护RAID, 比如增加磁盘等, 更详细的用卡使用help可以获知.

--End--

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wydyjz.html