重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2990|回复: 0
打印 上一主题 下一主题

[系统管理] 用于Linux的hpacucli实用程序命令指南

[复制链接]
跳转到指定楼层
楼主
发表于 2016-1-13 18:15:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

本指南可帮助用户如何使用适用于 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 disks
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-5-7 01:22 , Processed in 0.102540 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

快速回复 返回顶部 返回列表