Auto Image Replication A Hands-On Experience Hands-On Lab Description Get hands on with Auto Image Replication in this self-paced lab session that includes several exercises emulating different scenarios involving replicating backups between NetBackup domains in geographically remote sites. This lab assumes a basic working knowledge of NetBackup and, in particular, MSDP disk storage. However the environment is pre-configured and you are not required to configure the storage itself. At the end of this lab, you should be able to Define SLPs for both the source and target side of an Auto Image Replication setup Apply the credentials for a remote storage server to an existing storage server Understand the concept of target retention Understand what attributes are applied to a target domain SLP when it is automatically created. Understand the concepts of bi-directional, one to many, many to one and cascaded replication Notes for the Instructor Lead lab A brief presentation will introduce this lab session and discuss key concepts. The lab will be directed and provide you with step-by-step walkthroughs of key features. Feel free to follow the lab using the instructions on the following pages. You can optionally perform this lab at your own pace. Be sure to ask your instructor any questions you may have. Thank you for coming to our lab session.
Notes for the Self Paced lab The lab will be directed and provide you with step-by-step walkthroughs of key features. Feel free to follow the lab using the instructions on the following pages. You can optionally perform this lab at your own pace. Thank you for working through this lab session. Background information on the lab configuration This lab consists of 3 virtual machines, each functioning as a separate NetBackup domain, call LONDON, LASVEGAS and SYDNEY. All 3 VMs are Windows 2003 64 bit running NetBackup 7.5.0.4 and LONDON also has OpsCenter 7.5.0.4 installed. The machines are designed to boot logged in as Administrator. In the event the session gets locked out the Administartor password is symc4now. The machines are configured as master/media servers with MSDP storage and have local host files configured to allow communication between them. Each machine also has a LIFECYCLE_PARAMETERS file configured to force duplication operations to occur withing 3 minutes of a backup completing and thus to prevent delays in the duplication process. The lab activities comprise a total of 5 exercises, each of which should complete within 10 minutes. Much of the set up of each exercise can be completed while the previous exercise is running to save time. Finally please note that the naming conventions proposed for backup policies and SLPs in the lab exercises are purely for guidance you can use any naming convention you choose provided the source and target SLP names match. 2 of 12
Lab Exercise 1: Uni-directional A.I.R. In this exercise a backup is made in the London domain, replicated to the Las Vegas domain and imported. Exercies 1 Backup at London and replicate to Las Vegas 1. Add the storage server LASVEGAS to the list of replication targets for the LONDON domain. Using the administration GUI on master server LONDON select Media and Device Management -> Credentials -> Storage Servers and click on the storage server name to open the Change Storage Server screen. Select the replication tab. In the add new replication target area of the screen enter the storage server name as LASVEGAS, the username as fred and the password as barney and press add. When the replication target has been added press OK to save the changes. 2. Create a storage lifecycle policy for the LONDON domain called LONDON-LASVEGAS. Using the administration GUI on master server LONDON select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name LONDON-LASVEGAS. Add a Backup destination with storage unit set to LONDON-MSDP. Add a Replication destination with a retention type of Fixed set. Press OK to save the SLP definition. 3. Create a storage lifecycle policy for the LASVEGAS domain called LONDON-LASVEGAS. 3 of 12
Using the administration GUI on master server LASVEGAS select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name LONDON-LASVEGAS. Add an Import destination with storage unit set to LASVEGAS-MSDP and retention type set to target retetion. Press OK to save the SLP definition. 4. Create a backup policy for the LONDON domain called LONDON-LASVEGAS-BACKUP. Using the administration GUI on master server LONDON select NetBackup Copy the backup policy LONDON-BACKUP to LONDON-LASVEGAS-BACKUP. From the Policy Storage pull down on the policy LONDN-LASVEGAS-BACKUP select the SLP LONDON-LASVEGAS. Press OK to save the backup policy definition. 5. Run the backup policy called LONDON-LASVEGAS-BACKUP and monitor the progress. Using the administration GUI on master server LONDON select NetBackup Right click on the policy LONDON-LASVEGAS-BACKUP and select Manual Backup. Press OK to start the backup. Watch the activity monitor in the administration GUI on the master server LONDON for the backup job to complete. Wait a few minutes and watch for the duplication job to complete 6. Watch the activity monitor for the import job to complete. On the administration GUI on the master server LASVEGAS select NetBackup Management -> catalog and press search now the imported catalog record is displayed. On the master server LASVEGAS start the BAR GUI. Add the client name LONDON to the client list and select it as the source client for restores. Choose select for restore to browse the contents of the backup. Alternative monitoring approach using OpsCenter on master server LONDON this can be used for all labs: 7. Launch the OpsCenter console on master server LONDON 8. Login into the OpsCenter console issuing the username admin and password password 9. On the monitor tab click on Job Summary by State to expand the view to show the jobs from all three domains. 4 of 12
Lab Exercise 2: Bi-directional A.I.R. Having configured replication from London to Las Vegas we now configure replication from Las Vegas to London allowing data to be replicated in two directions. Exercise 2 Backup at Las Vegas and replicate to London 1. Add the storage server LONDON to the list of replication targets for the LASVEGAS domain. Using the administration GUI on master server LASVEGAS select Media and Device Management -> Credentials -> Storage Servers and click on the storage server name to open the Change Storage Server screen. Select the replication tab. In the add new replication target area of the screen enter the storage server name as LONDON, the username as fred and the password as barney and press add. When the replication target has been added press OK to save the changes. 2. Create a storage lifecycle policy for the LASVEGAS domain called LASVEGAS-LONDON. Using the administration GUI on master server LASVEGAS select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name LASVEGAS-LONDON. Add a Backup destination with storage unit set to LASVEGAS-MSDP. Add a Replication destination with a retention type of Fixed set. Press OK to save the SLP definition. 3. Create a storage lifecycle policy for the LONDON domain called LASVEGAS-LONDON. 5 of 12
Using the administration GUI on master server LONDON select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name LASVEGAS-LONDON. Add an Import destination with storage unit set to LONDON-MSDP and retention type set to target retetion. Press OK to save the SLP definition. 4. Create a backup policy for the LASVEGAS domain called LASVEGAS-LONDON-BACKUP. Using the administration GUI on master server LASVEGAS select NetBackup Copy the backup policy LASVEGAS-BACKUP to LASVEGAS-LONDON-BACKUP. From the Policy Storage pull down on the policy LASVEGAS-LONDON-BACKUP select the SLP LASVEGAS-LONDON. Press OK to save the backup policy definition. 5. Run the backup policy called LASVEGAS-LONDON-BACKUP and monitor the progress. Using the administration GUI on master server LASVEGAS select NetBackup Right click on the policy LASVEGAS-LONDON-BACKUP and select Manual Backup. Press OK to start the backup Watch the activity monitor in the administration GUI on the master server LASVEGAS for the backup job to complete. Wait a few minutes and watch for the duplication job to complete 6. Watch the activity monitor for the import job to complete. watch the activity monitor for the import job to complete. On the administration GUI on the master server LONDON select NetBackup Management -> catalog and press search now the imported catalog record is displayed. On the master server LONDON start the BAR GUI. Add the client name LASVEGAS to the client list and select it as the source client for restores. Choose select for restore to browse the contents of the backup. 6 of 12
Lab Exercise 3: Many to one A.I.R. Adding replication from Sydney to London makes London a hub that can receive data from both Las vegas and Sydney. On the master server SYDNEY: Exercise 3 Many to one replication 1. Add the storage server LONDON to the list of replication targets for the SYDNEY domain. Using the administration GUI on master server SYDNEY select Media and Device Management -> Credentials -> Storage Servers and click on the storage server name to open the Change Storage Server screen. Select the replication tab. In the add new replication target area of the screen enter the storage server name as LONDON, the username as fred and the password as barney and press add. When the replication target has been added press OK to save the changes. 2. Create a storage lifecycle policy for the SYDNEY domain called SYDNEY-LONDON. Using the administration GUI on master server SYDNEY select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name SYDNEY-LONDON. Add a Backup destination with storage unit set to SYDNEY-MSDP. Add a Replication destination with a retention type of Fixed set. Press OK to save the SLP definition. 3. Create a backup policy for the SYDNEY domain called SYDNEY-LONDON-BACKUP. Using the administration GUI on master server SYDNEY select NetBackup Copy the backup policy SYDNEY-BACKUP to SYDNEY-LONDON-BACKUP. From the Policy Storage pull down on the policy SYDNEY-LONDON-BACKUP select the SLP SYDNEY-LONDON. 7 of 12
Press OK to save the backup policy definition. 4. Run the backup policy called SYDNEY-LONDON-BACKUP and monitor the progress. Using the administration GUI on master server SYDNEY select NetBackup Right click on the policy SYDNEY-LONDON-BACKUP and select Manual Backup. Press OK to start the backup 5. Watch the activity monitor in the administration GUI on the master server SYDNEY for the backup job to complete. 6. Wait a few minutes and watch for the duplication job to complete 7. Watch the activity monitor for the import job to complete. Using the administration GUI check the NetBackup Management -> Storage -> Storage Lifecycle Policies and note the import SLP SYDNEY-LONDON has been automatically created. Select NetBackup Management -> catalog and press search now the imported catalog record is displayed. Start the BAR GUI. Add the client name SYDNEY to the client list and select it as the source client for restores. Choose select for restore to browse the contents of the backup. 8 of 12
Lab Exercise 4: Cascaded A.I.R. We can add a Replication destination to the import SLP we created in exercise 3 to allow us to cascade the replication from Sydney to London and then on to Las Vegas. This capability can be useful if regional hubs exist that can provide routing to the central DR hub. Exercise 4 Cascaded replication 1. Modify the storage lifecyle policy called SYDNEY-LONDON. Using the administration GUI on master server LONDON select NetBackup Management -> Storage -> Storage Lifecycle Policies and select SYDNEY-LONDON. Add a Replication destination with with a retention type of Fixed set. Press OK to save the SLP definition. 2. Create a storage lifecycle policy for the LASVEGAS domain called SYDNEY-LONDON. Using the administration GUI on master server LASVEGAS select NetBackup Management -> Storage -> Storage Lifecycle Policies and right click to create a New Storage Lifecycle Policy. Give the SLP the name SYDNEY-LONDON. Add an Import destination with storage unit set to LASVEGAS-MSDP and retention type set to target retetion. Press OK to save the SLP definition. On the master server SYDNEY: 3. Run the backup policy called SYDNEY-LONDON-BACKUP and monitor the progress. Using the administration GUI on master server SYDNEY select NetBackup Right click on the policy SYDNEY-LONDON-BACKUP and select Manual Backup. Press OK to start the backup 9 of 12
Watch the activity monitor in the administration GUI on the master server SYDNEY for the backup job to complete. Wait a few minutes and watch for the duplication job to complete 4. Watch the activity monitor for the import job to complete. 5. Wait a few minutes and watch for the duplication job to complete 6. Watch the activity monitor for the import job to complete. On the administration GUI on the master server LASVEGAS select NetBackup Management -> catalog and press search now the imported catalog record is displayed. On the master server LASVEGAS start the BAR GUI. Add the client name SYDNEY to the client list and select it as the source client for restores. Choose select for restore to browse the contents of the backup. 10 of 12
Lab Exercise 5: One to many A.I.R. This is a less common use case but still worth looking at. In this case we want backups from London to be replicated to both Sydney and Las Vegas. Exercise 5 One to many replication. 1. Add the storage server SYDNEY to the list of replication targets for the LONDON domain. Using the administration GUI on master server LONDON select Media and Device Management -> Credentials -> Storage Servers and click on the storage server name to open the Change Storage Server screen. Select the replication tab. In the add new replication target area of the screen enter the storage server name as SYDNEY, the username as fred and the password as barney and press add. When the replication target has been added press OK to save the changes. 2. Run the backup policy called LONDON-LASVEGAS-BACKUP created in lab exercise 1 and monitor the progress. Using the administration GUI on master server LONDON select NetBackup Right click on the policy LONDON-LASVEGAS-BACKUP and select Manual Backup. Press OK to start the backup Watch the activity monitor in the administration GUI on the master server LONDON for the backup job to complete. Wait a few minutes and watch for the duplication job to complete Switch to the master server LASVEGAS and watch the activity monitor for the import job to complete. Switch to the master server SYDNEY and note that the import job has failed. This is because there is no import SLP called LONDON-LASVEGAS in the SYDNEY domain. 11 of 12
3. Re-run the backup policy called LONDON-LASVEGAS-BACKUP created in lab exercise 1 and monitor the progress. Using the administration GUI on master server LONDON select NetBackup Right click on the policy LONDON-LASVEGAS-BACKUP and select Manual Backup. Press OK to start the backup Watch the activity monitor in the administration GUI on the master server LONDON for the backup job to complete. Wait a few minutes and watch for the duplication job to complete 4. Watch the activity monitor for the import job to complete. On the master server SYDNEY: 5. Watch the activity monitor for the import job to complete. Using the administration GUI select NetBackup Management -> Storage -> Storage Lifecycle Policies and note the import SLP LONDON-SYDNEY has been automatically created. Select catalog and press search now note that both the images from the LONDON domain have been imported catalog. Thank you for taking the time to work through this lab. 12 of 12