BlockDev.LVMLVdata¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
attr |
r/w |
attributes of the LV |
|
copy_percent |
r/w |
synchronization percentage of a mirrored logical volume |
|
data_lv |
r/w |
data LV of the LV (for thin and cache pools) |
|
data_lvs |
[ |
r/w |
list of data sub-LVs this LV (for raids, etc). |
data_percent |
r/w |
available data space in a thin pool |
|
lv_name |
r/w |
name of the LV |
|
lv_tags |
[ |
r/w |
list of LVM tags for this LV |
metadata_lv |
r/w |
metadata LV of the LV (for thin and cache pools) |
|
metadata_lvs |
[ |
r/w |
list of metadata sub-LVS for this LV (for raids, etc). |
metadata_percent |
r/w |
available metadata space in a thin pool |
|
move_pv |
r/w |
source physical volume of a temporary logical volume created with the pvmove command |
|
origin |
r/w |
origin of the LV (for snapshots, etc.) |
|
pool_lv |
r/w |
pool LV of the LV (for thin and cached LVs) |
|
roles |
r/w |
comma separated list of this LV’s roles |
|
segs |
r/w |
The segments of this LV. |
|
segtype |
r/w |
segment type of the LV |
|
size |
r/w |
size of the LV |
|
uuid |
r/w |
UUID of the LV |
|
vg_name |
r/w |
name of the VG the LV belongs to |
Methods¶
None
Details¶
- class BlockDev.LVMLVdata¶
The segs, data_lvs, and metadata_lvs fields are only filled by a call to
BlockDev.lvm_lvinfo_tree
orBlockDev.lvm_lvs_tree
. They are allNone
normally. If they are filled, they follow these rules:A LV is either stored directly on physical volumes, or is made up of sub-LVs. If it is stored on PVs, the segs list is non-empty and the data_lvs and metadata_lvs fields are both
None
. If it is made up of sub-LVs, then segs isNone
, data_lvs is non-empty and metadata_lvs might or might not be empty but is non-None
. The sub-LVs contained in data_lv and metadata_lv are always included in data_lvs and metadata_lvs, respectively.For a partial LV, the segs list might not be complete; i.e., the sum of the sizes of the listed segments might not be equal to the size reported for the LV itself.
Also, the order of entries in segs must be assumed to be random; it does not correspond to the order of segments in the logical volume itself.