How To: End-to-End SnapProtect Storage Policy Creation

The example I’m going to give here is for an environment that is already configured but has storage controllers that are not configured as NAS iData Agents for backup or any volumes on those controllers. In this environment the controller I’m enabling backups on is the secondary storage tier which is already a snapvault destination so it is in the Array Manager for SnapProtect. This environment requires new NetApp aggregates to be added as resource pools as new volumes and data have been assigned to the aggregates. The process involves working with SnapProtect, NetApp Management Console (DFM) and the NetApp storage controllers.

Enable backups on a controller within SnapProtect:

Enable Accounts

Before you begin log onto the controller and ensure the login account you require has access to the controller. To do this open a SSH session to the controller and use the following command:

#useradmin user list

If the account used by SnapProtect doesn’t exist then you’ll need to add it as an administrator. Below is a snapshot from a controller where it is added and also a controller where it’s not.

snapprotect-etoe-1

snapprotect-etoe-2

You can add the account via the command line or via the web console. In this instance I added the account via the console. In System Manager go to Configuration -> Local Users and Groups -> Users and click Create. Enter the required details and click Create.

snapprotect-etoe-3

Once completed you can re-run the command from the CLI to ensure that the account appears

snapprotect-etoe-4

 

Enable the client for backups

Go to Client Computer and select the controller you wish to enable backups from.

snapprotect-etoe-5

Right click and select Properties.

snapprotect-etoe-6

Enable the backup. Rename the default settings via the properties if you wish. Also, on the general tab enter the account details for the required service account. This is normally an AD account

snapprotect-etoe-7

 

Create the Resource Pools if you are going to be using new aggregates

Go to NetApp Management Console and create the resource pools for the aggregrates. Log onto the server running onCommand and launch the NetApp Management Console.

snapprotect-etoe-8

Go to Data -> Resource Pools and click on Add. Now enter a name for the resource pool

snapprotect-etoe-9

snapprotect-etoe-10

Click next and select the aggregate that’ll be used by the pool.

snapprotect-etoe-11

Click Next. Enter a label for the resource and click Next

snapprotect-etoe-12

Deselect the aggregate overcommitted thresholds and click Next

snapprotect-etoe-13

Confirm the settings and click Finish

snapprotect-etoe-14

Afterwards in SnapProtect, go into the properties for an existing snapvault/snapmirror and verify that the resource pools appear in the provisioning tab.

snapprotect-etoe-15

 

Create new storage policy

Next, create a Storage Policy to take snapshots of the volume.

snapprotect-etoe-16

Enter a policy name and click Next

snapprotect-etoe-17

Enter the library and click next

snapprotect-etoe-18

Enter a media agent and click Next

snapprotect-etoe-19

Enter the retention and click next

snapprotect-etoe-20

Select the OCUM server and click Next (selected by default)

snapprotect-etoe-21

Review the policy and click Finish

snapprotect-etoe-22

 

Create a Primary Snapshot policy

Right-click on the Primary(Snap) policy that was created by default. Enter 1. Primary (Snapshot) as the name and check the retention periods are as required

snapprotect-etoe-23

snapprotect-etoe-24

Select the Primary (Classic) policy and edit it so that the name is set to UNUSED Primary (Classic)

 

Create an Auxillary Copy policy

Next right-click on the policy name and select Create a new Snapshot Copy.

snapprotect-etoe-25

Enter the name as 2. Aux Copy Remote with Snapvault or Snapmirror within the parenthesis depending on what job type it is. Select Vault for Snapvault and Mirror for Snapmirror. Select the library also. If it’s a vault then Selective Copy will be enabled by default

snapprotect-etoe-26

Enable the retention based on the backup policies

snapprotect-etoe-27

Select the Copy Policy to have Primary (Snapshot) as the Source Copy. If this is a 3-chain backup such as Primary -> Snapvault -> Snapmirror then for the Snapmirror Aux Copy you would set the source copy to be Aux Copy Local (Snapvault). As this is only a Primary -> Snapvault the source copy is set to Primary

snapprotect-etoe-28

Set the Aux Copy Fallen Behind to the below

