./stor lun ls [ { -n | --name } LUN_NAME ] [ --wwid ]
此命令用来查询卷信息。
参数
参数 | 描述 |
---|---|
-n LUN_NAME 或 --name LUN_NAME | 指定要查询的卷名称。 |
--wwid | 指定查询卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例
示例1
单机版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Numbers | Is Clone |
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
| 1. | luna1 (LUN 0) | Local | 100 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 4 | |
| 2. | luna1-C1 (LUN 0) | Local | 200 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta1.4 (192.168.0.66:3260,Active) | 1 | clone |
| 3. | luna2 (LUN 1) | Local | 88 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 1 | |
| 4. | lunb1 (LUN 0) | Cache | 200 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active) | 0 | |
| 5. | lunc1 (LUN 0) | Storage | 300 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | |
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
单机版:查询所有的克隆卷。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls --clone
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Numbers | Is Clone |
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
| 1. | luna1-C1 (LUN 0) | Local | 200 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta1.4 (192.168.0.66:3260,Active) | 1 | clone |
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+
单机版:查询所有卷的标识符。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls --wwid
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Status | Target | Snapshot Numbers | 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) | 4 | | 33000000032b51acf |
| 2. | luna1-C1 (LUN 0) | Local | 200 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta1.4 (192.168.0.66:3260,Active) | 1 | clone | 33000000066d85e04 |
| 3. | luna2 (LUN 1) | Local | 88 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targeta.1 (192.168.0.66:3260,Active) | 1 | | 33fffffffda281600 |
| 4. | lunb1 (LUN 0) | Cache | 200 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active) | 0 | | 33fffffff9449437a |
| 5. | lunc1 (LUN 0) | Storage | 300 GiB | Normal | iqn.2012-08.cn.ctyunapi.oos:targetc.3 (192.168.0.66:3260,Active) | 0 | | 33000000033c8867b |
+-----+------------------+--------------+----------+--------+-------------------------------------------------------------------+------------------+----------+-------------------+
集群版:查询所有卷信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replica Number | Status | Target | Snapshot Numbers | Is Clone |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+
| 1. | clone-lun02-2 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 1 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Standby) | | |
| 2. | clone-lun02-3 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active) | 1 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby) | | |
| 3. | clone-lun02-4 (LUN 0) | Local | 101 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target2-4.17 (192.168.0.65:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target2-4.18 (192.168.0.64:3260,Standby) | | |
| 4. | clone-lun02-5 (LUN 1) | Local | 110 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Standby) | | |
| 5. | demolun2 (LUN 1) | Local | 210 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target-demo.13 (192.168.0.65:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target-demo.14 (192.168.0.64:3260,Standby) | | |
| 6. | lun-test-01 (LUN 0) | Local | 10 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target-test-01.11 (192.168.0.65:3260,Active) | 1 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target-test-01.12 (192.168.0.67:3260,Standby) | | |
| 7. | lun001 (LUN 1) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 8. | lun01 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target001.8 (192.168.0.67:3260,Active) | 1 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target001.7 (192.168.0.65:3260,Standby) | | |
| 9. | lun01a (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 3 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 10. | lun01a-clone (LUN 8) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 11. | lun01clon (LUN 7) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 12. | lun01a-C1 (LUN 12) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | |
| 13. | lun01a-C2 (LUN 13) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | |
| 14. | lun01a-clone2 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target001.7 (192.168.0.65:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target001.8 (192.168.0.67:3260,Standby) | | |
| 15. | lun01a20250304 (LUN 11) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 16. | lun002 (LUN 2) | Local | 200 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 17. | lun02 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active) | 4 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby) | | |
| 18. | lun003 (LUN 3) | Local | 300 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 19. | lun03 (LUN 1) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Active) | 1 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Standby) | | |
| 20. | lun004 (LUN 4) | Local | 400 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 21. | lun04a (LUN 0) | Cache | 220 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target04.15 (192.168.0.65:3260,Active) | 0 | |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target04.16 (192.168.0.64:3260,Standby) | | |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+
集群版:查询所有克隆卷。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls --clone
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+----------------------------------------------------------------------+------------------+----------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replica Number | Status | Target | Snapshot Numbers | Is Clone |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+----------------------------------------------------------------------+------------------+----------+
| 1. | clone-lun02-3 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active) | 1 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby) | | |
| 2. | clone-lun02-5 (LUN 1) | Local | 110 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Standby) | | |
| 3. | lun01a-clone (LUN 8) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 4. | lun01clon (LUN 7) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
| 5. | lun01a-C1 (LUN 12) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | |
| 6. | lun01a-C2 (LUN 13) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | |
| 7. | lun01a-clone2 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target001.7 (192.168.0.65:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target001.8 (192.168.0.67:3260,Standby) | | |
| 8. | lun01a20250304 (LUN 11) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+----------------------------------------------------------------------+------------------+----------+
集群版:查询所有卷的标识符信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls --wwid
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+-------------------+
| No. | LUN Name | Storage Mode | Capacity | Local Storage Class | Minimum Replica Number | Status | Target | Snapshot Numbers | Is Clone | WWID |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+-------------------+
| 1. | clone-lun02-2 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 1 | | 33fffffffb26e7cbf |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Standby) | | | |
| 2. | clone-lun02-3 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active) | 1 | clone | 3300000000ba19dfa |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby) | | | |
| 3. | clone-lun02-4 (LUN 0) | Local | 101 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target2-4.17 (192.168.0.65:3260,Active) | 0 | | 33fffffff9eb8f604 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target2-4.18 (192.168.0.64:3260,Standby) | | | |
| 4. | clone-lun02-5 (LUN 1) | Local | 110 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target02.3 (192.168.0.65:3260,Active) | 0 | clone | 330000000209228f9 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target02.4 (192.168.0.64:3260,Standby) | | | |
| 5. | demolun2 (LUN 1) | Local | 210 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target-demo.13 (192.168.0.65:3260,Active) | 0 | | 3300000004783f5f6 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target-demo.14 (192.168.0.64:3260,Standby) | | | |
| 6. | lun-test-01 (LUN 0) | Local | 10 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target-test-01.11 (192.168.0.65:3260,Active) | 1 | | 33fffffffb3889df2 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target-test-01.12 (192.168.0.67:3260,Standby) | | | |
| 7. | lun001 (LUN 1) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | | 3300000001e4b5b12 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 8. | lun01 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target001.8 (192.168.0.67:3260,Active) | 1 | | 330000000027c945e |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target001.7 (192.168.0.65:3260,Standby) | | | |
| 9. | lun01a (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 3 | | 3300000004ef4da0e |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 10. | lun01a-clone (LUN 8) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone | 3300000002640b808 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 11. | lun01clon (LUN 7) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone | 33fffffff88863547 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 12. | lun01a-C1 (LUN 12) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone | 3300000001159f9d7 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | |
| 13. | lun01a-C2 (LUN 13) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Active) | 0 | clone | 33000000067fb4033 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Standby) | | | |
| 14. | lun01a-clone2 (LUN 2) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target001.7 (192.168.0.65:3260,Active) | 0 | clone | 3300000000429bf04 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target001.8 (192.168.0.67:3260,Standby) | | | |
| 15. | lun01a20250304 (LUN 11) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | clone | 33fffffffcffa0b61 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 16. | lun002 (LUN 2) | Local | 200 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | | 3300000001088ec52 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 17. | lun02 (LUN 0) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active) | 4 | | 33fffffffc4dd6c0a |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby) | | | |
| 18. | lun003 (LUN 3) | Local | 300 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | | 33fffffffbf2e0cc3 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 19. | lun03 (LUN 1) | Local | 100 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Active) | 1 | | 33ffffffff37f2af4 |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Standby) | | | |
| 20. | lun004 (LUN 4) | Local | 400 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active) | 0 | | 3300000005f44a82e |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby) | | | |
| 21. | lun04a (LUN 0) | Cache | 220 GiB | EC 2+1+16KiB | 2 | Normal | iqn.2012-08.cn.ctyunapi.oos:target04.15 (192.168.0.65:3260,Active) | 0 | | 33ffffffff4f9099b |
| | | | | | | | iqn.2012-08.cn.ctyunapi.oos:target04.16 (192.168.0.64:3260,Standby) | | | |
+-----+-------------------------+--------------+----------+---------------------+------------------------+--------+---------------------------------------------------------------------------+------------------+----------+-------------------+
项目 | 描述 |
---|---|
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)。 |
Snapshot Numbers | 卷的快照个数。 |
Is Clone | 该卷是否为克隆卷:
|
WWID | 卷的唯一标识符。 如果客户端连接卷的时候,HBlock端有多个卷,可以通过WWID标识符来确认所要连接的卷。 |
示例2
单机版本地卷:查询卷luna1(非克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.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)
Create Time: 2025-02-27 16:48:31
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 33000000032b51acf
UUID: lun-uuid-2ffdaa5e-da3e-400f-84fd-7bd46ed34fb1
Path: /mnt/stor01
Snapshot Numbers: 4
单机版本地卷:查询卷luna1-C1(克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n ./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.4 (192.168.0.66:3260,Active)
Create Time: 2025-03-10 11:55:32
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 33000000066d85e04
UUID: lun-uuid-4beffea2-05a1-4ba9-8e21-06337a1e57e5
Path: /mnt/stor01
Source Snapshot: luna1-snapshot
Source LUN: luna1
Snapshot Numbers: 1
单机版上云卷:查询卷lunb1的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n lunb1
LUN Name: lunb1 (LUN 0)
Storage Mode: Cache
Capacity: 200 GiB
Status: Normal
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:targetb.2 (192.168.0.66:3260,Active)
Create Time: 2025-02-27 18:04:14
Local Sector Size: 4096 bytes
Write Policy: WriteBack
WWID: 33fffffff9449437a
UUID: lun-uuid-fc9a2f2c-c8bd-462b-8684-49e6e1650b1c
Path: /mnt/stor01
Object Storage Info:
+-------------------+----------------------------+
| Provider | OOS |
| Bucket Name | hblocktest3 |
| Prefix | lunb |
| Endpoint | https://oos-cn.ctyunapi.cn |
| Signature Version | v4 |
| Region | cn |
| Storage Class | STANDARD |
| Access Key | 8f129a5529f202811fd0 |
| Object Size | 1024 KiB |
| Compression | Enabled |
+-------------------+----------------------------+
集群版本地卷:查询卷lun002(非克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n lun002
LUN Name: lun002 (LUN 2)
Storage Mode: Local
Capacity: 200 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target01.2 (192.168.0.64:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target01.1 (192.168.0.67:3260,Standby)
Create Time: 2025-02-19 17:07:55
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: 3300000001088ec52
UUID: lun-uuid-62d68861-57c9-49c6-980e-6b67b2f053d2
Snapshot Numbers: 0
集群版本地卷:查询卷clone-lun02-3(克隆卷)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n -n clone-lun02-3
LUN Name: clone-lun02-3 (LUN 2)
Storage Mode: Local
Capacity: 100 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby)
Create Time: 2025-03-06 12:02:30
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: 3300000000ba19dfa
UUID: lun-uuid-c4f1e777-1c8a-49d1-b794-e17edcf7c3ef
Source Snapshot: snapshot-lun02-3
Source LUN: lun02
Snapshot Numbers: 1
集群版上云卷:查询卷lun04a的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n lun04a
LUN Name: lun04a (LUN 0)
Storage Mode: Cache
Capacity: 220 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target04.15 (192.168.0.65:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target04.16 (192.168.0.64:3260,Standby)
Create Time: 2025-02-28 10:04:17
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: 33ffffffff4f9099b
UUID: lun-uuid-194c91ec-1dd5-4d12-94ce-7bab1a898362
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 |
+-------------------+----------------------------+
集群版上云卷:查询卷lun04a(还原失败)的信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.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 | 卷的状态:
|
Failed Reason | 失败原因:卷还原失败的原因(卷状态为RecoverFailed时显示),或者卷删除失败的原因(卷状态为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 | 存储卷数据的数据目录(仅单机版支持)。 |
Source Snapshot | 克隆卷关联的快照(仅克隆卷支持)。 |
Source LUN | 克隆卷的源卷名称(仅克隆卷支持)。 |
Snapshot Numbers | 卷的快照个数(仅本地卷支持)。 |
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
本地卷:查询卷lun02的快照信息,快照以树形展示。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n lun02 -s tree
LUN Name: lun02 (LUN 0)
Storage Mode: Local
Capacity: 100 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby)
Create Time: 2025-02-21 17:03:16
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: 33fffffffc4dd6c0a
UUID: lun-uuid-996d444f-d824-49c6-abbd-e31863bfd90f
Snapshot Numbers: 4
Snapshots:
snapshot-lun02-1
└── snapshot-lun02-3
├── lun02-snap20250326164436 (*)
└── lun02-snap-4
本地卷:查询卷lun02的快照信息,展示快照的详细信息。
[root@hblockserver CTYUN_HBlock_Plus_3.9.0_x64]# ./stor lun ls -n lun02 -s list
LUN Name: lun02 (LUN 0)
Storage Mode: Local
Capacity: 100 GiB
Status: Normal
Auto Failback: Enabled
iSCSI Target: iqn.2012-08.cn.ctyunapi.oos:target002.9 (192.168.0.65:3260,Active)
iqn.2012-08.cn.ctyunapi.oos:target002.10 (192.168.0.64:3260,Standby)
Create Time: 2025-02-21 17:03:16
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: 33fffffffc4dd6c0a
UUID: lun-uuid-996d444f-d824-49c6-abbd-e31863bfd90f
Snapshot Numbers: 4
Snapshots:
+-----+------------------------------+---------------------------+--------------+----------------+--------+---------------------+
| No. | Name | Consistency Snapshot Name | LUN Capacity | Reclaim Policy | Status | Create Time |
+-----+------------------------------+---------------------------+--------------+----------------+--------+---------------------+
| 1. | snapshot-lun02-1 | - | 100 GiB | Retain | Normal | 2025-03-04 15:18:10 |
| 2. | snapshot-lun02-3 | - | 100 GiB | Retain | Normal | 2025-03-04 15:18:35 |
| 3. | lun02-snap20250326164436 (*) | consistencysnapshot8 | 100 GiB | Retain | Normal | 2025-03-26 16:44:36 |
| 4. | lun02-snap-4 | - | 100 GiB | Retain | Normal | 2025-03-10 16:03:27 |
+-----+------------------------------+---------------------------+--------------+----------------+--------+---------------------+
查询指定卷的快照信息
项目 | 描述 |
---|---|
LUN Name | 包括卷名称和卷编号。括号内容表示卷编号。卷编号:LUN在Target下的编号,由存储系统分配,对应客户端挂载存储设备时设备地址中的LUN ID。如果Target下只有一个LUN,LUN的编号一般为0。 |
Storage Mode | 卷的存储类型:
|
Capacity | 卷容量。 |
Status | 卷的状态:
|
Failed Reason | 失败原因:卷还原失败的原因(卷状态为RecoverFailed时显示),或者卷删除失败的原因(卷状态为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 | 存储卷数据的数据目录(仅单机版支持)。 |
Source Snapshot | 克隆卷关联的快照(仅克隆卷支持)。 |
Source LUN | 克隆卷的源卷名称(仅克隆卷支持)。 |
Snapshot Numbers | 卷的快照个数(仅本地卷支持)。 |
Snapshots | 卷快照信息。 |
快照以详细信息展示,包括下列信息:
| |
快照以树形展示,仅包含快照名称,“*”表示当前的读写是以此快照为基础。 |