Unable to delete SnapLock volumes with expired times
Applies to
- ONTAP 9
- SnapLock
Issue
Deleting volumes that reached expiration date failed with error:
Error: [Job 3981] Job failed: Failed to delete volume "<volume_name>" on Vserver "<vserver_name>". Reason: volume cannot be destroyed because it contains unexpired WORM files OR it contains files under legal hold OR it contains unexpired WORM snapshots OR it is an unexpired SnapLock Enterprise audit log volume OR the volume must be made online in order to permit a pending WAFL scan to complete. Make the volume state online and run 'volume snaplock show' command in order to get the expiration dates and the status of the scans