org.freedesktop.UDisks2.VDOVolume: UDisks Reference Manual

## org.freedesktop.UDisks2.VDOVolume org.freedesktop.UDisks2.VDOVolume — A VDO logical volume |

## Methods

    EnableCompression   (IN  b     enable,
                         IN  a{sv} options);
    EnableDeduplication (IN  b     enable,
                         IN  a{sv} options);
    ResizeLogical       (IN  t     size,
                         IN  a{sv} options);
    ResizePhysical      (IN  t     size,
                         IN  a{sv} options);
    GetStatistics       (IN  a{sv} options,
                         OUT a{ss} stats);

## Properties

    VDOPool           readable   o
    OperatingMode     readable   s
    CompressionState  readable   s
    IndexState        readable   s
    UsedSize          readable   t
    Compression       readable   b
    Deduplication     readable   b

## Description

Objects with this interface represent VDO logical volumes in a volume group.

VDO logical volume objects are children of their VDO pool object, and also link to it via the #VDOPool property.

Since 2.9.0

## Method Details

### The EnableCompression() method

    EnableCompression (IN  b     enable,
                       IN  a{sv} options);

Enables or disables compression on the VDO volume. If the VDO volume is running, takes effect immediately.

`IN b `enable``: | A boolean value indicating whether compression should be enabled.
`IN a{sv} `options``: | Additional options (currently unused except for standard options).

Since 2.9.0

### The EnableDeduplication() method

    EnableDeduplication (IN  b     enable,
                         IN  a{sv} options);

Enables or disables deduplication on the VDO volume. If the VDO volume is running, takes effect immediately.

`IN b `enable``: | A boolean value indicating whether deduplication should be enabled.
`IN a{sv} `options``: | Additional options (currently unused except for standard options).

Since 2.9.0

### The ResizeLogical() method

    ResizeLogical (IN  t     size,
                   IN  a{sv} options);

Resizes the logical size of a VDO volume to the size specified by the `size` argument. This is only a convenience method and it's equivalent to using the org.freedesktop.UDisks2.LogicalVolume:Resize method.

`IN t `size``: | The new logical size for the VDO volume in bytes.
`IN a{sv} `options``: | Additional options (currently unused except for standard options).

Since 2.9.0

### The ResizePhysical() method

    ResizePhysical (IN  t     size,
                    IN  a{sv} options);

Resizes the physical size of a VDO volume to the size specified by the `size` argument. This is only a convenience method and it's equivalent to using the org.freedesktop.UDisks2.LogicalVolume:Resize method on the #VDOPool.

`IN t `size``: | The new physical size for the VDO volume in bytes.
`IN a{sv} `options``: | Additional options (currently unused except for standard options).

Since 2.9.0

### The GetStatistics() method

    GetStatistics (IN  a{sv} options,
                   OUT a{ss} stats);

Retrieves statistics for the specified VDO volume. Statistics are collected from the values exposed by the kernel `kvdo` module.

List of known keys:

