./stor lun ls [ { -n | --name } LUN_NAME ] [ --wwid ]
此命令用来查询卷信息。
参数
参数 | 描述 |
---|---|
-n LUN_NAME 或 --name LUN_NAME | 指定要查询的卷名称。 |
--wwid | 指定查询卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例
示例1
单机版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_3.7.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.7.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.7.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.7.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.7.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
单机版上云卷:查询卷luna2的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor lun ls -n luna2
LUN Name: luna2 (LUN 1)
Storage Mode: Storage
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-11 11:05:57
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 33000000069ef2804
UUID: lun-uuid-7c1d6013-4d72-40a9-ac47-132b083bd765
Path: /mnt/storage01
Object Storage Info:
+-------------------+----------------------------+
| Bucket Name | hblocktest3 |
| Prefix | hblock |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v4 |
| Region | cn |
| Storage Class | STANDARD |
| Access Key | cb22b08b1f9229f85874 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+
集群版本地卷:查询卷lun01的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor lun ls -n lun01
LUN Name: lun01 (LUN 1)
Storage Mode: Local
Capacity: 1 GiB
Status: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.2(192.168.0.110:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target01.1(192.168.0.102:3260,Standby)
Create Time: 2024-06-14 17:32:14
Local Storage Class: EC 2+1+16KiB
Minimum Replica Number: 2
Local Sector Size: 4096 bytes
Cache Storage Pool: default
Storage Pool: pool2
High Availability: ActiveStandby
Write Policy: WriteBack
WWID: 3300000005502e993
UUID: lun-uuid-71fb410d-d831-478e-aa65-a6e152498503
集群版上云卷:查询卷lun03a的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.7.0_x64]# ./stor lun ls -n lun03a
LUN Name: lun03a (LUN 0)
Storage Mode: Storage
Capacity: 300 GiB
Status: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target03.5(192.168.0.192:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target03.6(192.168.0.102:3260,Standby)
Create Time: 2024-06-04 14:01:56
Local Storage Class: EC 2+1+16KiB
Minimum Replica Number: 2
Local Sector Size: 4096 bytes
Storage Pool: default
High Availability: ActiveStandby
Write Policy: WriteBack
WWID: 3300000002c4fc25b
UUID: lun-uuid-99f68b24-5a2a-460f-bbb7-c3963c32e578
Object Storage Info:
+-------------------+----------------------------+
| Bucket Name | hblocktest3 |
| Prefix | stor2 |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v2 |
| Region | |
| Storage Class | STANDARD |
| Access Key | cb22b08b1f9229f85874 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+
项目 | 描述 |
---|---|
LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在Target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果Target下只有一个LUN,LUN的编号一般为0。 |
Storage Mode | 卷的存储类型:
|
Capacity | 卷容量。 |
Status | 卷的状态:
|
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 | 最小副本数(仅集群版支持)。 |
Local Sector Size | 扇区大小。 |
Cache Storage Pool | 缓存存储池(仅集群版支持)。 |
Storage Pool | 存储池(仅集群版支持),表示最终存储池,卷数据最终落在该存储池内。 |
High Availability | 卷的高可用类型(仅集群版支持):
|
Write Policy | 卷的写策:
|
WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
UUID | 卷的唯一识别码。 |
Path | 存储卷数据的数据目录(仅单机版支持)。 |
Object Storage Info | 卷上云信息,包括:Bucket Name、Prefix、Endpoint、Signature Version、Region、Storage Class、Access Key、Object Size、Compression。 |
Bucket Name | 存储桶名称。 |
Prefix | 卷数据存储在OOS中的前缀名称。 如果未设置,则不显示此项。 |
Endpoint | OOS Endpoint。 |
Signature Version | 上云签名认证的类型:
|
Region | OOS Endpoint资源池所在区域。如果是V2签名,此处为空。 |
Storage Class | OOS的存储类型:
|
Access Key | OOS AccessKeyID。 |
Object Size | 数据存储在OOS中的大小。 |
Compression | 是否压缩数据上传至OOS:
|