คำสั่ง storage
ใช้คำสั่งนี้เพื่อแสดงผลและกำหนดค่าข้อมูล (หากรองรับโดยแพลตฟอร์ม) ที่เกี่ยวกับอุปกรณ์จัดเก็บของเซิร์ฟเวอร์ ซึ่งมีการจัดการโดย BMC
รูปแบบคำสั่ง:
storage [-options]
หมายเหตุ
นอกจากนี้ ข้อมูลรายละเอียดของคอนโทรลเลอร์ VROC ยังสามารถดูผ่านคำสั่ง adapter ได้ด้วย
ตัวเลือก | รายละเอียด | ค่า |
---|---|---|
-list | แสดงรายการเป้าหมายการจัดเก็บที่จัดการโดย BMC | controllers, pools, volumes, drives |
-list -target [target_id] | แสดงรายการเป้าหมายการจัดเก็บที่จัดการโดย BMC ตาม [target_id] | |
-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] เป็นค่าในคอลัมน์แรกของเอาต์พุต “list volumes” |
-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] | เปลี่ยนไดรฟ์ที่ใช้งานไม่ได้ที่ไม่ได้กำหนดค่าให้เป็นไดรฟ์ที่ใช้งานได้ที่ไม่ได้กำหนดค่า หรือแปลงไดรฟ์ Just a Bunch of Disk (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] | ระบุไดรฟ์ที่เลือกให้เป็น Hot Spare สำหรับตัวควบคุมหรือพูลจัดเก็บที่มีอยู่ | โดยที่ [target_id] คือ disk[x] |
-config drv -dedicated pools -target [target_id] | กำหนดไดรฟ์เป็น Hot Spare เฉพาะงานให้กับพูลที่จัดเก็บที่เลือก | โดยที่ [target_id] คือ disk[x] |
-config drv -rmhsp -target [target_id] | ถอด Hot Spare ออก | โดยที่ [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
ส่งคำติชม