storage 命令
使用此命令可显示和配置(如果平台支持)有关受 BMC 管理的服务器存储设备的信息。
语法:
storage [-options]
注
还可以通过 adapter 命令查看 VROC 控制器的详细信息。
选项 | 描述 | 值 |
---|---|---|
-list | 列出受 BMC 管理的存储目标。 | controllers, pools, volumes, drives |
-list -target [target_id] | 根据 [target_id] 列出受 BMC 管理的存储目标。 | |
-list devices | 显示受 BMC 管理的所有磁盘的状态。 | |
-show [target_id] | 显示受 BMC 管理的所选目标的信息。 | |
-show [target_id] info | 显示受 BMC 管理的所选目标的详细信息。 | |
-show [target_id] firmware | 显示受 BMC 管理的所选目标的固件信息。 | |
-showinfo nvme | 显示 NVMe 磁盘的固件信息。 | |
-wthre show | 显示固态硬盘损耗的临界阈值和警告阈值。 | 阈值(1 到 99) |
-wthre -ct [threshold value] | 设置固态硬盘损耗的临界阈值。 | 阈值(0 到 98) |
-wthre -wt [threshold value] | 设置固态硬盘损耗的警告阈值。 | 阈值(1 到 99) 注 警告值需要大于临界值。 |
-config ctrl -scanforgn -target [target_id] | 检测外部 RAID 配置。 | 其中 [target_id] 是 ctrl[x] |
-config ctrl -imptforgn -target [target_id] | 导入外部 RAID 配置。 | 其中 [target_id] 是 ctrl[x] |
-config ctrl -clrforgn -target [target_id] | 清除外部 RAID 配置。 | 其中 [target_id] 是 ctrl[x] |
-config ctrl -clrcfg -target [target_id] | 清除 RAID 配置。 | 其中 [target_id] 是 ctrl[x] |
-config ctrl -bootdevice -vd [volume] -target [target_id] | 按卷设置引导设备。 | 其中 [target_id] 是 ctrl[x],[volume] 是“列出卷”输出第一列中的值。 |
-config ctrl -bootdevice -pd [drive] -target [target_id] | 按硬盘设置引导设备。 | 其中 [target_id] 是 ctrl[x],[drive] 是“列出驱动器”输出第一列中的值。 |
-config ctrl -bootdevice -index [index] -target [target_id] | 按索引设置引导设备。 | 其中 [target_id] 是 ctrl[x],[index] 是“显示”选项的输出“[]”中的一个值。 |
-config ctrl -bootdevice -display -target [target_id] | 显示可引导设备。 | |
-config drv -mkoffline -target [target_id] | 将硬盘状态从联机更改为脱机。 | 其中 [target_id] 是 disk[x] |
-config drv -mkonline -target [target_id] | 将硬盘状态从脱机更改为联机。 | 其中 [target_id] 是 disk[x] |
-config drv -mkmissing -target [target_id] | 将脱机硬盘标为未配置的完好硬盘。 | 其中 [target_id] 是 disk[x] |
-config drv -prprm -target [target_id] | 准备未配置的完好硬盘以供删除。 | 其中 [target_id] 是 disk[x] |
-config drv -undoprprm -target [target_id] | 取消准备未配置的完好硬盘以供删除的操作。 | 其中 [target_id] 是 disk[x] |
-config drv -mkbad -target [target_id] | 将未配置的完好硬盘更改为未配置的故障硬盘。 | 其中 [target_id] 是 disk[x] |
-config drv -mkgood -target [target_id] | 将未配置的故障硬盘更改为未配置的完好硬盘,或将硬盘存储扩展柜(JBOD)硬盘转换为未配置的完好硬盘。 | 其中 [target_id] 是 disk[x] |
-config drv -mkjbod -target [target_id] | 将未配置的完好硬盘设置为 JBOD。 | 其中 [target_id] 是 disk[x] |
-config drv -rebuild -target [target_id] | 开始重建硬盘。 | 其中 [target_id] 是 disk[x] |
-config drv -addhsp -target [target_id] | 将所选硬盘作为热备用分配给一个控制器或现有存储池。 | 其中 [target_id] 是 disk[x] |
-config drv -dedicated pools -target [target_id] | 将硬盘作为专用热备盘分配给选定的存储池。 | 其中 [target_id] 是 disk[x] |
-config drv -rmhsp -target [target_id] | 删除热备用。 | 其中 [target_id] 是 disk[x] |
-config vol -remove -target [target_id] | 删除一个卷。 | 其中 [target_id] 是 disk[x] |
-config vol -set [-N] [-w] [-r] [-i] [-a] [-d] [-b] -target [target_id] | 修改一个卷的属性。 |
|
-config vol -add [-R] [-D disk] [-H disk] [-1 hole] [-N] [-w] [-r] [-i] [-a] [-d] [-f] [-S] [-P] | 当目标是控制器时,请为新存储池创建一个卷;当目标是存储池时,请为现有存储池创建一个卷。 |
|
-config vol -getfreecap [-R] [-D disk] [-H disk] -target [target_id] | 获取硬盘组的可用容量。 |
|
-fgi vol[idx] | 快速初始化指定卷 | 其中 vol[idx] 是 vol[id1],vol[id2]:.. |
-help | 显示命令用法和选项 |
示例:
system> storage -list controllers
ctrl[1] ThinkSystem RAID 940-8i 4GB Flash PCIe Gen4 12Gb Adapter(PCI Slot 1)
system> storage -list pools
pool[1-239] Storage Pool 239
system> storage -list volumes
vol[1-239] VD2 RAID1 200.00GiB Optimal
system> storage -list drives
disk[1-48] Drive 1-2 Online 480GB 6Gbps 2.5" SATA SSD
disk[1-47] Drive 1-3 Online 480GB 6Gbps 2.5" SATA SSD
disk[1-46] Drive 1-1 JBOD 480GB 6Gbps 2.5" SATA SSD
disk[1-40] Drive 1-0 JBOD 480GB 6Gbps 2.5" SATA SSD
system> storage -list devices
Drive 1-2 Normal
Drive 1-3 Normal
Drive 1-1 Normal
Drive 1-0 Normal
system> storage -show ctrl[1]
Product Name: ThinkSystem RAID 940-8i 4GB Flash PCIe Gen4 12Gb Adapter
Firmware Package Version: 52.27.0-5215
Battery Backup: Not installed
Manufacture: Lenovo
UUID: 9C9450DAA89040BD9B8C5CEC2C7EF170
Model: SAS3908
Serial No.: L1FM23HSA10
Part No.: SR17B09191
FRU No.: 01PE816
Persistent Cache Size: 3142
Total Cache Size: 4096
PCI Slot Number: 1
PCI Device ID: 0x10e2
SubsystemId: 1546
SubsystemVendorId: 7497
VendorId: 4096
Storage Pool: 1
pool[1-239] Storage Pool 239
Drives: 4
disk[1-48] Drive 1-2 Online 480GB 6Gbps 2.5" SATA SSD
disk[1-47] Drive 1-3 Online 480GB 6Gbps 2.5" SATA SSD
disk[1-46] Drive 1-1 JBOD 480GB 6Gbps 2.5" SATA SSD
disk[1-40] Drive 1-0 JBOD 480GB 6Gbps 2.5" SATA SSD
Total Firmware number: 1
Name: Firmware
Manufacture: Broadcom
Version: 52.27.0-5215
system> storage -show pool[1-239]
RAID State: RAID1
RAID Capacity: 200.00GiB (246.10GiB free)
Holes: 1
#0 Free Capacity: 246.10GiB
Drives: 2
disk[1-48] Drive 1-2 Online 480GB 6Gbps 2.5" SATA SSD
disk[1-47] Drive 1-3 Online 480GB 6Gbps 2.5" SATA SSD
Volumes: 1
vol[1-239] VD2 RAID1 200.00GiB Optimal
system> storage -show disk[1-48]
Product Name: MZ7L3480HELT-00A07
State: Online
Slot No.: 2
Disk Type: SATA
Media Type: SSD
Health Status: Normal
Capacity: 446.10 GiB
Speed: 6 Gb/s
Current Temperature: 33
Rotation Rate: 0 RPM
Secured: No
Manufacture: SAMSUNG
Enclosure ID: 0
Model: MZ7L3480HELT-00A07
Serial No.: S785NA0X300234
Part No.: MZ7L3480HELT-00A07
FRU No.: S785NA0X300234
Name: Drive 2
Manufacture: SAMSUNG
Version:
system> storage -show vol[1-239]
Name: VD2
Status: Optimal
Strip Size: 256KiB
Bootable: Not Bootable
Capacity: 200.00GiB
Read Policy: Off
Current Write Policy: ProtectedWriteBack
I/O Policy: Direct
Access Policy: ReadWrite
提供反馈