./stor lun ls [ [ { -n | --name } LUN_NAME [ {-s | --snapshot } SNAPSHOT_FORMAT | --qos ] | --clone | --wwid ]
此命令用来查询卷信息。
参数
| 参数 | 描述 |
|---|---|
| -n LUN_NAME 或 --name LUN_NAME | 指定要查询的卷名称。 |
| -s SNAPSHOT_FORMAT 或 --snapshot SNAPSHOT_FORMAT | 快照的展示方式:
说明 只有指定卷名称,才能输出卷快照信息。 |
| --qos | 查询卷关联的QoS策略。 说明 只有指定卷名称,才能输出QoS信息。 |
| --clone | 查询所有的克隆卷。 |
| --wwid | 指定查询卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例
示例1
单机版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Count | Snapshot Size | Is Clone |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+
| 1. | luna1 (LUN 0) | Local | 100 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 2 | 471.13 MiB | |
| 2. | luna2 (LUN 1) | Local | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 1 | 0 B | |
| 3. | luna2-c1 (LUN 2) | Local | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 0 | 0 B | clone |
| 4. | lunb1 (LUN 0) | Cache | 220 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active) | 0 | 0 B | |
| 5. | lunc1 (LUN 0) | Storage | 330 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | 0 B | |
| 6. | lunc2 (LUN 1) | Storage | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | 0 B | |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+单机版:查询所有的克隆卷。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls --clone
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Count | Snapshot Size | Is Clone |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+
| 1. | luna2-c1 (LUN 2) | Local | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 0 | 0 B | clone |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+单机版:查询所有卷的标识符。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls --wwid
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Count | Snapshot Size | Is Clone | WWID |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+-------------------+
| 1. | luna1 (LUN 0) | Local | 100 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 2 | 471.13 MiB | | 33000000027321825 |
| 2. | luna2 (LUN 1) | Local | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 1 | 0 B | | 33fffffffc93cbdeb |
| 3. | luna2-c1 (LUN 2) | Local | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 0 | 0 B | clone | 33fffffff893d7109 |
| 4. | lunb1 (LUN 0) | Cache | 220 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active) | 0 | 0 B | | 3300000003ea215ef |
| 5. | lunc1 (LUN 0) | Storage | 330 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | 0 B | | 33fffffffa5ef3541 |
| 6. | lunc2 (LUN 1) | Storage | 1 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | 0 B | | 33fffffffc85af22e |
+-----+------------------+--------------+----------+--------+------------------------------------------------------------------+----------------+---------------+----------+-------------------+集群版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replicas | Status | Target | Snapshot Count | Snapshot Size | Is Clone |
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+
| 1. | lun01a (LUN 0) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 2 | 471.36 MiB | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | |
| 2. | lun01a-C1 (LUN 2) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 1 | 4 KiB | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 3. | lun01b (LUN 1) | Local | 150 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 2 | 0 B | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | |
| 4. | lun02a (LUN 0) | Cache | 210 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 0 | 0 B | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.67:3260,Standby) | | | |
| 5. | lun03a (LUN 0) | Storage | 310 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target03.5 (192.168.0.64:3260,Active) | 0 | 0 B | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target03.6 (192.168.0.65:3260,Standby) | | | |
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+集群版:查询所有克隆卷。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls --clone
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replicas | Status | Target | Snapshot Count | Snapshot Size | Is Clone |
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+
| 1. | lun01a-C1 (LUN 2) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 1 | 4 KiB | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
+-----+-------------------+--------------+----------+---------------------+------------------+--------+--------------------------------------------------------------------+----------------+---------------+----------+集群版:查询所有卷的标识符信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls --wwid
+-----+-------------------+--------------+----------+---------------------+------------------+-----------------+--------------------------------------------------------------------+----------------+---------------+----------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replicas | Status | Target | Snapshot Count | Snapshot Size | Is Clone | WWID |
+-----+-------------------+--------------+----------+---------------------+------------------+-----------------+--------------------------------------------------------------------+----------------+---------------+----------+-------------------+
| 1. | lun01a (LUN 0) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 2 | 471.36 MiB | | 33fffffffc9c6296b |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | | |
| 2. | lun01a-C1 (LUN 2) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 1 | 4 KiB | clone | 330000000142740b3 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | | |
| 3. | lun01a-C2 (LUN 3) | Local | 110 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | 0 B | clone | 3300000004a14fb64 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | | |
| 4. | lun01b (LUN 1) | Local | 150 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 2 | 0 B | | 33fffffff97405c3e |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | | |
| 5. | lun02a (LUN 0) | Cache | 210 GiB | EC 2+1 16 KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 0 | 0 B | | 33fffffffd0e07e06 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.67:3260,Standby) | | | | |
+-----+-------------------+--------------+----------+---------------------+------------------+-----------------+--------------------------------------------------------------------+----------------+---------------+----------+-------------------+| 项目 | 描述 |
|---|---|
| No. | 序号。 |
| LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果target下只有一个LUN,LUN的编号一般为0。 |
| Storage Mode | 卷的存储类型:
|
| Capacity | 卷容量。 |
| Local Storage Class | 卷冗余模式(仅集群版支持):
|
| Minimum Replicas | 最小副本数(仅集群版支持)。 |
| Status | 卷的状态:
|
| Target | 卷关联的target,包括target IQN、target IP、target端口号、卷对应的target的状态(Active:主target;Standby:热备target;Offline:离线target;ColdStandby:冷备target)。 |
| Snapshot Count | 卷的快照个数(仅本地卷支持)。 |
| Snapshot Size | 卷关联的快照大小的总和(仅本地卷支持),即快照记录的数据量。 注意 卷或上游快照删除可能导致大小波动。 |
| Is Clone | 该卷是否为克隆卷:
|
| WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例2
单机版本地卷:查询卷luna1(非克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n luna1
LUN Name: luna1 (LUN 0)
Storage Mode: Local
Capacity: 100 GiB
Status: Normal
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active,hblock_1)
Create Time: 2026-05-26 13:44:32
Local Sector Size: 4096 Bytes
Data Health: 100% normal, 0% degraded, 0% error
Write Policy: WriteBack
Compression Strategy: None
WWID: 33fffffffcdfaf62d
UUID: lun-uuid-79c65a23-6957-4dbf-a9e2-113341a1c92f
Path: /mnt/stor01
Snapshot Count: 1
Snapshot Size: 0 B (Varies may due to LUN/parent deletion.)单机版本地卷:查询卷luna1-C1(克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n luna1-C1
LUN Name: luna1-C1 (LUN 0)
Storage Mode: Local
Capacity: 200 GiB
Status: Normal
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targeta1.3 (192.168.0.66:3260,Active,hblock_1)
Create Time: 2026-06-16 10:16:06
Local Sector Size: 4096 Bytes
Data Health: 100% normal, 0% degraded, 0% error
Write Policy: WriteBack
Compression Strategy: None
WWID: 33fffffff922a5a0f
UUID: lun-uuid-a878b283-b274-40dd-a967-71aa861b5f2d
Path: /mnt/stor01
Source Snapshot: luna1-snapshot
Source LUN: luna1
Snapshot Count: 0
Snapshot Size: 0 B (Varies may due to LUN/parent deletion.)单机版上云卷:查询卷lunb2的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lunb2
LUN Name: lunb2 (LUN 1)
Storage Mode: Cache
Capacity: 220 GiB
Status: Normal
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active,hblock_1)
Create Time: 2026-06-16 11:13:38
Local Sector Size: 4096 Bytes
Data Health: 100% normal, 0% degraded, 0% error
Write Policy: WriteBack
Compression Strategy: Zstd, level=4
WWID: 3300000004338de99
UUID: lun-uuid-b92216f1-ee46-4589-80cc-93a2e7e35280
Path: /mnt/stor01
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | 8f129a5529f202811fd0 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+集群版本地卷:查询卷lun01a(非克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun01a
LUN Name: lun01a (LUN 0)
Storage Mode: Local
Capacity: 110 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.65:3260,Active,hblock_1,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby,hblock_3,10.1.0.3:105)
Create Time: 2026-06-02 09:48:12
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: default-pool
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteThrough
Compression Strategy: Zstd, level=5
WWID: 33fffffffeb57e1dc
UUID: lun-uuid-c5b71193-5092-4edd-8363-13840caafaee
Snapshot Count: 2
Snapshot Size: 89.03 MiB (Varies may due to LUN/parent deletion.)集群版本地卷:查询卷lun01a-C2(克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun01a-C2
LUN Name: lun01a-C2 (LUN 6)
Storage Mode: Local
Capacity: 110 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active,hblock_3,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.65:3260,Standby,hblock_1,10.1.0.3:105)
Create Time: 2026-06-16 10:19:09
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: default-pool
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteThrough
Compression Strategy: Zstd, level=5
WWID: 33fffffffecefeed0
UUID: lun-uuid-a3fbee10-af1c-463c-837f-c2055e11d7c4
Source Snapshot: lun01a-s1
Source LUN: lun01a
Snapshot Count: 0
Snapshot Size: 0 B (Varies may due to LUN/parent deletion.)集群版上云卷:查询卷lun02b的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun02b
LUN Name: lun02b (LUN 1)
Storage Mode: Cache
Capacity: 210 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Active,hblock_2,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.68:3260,Standby,hblock_4,10.1.0.3:105)
Create Time: 2026-06-16 10:27:22
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: default-pool
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteBack
Compression Strategy: None
WWID: 3300000001892b447
UUID: lun-uuid-1f2f124d-902a-4ac3-9bd6-592505e2bae4
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | 8f129a5529f202811fd0 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+集群版上云卷:查询卷lun02b(还原失败)的信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun02b
LUN Name: lun02b (LUN 1)
Storage Mode: Cache
Capacity: 210 GiB
Status: RecoverFailed
Failed Reason: Insufficient fault domain for LUN to write (with the redundency overlap taken into consideration), resolve the problem and resume LUN recovery.
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.68:3260,Offline,hblock_4,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Offline,hblock_2,10.1.0.3:105)
Create Time: 2026-06-16 10:27:22
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: pool2
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteBack
Compression Strategy: None
WWID: 3300000001892b447
UUID: lun-uuid-1f2f124d-902a-4ac3-9bd6-592505e2bae4
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | 8f129a5529f202811fd0 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+| 项目 | 描述 |
|---|---|
| LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果target下只有一个LUN,LUN的编号一般为0。 |
| Storage Mode | 卷的存储类型:
|
| Capacity | 卷容量。 |
| Status | 卷的状态:
|
| Failed Reason | 失败原因:卷还原失败的原因(卷状态为RecoverFailed时显示),卷删除失败的原因(卷状态为DeleteFailed时显示),卷清空失败的原因(卷状态为WipeFailed显示),或者卷挂起失败的原因(卷状态为SuspendFailed显示)。 |
| Auto Failback | 针对卷主备状态,当高优先级的服务器恢复正常后,是否自动进行主备状态切换:
|
| iSCSI Target | 卷关联的target,包括target IQN、target IP、target端口号、卷对应的target的状态(Active:主target;Standby:热备target;offline:离线target;ColdStandby:冷备target)、服务器ID、HBlock服务器的目标门户IP和端口号。 |
| Create Time | 卷创建的时间。 |
| Local Storage Class | 卷冗余模式(仅集群版支持):
|
| Minimum Replicas | 最小副本数(仅集群版支持)。 |
| Redundancy Overlap | 卷的折叠副本数(仅集群版支持)。 |
| Local Sector Size | 扇区大小。 |
| Cache Storage Pool | 缓存存储池(仅集群版支持)。 |
| Storage Pool | 存储池(仅集群版支持),表示最终存储池,卷数据最终落在该存储池内。 |
| Data Health | 卷的数据健康度,包括:正常数据的比例(normal)、降级数据的比例(degraded)、错误数据的比例(error)。 如果存在降级状态的数据,会给出数据重建进度(Rconstruction progress)。 |
| High Availability | 卷的高可用类型(仅集群版支持):
|
| Write Policy | 卷的写策:
|
| Compression Strategy | 本地数据压缩策略。 |
| WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
| UUID | 卷的唯一识别码。 |
| Path | 存储卷数据的数据目录(仅单机版支持)。 |
| Source Snapshot | 克隆卷关联的快照(仅克隆卷支持)。 |
| Source LUN | 克隆卷的源卷名称(仅克隆卷支持)。 |
| Snapshot Count | 卷的快照个数(仅本地卷支持)。 |
| Snapshot Size | 卷关联的快照大小的总和(仅本地卷支持),即快照记录的数据量。 注意 卷或上游快照删除可能导致大小波动。 |
| Object Storage Info | 卷上云信息,包括:Provider、Bucket Name、Prefix、Endpoint、Signature Version、Region、Storage Class、Access Key、Object Size、Compression。 |
| Provider | 对象存储服务名称:
|
| Bucket Name | 存储桶名称。 |
| Prefix | 卷数据存储在对象存储的前缀名称。 如果未设置,则不显示此项。 |
| Endpoint | 对象存储服务的Endpoint。 |
| Signature Version | 上云签名认证的类型:
|
| Region | 对象存储服务的Endpoint资源池所在区域。如果是V2签名,此处为空。 |
| Storage Class | 对象存储服务的的存储类型:
|
| Access Key | 对象存储服务的AccessKeyID。 |
| Object Size | 数据存储在对象存储中的大小。 |
| Compression | 是否压缩数据上传至对象存储:
|
示例3
本地卷:查询卷lun01a的快照信息,快照以树形展示。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun01a -s tree
LUN Name: lun01a (LUN 0)
Storage Mode: Local
Capacity: 110 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.65:3260,Active,hblock_1,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby,hblock_3,10.1.0.3:105)
Create Time: 2026-06-02 09:48:12
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: default-pool
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteThrough
Compression Strategy: Zstd, level=5
WWID: 33fffffffeb57e1dc
UUID: lun-uuid-c5b71193-5092-4edd-8363-13840caafaee
Snapshot Count: 2
Snapshot Size: 89.03 MiB (Varies may due to LUN/parent deletion.)
Snapshots:
root
└── lun
└── lun01a-s1 (*)本地卷:查询卷lun01a的快照信息,展示快照的详细信息。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun01a -s list
LUN Name: lun01a (LUN 0)
Storage Mode: Local
Capacity: 110 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.65:3260,Active,hblock_1,10.1.0.3:105)
iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby,hblock_3,10.1.0.3:105)
Create Time: 2026-06-02 09:48:12
Local Storage Class: EC 2+1 16 KiB
Minimum Replicas: 2
Redundancy Overlap: 1
Local Sector Size: 4096 Bytes
Storage Pool: default-pool
Data Health: 100% normal, 0% degraded, 0% error
High Availability: ActiveStandby
Write Policy: WriteThrough
Compression Strategy: Zstd, level=5
WWID: 33fffffffeb57e1dc
UUID: lun-uuid-c5b71193-5092-4edd-8363-13840caafaee
Snapshot Count: 2
Snapshot Size: 89.03 MiB (Varies may due to LUN/parent deletion.)
Snapshots:
+-----+---------------+-----------+---------------------------+--------------+----------------+--------+---------------------+
| No. | Name | Size | Consistency Snapshot Name | LUN Capacity | Reclaim Policy | Status | Create Time |
+-----+---------------+-----------+---------------------------+--------------+----------------+--------+---------------------+
| 1. | lun | 89.03 MiB | | 110 GiB | Retain | Normal | 2026-06-15 18:21:47 |
| 2. | lun01a-s1 (*) | 0 B | | 110 GiB | Retain | Normal | 2026-06-16 10:18:46 |
+-----+---------------+-----------+---------------------------+--------------+----------------+--------+---------------------+查询指定卷的快照信息
| 项目 | 描述 |
|---|---|
| LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果target下只有一个LUN,LUN的编号一般为0。 |
| Storage Mode | 卷的存储类型:
|
| Capacity | 卷容量。 |
| Status | 卷的状态:
|
| Auto Failback | 针对卷主备状态,当高优先级的服务器恢复正常后,是否自动进行主备状态切换:
|
| iSCSI Target | 卷关联的target,包括target IQN、target IP、target端口号、卷对应的target的状态(Active:主target;Standby:热备target;offline:离线target;ColdStandby:冷备target)、服务器ID、HBlock服务器的目标门户IP和端口号。 |
| Create Time | 卷创建的时间。 |
| Local Storage Class | 卷冗余模式(仅集群版支持):
|
| Minimum Replicas | 最小副本数(仅集群版支持)。 |
| Redundancy Overlap | 卷的折叠副本数(仅集群版支持)。 |
| Local Sector Size | 扇区大小。 |
| Cache Storage Pool | 缓存存储池(仅集群版支持)。 |
| Storage Pool | 存储池(仅集群版支持),表示最终存储池,卷数据最终落在该存储池内。 |
| Data Health | 卷的数据健康度,包括:正常数据的比例(normal)、降级数据的比例(degraded)、错误数据的比例(error)。 如果存在降级状态的数据,会给出数据重建进度(Reconstruction progress)。 |
| High Availability | 卷的高可用类型(仅集群版支持):
|
| Write Policy | 卷的写策:
|
| Compression Strategy | 本地数据压缩策略。 |
| WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
| UUID | 卷的唯一识别码。 |
| Path | 存储卷数据的数据目录(仅单机版支持)。 |
| Source Snapshot | 克隆卷关联的快照(仅克隆卷支持)。 |
| Source LUN | 克隆卷的源卷名称(仅克隆卷支持)。 |
| Snapshot Count | 卷的快照个数(仅本地卷支持)。 |
| Snapshot Size | 卷关联的快照大小的总和(仅本地卷支持),即快照记录的数据量。 注意 卷或上游快照删除可能导致大小波动。 |
| Snapshots | 卷快照信息。 |
快照以详细信息展示,包括下列信息:
| |
| 快照以树形展示,仅包含快照名称,“*”表示当前的读写是以此快照为基础。 |
示例4
单机版:查询卷luna1关联的QoS策略。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n luna1 --qos
The specific QoS policy for LUN luna1
QoS Policy Name: QoS1
Reclaim Policy: Retain
IOPS (Total/Read/Write): 2500/1000/1000
Bandwidth (Total/Read/Write): 4.88 GiB/s | 3.42 GiB/s | 3.42 GiB/s
Burst IOPS (Total/Read/Write): 2000/1000/1500
Burst Bandwidth (Total/Read/Write): 4.88 GiB/s | 3.42 GiB/s | 3.42 GiB/s
Burst Duration (second): 1/1/1/1/1/1
Create Time: 2025-08-05 14:29:22
Description: It is QoS1.集群版:查询卷lun01a关联的QoS策略。
[root@hblockserver CTYUN_HBlock_Plus_4.1.0_x64]# ./stor lun ls -n lun01a --qos
The specific QoS policy for LUN lun01a
QoS Policy Name: QoS6
Reclaim Policy: Retain
IOPS (Total/Read/Write): 1000/600/400
Bandwidth (Total/Read/Write): Unlimited
Burst IOPS (Total/Read/Write): 10000/6000/4000
Burst Bandwidth (Total/Read/Write): Unlimited
Burst Duration (second): 1/1/1/1/1/1
Create Time: 2025-07-31 16:28:51
Description: It is QoS6.
The default QoS policy in pool for LUN lun01a
Storage Pool Name: defaultpool
QoS Policy Name: Qos-Test
Reclaim Policy: Retain
IOPS (Total/Read/Write): 8000/Unlimited/Unlimited
Bandwidth (Total/Read/Write): 7.81 GiB/s | Unlimited | Unlimited
Burst IOPS (Total/Read/Write): Unlimited
Burst Bandwidth (Total/Read/Write): Unlimited
Burst Duration (second): 1/1/1/1/1/1
Create Time: 2025-08-06 17:02:32查询卷关联的QoS策略信息的描述
| 项目 | 描述 |
|---|---|
| The specific QoS policy for LUN lunName | 卷的QoS策略。 |
| The default QoS policy in pool for LUN lunName | 存储池内卷的默认QoS策略(仅集群版支持)。
|
| QoS Policy Name | QoS策略名称。 |
| Reclaim Policy | QoS策略的回收策略:
|
| IOPS (Total/Read/Write) | 每秒能够进行读写操作/读操作/写操作次数的最大值。 |
| Bandwidth (Total/Read/Write) | 总带宽/读带宽/写带宽上限。 |
| Burst IOPS (Total/Read/Write) | 使用Burst功能时,每秒能够进行读写操作/读操作/写操作次数的最大值。 |
| Burst Bandwidth (Total/Read/Write) | 使用Burst功能时,总带宽/读带宽/写带宽上限。 |
| Burst Duration (second) | 使用Burst功能时,按照Burst上限的能力进行操作所能持续的时间,单位是秒。上限项目依次为:读写操作次数、读操作次数、写操作次数、总带宽、读带宽、写带宽。 |
| Create Time | QoS策略创建的时间。 |
| Description | QoS策略的描述信息。 |
| Storage Pool Name | 卷所在的存储池名称。 |