Library Table of Contents Index Previous Next Comments

Setting up a basic SnapVault backup for filer systems

About configuring SnapVault Backup  Top

Setting up SnapVault backup on the filer primary systems means preparing the primary storage systems and SnapVault secondary storage systems to fulfill their backup tasks.

Note
You must have a separate SnapVault license for the primary storage and the secondary storage to use SnapVault.

Configuring a filer primary storage system for SnapVault  Top

On each filer primary storage system to be backed up to the SnapVault secondary storage system, log in to that filer's console and carry out the following steps

Step

Description

1

Set up the SnapVault primary license on each primary storage system to be backed up. In the filer console, enter the following command:

license add sv_primary_license

For more information, see Entering license codes.

2

Enable SnapVault on each primary storage system to be backed up. In the filer console enter the following command::

options snapvault.enable on

For more information, see Setting the enable option.

3

Use the options snapvault.access command to specify the name of the SnapVault secondary storage system to backup to. Enter the following command:

options snapvault.access host=snapvault_secondary

The filer must be able to resolve the host name (snapvault_secondary) to an IP address in the /etc/hosts file, or else the filer needs to be running DNS or NIS. Alternatively, you can use the literal IP address instead of the host name. See the na_protocolaccess(8) man page for details. For more information about the options command, see the na_options(1) man page.

For more information, see Setting the access option.

.

Configuring the SnapVault secondary storage system  Top

Configure the SnapVault secondary storage system. Carry out the following steps

Step

Description

1

Set up the SnapVault secondary license. In the filer console of the SnapVault secondary system, enter the following command:

license add sv_secondary_license

For more information see Entering license codes.

2

Enable SnapVault. In the filer console, enter the following command:

options snapvault.enable on

For more information see Setting the enable option.

3

Use the options snapvault.access command to specify the names of the primary storage systems to back up and restore. Enter the following command:

options snapvault.access host=snapvault_primary1, 
snapvault_primary2 ...

For more information see Setting the access option.

4

For each qtree on the filer primary storage systems to be backed up, use the snapvault start command line to execute an initial baseline copy of the qtree from the primary to the secondary storage system.

On each command line, specify the primary storage filer, volume, and qtree, and the secondary storage host, volume, and qtree. Use the -S prefix to indicate the source qtree path. For example,

snapvault start -S filer_a:/vol/vol1/tree_a sv_filerb:/vol/sv_vol/tree_a

snapvault start -S filer_a:/vol/vol1/tree_b sv_filerb:/vol/sv_vol/tree_b

snapvault start -S filer_a:/vol/vol1/tree_c sv_filerb:/vol/sv_vol/tree_c

Note
At an actual console, each command is entered on a single line.

For more information see Initiating the first backup of data from filer primary storage systems.

.

Scheduling SnapVault update backups  Top

On both the filer primary storage systems and the SnapVault secondary storage system configure a snapshot schedule. To set up a snapshot schedule, complete the following steps.

Step

Description

1
On the filer primary storage systems

On each filer primary storage system that contains qtrees to be backed up to a SnapVault secondary storage system, use the snapvault snap sched command to schedule sets of SnapVault snapshots on each volume containing the backed-up qtrees.

For each set of snapshots, specify volume name, snapshot basename (for example: "sv_hourly," or "sv_nightly," and so on), number of SnapVault snapshots to store locally, and the days and hours to execute the snapshots. For example:

snapvault snap sched vol1 sv_weekly 1@sat@19
snapvault snap sched vol1 sv_nightly 2@mon-fri@19
snapvault snap sched vol1 sv_hourly 11@mon-fri@7-18

Note
When specifying the SnapVault snapshot basename, avoid using "hourly," "nightly," or "weekly." Such naming will conflict with the non-SnapVault snap sched snapshots.

For more information, see Scheduling snapshots on the SnapVault filer primary storage system.

2
On the SnapVault secondary storage system

For each SnapVault volume snapshot set that you scheduled on your filer primary storage systems (see Step 1), use the snapvault snap sched -x command line to schedule a set of transfers to and subsequent snapshots of the SnapVault secondary storage system. For example:

snapvault snap sched -x sv_vol sv_weekly 8@sat@20
snapvault snap sched -x sv_vol sv_nightly 7@mon-fri@20
snapvault snap sched -x sv_vol sv_hourly 11@mon-fri@7-19

Snapshot basenames on the primary and secondary systems must match, but snapshot times and number of stored snapshots can differ.

The -x parameter causes SnapVault to copy new or modified data from the primary qtrees to their associated qtrees on the secondary storage system. After all the secondary qtrees on the specified volume have been updated, SnapVault then creates a snapshot of this volume for archiving.

Note
SnapVault snapshots on the secondary system take place 5 minutes after the hour specified in the snapvault snap sched -x command. This delay allows time for the transfer of new data from the primary qtrees to the secondary qtrees on the specified volume.

For more information see Scheduling snapshot backups to the SnapVault secondary storage system.

In event of data loss or corruption  Top

In the event of data loss or corruption on a qtree in the primary storage system, the administrator can use the snapvault restore command to restore that qtree to its state at the time of one of its SnapVault snapshots.

Step

Description

1

In the filer console of the primary storage system whose data you want to restore, use the snapvault restore command to specify

  • The path to the qtree on the secondary storage system that you want to restore from
  • The name of the snapshot that you want to restore from (if it is not the most recent snapshot)
  • The path on the primary storage system to the qtree you want to restore to
Example

This example restores qtree tree_b on primary storage system melzhost from qtree tree_b on the secondary storage system, using the most recent snapshot.

snapvault restore -S secondary_host:/vol/sv_vol/tree_b melzhost:/vol/vol1/tree_b

Note
At an actual console, the entire command in the example entry is entered as a single line.

For more information, see Restoring data to the primary storage system.

2

After the restore operation is completed on the primary volume, go to the SnapVault secondary storage system and use the snapvault start -r command to restart the SnapVault backup relationship between the primary and secondary qtrees. Specify

  • The path on the primary storage system to the qtree you want to back up
  • The path on the secondary storage system to the qtree that you want to back up to

For example:

snapvault start -r -S melzhost/vol/vol1/tree_b secondary_host/vol/vol1/tree_b

Note
At an actual console, the entire command in the example entry is entered as a single line.

For more information see Restoring data to the primary storage system.

Library Table of Contents Index Previous Next Comments