Description
Auto Image Replication (AIR) is often used to keep copies for a longer retention period in a master server domain that is different from the master server that originally created the backup image. If a client has a backup image that has expired in it's local master server's catalog, you may be able to replicate a remote copy back to the source master server domain by reversing the replication process (reverse AIR). From the original master server, you can find remote images which are still available for recovery (e.g. they haven't expired yet) using the nbstlutil command line in the source domain:
Command syntax: nbstlutil repllist
On UNIX systems, the directory path to this command is /usr/openv/netbackup/bin/admincmd/
On Windows systems, the directory path to this command is <install_path>\NetBackup\bin\admincmd\
This command will list all of the images that have been replicated to target master servers. You can use additional command line options to filter the results.
For the example below, the image we wish to replicate is 'client1_1367860165'. We have 2 master servers: "MasterA", the original master server which no longer contains the image, and "MasterB", a second Master server which still contains the image. Images were originally replicated using the SLP definition above (Air2PD).
Note:
- NetBackup will not auto-import any backup ID that remains in its catalog. This includes:
- images whose copies are all expired but not yet cleaned up
- images where a replication copy still exists (use nbstlutil repllist to see these).
If any copies remain, you will need to expire all copies on MasterA and run image cleanup. You will also need to eliminate the replication copy record reported by nbstlutil repllist.
- You need an import SLP on MasterA that targets the relevant PureDisk Disk Pool Storage Unit. If you do not already have one, this will need to be created.
Solution steps:
- Choose the Disk Pool on MasterB that will replicate the image to MasterA, and make a note of the Storage Server it uses. If a suitable Disk Pool does not already exist, use the standard method to create one.
- To confirm you have AIR setup to replicate in both directions, check the diskpool has entries for both Source and Target in the Replication field; or use the command: nbdevquery -listdp -stype PureDisk -U to confirm that disk pool has all 3 Flags: ReplicationSource, ReplicationTarget, and TargetedReplication.
- Search MasterB's catalog for the backup image. If the required image on MasterB is not already stored on the Disk Pool from Step 1, use bpduplicate or the catalog GUI to place a copy there.
- Remove any record of this backup id in MasterA's catalog and database. Expire any local copies using the command below.
- From MasterA prompt: bpexpdate -backupid client1_1367860165 -d 0 -force
- Note: This requires the image to be in Storage Lifecycle State 'complete'. If you get the following error...
EXIT STATUS 1573: Backup image cannot be expired because its SLP processing is not yet complete
...You will need to cancel the image in SLP using the commands below.
From MasterA prompt: nbstlutil cancel -backupid client1_1367860165
From MasterA prompt: bpexpdate -backupid client1_1367860165 -d 0 -force - Note: if you later get EXIT STATUS 1573, the commands above can be used but they will delete the auto-import event, so you will have to replicate the image again.
- Note: This requires the image to be in Storage Lifecycle State 'complete'. If you get the following error...
- From MasterA prompt: bpexpdate -backupid client1_1367860165 -d 0 -force
- Replicate the image from MasterB to MasterA.
- From MasterB prompt: nbreplicate -backupid client1_1367860165 -cn <local copy number> -rcn <copy number plus 101> -target_sts <target storage server from step1> -slp_name reverse-air -target_user <target storage server username> -target_pwd <target storage server password>
At this point, you should see a replication job start on MasterB. Shortly after the replication job is finished, the target storage server should notify MasterA that the image is available for import. You can confirm this by running the command below:
From MasterA prompt: nbstlutil pendimplist
...and searching for the backup id you are interested in. After some time, depending upon the size of your import backlog (the number of images returned by the previous command), this image should be batched in an import job.
Don't forget this last step:
The image will be imported and set to lifecycle complete with the same expiration date that the source copy had. You may want to manually change the expiration date/time using bpexpdate.
For usage, see the NetBackup™ Commands Reference Guide for the applicable version.
Applies To
- This solution works for NetBackup 7.7 and above.
- This solution is only supported for Veritas's PureDisk storage type. In addition, replication from NetBackup PDDO or a NetBackup 5020 appliance to a NetBackup Media Server Deduplication Pool (MSDP) is explicitly NOT SUPPORTED. If you are using MSDP to PDDO replication, you may still perform this procedure. However, if you have a PDDO device in the source master server domain that you can replicate back to.
- The ability to reverse the image replication process is not a part of the qualification program for third party storage devices to be qualified for NetBackup AIR. This means the functionality described here has not been tested with third party storage devices and is therefore explicitly NOT SUPPORTED for third party (non-Veritas) storage devices. For any exceptions to this, please reference the NetBackup Hardware Compatibility Matrix.