Snapshots and Clones

With snapshots and clones, you can leverage fast and thin point-in-time snapshots/clones of Lightbits volumes. A snapshot can be taken from a volume, and a volume can be created from a snapshot (aka a clone).

Snapshots cannot be accessed as a volume; only clones of that snapshot can be accessed.

Snapshots and clones will be created on the same nodes. There is no limit on the per-volume number of snapshots and clones, and no limit on the node level number of snapshots and clones.

Snapshots can be taken on demand or scheduled, and multiple schedules can exist for the same volume..

- With regards to Management APIs, snapshots are separate entities and clones are the same as volumes. Clones can be deleted by using the delete volume API. To delete a snapshot, you will need to call the delete snapshot API.

- Lightbits STS in AWS also has backup and restore capabilities to and from S3. See Backup and Restore for additional information.

Snapshots and Clone Commands

List the existing volumes: lbcli -J $JWT list volumes:

Bash
Copy

Create a snapshot from the volume:

Bash
Copy

Check that the snapshot was created:

Bash
Copy

Get snapshot info:

Bash
Copy

Create a volume from snapshot (clone):

Bash
Copy

Create a snapshot-policy:

Bash
Copy

List snapshot-policies:

Bash
Copy

Get snapshot-policies:

Bash
Copy

Delete snapshot/snapshot-policy:

Bash
Copy

Rollback

The Rollback operation takes a volume and restores it back to a previous snapshot (data + md), or the point in time when the snapshot was taken. This is a harmful process and all data since the last snapshot will be lost. Therefore if needed, it is recommended to take a snapshot before doing the rollback, so that if needed you can return to the last taken snapshot.

Before doing a rollback, it is recommended to remove active mounts, detach the volume, or flush caches before performing this operation.

The process should be as follows:

  1. Stop process/es that use the volume.
  2. Unmount FS create on top of the volume; e.g., for mount point: /mnt/volume_to_rollback. a. Unmount /mnt/volume_to_rollback.
  3. Take a snapshot via lbcli.
  4. Perform a rollback via lbcli.
  5. Re-mount the volume: mount /mnt/rolled_back_volume

Rollback Volume

Bash
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard