HP Array Configuration Utility CLI命令

本文详细介绍了HP ACUCLI命令的使用方法,包括控制器、物理驱动器和逻辑驱动器的相关命令,以及如何配置RAID等级。此外还提供了创建、删除、扩展逻辑驱动器的方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

# 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 disks 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/29704533/viewspace-1771731/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/29704533/viewspace-1771731/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值