./stor lun ls [ { -n | --name } LUN_NAME ] [ --wwid ]
此命令用来查询卷信息。
参数
参数 | 描述 |
---|---|
-n LUN_NAME 或 --name LUN_NAME | 指定要查询的卷名称。 |
--wwid | 指定查询卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例
示例1
单机版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target |
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+
| 1. | lun1(LUN 0) | Local | 10 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:target1.3(192.168.0.32:3260,Active) |
| 2. | luna1(LUN 0) | Local | 110 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:targeta.2(192.168.0.32:3260,Active) |
| 3. | luna2(LUN 1) | Storage | 110 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:targeta.2(192.168.0.32:3260,Active) |
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+
单机版:查询所有卷的标识符。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls --wwid
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | WWID |
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+-------------------+
| 1. | lun1(LUN 0) | Local | 10 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:target1.3(192.168.0.32:3260,Active) | 33000000024bc2217 |
| 2. | luna1(LUN 0) | Local | 110 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:targeta.2(192.168.0.32:3260,Active) | 3300000002e39684c |
| 3. | luna2(LUN 1) | Storage | 110 GiB | Enabled | iqn.2012-08.cn.ctyunapi.oos:targeta.2(192.168.0.32:3260,Active) | 33000000069ef2804 |
+-----+--------------+--------------+----------+---------+-----------------------------------------------------------------+-------------------+
集群版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replica Number | Status | Target |
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+
| 1. | lun01a(LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) |
| 2. | lun01b(LUN 1) | Local | 200 GiB | 2-copy | 1 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) |
| 3. | lun01c(LUN 2) | Local | 200 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) |
| 4. | lun01w(LUN 1) | Local | 50 GiB | 2-copy | 1 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target02.3(192.168.0.110:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4(192.168.0.102:3260,Standby) |
| 5. | lun02a(LUN 0) | Storage | 200 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target02.4(192.168.0.102:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.3(192.168.0.110:3260,Standby) |
| 6. | lun02w(LUN 3) | Cache | 150 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) |
| 7. | lun03a(LUN 0) | Cache | 300 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target03.6(192.168.0.192:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target03.5(192.168.0.110:3260,Standby) |
| 8. | lun05a(LUN 0) | Local | 500 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target05.9(192.168.0.192:3260,Active) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target05.11(192.168.0.110:3260,Standby) |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target05.10(192.168.0.102:3260,ColdStandby) |
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+
集群版:查询所有卷的标识符信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls --wwid
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replica Number | Status | Target | WWID |
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+-------------------+
| 1. | lun01a(LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) | 3300000002afb5918 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) | |
| 2. | lun01b(LUN 1) | Local | 200 GiB | 2-copy | 1 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) | 33fffffff9305e51f |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) | |
| 3. | lun01c(LUN 2) | Local | 200 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) | 33fffffff82b4317a |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) | |
| 4. | lun01w(LUN 1) | Local | 50 GiB | 2-copy | 1 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target02.3(192.168.0.110:3260,Active) | 33fffffffc49aa8bb |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4(192.168.0.102:3260,Standby) | |
| 5. | lun02a(LUN 0) | Storage | 200 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target02.4(192.168.0.102:3260,Active) | 3300000003e44ba08 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.3(192.168.0.110:3260,Standby) | |
| 6. | lun02w(LUN 3) | Cache | 150 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Active) | 3300000005f055628 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Standby) | |
| 7. | lun03a(LUN 0) | Cache | 300 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target03.6(192.168.0.192:3260,Active) | 33fffffff955b23dc |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target03.5(192.168.0.110:3260,Standby) | |
| 8. | lun05a(LUN 0) | Local | 500 GiB | EC 2+1+16KiB | 2 | Enabled | iqn.2012-08.cn.ctyunapi.oos:target05.9(192.168.0.192:3260,Active) | 3300000000ace3bda |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target05.11(192.168.0.110:3260,Standby) | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target05.10(192.168.0.102:3260,ColdStandby) | |
+-----+---------------+--------------+----------+---------------------+------------------------+---------+-------------------------------------------------------------------------+-------------------+
项目 | 描述 |
---|---|
No. | 序号。 |
LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在Target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果Target下只有一个LUN,LUN的编号一般为0。 |
Storage Mode | 卷的存储类型:
|
Capacity | 卷容量。 |
Local Storage Class | 卷冗余模式(仅集群版支持):
|
Minimum Replica Number | 最小副本数(仅集群版支持)。 |
Status | 卷的状态:
|
Target | 卷关联的Target,包括Target IQN、Target IP、Target端口号、卷对应的Target的状态(Active:主Target;Standby:热备Target;Offline:离线Target;ColdStandby:冷备Target)。 |
WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例2
单机版本地卷:查询卷luna1的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls -n luna1
LUN Name: luna1 (LUN 0)
Storage Mode: Local
Capacity: 110 GiB
Status: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targeta.2(192.168.0.32:3260,Active)
Create Time: 2024-05-10 17:31:03
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 3300000002e39684c
UUID: lun-uuid-6400cd65-60ec-4657-99dc-49eee6c1560b
Path: /mnt/storage01
单机版上云卷:查询卷lunb1的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls -n lunb1
LUN Name: lunb1 (LUN 0)
Storage Mode: Cache
Capacity: 230 GiB
Status: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targetb.2(192.168.0.32:3260,Active)
Create Time: 2024-10-24 14:37:17
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 33fffffff960bcb0c
UUID: lun-uuid-74558fbc-f6cd-47a6-a4b7-77a5baf13062
Path: /mnt/stor
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Prefix | standalone1 |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | 80c10ea7d09424d36ef6 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+
集群版本地卷:查询卷lun01的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls -n lun01a
LUN Name: lun01a (LUN 0)
Storage Mode: Local
Capacity: 100 GiB
Status: Enabled
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.3(192.168.0.117:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target01.4(192.168.0.102:3260,Standby)
Create Time: 2024-11-26 11:29:43
Local Storage Class: EC 2+1+16KiB
Minimum Replica Number: 2
Redundancy Overlap: 1
Local Sector Size: 4096 bytes
Storage Pool: default
High Availability: ActiveStandby
Write Policy: WriteBack
WWID: 33fffffffc17e66af
UUID: lun-uuid-ecd607e7-1ac7-4da2-90cf-fa5dd327b28c
集群版上云卷:查询卷lun03a的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls -n lun03a
LUN Name: lun03a (LUN 0)
Storage Mode: Storage
Capacity: 300 GiB
Status: Enabled
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target03.7(192.168.0.192:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target03.8(192.168.0.102:3260,Standby)
Create Time: 2024-11-26 11:37:26
Local Storage Class: EC 2+1+16KiB
Minimum Replica Number: 2
Redundancy Overlap: 1
Local Sector Size: 4096 bytes
Cache Storage Pool: default
Storage Pool: pool2
High Availability: ActiveStandby
Write Policy: WriteBack
WWID: 3300000001cbd2fbf
UUID: lun-uuid-ebfcab42-00cd-46c9-88ef-59ebfdf2ca74
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Prefix | lun03a |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | 8f129a5529f202811fd0 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+
集群版上云卷:查询卷lun04a(还原失败)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.8.0_x64]# ./stor lun ls -n lun04a
LUN Name: lun04a (LUN 0)
Storage Mode: Storage
Capacity: 440 GiB
Status: RecoverFailed
Failed Reason: Unknown Error, please resume LUN recovery later or contact your software vendor.
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target04.7(192.168.0.102:3260,Offline)
iqn.2012-08.cn.ctyunapi.oos:target04.8(192.168.0.117:3260,Offline)
Create Time: 2024-12-17 17:25:37
Local Storage Class: EC 2+1+16KiB
Minimum Replica Number: 2
Redundancy Overlap: 1
Local Sector Size: 4096 bytes
Cache Storage Pool: pool3
Storage Pool: default
High Availability: ActiveStandby
Write Policy: WriteThrough
WWID: 3300000006d8b38ff
UUID: lun-uuid-2883e7a4-8a34-4ba2-9d4c-00374f43c1e6
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 | 卷的状态:
|
deleteFailedReason | 卷云上数据删除失败的原因。 仅卷状态为DeleteFailed时显示。 |
Auto Failback | 针对卷主备状态,当高优先级的服务器恢复正常后,是否自动进行主备状态切换:
|
iSCSI Target | 卷关联的Target,包括Target IQN、Target IP、Target端口号、卷对应的Target的状态(Active:主Target;Standby:热备Target;offline:离线Target;ColdStandby:冷备Target)。 |
Create Time | 卷创建的时间。 |
Local Storage Class | 卷冗余模式(仅集群版支持):
|
Minimum Replica Number | 最小副本数(仅集群版支持)。 |
Redundancy Overlap | 卷的折叠副本数(仅集群版支持)。 |
Local Sector Size | 扇区大小。 |
Cache Storage Pool | 缓存存储池(仅集群版支持)。 |
Storage Pool | 存储池(仅集群版支持),表示最终存储池,卷数据最终落在该存储池内。 |
High Availability | 卷的高可用类型(仅集群版支持):
|
Write Policy | 卷的写策:
|
WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
UUID | 卷的唯一识别码。 |
Path | 存储卷数据的数据目录(仅单机版支持)。 |
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 | 是否压缩数据上传至对象存储:
|