View the LExtents and PExtents of the volume, as well as the replication factor of PExtents on each chunk.
Procedure
Run the following command on any node in the cluster to view the extent information about a volume with the specified name:
zbs-meta volume show <pool_name> <volume_name> [--show_lextents] [--show_pextents] [--show_replica_distribution]
Run the following command on any node in the cluster to view the extent information about a volume with the specified ID:
zbs-meta volume show_by_id <volume_id> [--show_lextents] [--show_pextents] [--show_replica_distribution]
| Parameter | Description |
|---|---|
--show_lextents | Optional. Specifies whether to display the LExtent information about the volume. |
--show_pextents | Optional. Specifies whether to display the PExtent information about the volume. |
--show_replica_distribution | Optional. Specifies whether to display the replication factor of the PExtents of this volume on each chunk. |
Output example
----------------- ------------------------------------
ID 83f70467-3b24-4495-bc83-f542238ad7d7
Name 83f70467-3b24-4495-bc83-f542238ad7d7
Parent ID d821c3d7-0dfa-4cbb-b946-cecb46815115
Size 1024.00 GiB
Perf Unique Size 5.50 MiB
Perf Shared Size 0.00 B
Cap Unique Size 719.11 GiB
Cap Shared Size 0.00 B
Logical Used Size 359.55 GiB
Creation Time 2024-06-05 17:22:28.397537266
Status VOLUME_ONLINE
Resiliency Type RT_REPLICA
Replica Num 2
EC Param
Thin Provision True
Read Only False
Description
Alloc Even False
Clone count 0
Iops 0
Iops Read 0
Iops Write 0
Bps 0
Bps Read 0
Bps Write 0
Stripe Num 4
Stripe Size 262144
Prefer CID 0
Access Points []
Is Prioritized False
Downgraded PRS 0.00 B
----------------- ------------------------------------LExtent ID Epoch Ever Exist Perf PID Perf Epoch Cap ID Cap Epoch Lease Owner Is Prioritized
------------ -------- ------------ ---------- ------------ -------- ----------- ------------- ----------------
3080352 14149839 True 3393731 45495047 5023870 42086915 4 False
3080353 14149840 True 0 0 5023871 42086916 4 False
3080354 14149841 True 0 0 5023872 42086917 0 False
3080355 14149842 True 0 0 5023873 42086918 0 False ID Replica Alive Replica Temporary Replica Ever Exist Is Garbage Origin PExtent Origin Epoch Expected Replica num Epoch Prefer Local Lease Owner Allocated Space Is Sinkable PExtent Type
------- --------- --------------- ------------------- ------------ ------------ ---------------- -------------- ---------------------- -------- -------------- ------------- ----------------- ------------- --------------
3393731 [3, 2] [3, 2] [] True False 0 0 2 45495047 0 4 1024.00 KiB True PT_PERF
5023870 [1, 4] [1, 4] [] True False 0 0 2 42086915 1 4 2.00 MiB PT_CAP
5023871 [1, 4] [1, 4] [] True False 0 0 2 42086916 1 4 2.00 MiB PT_CAP
5023872 [1, 4] [1, 4] [] True False 0 0 2 42086917 1 0 0.00 B PT_CAP
5023873 [1, 4] [1, 4] [] True False 0 0 2 42086918 1 0 512.00 KiB PT_CAPPT_PERF DISTRIBUTION
chunk_id total_replica_count alive_replica_count prefer_local_count lease_owner_count
---------- --------------------- --------------------- -------------------- -------------------
1 468 214 469 119
2 5 5 0 0
3 22 5 0 7
4 2 2 0 0
5 0 0 0 5
6 449 210 0 3
7 461 209 0 2
PT_PERF no prefer local count: 731
PT_PERF no lease owner count: 1064
PT_CAP DISTRIBUTION
chunk_id total_replica_count alive_replica_count prefer_local_count lease_owner_count
---------- --------------------- --------------------- -------------------- -------------------
1 1189 1189 1200 191
2 1193 1193 0 0
3 1200 1200 0 173
4 579 579 0 0
5 1099 1099 0 157
6 1004 1004 0 152
7 936 936 0 188
PT_CAP no prefer local count: 0
PT_CAP no lease owner count: 339In Chunk Sizes
chunk_id perf unique size perf shared size cap unique size cap shared size
---------- ------------------ ------------------ ----------------- -----------------
1 0.00 B 0.00 B 0.00 B 0.00 B
2 0.00 B 0.00 B 0.00 B 0.00 B
3 0.00 B 0.00 B 0.00 B 0.00 B
4 0.00 B 0.00 B 0.00 B 0.00 B
5 0.00 B 0.00 B 0.00 B 0.00 B
6 0.00 B 0.00 B 0.00 B 0.00 B
7 0.00 B 0.00 B 0.00 B 0.00 B