用於Linux的 hpacucli 實用程序命令指南

本指南可幫助用戶如何使用適用於 linux 的 hpacucli 實用程序來添加、刪除、識別和修復 Smart array 控制器上的邏輯和物理磁盤。

hpacucli 實用程序:
•# hpacucli
•# hpacucli help

NOTE: 在安裝 hpacucli 軟件包後(可單獨下載rpm /也配在 Linux 中的 PSP 中),用戶可使用腳本中的hpacucli命令。

• 控制器命令:

hpacucli> ctrl all show config ## Display detail of Controller

hpacucli> ctrl all show config detail

hpacucli> ctrl all show status ## Display status of Controller

hpacucli> ctrl slot=0 modify dwc=disable ## Enable or Disable the cache

hpacucli> ctrl slot=0 modify dwc=enable

hpacucli> rescan ## Detects newly added devices since the last rescan

• 物理驅動器命令:

hpacucli> ctrl slot=0 pd all show ## Display detail information of PhysicalDrive hpacucli> ctrl slot=0 pd 2:3 show detail

hpacucli> ctrl slot=0 pd all show status ## Display Status of physicalDrive hpacucli> ctrl slot=0 pd 2:3 show status

hpacucli> ctrl slot=0 pd 2:3 modify erase ## To Erase the physicalDrive

hpacucli> ctrl slot=0 pd 2:3 modify led=on ## To enable or Disable the LED hpacucli> ctrl slot=0 pd 2:3 modify led=off

• 邏輯驅動器命令:

hpacucli> ctrl slot=0 ld all show ## Display detail information of LogicalDrive hpacucli> ctrl slot=0 ld 4 show

hpacucli> ctrl slot=0 ld all show status ## Display Status of LogicalDrive hpacucli> ctrl slot=0 ld 4 show status

hpacucli> ctrl slot=0 ld 4 modify reenable forced ## To re-enabling failed drive

配置 RAID 等級:

•使用一個驅動器用 RAID 0 來建立邏輯磁盤:

hpacucli> ctrl slot=0 create type=ld drives=1:12 raid=0

•使用兩個驅動器用 RAID 1 來建立邏輯磁盤:

hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14 size=300 raid=1

•使用五個驅動器用 RAID 5 來建立邏輯磁盤:

hpacucli> ctrl slot=0 create type=ld drives=1:13,1:14,1:15,1:16,1:17 raid=5

•展開、擴展和添加備件並刪除當前 RAID 中的邏輯驅動器:

hpacucli> ctrl slot=0 ld 4 delete
## To Delete LogicalDrives

hpacucli> ctrl slot=0 ld 4 add drives=2:3
## Expanding ld by adding one more drive

hpacucli> ctrl slot=0 ld 4 modify size=500 forced
## Extending the LogicalDrives

hpacucli> ctrl slot=0 array all add spares=1:5,1:7
## Add two Spare diskslinux

相關文章
相關標籤/搜索