4. 查看当前所有磁盘
storcli64_ls /c0 show
如果State状态处显示UBad则需要以下命令
storcli /c0/e252/s0 set good
注:“e252”为EID号“S0”为第一格硬盘插槽的位置对应图中的Sit
运行完毕以后如下显示:
如果和上图所示DG栏目状态为“F”
则要用以下命令初始化磁盘
storcli /c0/e252/s0 start initialization
初始化完毕以后可以用命令查看进度
storcli /c0/e252/s0 show initialization
初始化以后重启,可以看到“F”标识消失即为正确
查看当前设备raid控制器个数和型号lspci |grep lsi -i
查看当前设备raid控制器相关信息:storcli show all
查看c0控制下的所有RAID信息:storcli /c0/vall show
查看当前设备raid控制器相关信息:storcli show all
4.11.2.3 查询和设置物理硬盘初始化功能
命令功能
设置物理硬盘初始化功能,查询初始化进度
# 初始化slot3硬盘,并查询初始化进度。
domino: ~ # ./storcli64 /c0/e252/s3 start initialization
Controller = 0
Status = Success
Description = Start Drive Initialization Succeeded.
domino: ~ # ./storcli64 /c0/e252/s3 show initialization
Controller = 0
Status = Success
Description = Show Drive Initialization Status Succeeded.
------------------------------------------------------
Drive-ID Progress% Status Estimated Time Left
------------------------------------------------------
/c0/e252/s3 0 In progress 0 Seconds
------------------------------------------------------
查询和设置硬盘数据擦除功能
命令功能
设置物理硬盘数据擦除模式,查询擦除进度。
# 对slot 3硬盘进行simple数据擦除,并查询擦除进度。
domino: ~ # ./storcli64 /c0/e252/s3 start erase simple
Controller = 0
Status = Success
Description = Start Drive Erase Succeeded.
domino: ~ # ./storcli64 /c0/e252/s3 show erase
Controller = 0
Status = Success
Description = Show Drive Erse Status Succeeded.
------------------------------------------------------
Drive-ID Progress% Status Estimated Time Left
------------------------------------------------------
/c0/e252/s3 0 In progress 0 Seconds
------------------------------------------------------
#查看进度
storcli64 /c controller_id /e enclosure_id /s slot_id show erase
#停止
domino: ~ # ./storcli64 /c0/e252/s3 stop erase
Controller = 0
Status = Success
Description = Stop Drive Erase Succeeded.
命令格式
storcli64 /c controller_id /e enclosure_id /s slot_id show erase
storcli64 /c controller_id /e enclosure_id /s slot_id stop erase
storcli64 /c controller_id /e enclosure_id /s slot_id start erase mode
参数说明
参数 参数说明 取值
controller_id 硬盘所在RAID卡的ID –
enclosure_id 硬盘所在Enclosure的ID –
slot_id 硬盘槽位号 –
mode 数据擦除模式 ● simple:对硬盘进行一
轮擦除动作。
● normal:对硬盘进行
三轮擦除动作。
● thorough:对硬盘进行
九轮擦除动作。
创建和删除 RAID
# 创建RAID 0。
domino: ~ # ./storcli64 /c0 add vd r0 size=100GB drives=252:0-3
Controller = 0
Status = Success
Description = Add VD Succeeded
# 删除RAID。
domino: ~ # ./storcli64 /c0/v0 del
Controller = 0
Status = Success
Description = Delete VD Succeeded
设置 RAID 前台初始化
命令功能
设置RAID前台初始化模式。
# 快速初始化RAID。
domino: ~ # ./storcli64 /c0/v0 start init
Controller = 0
Status = Success
Description = Start INIT Operation Success
# 查看后台初始化进度。
domino: ~ # ./storcli64 /c0/v0 show bgi
Controller = 0
Status = Success
Description = Noe
VD Operation Status :
===================
------------------------------------------------------
VD Operation Progress% Staus Estimated Time Left
------------------------------------------------------
0 BGI 3 In progress 53 Minutes
------------------------------------------------------
删除Raid:storcli64 /cx/vx del (x为Virtual Drive Number)