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 | 顯示嚴重和警告 SSD 損耗臨界值。 | 臨界值(1 到 99) |
-wthre -ct [threshold value] | 設定 SSD 損耗嚴重臨界值。 | 臨界值(0 到 98) |
-wthre -wt [threshold value] | 設定 SSD 損耗警告臨界值。 | 臨界值(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] 為「list drives」輸出第一欄中的值。 |
-config ctrl -bootdevice -index [index] -target [target_id] | 按索引設定開機裝置。 | 其中 [target_id] 為 ctrl[x],而 [index] 為「[]」(即「display」選項輸出)中的值。 |
-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
提供意見回饋