Deleting WORM-locked images
You can shorten the WORM lock for a view to a near-future time. Once the lock expires, the view is unlocked, and you can delete the corresponding backup image in NetBackup.
Note:
You can only shorten the WORM lock if the LSU is in Enterprise mode. Shortening the lock is not allowed in Compliance mode.
To delete WORM-locked images
- Log in as a Data Security user.
- Run the following command to update the view:
iris_cli view update include-internal=true name=<name> datalock-expiry-usecs=<timestamp>
Set <timestamp> to a time in the near future in microseconds.
The value must be greater than the configured worm-min-retention-secs.
- Verify that the DATALOCK STATE of the view is now UNLOCKED by listing the view.
- On NetBackup primary server, run the following command to delete the WORM-locked backup:
bpexpdate -backupid <backup_image> -try_expire_worm_copy -d 0 -copy 1
- Verify that the backup is now deleted in NetBackup catalog or run the following command:
bpimagelist
- Verify on SpanFS by listing the view that the view no longer exists
- Verify on SpanFS that the view does not exist any longer by listing available views.