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.
About this task
This procedure is available only through the command-line interface (CLI).
- Open a secure shell (SSH) connection to any node in the cluster and log in.
- 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"