lbcli list changed-blocks

Returns a list of all Logical Block Addresses (LBAs) that have changed between two snapshots of a volume. You must specify either two snapshots to compare or provide a single snapshot (in which case this snapshot is compared against volume at creation time).

The result will return a list of ranges, with each range containing the range of addresses it covers and a bitmap indicating changed LBAs between the two snapshots.

The response size is limited to 10000 ranges. For large volumes/snapshots it may be required to invoke the command multiple times consecutively, each time setting the startOffset to the value of nextLBAOffset returned by the previous command.

Notes:

  • Both snapshots must belong to the same volume, and the current snapshot must be newer than the base snapshot.
  • Lbcli list changed blocks may optionally return a long response. Output formats -o json or -o yaml must be specified (-o ‘human-readable-format’ is not supported for this command).
  • If this command fails on context timeout, contact Lightbits Support, as some minor tweaks could be required to enable inter-service communications.
Bash
Copy

Examples:

Bash
Copy
FlagShortTypeDefaultDescription
--project-namestringProject name (mandatory).
--current-snapshot-name/--current-snapshot-uuidstringSnapshot name/Snapshot UUID of the newer snapshot we want to compare. Note that you should identify the snapshot by either name or UUID, never both. Only one should be used.
--base-snapshot-name/--base-snapshot-uuidstringSnapshot name/Snapshot UUID of the older snapshot we want to compare (optional; if not provided, we will compare against the volume at the time of creation). Note that you should identify the snapshot by either name or UUID, never both. Only one should be used.
--offset-lbauint64The first offset from which the comparison should start (optional).
--help-hboolHelp for changed-blocks.

This command returns the following fields for each changed-block. The default output format is human-readable.

FieldTypeDescription
lbaRangesLBARangeUp to 10,000 LBA (Logical Block Address) ranges.
nextOffsetLBAuint64The end offset in the current response/offset, from which to start a new request.

LBARange

FieldTypeDescription
lbaStartuint64The first LBA in this range.
lbaEnduint64The last LBA in this range.
dataBitMapbytes/stringA bits set indicating which LBAs have changed. The order of bits runs from left to right, with the MSB bit indicating the lowest address.
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard