./stor server ls [ { -n | --server } { SERVER_ID &<1-n> | all | default }* ] [ --port ]
此命令用来查询HBlock服务器的相关信息。
参数
| 参数 | 描述 |
|---|---|
| -n { SERVER_ID &<1-n> | all | default }* 或 --server { SERVER_ID &<1-n> | all | default }* | 指定需要查询的服务器信息。 取值:
说明 可以同时指定多个参数,以逗号隔开,如-n hblock_1,hblock_2,default。 |
| --port | 指定查询服务器中HBlock使用的端口号。 |
示例
示例1
单机版:查询HBlock服务器的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls
+-----+-----------+---------------+-----------+-------------------+-----------------+---------------------+
| No. | Server ID | Server Name | Status | Public Address | Cluster Address | Recent Start Time |
+-----+-----------+---------------+-----------+-------------------+-----------------+---------------------+
| 1. | hblock_1 | hblockserver | Connected | 192.168.0.66:3260 | 192.168.0.66 | 2025-02-17 17:51:27 |
+-----+-----------+---------------+-----------+-------------------+-----------------+---------------------+集群版:查询HBlock服务器的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls
+-----+----------------+--------------+-----------+--------------------+-----------------+---------------------+
| No. | Server ID | Server Name | Status | Public Address | Cluster Address | Recent Start Time |
+-----+----------------+--------------+-----------+--------------------+-----------------+---------------------+
| 1. | hblock_1 (M**) | hblockserver | Connected | 192.168.0.192:3260 | 192.168.0.192 | 2025-01-03 10:47:27 |
| 2. | hblock_2 (**) | server2 | Connected | 192.168.0.202:3260 | 192.168.0.202 | 2025-01-03 10:46:02 |
| 3. | hblock_3 (**) | server3 | Connected | 192.168.0.102:3260 | 192.168.0.102 | 2025-01-03 10:47:16 |
+-----+----------------+--------------+-----------+--------------------+-----------------+---------------------+HBlock服务器信息描述
| 项目 | 描述 |
|---|---|
| No. | No. |
| Server ID | 服务器ID。
|
| Server Name | 服务器名称。 |
| Status | 服务器状态:
|
| Public Address | 业务网的IP和端口号。 |
| Cluster Address | 集群网的IP和端口号。 |
| Recent Start Time | HBlock服务在该节点上最近一次成功启动的时间。 -:表示HBlock服务处于停止状态。 |
示例2
单机版:查询服务器ID为hblock_1的服务器信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n hblock_1
Server Name: songt-005
Server ID: hblock_1
Status: Connected
Public Address: 192.168.0.66:3260
Cluster Address: 192.168.0.66
Recent Start Time: 2026-01-04 10:11:14
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+-----------------+---------------+----------------+---------------------+----------------+---------------+---------------+
| No. | Path | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail |
+-----+-----------------+---------------+----------------+---------------------+----------------+---------------+---------------+
| 1. | /mnt/stor01 (*) | 2.35 GiB | 93.29 GiB | 1.02 GiB | Unlimited | Healthy | - |
+-----+-----------------+---------------+----------------+---------------------+----------------+---------------+---------------+集群版:查询服务器ID为hblock_1的服务器信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n hblock_1
Server Name: hblockserver
Server ID: hblock_1
Node Name: default:hblock_1
Parent Node: default
Status: Connected
Master Server: true
Base Server: true
Base Service: mdm (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
ls (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
cs (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
Public Address: 192.168.0.65:3260
Cluster Address: 192.168.0.65
Recent Start Time: 2026-01-04 09:19:45
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| 1. | /mnt/stor01 | pool1 | 1.69 GiB | 92.86 GiB | 1.05 GiB | Unlimited | Healthy | - | ds-1 |
| 2. | /mnt/stor02 | pool2 | 124 KiB | 92.86 GiB | 28 KiB | Unlimited | Healthy | - | ds-2 |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+集群版:查询所有服务器详细信息及默认参数。
[root@k8s-master CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n all,default
Default Properties:
===================
{"default":{"portRange":"19000-25005","maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}}
Server Properties for hblock_1:
===============================
Server Name: hblockserver
Server ID: hblock_1
Node Name: default:hblock_1
Parent Node: default
Status: Connected
Master Server: true
Base Server: true
Base Service: ls (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
cs (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
Public Address: 192.168.0.65:3260
Cluster Address: 192.168.0.65
Recent Start Time: 2026-01-04 09:19:45
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9222703533785088000}
Disk Path(s):
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| 1. | /mnt/stor01 | pool1 | 7.36 GiB | 92.86 GiB | 6.69 GiB | Unlimited | Healthy | - | ds-1 |
| 2. | /mnt/stor02 | pool2 | 124 KiB | 92.86 GiB | 28 KiB | Unlimited | Healthy | - | ds-2 |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
Ports:
+---------------------+-------------------------------------------+
| Port Classification | Port |
+---------------------+-------------------------------------------+
| Port Range | 19000-25000 |
| iSCSI Port | 3260 |
| API Port | 1443 |
| Web Port | 2443 |
| Data Port | 20007 |
| Storage Port | 20017,20018,20019,20020,20021,20022 |
| Management Port | 20000,20003,20010,20013,20014,20015,20016 |
| Metadata Port | 20001,20002,20006,20008,20009,20012 |
+---------------------+-------------------------------------------+
Server Properties for hblock_2:
===============================
Server Name: k8s-master
Server ID: hblock_2
Node Name: default:hblock_2
Parent Node: default
Status: Connected
Master Server: false
Base Server: true
Base Service: mdm (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
ls (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
cs (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
Public Address: 192.168.0.64:3260
Cluster Address: 192.168.0.64
Recent Start Time: 2026-01-07 17:59:47
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| 1. | /mnt/stor01 | pool2 | 16.98 GiB | 39.98 GiB | 8 KiB | Unlimited | Healthy | - | ds-2 |
| 2. | /mnt/stor02 | pool1 | 6.73 GiB | 92.86 GiB | 6.69 GiB | Unlimited | Healthy | - | ds-1 |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
Ports:
+---------------------+-------------------------------------------------------+
| Port Classification | Port |
+---------------------+-------------------------------------------------------+
| Port Range | 19000-25000 |
| iSCSI Port | 3260 |
| API Port | 1443 |
| Web Port | 2443 |
| Data Port | 20007 |
| Storage Port | 20017,20018,20019,20020,20021,20022 |
| Management Port | 20000,20003,20010,20013,20014,20015,20016 |
| Metadata Port | 20001,20002,20004,20005,20006,20008,20009,20011,20012 |
+---------------------+-------------------------------------------------------+
Server Properties for hblock_3:
===============================
Server Name: songt-0006
Server ID: hblock_3
Node Name: default:hblock_3
Parent Node: default
Status: Connected
Master Server: false
Base Server: true
Base Service: mdm (Up, /mnt/stor01)
ls (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
cs (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0_x64)
Public Address: 192.168.0.67:3260
Cluster Address: 192.168.0.67
Recent Start Time: 2026-01-04 15:15:03
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| 1. | /mnt/stor01 | pool1 | 6.79 GiB | 92.86 GiB | 6.69 GiB | Unlimited | Healthy | - | ds-1 |
| 2. | /mnt/stor02 | pool2 | 587.02 MiB | 92.86 GiB | 28 KiB | Unlimited | Healthy | - | ds-2 |
+-----+-------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
Ports:
+---------------------+-------------------------------------------------------+
| Port Classification | Port |
+---------------------+-------------------------------------------------------+
| Port Range | 19000-25000 |
| iSCSI Port | 3260 |
| API Port | 1443 |
| Web Port | 2443 |
| Data Port | 20007 |
| Storage Port | 20004,20005,20011,20017,20018,20019 |
| Management Port | 20000,20003,20010,20013,20014,20015,20016 |
| Metadata Port | 20001,20002,20006,20008,20009,20012,20020,20021,20022 |
+---------------------+-------------------------------------------------------+查询指定服务器信息描述
| 项目 | 描述 |
|---|---|
| Default Properties | 后续加入集群节点的HBlock默认参数。 |
| Server Properties for hblock_x | 具体服务器信息。 |
| Server Name | 服务器名称。 |
| Server ID | 服务器ID。 |
| Node Name | 节点名称。 |
| Parent Node | 父节点名称。 |
| Description | 服务器描述信息,如果没有描述信息,不显示。 |
| Status | 服务器状态:
|
| Master Server | 该服务器是否为Master节点(仅集群版支持):
|
| Base Server | 该服务器是否为基础节点(仅集群版支持):
|
| Base Service | 服务器上的基础服务(仅集群版支持),包括基础服务名称、状态及对应的数据目录。 |
| Public Address | 业务网的IP和端口号。 |
| Cluster Address | 集群网的IP。 |
| Target portal IP and Port | 目标门户和目标端口。 |
| Recent Start Time | HBlock服务在该节点上最近一次成功启动的时间。 -:表示HBlock服务处于停止状态。 |
| Version | HBlock版本号。 |
| Parameters | 服务器中HBlock可使用的内存信息:
|
| Disk Path(s) | 数据目录信息:
|
| Ports | 服务器中HBlock使用的接口:
|
示例3
集群版:集群中有3台服务器,移除hblock_1的一个数据目录,查询hblock_1的服务器信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n hblock_1
Server Name: pm-006
Server ID: hblock_1
Node Name: default:room2:rack2:hblock_1
Parent Node: default:room2:rack2
Status: Connected
Master Server: true
Base Server: true
Base Service: ls (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0)
cs (Up, /mnt/storage01/CTYUN_HBlock_Plus_4.0.0)
Public Address: 192.168.0.192:3260
Cluster Address: 192.168.0.192
Recent Start Time: 2025-01-13 13:46:11
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+-------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+--------------------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+--------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+-------------------------+--------------+
| 1. | /mnt/stor | default | 10.31 GiB | 93.29 GiB | 869.26 MiB | Unlimited | Healthy | - | ds-1 |
| 2. | (Removing)/tmp/pathnCV9V | default | 62.1 MiB | 5 GiB | 62.09 MiB | Unlimited | Warning | StopWritingWhenRemoving | ds-2 |
+-----+--------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+-------------------------+--------------+
Removing Details (from storage pool):
+-----+----------------+--------------+----------------------------------------------------------------------------------------------------------+
| No. | Path | Stage | Details |
+-----+----------------+--------------+----------------------------------------------------------------------------------------------------------+
| 1. | /tmp/pathnCV9V | CheckingData | FaultDomains: 2 healthy, 1 warning, 0 error |
| | | | Data: 33.33% safe, 66.67% await reconstruction, 0% await more faultdomains, 0% single-copy, 0% corrupted |
+-----+----------------+--------------+----------------------------------------------------------------------------------------------------------+集群版:集群中有4台服务器,移除服务器hblock_4,查询服务器hblock_4信息。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n hblock_4
Server Name: ecs-9689-0915142
Server ID: hblock_4
Node Name: default:room2:rack2:stor
Parent Node: default:room2:rack2
Status: Removing
Master Server: false
Base Server: false
Public Address: 192.168.0.117:20050
Cluster Address: 192.168.0.117
Recent Start Time: 2024-06-26 11:30:04
Version: 4.0.0
Parameters: {"maxMemoryRatio":0.9,"maxMemorySize":9223372036854775807}
Disk Path(s):
+-----+--------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| No. | Path | Storage Pool | Used Capacity | Total Capacity | Used Capacity Quota | Capacity Quota | Health Status | Health Detail | Data Service |
+-----+--------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+
| 1. | (Removing)/mnt/storage02 | - | 52.13 MiB | 52.18 GiB | - | Unlimited | - | - | ds-1 |
+-----+--------------------------+--------------+---------------+----------------+---------------------+----------------+---------------+---------------+--------------+查询指定服务器信息描述
| 项目 | 描述 |
|---|---|
| Server Name | 服务器名称。 |
| Server ID | 服务器ID。 |
| Node Name | 节点名称。 |
| Parent Node | 父节点名称。 |
| Description | 服务器描述信息,如果没有描述信息,不显示。 |
| Status | 服务器状态:
|
| Master Server | 该服务器是否为Master节点:
|
| Base Server | 该服务器是否为基础节点:
|
| Base Service | 服务器上的基础服务(仅集群版支持),包括基础服务名称、状态及对应的数据目录。 |
| Public Address | 业务网的IP和端口号。 |
| Cluster Address | 集群网的IP。 |
| Target portal IP and Port | 目标门户和目标端口。 |
| Recent Start Time | HBlock服务在该节点上最近一次成功启动的时间。 -:表示HBlock服务处于停止状态。 |
| Version | HBlock版本号。 |
| Parameters | 服务器中HBlock可使用的内存信息:
|
| Disk Path(s) | 数据目录信息:
|
| Removing Details | 移除服务器或者移除数据目录时,被移除数据目录的详细信息:
|
示例4
单机版:查询服务器中HBlock使用的端口号。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls --port
+-----+-----------+---------------+----------------+-----------------+-------------+------------+--------------+-------------------+
| No. | Server ID | Server Name | Public Address | Cluster Address | Port Range | iSCSI Port | API&Web Port | Management Port |
+-----+-----------+---------------+----------------+-----------------+-------------+------------+--------------+-------------------+
| 1. | hblock_1 | hblockserver | 192.168.0.32 | 192.168.0.32 | 20000-20500 | 3260 | 1443,2443 | 20000,20001,20002 |
| | | | | | | | | 20003,20004 |
+-----+-----------+---------------+----------------+-----------------+-------------+------------+--------------+-------------------+集群版:查询服务器中HBlock使用的端口号。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls --port
+-----+----------------+--------------+----------------+-----------------+-------------+------------+--------------+-----------+-------------------+-------------------+-------------------+
| No. | Server ID | Server Name | Public Address | Cluster Address | Port Range | iSCSI Port | API&Web Port | Data Port | Storage Port | Management Port | Metadata Port |
+-----+----------------+--------------+----------------+-----------------+-------------+------------+--------------+-----------+-------------------+-------------------+-------------------+
| 1. | hblock_1 (M**) | songt-0004 | 192.168.0.65 | 192.168.0.65 | 20000-20500 | 3260 | 1443,2443 | 20007 | 20017,20018,20019 | 20000,20003,20010 | 20001,20002,20004 |
| | | | | | | | | | | 20013,20014,20015 | 20005,20006,20008 |
| | | | | | | | | | | 20016 | 20009,20011,20012 |
| 2. | hblock_2 (**) | hblockserver | 192.168.0.64 | 192.168.0.64 | 20000-20500 | 3260 | 1443,2443 | 20007 | 20017,20018,20019 | 20000,20003,20010 | 20001,20002,20004 |
| | | | | | | | | | | 20013,20014,20015 | 20005,20006,20008 |
| | | | | | | | | | | 20016 | 20009,20011,20012 |
| 3. | hblock_3 (**) | songt-0006 | 192.168.0.67 | 192.168.0.67 | 20000-20500 | 3260 | 1443,2443 | 20007 | 20004,20005,20011 | 20000,20003,20010 | 20001,20002,20006 |
| | | | | | | | | | | 20013,20014,20015 | 20008,20009,20012 |
| | | | | | | | | | | 20016 | |
+-----+----------------+--------------+----------------+-----------------+-------------+------------+--------------+-----------+-------------------+-------------------+-------------------+集群版:查询服务器hblock_1中HBlock的端口号。
[root@hblockserver CTYUN_HBlock_Plus_4.0.0_x64]# ./stor server ls -n hblock_1 --port
Server Name: songt-0004
Server ID: hblock_1
Node Name: default:hblock_1
Parent Node: default
Public Address: 192.168.0.65
Cluster Address: 192.168.0.65
Ports:
+---------------------+-------------------------------------------------------+
| Port Classification | Port |
+---------------------+-------------------------------------------------------+
| Port Range | 20000-20500 |
| iSCSI Port | 3260 |
| API Port | 1443 |
| Web Port | 2443 |
| Data Port | 20007 |
| Storage Port | 20017,20018,20019 |
| Management Port | 20000,20003,20010,20013,20014,20015,20016 |
| Metadata Port | 20001,20002,20004,20005,20006,20008,20009,20011,20012 |
+---------------------+-------------------------------------------------------+查询指定服务器端口号描述
| 项目 | 描述 |
|---|---|
| No. | 编号。 |
| Server Name | 服务器名称。 |
| Server ID | 服务器ID。 |
| Node Name | 节点名称。 |
| Parent Node | 父节点名称。 |
| Public Address | 业务网的IP和端口号。 |
| Cluster Address | 集群网的IP和端口号。 |
| Port Range | 端口范围。 |
| iSCSI Port | iSCSI端口。 |
| API Port | API端口。 |
| Web Port | Web端口。 |
| Data Port | 数据端口(仅集群版支持)。 |
| Storage Port | 数据存储端口(仅集群版支持)。 |
| Management Port | 管理端口。 |
| Metadata Port | 元数据端口(仅集群版支持)。 |