Unable to delete volume with SnapLock-Expiry-Time set on snapshots
Applies to
- ONTAP 9
- Non-SnapLock volumes with SnapLock-enabled snapshots
Issue
- Attempts to delete a volume containing snapshots with a
SnapLock-expiry-time
result in an error:
Error: command failed: Failed to delete volume <volume_name> in Vserver <vserver_name>. The volume has one or more unexpired locked Snapshot copies.
- Attempts to disable snapshot locking on the volume using the following command also fail:
Command Example:
vol modify -vserver <vserver_name> -volume <volume_name> -snapshot-locking-enabled false
Error Example:
command failed: Unable to set volume attribute "snapshot-locking-enabled" for volume <volume_name> on Vserver <vserver_name>. Reason: The specified volume operation did not succeed because the volume has unexpired locked snapshots.