NB81 CloudCatalyst DR 000127435
NB81 CloudCatalyst DR 000127435
NetBackup™ CloudCatalyst
Release 8.1
Veritas NetBackup™ CloudCatalyst Disaster
Recovery
Legal Notice
Copyright © 2017 Veritas Technologies LLC. All rights reserved.
Veritas, the Veritas Logo, and NetBackup are trademarks or registered trademarks of Veritas
Technologies LLC or its affiliates in the U.S. and other countries. Other names may be
trademarks of their respective owners.
This product may contain third party software for which Veritas is required to provide attribution
to the third party (“Third Party Programs”). Some of the Third Party Programs are available
under open source or free software licenses. The License Agreement accompanying the
Software does not alter any rights or obligations you may have under those open source or
free software licenses. Refer to the third party legal notices document accompanying this
Veritas product or available at:
https://www.veritas.com/about/legal/license-agreements
The product described in this document is distributed under licenses restricting its use, copying,
distribution, and decompilation/reverse engineering. No part of this document may be
reproduced in any form by any means without prior written authorization of Veritas Technologies
LLC and its licensors, if any.
The Licensed Software and Documentation are deemed to be commercial computer software
as defined in FAR 12.212 and subject to restricted rights as defined in FAR Section 52.227-19
"Commercial Computer Software - Restricted Rights" and DFARS 227.7202, et seq.
"Commercial Computer Software and Commercial Computer Software Documentation," as
applicable, and any successor regulations, whether delivered by Veritas as on premises or
hosted services. Any use, modification, reproduction release, performance, display or disclosure
of the Licensed Software and Documentation by the U.S. Government shall be solely in
accordance with the terms of this Agreement.
http://www.veritas.com
.
Disaster recovery when
CloudCatalyst is enabled
This document includes the following topics:
■ Recovering only the MSDP cloud storage server when NetBackup CloudCatalyst
is enabled
■ Recovering the master server (partial) and the MSDP cloud storage server when
NetBackup CloudCatalyst is enabled
Note: The drcontrol command is used in several recovery steps. The command
creates logs in the following directory:
/var/log/puredisk/drcontrol/
■ If swapping in a new host, the host name is the same as the name of the previous
host.
1. Install NetBackup on the MSDP cloud storage server.
2. Deploy a host name-based security certificate for the MSDP cloud storage
server:
■ Run the following command on the master server:
bpnbaz –ProvisionCert media_server_name
Restart the services on the MSDP cloud storage server after generating a
certificate.
■ Run the following on the MSDP cloud storage server:
nbcertcmd –getCACertificate
3. On the MSDP cloud storage server, edit the esfs_init.sh file, located in the
following directory:
/usr/openv/esfs/scripts/esfs_init.sh
Add the readonly option to the MKESFS call. This assures that the data can
be read for restores, but that no new backups are written to the media server.
The option also assures that no existing backup images are expired or deleted.
For example:
$MKESFS -o readonly,cache_dir="$CACHEDIR",storage_server=$CLDSRV,
fs_name=$FSNAME,media_server=$MEDIA,master_server=$MASTER,
fs_version=$FSVERSION | tee -a "$LOGFILE")
■ The readonly option can be removed at a later date to allow the MSDP
cloud storage server to once again be used for duplication or backup jobs.
However, the best approach is to create a new MSDP cloud storage server
for this purpose and to keep this recovered MSDP cloud storage server in
a readonly mode until the data is no longer needed and it can be retired.
The readonly option is configured in the esfs.json file.
After changing the readonly option, you must restart vxesfsd.
4. On the MSDP cloud storage server, call esfs_init.sh manually, using the
following options:
Disaster recovery when CloudCatalyst is enabled 7
Recovering only the MSDP cloud storage server when NetBackup CloudCatalyst is enabled
/usr/openv/esfs/scripts/esfs_init.sh
--cacheDir=/cache_directory/cache
--mountPath=/cache_directory/storage --fsName=ESFS1
--cloudServer=cloud_server --masterServer=master_name
--mediaServer= media_name
Note: This procedure assumes that the –-cacheDir and –-mountPath options
use the same root path. For example, $ROOTPATH/cache and
$ROOTPATH/storage.
/usr/openv/pdde/pdconfigure/scripts/installers/PDDE_initConfig.sh
--storagepath=/cache_directory/storage --spalogin=cloud_username
--spapasswd=cloud_password --spalogretention=90
--verboselevel=3 --dbpath=/cache_directory/storage --dedupetocloud=true
--esfshostname=cloud_storage_server_name
--spalogpath=/cache_directory/storage/log --storagepoolid=any_value
--installpath=/usr/openv/pdde
/usr/openv/pdde/pdconfigure/scripts/installers/PDDE_initConfig.sh
--storagepath=/msdpc/storage --spalogin=SEI3O2VOOJS8EJIVIJNG
--spapasswd=EIJFOBROPOPJPO3KPO5MBGL7IJNLLM
--spalogretention=90 --verboselevel=3 --dbpath=/msdpc/storage
--dedupetocloud=true --esfshostname=hostabc
--spalogpath=/msdpc/storage/log --storagepoolid=1193
--installpath=/usr/openv/pdde
Disaster recovery when CloudCatalyst is enabled 8
Recovering only the MSDP cloud storage server when NetBackup CloudCatalyst is enabled
Note: This procedure assumes that the -–storagepath option uses the same
root path as -–cacheDir and -–mountPath.
As a result of this step, you may see error messages in the output. However,
these errors do not affect the disaster recovery process. For example:
6. On the MSDP cloud storage server, run the setlsu_ioctl command to set
the bucket name.
Note: The cloud.lsu file does not need to exist to run this command.
/usr/openv/esfs/bin/setlsu_ioctl
/cache_directory/storage/proc/cloud.lsu name_of bucket
7. On the MSDP cloud storage server, run the drcontrol command with the
following options to recover the MSDP catalog from the most recent backup
image:
/usr/openv/pdde/pdcr/bin/drcontrol --auto_recover_DR --policy
MSDP_policy_name --disk_pool disk_pool_name
9. Some time after verifying that the recovery operation is successful, you can
reclaim some disk space by removing saved MDSP catalog directories that
were created during the recovery process. To do so, run the following command:
/usr/openv/pdde/pdcr/bin/drcontrol --cleanup
Disaster recovery when CloudCatalyst is enabled 9
Recovering the master server (partial) and the MSDP cloud storage server when NetBackup CloudCatalyst is
enabled
Note: This procedure recovers the MSDP cloud storage server without fully
recovering the master server. Therefore, if KMS encryption was configured, a master
server NetBackup catalog recovery is required to recover the KMS encryption keys.
After performing the NetBackup catalog recovery, recover the MSDP cloud storage
server as described in the following topic:
See “Recovering only the MSDP cloud storage server when NetBackup
CloudCatalyst is enabled” on page 5.
■ If swapping in a new host, the host name is the same as the name of the previous
host.
1. Install NetBackup on the master server.
2. Install NetBackup on the MSDP cloud storage server.
3. Deploy a host name-based security certificate for the MSDP cloud storage
server:
■ Run the following command on the master server:
bpnbaz –ProvisionCert media_server_name
Restart the services on the MSDP cloud storage server after generating a
certificate.
■ Run the following on the MSDP cloud storage server:
nbcertcmd –getCACertificate
Disaster recovery when CloudCatalyst is enabled 10
Recovering the master server (partial) and the MSDP cloud storage server when NetBackup CloudCatalyst is
enabled
4. On the MSDP cloud storage server, edit the esfs_init.sh file, located in the
following directory:
/usr/openv/esfs/scripts/esfs_init.sh
Add the readonly option to the MKESFS call. This assures that the data can
be read for restores, but that no new backups are written to the media server.
The option also assures that no existing backup images are expired or deleted.
For example:
$MKESFS -o readonly,cache_dir="$CACHEDIR",storage_server=$CLDSRV,
fs_name=$FSNAME,media_server=$MEDIA,master_server=$MASTER,
fs_version=$FSVERSION | tee -a "$LOGFILE")
■ The readonly option can be removed at a later date to allow the MSDP
cloud storage server to once again be used for duplication or backup jobs.
However, the best approach is to create a new MSDP cloud storage server
for this purpose and to keep this recovered server in a readonly mode until
the data is no longer needed and it can be retired.
The readonly option is configured in the esfs.json file.
After changing the readonly option, you must restart vxesfsd.
■ From the main shell menu, launch the Appliance Cloud Storage Server
Configuration Wizard.
7. On the MSDP cloud storage server, use the drcontrol command to create
an MSDP catalog policy if such a policy does not already exist.
Run the following command. For catalog_policy_name, use the same name
as the original catalog policy:
drcontrol --new_policy catalog_policy_name
9. Recover the MSDP cloud storage server files and the FSDB database. Run
the following command:
drcontrol --recover_last_cloud_catalyst_image --policy
MSDP_policy_name
10. Delete the old files that are not relevant for the recovered MSDP cloud storage
server. Run the following command:
drcontrol --delete_old_files_for_cloud_catalyst --policy
MSDP_policy_name
11. Use the Backup, Archive, and Restore client interface to restore the files and
directories protected by the MSDP catalog policy (MSDP_policy_name in the
previous steps), except for the cache directory.
That is, select /cache_directory/storage and /usr for restore, but do not
select /cache_directory/cache for restore.
12. Start spad on the MSDP cloud storage server by running the following
command:
/usr/openv/pdde/pdconfigure/pdde spad start
13. Recover the MSDP catalog from the catalog shadow files by running the
following command on the MSDP cloud storage server:
/usr/openv/pdde/pdcr/bin/cacontrol --catalog disaster_recovery
14. Start spoold on the MSDP cloud storage server by running the following
command:
/usr/openv/pdde/pdconfigure/pdde spoold start
16. Use the Catalog utility to run a Verify operation on an existing backup image.
The Verify operation should verify the following:
■ That the data has been downloaded from the cloud.
■ That the image is available for restore.
17. Some time after verifying that the recovery operation is successful, you can
reclaim some disk space by removing saved MDSP catalog directories that
were created during the recovery process. To do so, run the following command:
/usr/openv/pdde/pdcr/bin/drcontrol --cleanup