Deleting a cloud LSU
Use the following steps carefully to remove an MSDP cloud LSU:
- Expire all images of the cloud LSU in NetBackup.
- Remove the storage unit and disk pool of this MSDP cloud LSU.
- To delete a cloud LSU, storageId and CachePath are needed.
Run following command to get the information of one cloud LSU:
/usr/openv/pdde/pdcr/bin/pddecfg -a listcloudlsu dsid, lsuname, storageId, CachePath 3, S3Volume, server1_ S3Volume/cloud-bucket1/sub1, /msdp/data/ds_3 4, S3Volume2, server1_ S3Volume2/cloud-bucket1/sub2, /msdp/data/ds_4
Here the storageId of the cloud LSU is "server1_ S3Volume/cloud-bucket1/sub1" and CachePath of the cloud LSU is "/msdp/data/ds_3"
- Run CRQP to make sure no tlog entries are present in
<msdp_storage_path>/spoolfolder and<msdp_storage_path>/queuefolder. - Delete LSU configurations in spad by using nbdevconfig command.
Configuration file contents for deleting an MSDP cloud LSU configuration are as follows:
Configuration setting
Description
V7.5 "operation" "delete-lsu-cloud" string
The value "delete-lsu-cloud" for deleting the MSDP cloud LSU configurations in spad.
V7.5 "lsuName" " " string
Specifies the LSU name.
For example:
V7.5 "operation" "delete-lsu-cloud" string V7.5 "lsuName" "s3amazon1" string
After creating the configuration file, run the following command:
# /usr/openv/netbackup/bin/admincmd/nbdevconfig -setconfig -storage_server <storage server> -stype PureDisk -configlist <configuration file path>
- Stop the MSDP service and its monitor service.
# /usr/openv/netbackup/bin/nbsvcmon -terminate
# /usr/openv/pdde/pdconfigure/pdde stop
- Delete LSU configurations in spoold using the following command:
# /usr/openv/pdde/pdcr/bin/spoold --removepartition <storageId>
- Remove the cache folder by using the following command (Optional):
# rm -r <CachePath>
- Remove the entire sub-bucket folder in cloud. (Optional)
- Start the MSDP service and its monitor service.
# /usr/openv/pdde/pdconfigure/pdde start
# /usr/openv/netbackup/bin/nbsvcmon