snapprotect-etoe-29

Verify the associations. If the subclient hasn’t already been assigned to this policy this will be empty

snapprotect-etoe-30

Click on Provisioning and select the required Resource Pool for the Snapvault destination. Also select the required Provisioning Policy. Click Ok to save the settings.

snapprotect-etoe-31

The last thing to do for the policies is to set the Copy Precedence, otherwise the default Classic will appear and break the chain you want to set up. Right-click on the new Storage Policy and select Properties.

snapprotect-etoe-32

Select the UNUSED policy and click the down arrow so that it is the last in the precedence order.

snapprotect-etoe-33

 

Edit the subclient to use new Storage Policy

In the default subclient change the settings to point to the required volume and assign it to the newly create storage policy. Go to Properties of the client.

snapprotect-etoe-34

Set the Storage Devce -> Data Storage Policy -> Storage Policy to the new policy. You can also rename the default policy too before clicking ok.

snapprotect-etoe-35

 

Test the backup

Run a test backup to ensure it works correctly. Right-click on the default subclient and click Backup

snapprotect-etoe-36

Verify via the console or the command line that it completed successfully

snapprotect-etoe-37

You can also see from the System Manager console that the snapshot was created

snapprotect-etoe-38

 

Test the Aux Copy

Now run an auxillary copy. Right-click on the storage policy and select All Tasks -> Run Auxillary copy.

snapprotect-etoe-39

In the Select a Copy field select the Aux copy you want to run. If you have multiple Aux Copys such as Snapmirror and Snapvault you’ll have multiple choices from the drop down. Select the copy and click Ok

snapprotect-etoe-40

The job will begin in the console

snapprotect-etoe-41

To verify that the job is running, from the backup controller run the command snapvault status and you’ll see the status as transferring.

snapprotect-etoe-42

The job will say that it’s checking conformance. This involves DFM setting up the relationship. To view what is going on go to the OnCommand server with the Management Console -> Data -> Jobs and you can see the job that is currently running.

snapprotect-etoe-43

If you click on one of the job steps it will tell you the source and destination volume names. From here you can check on the destination that the volume has been created.

snapprotect-etoe-44

Updates within the SnapProtect console are slow so if you want to check on the progress run the snapvault status command again on the controller. Verify the snapshots have moved across in SnapProtect by going to the Storage Policy and selecting the remote aux copy policy. Right click and select Tasks -> List Snaps. The snapshots that were ready for transmission will be visible.

snapprotect-etoe-45

snapprotect-etoe-46

This can also be checked from the System Manager console.

snapprotect-etoe-47

 

Set up Schedule Policies

Once the aux copy job has been confirmed as completed it’s now time to add the backup and snapvault/snapmirror to a backup schedule. To set the backup schedule policy you first need to check if there are any schedules assigned to the storage policy. If you do then either remove it or ensure it’s correct for your needs, otherwise you’ll end up with two schedules and they will clash and cause issues down the road.

As this backup will run directly on the backup storage and to separate it from other systems I’m going to create new backup schedules for this storage policy. To create a new policy you can right-click on Schedule Policies and select New Schedule Policy or right-click on an existing policy as select clone.

snapprotect-etoe-48

As the CIFS snapshot schedule is configured similar to what I need I’m going to create a clone of the existing Daily CIFS snapshot.

snapprotect-etoe-49

Create the schedules you require for full and incremental backups. Edit the schedules listed with the policy as required.

snapprotect-etoe-50

Make sure to edit the associations as they get cloned as well from the cloning process. Select the subclient you want to backup. Once you’re happy with it click Ok

snapprotect-etoe-51

Create/clone a new schedule for the Aux Copy (Snapvault/Snapmirror) also. Set the snapshot replication time to be well after the initial backup to ensure that there’s sufficient time for the primary to finish.

snapprotect-etoe-52

Once again edit the associations so that only the subclient you want will be part of this schedule. This is based on the storage policy you created earlier. Click ok once the one you need has been selected

snapprotect-etoe-53

 

 

Completed

Now you have set up the backup from start to finish, from resource pool creation for an aggregate to setting up and testing the policies.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s