Deleting an immutable image from storage using the bpexpdate command
Deletion of an immutable image can only happen when storage is used that allows for lock deletion. The lock deletion can be done using the Enterprise mode on Flex Appliance, Flex Scale Appliance, Access Appliance, or a third-party storage device that supports lock deletion. When an immutable image is deleted, the storage that you use is responsible for the lock deletion and NetBackup is responsible for the image deletion.
When you use Flex Appliance, Flex Scale Appliance, or Access Appliance, you must use the command line or an SSH session to remove the lock on the image. If you use a third-party storage device, refer to that vendor's documentation for steps on removing locked images.
To delete the immutable image on the appliance
- Verify that the appliance is in Enterprise mode.
- From the NetBackup Command Line, use bpimagelist command to find the image ID.
This procedure uses the following example image ID:
Backup ID: server123.veritas.com_1234567890
- Delete the image lock on storage using the command line option or the SSH session option.
For Flex Appliance: You must use the default
msdpadmuser to run the following options.For Flex Scale Appliance and Access Appliance: You must use an appliance user with the appliance administrator role.
Command line option:
Open the
/usr/openv/pdde/pdcr/bin/directory.Use the following command to query and modify the catalog database for the given backup ID (Example:
server123.veritas.com_1234567890). The -worm disable option disables the retention lock for an image using the backup ID.sudo -u msdpsvc /usr/openv/pdde/pdcr/bin/catdbutil -worm disable -backupid
SSH session option:
Open an SSH session to the WORM storage server instance.
Use the retention policy disable command to query and modify the catalog database for the given policy. The policydisable arguments disable the retention lock for an image using the policy ID used for the image retention that has a retention lock.
For more information about the command options in this step, see the NetBackup Deduplication Guide.
- Add the image ID to bpexpdate with the -try_expire_worm_copy option.
bpexpdate -d 0 backupid server123.veritas.com_1234567890 -try_expire_worm_copy -copy 1 - Use y or n to confirm deletion.
If the storage lock is not removed, NetBackup returns an error indicating that there is a WORM lock error.