./stor status [ { -t | --type } TYPE ]
此命令用來查看HBlock服務狀態。
參數
參數 描述 -t TYPE 或 --type TYPE 查看指定服務的狀態,TYPE取值:
system:查看系統狀態。
storagepool:存儲池狀態(僅集群版支持)。
server:查看服務器狀態。
disk:查看磁盤狀態(僅單機版支持)。
LUN:查看卷的狀態。
未指定狀態,則顯示全部信息。
示例
單機版:查看HBlock服務狀態。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor status
System:
status: Working, licenseStatus: Effective
Server:
status: 1 total, 1 connected, 0 disconnected, 0 removing
Disk:
usage: 60.15 MiB used, 93.29 GiB total
status: 1 total, 1 healthy, 0 warning, 0 error
LUN:
status: 3 total, 230 GiB (cache mode:0 total, 0 B; storage mode:1 total, 110 GiB; local mode:2 total, 120 GiB)
data: 100% normal, 0% low redundancy, 0% error
集群版:查看HBlock服務狀態。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor status
System:
status: Working, licenseStatus: None
Server:
status: 3 total, 3 connected, 0 disconnected, 0 removing
LUN:
status: 7 total, 1.17 TiB (cache mode:2 total, 450 GiB; storage mode:1 total, 200 GiB; local mode:4 total, 550 GiB)
data: 3% normal, 97% low redundancy, 0% error
Storage Pool:
number: 3
base pool: default
fault domain of base pool:
level: server
status: 1 total, 1 healthy, 0 warning, 0 error
disk of base pool:
usage: 20.81 GiB used, 126.78 GiB total
status: 2 total, 2 healthy, 0 warning, 0 error
查看HBlock服務器狀態。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor status -t server
Server:
status: 3 total, 2 connected, 1 disconnected, 0 removing
項目 描述 System 系統狀態,包括:
status:系統運行狀態。
licenseStatus:軟件許可證狀態。
Server 服務器狀態,包括:服務器個數、狀態為連接的服務器個數、狀態為斷開連接的服務器個數、狀態為正在移除的服務器個數。 Disk 磁盤狀態(僅單機版支持),包括:
usage:數據目錄所在磁盤使用情況,包括磁盤已用容量、磁盤總容量。
status:數據目錄所在磁盤狀態,包括磁盤總個數,狀態為健康的磁盤個數、狀態為告警的磁盤個數、狀態為錯誤的磁盤個數。
LUN 卷的狀態,包括:
status:卷的總數、總容量,以及各類型卷的個數及容量。
data:卷的數據狀態,包括:卷數據正常的比例,卷數據是低冗余的比例,卷數據異常的比例。
Storage Pool 存儲池狀態(僅集群版支持):
number:存儲池個數。
base pool:基礎存儲池名稱。
fault domain of base pool:基礎存儲池的故障域:
level:故障域級別:path:數據目錄級別;server:服務器級別;rack:機架級別;room:機房級別。
status:故障域狀態:Healthy:健康狀態,可正常讀寫;Warning:警告狀態,可讀;Error:錯誤狀態,無法訪問。
disk of base pool:基礎存儲池的數據目錄狀態:
usage:數據目錄所在磁盤使用情況,包括磁盤已用容量、磁盤總容量。
status:數據目錄所在磁盤狀態,包括磁盤總個數,狀態為健康的磁盤個數、狀態為告警的磁盤個數、狀態為錯誤的磁盤個數。