writeAmplificationRatio | The average number of block writes to the underlying storage per block written to the VDO device.
oneKBlocks | The total number of 1K blocks allocated for a VDO volume (= physical volume size * block size / 1024).
oneKBlocksUsed | The total number of 1K blocks used on a VDO volume (= physical blocks used * block size / 1024).
oneKBlocksAvailable | The total number of 1K blocks available on a VDO volume (= physical blocks free * block size / 1024).
usedPercent | The percentage of physical blocks used on a VDO volume (= used blocks / allocated blocks * 100).
savings, savingPercent | The percentage of physical blocks saved on a VDO volume (= [logical blocks used - physical blocks used] / logical blocks used).
fiveTwelveByteEmulation | Indicates whether 512 byte emulation is on or off for the volume.
allocator_slab_count | The total number of slabs.
allocator_slabs_opened | The total number of slabs from which blocks have ever been allocated.
allocator_slabs_reopened | The number of times slabs have been re-opened since the VDO was started.
bios_acknowledged_discard, bios_acknowledged_flush, bios_acknowledged_fua, bios_acknowledged_read, bios_acknowledged_write | The number of block I/O requests acknowledged by VDO.
bios_acknowledged_partial_discard, bios_acknowledged_partial_flush, bios_acknowledged_partial_fua, bios_acknowledged_partial_read, bios_acknowledged_partial_write | The number of partial block I/O requests acknowledged by VDO. Applies only to 512-byte emulation mode.
bios_in_discard, bios_in_flush, bios_in_fua, bios_in_read, bios_in_write | The number of block I/O requests received by VDO.
bios_in_partial_discard, bios_in_partial_flush, bios_in_partial_fua, bios_in_partial_read, bios_in_partial_write | The number of partial block I/O requests received by VDO. Applies only to 512-byte emulation mode.
bios_in_progress_discard, bios_in_progress_flush, bios_in_progress_fua, bios_in_progress_read, bios_in_progress_write | The number of bios submitted to the VDO which have not yet been acknowledged.
bios_journal_completed_discard, bios_journal_completed_flush, bios_journal_completed_fua, bios_journal_completed_read, bios_journal_completed_write | The number of recovery journal block I/O requests completed by the storage device.
bios_journal_discard, bios_journal_flush, bios_journal_fua, bios_journal_read, bios_journal_write | The number of recovery journal block I/O requests submitted by VDO to the storage device.
bios_meta_completed_discard, bios_meta_completed_flush, bios_meta_completed_fua, bios_meta_completed_read, bios_meta_completed_write | The number of metadata block I/O requests completed by the storage device.
bios_meta_discard, bios_meta_flush, bios_meta_fua, bios_meta_read", bios_meta_write | The number of metadata block I/O requests submitted by VDO to the storage device.
bios_out_completed_discard, bios_out_completed_flush, bios_out_completed_fua, bios_out_completed_read, bios_out_completed_write | The number of non-metadata block I/O requests completed by the storage device.
bios_out_discard, bios_out_flush, bios_out_fua, bios_out_read, bios_out_write | The number of non-metadata block I/O requests submitted by VDO to the storage device.
bios_page_cache_completed_discard, bios_page_cache_completed_flush, bios_page_cache_completed_fua, bios_page_cache_completed_read, bios_page_cache_completed_write | The number of block map I/O requests completed by the storage device.
bios_page_cache_discard, bios_page_cache_flush, bios_page_cache_fua, bios_page_cache_read, bios_page_cache_write | The number of block map I/O requests submitted by VDO to the storage device.
block_map_cache_pressure | The number of times a free page was not available when needed.
block_map_cache_size | The size of the block map cache, in bytes.
block_map_clean_pages | The number of clean pages in the block map cache.
block_map_dirty_pages | The number of dirty pages in the block map cache.
block_map_discard_required | The total number of block map requests that required a page to be discarded.
block_map_failed_pages | The number of block map cache pages that have write errors.
block_map_failed_reads | The total number of block map read errors.
block_map_failed_writes | The total number of block map write errors.
block_map_fetch_required | The total number of requests that required a page fetch.
block_map_flush_count | The total number of flushes issued by the block map.
block_map_found_in_cache | The total number of block map cache hits.
block_map_free_pages | The number of free pages in the block map cache.
block_map_incoming_pages | The number of block map cache pages that are being read into the cache.
block_map_outgoing_pages | The number of block map cache pages that are being written.
block_map_pages_loaded | The total number of page fetches.
block_map_pages_saved | The total number of page saves.
block_map_read_count | The total number of block map page reads.
block_map_read_outgoing | The total number of block map reads for pages that were being written.
block_map_reclaimed | The total number of block map pages that were reclaimed.
block_map_wait_for_page | The total number of requests that had to wait for a page.
block_map_write_count | The total number of block map page writes.
block_size | The block size of a VDO volume, in bytes.
complete_recoveries | The number of times a VDO volume has recovered from an unclean shutdown.
currentVIOs_in_progress | The number of I/O requests the VDO is current processing.
data_blocks_used | The number of physical blocks currently in use by a VDO volume to store data.
dedupe_advice_timeouts | The number of times deduplication queries timed out.
errors_invalid_advicePBNCount | The number of times the index returned invalid advice.
errors_no_space_error_count | The number of write requests which failed due to the VDO volume being out of space.
errors_read_only_error_count | The number of write requests which failed due to the VDO volume being in read-only mode.
flush_out | The number of flush requests submitted by VDO to the underlying storage.
hash_lock_concurrent_data_matches |
hash_lock_concurrent_hash_collisions |
hash_lock_dedupe_advice_stale | The number of times deduplication advice was incorrect.
hash_lock_dedupe_advice_valid | The number of times deduplication advice was correct.
index_curr_dedupe_queries | The number of deduplication queries currently in flight.
index_entries_indexed |
index_max_dedupe_queries | The maximum number of in-flight deduplication queries.
index_posts_found |
index_posts_not_found |
index_queries_found |
index_queries_not_found |
index_updates_found |
index_updates_not_found |
in_recovery_mode |
instance | The VDO instance.
journal_blocks_batching | The number of journal block writes started minus the number of journal blocks written.
journal_blocks_committed | The number of journal blocks written to storage.
journal_blocks_started | The number of journal blocks which have been touched in memory.
journal_blocks_writing | The number of journal blocks written (with metadatata in active memory) minus the number of journal blocks committed.
journal_blocks_written | The total number of journal blocks for which a write has been issued.
journal_disk_full | The number of times a request could not make a recovery journal entry because the recovery journal was full.
journal_entries_batching | The number of journal entry writes started minus the number of journal entries written.
journal_entries_committed | The number of journal entries written to storage.
journal_entries_started | The number of journal entries which have been made in memory.
journal_entries_writing | The number of journal entries in submitted writes minus the number of journal entries committed to storage.
journal_entries_written | The total number of journal entries for which a write has been issued.
journal_slab_journal_commits_requested | The number of times the recovery journal requested slab journal commits.
logical_blocks | The maximum number of logical blocks that can be mapped by a VDO volume.
logical_block_size |
logical_blocks_used | The number of logical blocks currently mapped.
maxVIOs | The maximum number of simultaneous I/O requests the VDO has processed.
memory_usage_bios_used | KVDO module bios use.
memory_usage_bytes_used | KVDO module bytes use.
memory_usage_peak_bio_count | KVDO module peak bio coun.
memory_usage_peak_bytes_used | KVDO module peak bytes use.
mode | Indicates whether a VDO volume is operating normally, is in recovery mode, or is in read-only mode.
overhead_blocks_used | The number of physical blocks currently in use by a VDO volume to store VDO metadata.
packer_compressed_blocks_written | The number of physical blocks of compressed data that have been written since the VDO volume was last restarted. The remaining fields are primarily intended for software support and are subject to change in future releases; management tools should not rely upon them.
packer_compressed_fragments_in_packer | The number of compressed fragments being processed that have not yet been written.
packer_compressed_fragments_written | The number of compressed fragments that have been written since the VDO volume was last restarted.
physical_blocks | The total number of physical blocks allocated for a VDO volume.
read_cache_accesses | The number of times VDO searched the read cache.
read_cache_data_hits | The number of times VDO found an entry in the read cache for the desired data block, where the block's contents had been read into memory.
read_cache_hits | The number of times VDO found an entry in the read cache for the desired data block, whether or not the block's contents had yet been read into memory.
read_only_recoveries | The number of times a VDO volume has been recovered from read-only mode.
recovery_percentage | Indicates online recovery progress (\``), or N/A if the volume is not in recovery mode.
ref_counts_blocks_written | The number of reference block writes issued.
slab_journal_blocked_count | The number of times an entry was added to a slab journal that was over the blocking threshold.
slab_journal_blocks_written | The number of slab journal block writes issued.
slab_journal_disk_full_count | The number of times an on-disk slab journal was full.
slab_journal_flush_count | The number of times an entry was added to a slab journal that was over the flush threshold.
slab_journal_tail_busy_count | The number of times write requests blocked waiting for a slab journal write.
slab_summary_blocks_written | The number of slab summary block writes issued.
write_policy | The write policy (sync or async).

`IN a{sv} `options``: | Additional options (currently unused except for standard options).
`OUT a{ss} `stats``: | Array of key-value string pairs

Since 2.9.0

## Property Details

### The "VDOPool" property

    VDOPool  readable   o

Object path of the VDO pool for this volume.

Since 2.9.0

### The "OperatingMode" property

    OperatingMode  readable   s

Operating mode of the VDO volume.

One of "normal", "read-only" or "recovering".

Since 2.9.0

### The "CompressionState" property

    CompressionState  readable   s

Compression state of the VDO volume.

One of "online" or "offline".

Since 2.9.0

### The "IndexState" property

    IndexState  readable   s

State of the VDO index of the volume.

One of "online", "offline", "opening", "closing", "closed" or "error".

Since 2.9.0

### The "UsedSize" property

    UsedSize  readable   t

The total physical size used by this VDO volume.

Since 2.9.0

### The "Compression" property

    Compression  readable   b

Indicates whether compression is enabled.

Since 2.9.0

### The "Deduplication" property

    Deduplication  readable   b

Indicates whether deduplication is enabled.

Since 2.9.0