Create a snapshot lock

You can create snapshot locks that prevent snapshots from being deleted.

About this task

Although you can prevent a snapshot from being automatically deleted by creating a snapshot lock, it is recommended that you do not create snapshot locks. To prevent a snapshot from being automatically deleted, it is recommended that you extend the duration period of the snapshot.

This procedure is available only through the command-line interface (CLI).

Procedure

  1. Open a secure shell (SSH) connection to any node in the cluster and log in.
  2. Create a snapshot lock by running the isi snapshot locks create command.
    For example, the following command applies a snapshot lock to SnapshotApril2016, sets the lock to expire in one month, and adds a description of "Maintenance Lock":
    isi snapshot locks create SnapshotApril2016 --expires 1M \
    --comment "Maintenance Lock"