Logical Volume Management Fields: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


* [[Vgs#-o|vgs]]
* [[Vgs#-o|vgs]]
* [[Lvs#-o|lvs]]
* [[Pvs#-o|pvs]]


=Logical Volume Fields=
=Logical Volume Fields=


* '''lv_all''' - All fields in this section.
* '''lv_uuid''' - Unique identifier.
* '''lv_name''' - Name.  LVs created for internal use are enclosed in brackets.
* '''lv_full_name''' - Full name of LV including its VG, namely VG/LV.
* '''lv_path''' - Full pathname for LV. Blank for internal LVs.
* '''lv_dm_path''' - Internal device-mapper pathname for LV (in /dev/mapper directory).
* '''lv_parent''' - For LVs that are components of another LV, the parent LV.


  ---------------------
=Logical Volume Device Info and Status Combined Fields=
    lv_all                - All fields in this section.
    lv_uuid                - Unique identifier.
    lv_name                - Name.  LVs created for internal use are enclosed in brackets.
    lv_full_name          - Full name of LV including its VG, namely VG/LV.
    lv_path                - Full pathname for LV. Blank for internal LVs.
    lv_dm_path            - Internal device-mapper pathname for LV (in /dev/mapper directory).
    lv_parent              - For LVs that are components of another LV, the parent LV.


  Logical Volume Device Info and Status Combined Fields
* '''lv_all''' - All fields in this section.
  -----------------------------------------------------
* '''lv_attr''' - Various attributessee man page.
    lv_all                 - All fields in this section.
    lv_attr               - Various attributes - see man page.


  Logical Volume Fields
=Logical Volume Fields=
  ---------------------
 
    lv_all                 - All fields in this section.
* '''lv_all''' - All fields in this section.
    lv_layout             - LV layout.
* '''lv_layout''' - LV layout.
    lv_role               - LV role.
* '''lv_role''' - LV role.
    lv_initial_image_sync - Set if mirror/RAID images underwent initial resynchronization.
* '''lv_initial_image_sync''' - Set if mirror/RAID images underwent initial resynchronization.
    lv_image_synced       - Set if mirror/RAID image is synchronized.
* '''lv_image_synced''' - Set if mirror/RAID image is synchronized.
    lv_merging             - Set if snapshot LV is being merged to origin.
* '''lv_merging''' - Set if snapshot LV is being merged to origin.
    lv_converting         - Set if LV is being converted.
* '''lv_converting''' - Set if LV is being converted.
    lv_allocation_policy   - LV allocation policy.
* '''lv_allocation_policy''' - LV allocation policy.
    lv_allocation_locked   - Set if LV is locked against allocation changes.
* '''lv_allocation_locked''' - Set if LV is locked against allocation changes.
    lv_fixed_minor         - Set if LV has fixed minor number assigned.
* '''lv_fixed_minor''' - Set if LV has fixed minor number assigned.
    lv_merge_failed       - Set if snapshot merge failed.
* '''lv_merge_failed''' - Set if snapshot merge failed.
    lv_snapshot_invalid   - Set if snapshot LV is invalid.
* '''lv_snapshot_invalid''' - Set if snapshot LV is invalid.
    lv_skip_activation     - Set if LV is skipped on activation.
* '''lv_skip_activation''' - Set if LV is skipped on activation.
    lv_when_full           - For thin pools, behavior when full.
* '''lv_when_full''' - For thin pools, behavior when full.
    lv_active             - Active state of the LV.
* '''lv_active''' - Active state of the LV.
    lv_active_locally     - Set if the LV is active locally.
* '''lv_active_locally''' - Set if the LV is active locally.
    lv_active_remotely     - Set if the LV is active remotely.
* '''lv_active_remotely''' - Set if the LV is active remotely.
    lv_active_exclusively - Set if the LV is active exclusively.
* '''lv_active_exclusively''' - Set if the LV is active exclusively.
    lv_major               - Persistent major number or -1 if not persistent.
* '''lv_major''' - Persistent major number or -1 if not persistent.
    lv_minor               - Persistent minor number or -1 if not persistent.
* '''lv_minor''' - Persistent minor number or -1 if not persistent.
    lv_read_ahead         - Read ahead setting in current units.
* '''lv_read_ahead''' - Read ahead setting in current units.
    lv_size               - Size of LV in current units.
* '''lv_size''' - Size of LV in current units.
    lv_metadata_size       - For thin and cache pools, the size of the LV that holds the metadata.
* '''lv_metadata_size''' - For thin and cache pools, the size of the LV that holds the metadata.
    seg_count             - Number of segments in LV.
* '''seg_count''' - Number of segments in LV.
    origin                 - For snapshots and thins, the origin device of this LV.
* '''origin''' - For snapshots and thins, the origin device of this LV.
    origin_uuid           - For snapshots and thins, the UUID of origin device of this LV.
* '''origin_uuid''' - For snapshots and thins, the UUID of origin device of this LV.
    origin_size           - For snapshots, the size of the origin device of this LV.
* '''origin_size''' - For snapshots, the size of the origin device of this LV.
    lv_ancestors           - LV ancestors ignoring any stored history of the ancestry chain.
* '''lv_ancestors''' - LV ancestors ignoring any stored history of the ancestry chain.
    lv_full_ancestors     - LV ancestors including stored history of the ancestry chain.
* '''lv_full_ancestors''' - LV ancestors including stored history of the ancestry chain.
    lv_descendants         - LV descendants ignoring any stored history of the ancestry chain.
* '''lv_descendants''' - LV descendants ignoring any stored history of the ancestry chain.
    lv_full_descendants   - LV descendants including stored history of the ancestry chain.
* '''lv_full_descendants''' - LV descendants including stored history of the ancestry chain.
 
=Logical Volume Device Status Fields=
 
* '''lv_all''' - All fields in this section.
* '''data_percent''' - For snapshot, cache and thin pools and volumes, the percentage full if LV is active.
* '''snap_percent''' - For snapshots, the percentage full if LV is active.
* '''metadata_percent''' - For cache and thin pools, the percentage of metadata full if LV is active.
* '''copy_percent''' - For Cache, RAID, mirrors and pvmove, current percentage in-sync.
* '''sync_percent''' - For Cache, RAID, mirrors and pvmove, current percentage in-sync.
 
=Logical Volume Fields=
 
* '''lv_all''' - All fields in this section.
* '''raid_mismatch_count''' - For RAID, number of mismatches found or repaired.
* '''raid_sync_action''' - For RAID, the current synchronization action being performed.
* '''raid_write_behind''' - For RAID1, the number of outstanding writes allowed to writemostly devices.
* '''raid_min_recovery_rate''' - For RAID1, the minimum recovery I/O load in kiB/sec/disk.
* '''raid_max_recovery_rate''' - For RAID1, the maximum recovery I/O load in kiB/sec/disk.
* '''move_pv''' - For pvmove, Source PV of temporary LV created by pvmove.
* '''move_pv_uuid''' - For pvmove, the UUID of Source PV of temporary LV created by pvmove.
* '''convert_lv''' - For lvconvert, Name of temporary LV created by lvconvert.
* '''convert_lv_uuid''' - For lvconvert, UUID of temporary LV created by lvconvert.
* '''mirror_log''' - For mirrors, the LV holding the synchronisation log.
* '''mirror_log_uuid''' - For mirrors, the UUID of the LV holding the synchronisation log.
* '''data_lv''' - For thin and cache pools, the LV holding the associated data.
* '''data_lv_uuid''' - For thin and cache pools, the UUID of the LV holding the associated data.
* '''metadata_lv''' - For thin and cache pools, the LV holding the associated metadata.
* '''metadata_lv_uuid''' - For thin and cache pools, the UUID of the LV holding the associated metadata.
* '''pool_lv''' - For thin volumes, the thin pool LV for this volume.
* '''pool_lv_uuid''' - For thin volumes, the UUID of the thin pool LV for this volume.
* '''lv_tags''' - Tags, if any.
* '''lv_profile''' - Configuration profile attached to this LV.
* '''lv_lockargs''' - Lock args of the LV used by lvmlockd.
* '''lv_time''' - Creation time of the LV, if known
* '''lv_time_removed''' - Removal time of the LV, if known
* '''lv_host''' - Creation host of the LV, if known.
* '''lv_modules''' - Kernel device-mapper modules required for this LV.
* '''lv_historical''' - Set if the LV is historical.
 
=Logical Volume Device Info Fields=
 
* '''lv_all''' - All fields in this section.
* '''lv_kernel_major''' - Currently assigned major number or -1 if LV is not active.
* '''lv_kernel_minor''' - Currently assigned minor number or -1 if LV is not active.
* '''lv_kernel_read_ahead''' - Currently-in-use read ahead setting in current units.
* '''lv_permissions''' - LV permissions.
* '''lv_suspended''' - Set if LV is suspended.
* '''lv_live_table''' - Set if LV has live table present.
* '''lv_inactive_table''' - Set if LV has inactive table present.
* '''lv_device_open''' - Set if LV device is open.
 
=Logical Volume Device Status Fields=
 
* '''lv_all''' - All fields in this section.
* '''cache_total_blocks''' - Total cache blocks.
* '''cache_used_blocks''' - Used cache blocks.
* '''cache_dirty_blocks''' - Dirty cache blocks.
* '''cache_read_hits''' - Cache read hits.
* '''cache_read_misses''' - Cache read misses.
* '''cache_write_hits''' - Cache write hits.
* '''cache_write_misses''' - Cache write misses.
* '''kernel_cache_settings''' - Cache settings/parameters as set in kernel, including default values (cached segments only).
* '''kernel_cache_policy''' - Cache policy used in kernel.
* '''lv_health_status''' - LV health status.
* '''kernel_discards''' - For thin pools, how discards are handled in kernel.
* '''lv_check_needed''' - For thin pools and cache volumes, whether metadata check is needed.
 
=Physical Volume Label Fields=
 
* '''pv_all''' - All fields in this section.
* '''pv_fmt''' - Type of metadata.
* '''pv_uuid''' - Unique identifier.
* '''dev_size''' - Size of underlying device in current units.
* '''pv_name''' - Name.
* '''pv_major''' - Device major number.
* '''pv_minor''' - Device minor number.
* '''pv_mda_free''' - Free metadata area space on this device in current units.
* '''pv_mda_size''' - Size of smallest metadata area on this device in current units.
* '''pv_ext_vsn''' - PV header extension version.


  Logical Volume Device Status Fields
=Physical Volume Fields=
  -----------------------------------
    lv_all                - All fields in this section.
    data_percent          - For snapshot, cache and thin pools and volumes, the percentage full if LV is active.
    snap_percent          - For snapshots, the percentage full if LV is active.
    metadata_percent      - For cache and thin pools, the percentage of metadata full if LV is active.
    copy_percent          - For Cache, RAID, mirrors and pvmove, current percentage in-sync.
    sync_percent          - For Cache, RAID, mirrors and pvmove, current percentage in-sync.


  Logical Volume Fields
* '''pv_all''' - All fields in this section.
  ---------------------
* '''pe_start''' - Offset to the start of data on the underlying device.
    lv_all                - All fields in this section.
* '''pv_size''' - Size of PV in current units.
    raid_mismatch_count    - For RAID, number of mismatches found or repaired.
* '''pv_free''' - Total amount of unallocated space in current units.
    raid_sync_action      - For RAID, the current synchronization action being performed.
* '''pv_used''' - Total amount of allocated space in current units.
    raid_write_behind      - For RAID1, the number of outstanding writes allowed to writemostly devices.
* '''pv_attr''' - Various attributes, see man page.
    raid_min_recovery_rate - For RAID1, the minimum recovery I/O load in kiB/sec/disk.
* '''pv_allocatable''' - Set if this device can be used for allocation.
    raid_max_recovery_rate - For RAID1, the maximum recovery I/O load in kiB/sec/disk.
* '''pv_exported''' - Set if this device is exported.
    move_pv                - For pvmove, Source PV of temporary LV created by pvmove.
* '''pv_missing''' - Set if this device is missing in system.
    move_pv_uuid          - For pvmove, the UUID of Source PV of temporary LV created by pvmove.
* '''pv_pe_count''' - Total number of Physical Extents.
    convert_lv            - For lvconvert, Name of temporary LV created by lvconvert.
* '''pv_pe_alloc_count''' - Total number of allocated Physical Extents.
    convert_lv_uuid        - For lvconvert, UUID of temporary LV created by lvconvert.
* '''pv_tags''' - Tags, if any.
    mirror_log            - For mirrors, the LV holding the synchronisation log.
* '''pv_mda_count''' - Number of metadata areas on this device.
    mirror_log_uuid        - For mirrors, the UUID of the LV holding the synchronisation log.
* '''pv_mda_used_count''' - Number of metadata areas in use on this device.
    data_lv                - For thin and cache pools, the LV holding the associated data.
* '''pv_ba_start''' - Offset to the start of PV Bootloader Area on the underlying device in current units.
    data_lv_uuid          - For thin and cache pools, the UUID of the LV holding the associated data.
* '''pv_ba_size''' - Size of PV Bootloader Area in current units.
    metadata_lv            - For thin and cache pools, the LV holding the associated metadata.
* '''pv_in_use''' - Set if PV is used.
    metadata_lv_uuid      - For thin and cache pools, the UUID of the LV holding the associated metadata.
* '''pv_duplicate''' - Set if PV is an unchosen duplicate.
    pool_lv                - For thin volumes, the thin pool LV for this volume.
    pool_lv_uuid          - For thin volumes, the UUID of the thin pool LV for this volume.
    lv_tags                - Tags, if any.
    lv_profile            - Configuration profile attached to this LV.
    lv_lockargs            - Lock args of the LV used by lvmlockd.
    lv_time                - Creation time of the LV, if known
    lv_time_removed        - Removal time of the LV, if known
    lv_host                - Creation host of the LV, if known.
    lv_modules            - Kernel device-mapper modules required for this LV.
    lv_historical          - Set if the LV is historical.


  Logical Volume Device Info Fields
=Volume Group Fields=
  ---------------------------------
    lv_all                - All fields in this section.
    lv_kernel_major        - Currently assigned major number or -1 if LV is not active.
    lv_kernel_minor        - Currently assigned minor number or -1 if LV is not active.
    lv_kernel_read_ahead  - Currently-in-use read ahead setting in current units.
    lv_permissions        - LV permissions.
    lv_suspended          - Set if LV is suspended.
    lv_live_table          - Set if LV has live table present.
    lv_inactive_table      - Set if LV has inactive table present.
    lv_device_open        - Set if LV device is open.


  Logical Volume Device Status Fields
* '''vg_all''' - All fields in this section.
  -----------------------------------
* '''vg_fmt''' - Type of metadata.
    lv_all                - All fields in this section.
* '''vg_uuid''' - Unique identifier.
    cache_total_blocks    - Total cache blocks.
* '''vg_name''' - Name.
    cache_used_blocks      - Used cache blocks.
* '''vg_attr''' - Various attributes, see man page.
    cache_dirty_blocks    - Dirty cache blocks.
* '''vg_permissions''' - VG permissions.
    cache_read_hits        - Cache read hits.
* '''vg_extendable''' - Set if VG is extendable.
    cache_read_misses      - Cache read misses.
* '''vg_exported''' - Set if VG is exported.
    cache_write_hits      - Cache write hits.
* '''vg_partial''' - Set if VG is partial.
    cache_write_misses    - Cache write misses.
* '''vg_allocation_policy''' - VG allocation policy.
    kernel_cache_settings  - Cache settings/parameters as set in kernel, including default values (cached segments only).
* '''vg_clustered''' - Set if VG is clustered.
    kernel_cache_policy    - Cache policy used in kernel.
* '''vg_size''' - Total size of VG in current units.
    lv_health_status      - LV health status.
* '''vg_free''' - Total amount of free space in current units.
    kernel_discards        - For thin pools, how discards are handled in kernel.
* '''vg_sysid''' - System ID of the VG indicating which host owns it.
    lv_check_needed        - For thin pools and cache volumes, whether metadata check is needed.
* '''vg_systemid''' - System ID of the VG indicating which host owns it.
* '''vg_lock_type''' - Lock type of the VG used by lvmlockd.
* '''vg_lock_args''' - Lock args of the VG used by lvmlockd.
* '''vg_extent_size''' - Size of Physical Extents in current units.
* '''vg_extent_count''' - Total number of Physical Extents.
* '''vg_free_count''' - Total number of unallocated Physical Extents.
* '''max_lv''' - Maximum number of LVs allowed in VG or 0 if unlimited.
* '''max_pv''' - Maximum number of PVs allowed in VG or 0 if unlimited.
* '''pv_count''' - Number of PVs in VG.
* '''vg_missing_pv_count''' - Number of PVs in VG which are missing.
* '''lv_count''' - Number of LVs.
* '''snap_count''' - Number of snapshots.
* '''vg_seqno''' - Revision number of internal metadata.  Incremented whenever it changes.
* '''vg_tags''' - Tags, if any.
* '''vg_profile''' - Configuration profile attached to this VG.
* '''vg_mda_count''' - Number of metadata areas on this VG.
* '''vg_mda_used_count''' - Number of metadata areas in use on this VG.
* '''vg_mda_free''' - Free metadata area space for this VG in current units.
* '''vg_mda_size''' - Size of smallest metadata area for this VG in current units.
* '''vg_mda_copies''' - Target number of in use metadata areas in the VG.


  Physical Volume Label Fields
=Logical Volume Segment Fields=
  ----------------------------
    pv_all                - All fields in this section.
    pv_fmt                - Type of metadata.
    pv_uuid                - Unique identifier.
    dev_size              - Size of underlying device in current units.
    pv_name                - Name.
    pv_major              - Device major number.
    pv_minor              - Device minor number.
    pv_mda_free            - Free metadata area space on this device in current units.
    pv_mda_size            - Size of smallest metadata area on this device in current units.
    pv_ext_vsn            - PV header extension version.


  Physical Volume Fields
* '''seg_all''' - All fields in this section.
  ----------------------
* '''segtype''' - Type of LV segment.
    pv_all                - All fields in this section.
* '''stripes''' - Number of stripes or mirror legs.
    pe_start              - Offset to the start of data on the underlying device.
* '''stripe_size''' - For stripes, amount of data placed on one device before switching to the next.
    pv_size                - Size of PV in current units.
* '''region_size''' - For mirrors, the unit of data copied when synchronising devices.
    pv_free                - Total amount of unallocated space in current units.
* '''chunk_size''' - For snapshots, the unit of data used when tracking changes.
    pv_used                - Total amount of allocated space in current units.
* '''thin_count''' - For thin pools, the number of thin volumes in this pool.
    pv_attr                - Various attributes - see man page.
* '''discards''' - For thin pools, how discards are handled.
    pv_allocatable        - Set if this device can be used for allocation.
* '''cache_mode''' - For cache pools, how writes are cached.
    pv_exported            - Set if this device is exported.
* '''zero''' - For thin pools and volumes, if zeroing is enabled.
    pv_missing            - Set if this device is missing in system.
* '''transaction_id''' - For thin pools, the transaction id and creation transaction id for thins.
    pv_pe_count            - Total number of Physical Extents.
* '''thin_id''' - For thin volume, the thin device id.
    pv_pe_alloc_count      - Total number of allocated Physical Extents.
* '''seg_start''' - Offset within the LV to the start of the segment in current units.
    pv_tags                - Tags, if any.
* '''seg_start_pe''' - Offset within the LV to the start of the segment in physical extents.
    pv_mda_count          - Number of metadata areas on this device.
* '''seg_size''' - Size of segment in current units.
    pv_mda_used_count      - Number of metadata areas in use on this device.
* '''seg_size_pe''' - Size of segment in physical extents.
    pv_ba_start            - Offset to the start of PV Bootloader Area on the underlying device in current units.
* '''seg_tags''' - Tags, if any.
    pv_ba_size            - Size of PV Bootloader Area in current units.
* '''seg_pe_ranges''' - Ranges of Physical Extents of underlying devices in command line format (deprecated, use seg_le_ranges for common format).
    pv_in_use              - Set if PV is used.
* '''seg_le_ranges''' - Ranges of Logical Extents of underlying devices in command line format.
    pv_duplicate          - Set if PV is an unchosen duplicate.
* '''seg_metadata_le_ranges''' - Ranges of Logical Extents of underlying metadata devices in command line format.
* '''devices''' - Underlying devices used with starting extent numbers.
* '''metadata_devices''' - Underlying metadata devices used with starting extent numbers.
* '''seg_monitor''' - Dmeventd monitoring status of the segment.
* '''cache_policy''' - The cache policy (cached segments only).
* '''cache_settings''' - Cache settings/parameters (cached segments only).


  Volume Group Fields
=Physical Volume Segment Fields=
  -------------------
    vg_all                - All fields in this section.
    vg_fmt                - Type of metadata.
    vg_uuid                - Unique identifier.
    vg_name                - Name.
    vg_attr                - Various attributes - see man page.
    vg_permissions        - VG permissions.
    vg_extendable          - Set if VG is extendable.
    vg_exported            - Set if VG is exported.
    vg_partial            - Set if VG is partial.
    vg_allocation_policy  - VG allocation policy.
    vg_clustered          - Set if VG is clustered.
    vg_size                - Total size of VG in current units.
    vg_free                - Total amount of free space in current units.
    vg_sysid              - System ID of the VG indicating which host owns it.
    vg_systemid            - System ID of the VG indicating which host owns it.
    vg_lock_type          - Lock type of the VG used by lvmlockd.
    vg_lock_args          - Lock args of the VG used by lvmlockd.
    vg_extent_size        - Size of Physical Extents in current units.
    vg_extent_count        - Total number of Physical Extents.
    vg_free_count          - Total number of unallocated Physical Extents.
    max_lv                - Maximum number of LVs allowed in VG or 0 if unlimited.
    max_pv                - Maximum number of PVs allowed in VG or 0 if unlimited.
    pv_count              - Number of PVs in VG.
    vg_missing_pv_count    - Number of PVs in VG which are missing.
    lv_count              - Number of LVs.
    snap_count            - Number of snapshots.
    vg_seqno              - Revision number of internal metadata.  Incremented whenever it changes.
    vg_tags                - Tags, if any.
    vg_profile            - Configuration profile attached to this VG.
    vg_mda_count          - Number of metadata areas on this VG.
    vg_mda_used_count      - Number of metadata areas in use on this VG.
    vg_mda_free            - Free metadata area space for this VG in current units.
    vg_mda_size            - Size of smallest metadata area for this VG in current units.
    vg_mda_copies          - Target number of in use metadata areas in the VG.


  Logical Volume Segment Fields
* '''pvseg_all''' - All fields in this section.
  -----------------------------
* '''pvseg_start''' - Physical Extent number of start of segment.
    seg_all                - All fields in this section.
* '''pvseg_size''' - Number of extents in segment.
    segtype                - Type of LV segment.
    stripes                - Number of stripes or mirror legs.
    stripe_size            - For stripes, amount of data placed on one device before switching to the next.
    region_size            - For mirrors, the unit of data copied when synchronising devices.
    chunk_size            - For snapshots, the unit of data used when tracking changes.
    thin_count            - For thin pools, the number of thin volumes in this pool.
    discards              - For thin pools, how discards are handled.
    cache_mode            - For cache pools, how writes are cached.
    zero                  - For thin pools and volumes, if zeroing is enabled.
    transaction_id        - For thin pools, the transaction id and creation transaction id for thins.
    thin_id                - For thin volume, the thin device id.
    seg_start              - Offset within the LV to the start of the segment in current units.
    seg_start_pe          - Offset within the LV to the start of the segment in physical extents.
    seg_size              - Size of segment in current units.
    seg_size_pe            - Size of segment in physical extents.
    seg_tags              - Tags, if any.
    seg_pe_ranges          - Ranges of Physical Extents of underlying devices in command line format (deprecated, use seg_le_ranges for common format).
    seg_le_ranges          - Ranges of Logical Extents of underlying devices in command line format.
    seg_metadata_le_ranges - Ranges of Logical Extents of underlying metadata devices in command line format.
    devices                - Underlying devices used with starting extent numbers.
    metadata_devices      - Underlying metadata devices used with starting extent numbers.
    seg_monitor            - Dmeventd monitoring status of the segment.
    cache_policy          - The cache policy (cached segments only).
    cache_settings        - Cache settings/parameters (cached segments only).


  Physical Volume Segment Fields
=Special Fields=
  ------------------------------
    pvseg_all              - All fields in this section.
    pvseg_start            - Physical Extent number of start of segment.
    pvseg_size            - Number of extents in segment.


  Special Fields
* '''selected''' - Set if item passes selection criteria.
  --------------
    selected               - Set if item passes selection criteria.
    help                  - Show help.
    ?                      - Show help.

Latest revision as of 04:45, 23 May 2017

Internal

Logical Volume Fields

  • lv_all - All fields in this section.
  • lv_uuid - Unique identifier.
  • lv_name - Name. LVs created for internal use are enclosed in brackets.
  • lv_full_name - Full name of LV including its VG, namely VG/LV.
  • lv_path - Full pathname for LV. Blank for internal LVs.
  • lv_dm_path - Internal device-mapper pathname for LV (in /dev/mapper directory).
  • lv_parent - For LVs that are components of another LV, the parent LV.

Logical Volume Device Info and Status Combined Fields

  • lv_all - All fields in this section.
  • lv_attr - Various attributessee man page.

Logical Volume Fields

  • lv_all - All fields in this section.
  • lv_layout - LV layout.
  • lv_role - LV role.
  • lv_initial_image_sync - Set if mirror/RAID images underwent initial resynchronization.
  • lv_image_synced - Set if mirror/RAID image is synchronized.
  • lv_merging - Set if snapshot LV is being merged to origin.
  • lv_converting - Set if LV is being converted.
  • lv_allocation_policy - LV allocation policy.
  • lv_allocation_locked - Set if LV is locked against allocation changes.
  • lv_fixed_minor - Set if LV has fixed minor number assigned.
  • lv_merge_failed - Set if snapshot merge failed.
  • lv_snapshot_invalid - Set if snapshot LV is invalid.
  • lv_skip_activation - Set if LV is skipped on activation.
  • lv_when_full - For thin pools, behavior when full.
  • lv_active - Active state of the LV.
  • lv_active_locally - Set if the LV is active locally.
  • lv_active_remotely - Set if the LV is active remotely.
  • lv_active_exclusively - Set if the LV is active exclusively.
  • lv_major - Persistent major number or -1 if not persistent.
  • lv_minor - Persistent minor number or -1 if not persistent.
  • lv_read_ahead - Read ahead setting in current units.
  • lv_size - Size of LV in current units.
  • lv_metadata_size - For thin and cache pools, the size of the LV that holds the metadata.
  • seg_count - Number of segments in LV.
  • origin - For snapshots and thins, the origin device of this LV.
  • origin_uuid - For snapshots and thins, the UUID of origin device of this LV.
  • origin_size - For snapshots, the size of the origin device of this LV.
  • lv_ancestors - LV ancestors ignoring any stored history of the ancestry chain.
  • lv_full_ancestors - LV ancestors including stored history of the ancestry chain.
  • lv_descendants - LV descendants ignoring any stored history of the ancestry chain.
  • lv_full_descendants - LV descendants including stored history of the ancestry chain.

Logical Volume Device Status Fields

  • lv_all - All fields in this section.
  • data_percent - For snapshot, cache and thin pools and volumes, the percentage full if LV is active.
  • snap_percent - For snapshots, the percentage full if LV is active.
  • metadata_percent - For cache and thin pools, the percentage of metadata full if LV is active.
  • copy_percent - For Cache, RAID, mirrors and pvmove, current percentage in-sync.
  • sync_percent - For Cache, RAID, mirrors and pvmove, current percentage in-sync.

Logical Volume Fields

  • lv_all - All fields in this section.
  • raid_mismatch_count - For RAID, number of mismatches found or repaired.
  • raid_sync_action - For RAID, the current synchronization action being performed.
  • raid_write_behind - For RAID1, the number of outstanding writes allowed to writemostly devices.
  • raid_min_recovery_rate - For RAID1, the minimum recovery I/O load in kiB/sec/disk.
  • raid_max_recovery_rate - For RAID1, the maximum recovery I/O load in kiB/sec/disk.
  • move_pv - For pvmove, Source PV of temporary LV created by pvmove.
  • move_pv_uuid - For pvmove, the UUID of Source PV of temporary LV created by pvmove.
  • convert_lv - For lvconvert, Name of temporary LV created by lvconvert.
  • convert_lv_uuid - For lvconvert, UUID of temporary LV created by lvconvert.
  • mirror_log - For mirrors, the LV holding the synchronisation log.
  • mirror_log_uuid - For mirrors, the UUID of the LV holding the synchronisation log.
  • data_lv - For thin and cache pools, the LV holding the associated data.
  • data_lv_uuid - For thin and cache pools, the UUID of the LV holding the associated data.
  • metadata_lv - For thin and cache pools, the LV holding the associated metadata.
  • metadata_lv_uuid - For thin and cache pools, the UUID of the LV holding the associated metadata.
  • pool_lv - For thin volumes, the thin pool LV for this volume.
  • pool_lv_uuid - For thin volumes, the UUID of the thin pool LV for this volume.
  • lv_tags - Tags, if any.
  • lv_profile - Configuration profile attached to this LV.
  • lv_lockargs - Lock args of the LV used by lvmlockd.
  • lv_time - Creation time of the LV, if known
  • lv_time_removed - Removal time of the LV, if known
  • lv_host - Creation host of the LV, if known.
  • lv_modules - Kernel device-mapper modules required for this LV.
  • lv_historical - Set if the LV is historical.

Logical Volume Device Info Fields

  • lv_all - All fields in this section.
  • lv_kernel_major - Currently assigned major number or -1 if LV is not active.
  • lv_kernel_minor - Currently assigned minor number or -1 if LV is not active.
  • lv_kernel_read_ahead - Currently-in-use read ahead setting in current units.
  • lv_permissions - LV permissions.
  • lv_suspended - Set if LV is suspended.
  • lv_live_table - Set if LV has live table present.
  • lv_inactive_table - Set if LV has inactive table present.
  • lv_device_open - Set if LV device is open.

Logical Volume Device Status Fields

  • lv_all - All fields in this section.
  • cache_total_blocks - Total cache blocks.
  • cache_used_blocks - Used cache blocks.
  • cache_dirty_blocks - Dirty cache blocks.
  • cache_read_hits - Cache read hits.
  • cache_read_misses - Cache read misses.
  • cache_write_hits - Cache write hits.
  • cache_write_misses - Cache write misses.
  • kernel_cache_settings - Cache settings/parameters as set in kernel, including default values (cached segments only).
  • kernel_cache_policy - Cache policy used in kernel.
  • lv_health_status - LV health status.
  • kernel_discards - For thin pools, how discards are handled in kernel.
  • lv_check_needed - For thin pools and cache volumes, whether metadata check is needed.

Physical Volume Label Fields

  • pv_all - All fields in this section.
  • pv_fmt - Type of metadata.
  • pv_uuid - Unique identifier.
  • dev_size - Size of underlying device in current units.
  • pv_name - Name.
  • pv_major - Device major number.
  • pv_minor - Device minor number.
  • pv_mda_free - Free metadata area space on this device in current units.
  • pv_mda_size - Size of smallest metadata area on this device in current units.
  • pv_ext_vsn - PV header extension version.

Physical Volume Fields

  • pv_all - All fields in this section.
  • pe_start - Offset to the start of data on the underlying device.
  • pv_size - Size of PV in current units.
  • pv_free - Total amount of unallocated space in current units.
  • pv_used - Total amount of allocated space in current units.
  • pv_attr - Various attributes, see man page.
  • pv_allocatable - Set if this device can be used for allocation.
  • pv_exported - Set if this device is exported.
  • pv_missing - Set if this device is missing in system.
  • pv_pe_count - Total number of Physical Extents.
  • pv_pe_alloc_count - Total number of allocated Physical Extents.
  • pv_tags - Tags, if any.
  • pv_mda_count - Number of metadata areas on this device.
  • pv_mda_used_count - Number of metadata areas in use on this device.
  • pv_ba_start - Offset to the start of PV Bootloader Area on the underlying device in current units.
  • pv_ba_size - Size of PV Bootloader Area in current units.
  • pv_in_use - Set if PV is used.
  • pv_duplicate - Set if PV is an unchosen duplicate.

Volume Group Fields

  • vg_all - All fields in this section.
  • vg_fmt - Type of metadata.
  • vg_uuid - Unique identifier.
  • vg_name - Name.
  • vg_attr - Various attributes, see man page.
  • vg_permissions - VG permissions.
  • vg_extendable - Set if VG is extendable.
  • vg_exported - Set if VG is exported.
  • vg_partial - Set if VG is partial.
  • vg_allocation_policy - VG allocation policy.
  • vg_clustered - Set if VG is clustered.
  • vg_size - Total size of VG in current units.
  • vg_free - Total amount of free space in current units.
  • vg_sysid - System ID of the VG indicating which host owns it.
  • vg_systemid - System ID of the VG indicating which host owns it.
  • vg_lock_type - Lock type of the VG used by lvmlockd.
  • vg_lock_args - Lock args of the VG used by lvmlockd.
  • vg_extent_size - Size of Physical Extents in current units.
  • vg_extent_count - Total number of Physical Extents.
  • vg_free_count - Total number of unallocated Physical Extents.
  • max_lv - Maximum number of LVs allowed in VG or 0 if unlimited.
  • max_pv - Maximum number of PVs allowed in VG or 0 if unlimited.
  • pv_count - Number of PVs in VG.
  • vg_missing_pv_count - Number of PVs in VG which are missing.
  • lv_count - Number of LVs.
  • snap_count - Number of snapshots.
  • vg_seqno - Revision number of internal metadata. Incremented whenever it changes.
  • vg_tags - Tags, if any.
  • vg_profile - Configuration profile attached to this VG.
  • vg_mda_count - Number of metadata areas on this VG.
  • vg_mda_used_count - Number of metadata areas in use on this VG.
  • vg_mda_free - Free metadata area space for this VG in current units.
  • vg_mda_size - Size of smallest metadata area for this VG in current units.
  • vg_mda_copies - Target number of in use metadata areas in the VG.

Logical Volume Segment Fields

  • seg_all - All fields in this section.
  • segtype - Type of LV segment.
  • stripes - Number of stripes or mirror legs.
  • stripe_size - For stripes, amount of data placed on one device before switching to the next.
  • region_size - For mirrors, the unit of data copied when synchronising devices.
  • chunk_size - For snapshots, the unit of data used when tracking changes.
  • thin_count - For thin pools, the number of thin volumes in this pool.
  • discards - For thin pools, how discards are handled.
  • cache_mode - For cache pools, how writes are cached.
  • zero - For thin pools and volumes, if zeroing is enabled.
  • transaction_id - For thin pools, the transaction id and creation transaction id for thins.
  • thin_id - For thin volume, the thin device id.
  • seg_start - Offset within the LV to the start of the segment in current units.
  • seg_start_pe - Offset within the LV to the start of the segment in physical extents.
  • seg_size - Size of segment in current units.
  • seg_size_pe - Size of segment in physical extents.
  • seg_tags - Tags, if any.
  • seg_pe_ranges - Ranges of Physical Extents of underlying devices in command line format (deprecated, use seg_le_ranges for common format).
  • seg_le_ranges - Ranges of Logical Extents of underlying devices in command line format.
  • seg_metadata_le_ranges - Ranges of Logical Extents of underlying metadata devices in command line format.
  • devices - Underlying devices used with starting extent numbers.
  • metadata_devices - Underlying metadata devices used with starting extent numbers.
  • seg_monitor - Dmeventd monitoring status of the segment.
  • cache_policy - The cache policy (cached segments only).
  • cache_settings - Cache settings/parameters (cached segments only).

Physical Volume Segment Fields

  • pvseg_all - All fields in this section.
  • pvseg_start - Physical Extent number of start of segment.
  • pvseg_size - Number of extents in segment.

Special Fields

  • selected - Set if item passes selection criteria.