Deleting a cloud LSU
Use the following steps carefully to remove an MSDP cloud LSU.
Before deleting a cloud LSU, ensure all the Instant access and Universal shares associated with the cloud LSU are deleted.
If a cloud LSU is associated with an MVG volume, delete the MVG volume first before deleting the cloud LSU. Run the cacontrol --dataselection list command to check if the cloud LSU is associated with an MVG volume. If there is an association, the command output displays the cloud LSU description as UsedByVLSU=<mvg-server>:<mvg-volume>. For example, in the following output, cloud volume demohost-cloud is associated with MVG volume mvg-cloud of MVG server mvgdemo-host1.mvgdemo.com.
cacontrol --dataselection list
[
…
{
"dsid": 3,
"type": 9,
"name": "demohost-cloud",
"description": "UsedByVLSU=mvgdemo-host1.mvgdemo.com:mvg-cloud;"
}
]
To delete a cloud LSU
- Expire all images of the cloud LSU in NetBackup.
- Remove the storage unit and disk pool of this MSDP cloud LSU.
- Delete all S3 buckets of the cloud LSU if MSDP S3 is configured.
- 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 and other back-end folders by using the following commands (Optional):
# rm -r <CachePath>
# rm -r <msdp_storage_path>/spool/ds_<dsid>
# rm -r <msdp_storage_path>/queue/ds_<dsid>
# rm -r <msdp_storage_path>/processed/ds_<dsid>
# rm -r <msdp_storage_path>/databases/refdb/ds_<dsid>
# rm -r <msdp_storage_path>/databases/datacheck/ds_<dsid>
- 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
- Delete the cloud instance alias.
# /usr/openv/netbackup/bin/admincmd/csconfig cldinstance -rs -in <instance_name> -sts <storage_server_name>_<lsu_name>