lbcli list volumes

Lists volumes resources.

By default, all volumes of the Lightbits cluster are returned, unless one of the optional filters is specified.

Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--namestringVolume name.
--uuidstringVolume UUID.
--failure-domainstringList only volumes that belong to a specific failure domain.
--help-hboolHelp for list volumes.
--limitint64Optional. Limits the number of volumes in the response.
--offset-uuidstringOptional. When provided, the returned list starts with next to offset-uuid volume.
--project-namestringProject name.
--source-snapshot-uuidstringLists only volumes that were created from a specific source snapshot.
--show-allboolOptional. Shows all volumes. The default is to show only active volumes. To return all volumes including volumes in deleting state, this should be set to true.

This command returns the following fields for each node. The default output format is human-readable. The human-readable output only shows some of these fields. The json/yaml output format is also supported and includes additional fields.

FieldTypeDescription
NamestringVolume name.
UUIDstringVolume UUID.
Statestring

Indicates the current state of the volume in its creation/update/delete lifetime. This will reflect the state of execution of a user-invoked API (CreateVolume, UpdateVolume). or an internal operation (volume migration).

Volume states:

  • Creating - The volume is being created.
  • Available - The volume is available for use. There are no ongoing operations on the volume.
  • Deleting - The volume is being deleted.
  • Deleted - The volume was deleted.
  • Updating - The volume is being updated.
  • Failed - The volume creation failed.
  • Rollback - The volume is being rolled back to a specified snapshot.
  • Migrating - One of the volume's replicas is being migrated.
Protection Statestring

An indication of the volume's data availability, derived from the health of each of the replicas it resides on.

Volume protection states:

  • Fully protected - The volume supports write/read and replication (for replica-count=2 or 3). All volume replicas are healthy.
  • Degraded - The volume supports write/read. Data may not be replicated (volumes with replica-count=2 in Degraded state). At least one of the volume's replicas is unhealthy (the node is inactive, completely full, or not synced).
  • Read only - The volume supports only read. Data may not be replicated (volumes with replica-count=2 in Read only state). At least one of the volume's replicas is unhealthy (the node is inactive, completely full, or not synced).
  • Not Available - The volume cannot be used for read or write. All volume replicas are unhealthy (the node is inactive or not synced).
  • Unknown - Reserved value.

Note: For any volumes that are not in "Available" state, the protection state is “Not available“.

NSIDintVolume NSID.
SizeintMaximal logical capacity of the volume in bytes.
Replica CountintTotal replicas count.
Compressionstring
  • False: Compression disabled
  • True: Compression enabled
ACLlist of stringsAccess Control List.
Rebuild Progressstring

Rebuild progress in percentage.

If a node that the volume is associated with is also undergoing the clustering rebuild process this field will show progress. Otherwise, it will show None.

Note: This field displays information on the replications nodes state associated with this volume. So, it may show a rebuild even for volumes with no data.

Nodes Listlist of stringsNode UUIDs on which the volume is stored (only in json/yaml).
Statisticslist of integers
  • logicalUsedStorage
  • physicalUsedStorage
  • compressionRatio

(only in json/yaml)

IP ACLlist of stringsList of allowed IPs (Default:ALLOW_ANY), (only in json/yaml).
Connected Hostslist of stringsList of connected host-nqns, (only in json/yaml).
EtagstringAn identifier for a specific version of a resource.
Source Snapshot UUIDstringThe source snapshot UUID which the volume was cloned from. An empty string means that this volume did not originate from any snapshot.
Source Snapshot NamestringThe source snapshot name which the volume was cloned from. An empty string means that this volume did not originate from any snapshot.
QoS Policy UUIDstringThe UUID of the QoS policy that is assigned to the volume.
QoS Policy NamestringThe name of the QoS policy that is assigned to the volume.

The table below illustrates the volume metrics.

Use Case Example

When a user creates a volume of size 10G:

  • Compression is enabled (assume that data is written which is compressed at 50%).
  • Writes data from address 0-3G.
  • Creates a snapshot.
  • Writes an additional 2G of data to ranges 2-4. This means that 1G was overwritten or deleted and 1G was new.

So overall at the device level:

  • The user has written a total of 5G of bytes to this volume over time (3G + 2G).
  • The current amount of data the user sees on the device associated with this volume is 4G (0-4G address range).
  • The total amount of storage space for the volume and snapshot is 2.5G (0.5_3G + 0.5_2G).

All volume metrics below represent values for a single replica of the volume.

FieldTypeDescription
physicalCapacityuint64The physical capacity that exists in this volume layer (the storage used for a single replica since the last snapshot or rollback for this volume).
physicalOwnedCapacityuint64The capacity that would be freed when the volume is deleted (this counter will have the same value as Physical Capacity for a volume object).
physicalOwnedMemoryuint64The amount of memory that would be freed by deleting this volume. This is only for the top volume layer - since the last snapshot rollback operation. Note that this will be identical to Physical Memory for volume.
physicalMemoryuint64The amount of memory being used by this volume. This is only for the top volume layer since the last snapshot rollback operation.
userWrittenuint64The amount (in bytes of data) requested to be written to this volume layer since the last snapshot/rollback operation.
logicalUsedStorageuint64The logical storage space used by a volume, given in bytes. This is the total address range that you will see on a device.
physicalUsedStorageuint64The total physical storage space used by a volume (and its snapshot), given in bytes. This is the sum of the actual storage space used in a Lightbits cluster, for a single replica of the volume and any its snapshots.
compressionRatiodoubleCompression ratio user written / physical capacity. The compression ratio for this layer since the last snapshot/rollback on this volume.
totalCompressionRatiodoubleCompression ratio sum (user written) / sum (physical capacity). This is the compression ratio calculated over all data written to this volume (i.e., calculated over data that has also been since snapshotted).
unrecoverableDataIntegrityErrorsuint32The number of data integrity errors that could not be recovered by the system.
recoverableDataIntegrityErrorsuint32The number of data integrity errors that were recovered by the system.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard
On This Page
lbcli list volumes