You are on page 1of 31

Backup and Recovery Methods

Module 15 Data ONTAP 8.0 7-Mode Administration

Module Objectives
By the end of this module, you should be able to: List the methods available to backup and recover data Use ndmpcopy to process full and incremental backups Discuss dump and restore Describe, enable, and configure NDMP on a storage system

2009 NetApp. All rights reserved.

Backup and Recovery Spectrum


Back up to Local Storage
- Recover single file, volume, or aggregate

Back up to Local Storage


- Recover files

Back up to Local/Remote Storage


- Recover files

Back up to Remote Storage


- Recover qtrees, directories, or files

Back up to Local or Remote Tape


- Recover directories or files

Back up with Third-Party Tools


- Recover qtrees, directories, or files
2009 NetApp. All rights reserved.

SnapRestore
Back up to Local Storage
- Recover single file, volume, or aggregate

SnapRestore reverts a file system back to any specified Snapshot copy or restores single file from a Snapshot copy Fast online restores of files and volumes Multiple recovery points Easy recovery process based on a single command input Requires the snaprestore license code Use SnapRestore to recover from data corruption or to revert a file system
2009 NetApp. All rights reserved.

Use SnapRestore with a Single File

Active File System MYFILE

SNAP1 MYFILE

MyFILE is made of disk blocks A, B, and C The active file system (AFS) is captured in Snapshot copy SNAP1 SNAP1 points to blocks A, B, and C and does not use additional disk space
2009 NetApp. All rights reserved.

Use SnapRestore with a Single File (Cont.)

Active File System MYFILE

SNAP1 MYFILE

With SnapRestore (to a new location),


The original file (A, B, and C) is copied to a new location on the disk (D, E, and F) This new file can be placed in the same location as the original file or in an alternative location
2009 NetApp. All rights reserved.

Use SnapRestore with a Single File (Cont.)

Active File System MYFILE

SNAP1 MYFILE

C block is modified; WAFL writes the change in new disk block C MYFILE is now made of disk blocks A, B, and C Snapshot copy SNAP1 still points to disk blocks A, B, and C
2009 NetApp. All rights reserved.

Use SnapRestore with a Single File (Cont.)

Active File System MYFILE

SNAP1 MYFILE

During testing, let us say you want to revert back to MYFILE You could:
Revert back by copying the data from the Snapshot directory or Use SnapRestore technology
2009 NetApp. All rights reserved.

Use SnapRestore with a Single File

Active File System MYFILE

SNAP1 MYFILE

With SnapRestore (to the original):


The original file (A, B, and C) is reverted by to be managed by the active file system The change block (C) is removed

2009 NetApp. All rights reserved.

Use SnapRestore with a Single File (Cont.)

Active File System MYFILE

SNAP1 MYFILE

With SnapRestore (to different location than original):


The original file (A, B, and C) is copied to a new location on the disk (D, E, and F) This new file can be placed in the same location as the original file or in an alternative location
2009 NetApp. All rights reserved.

Reverting a File
1. Verify that the volume is online and writable 2. List the Snapshot copies in the volume:
snap list /vol/vol_name

3. Notify network users 4. Initiate the reversion: snap restore -t file -s snapshot_name path_and_file 5. Use the r option to revert a file to a different location
snap restore -t file -s snapshot_name r new_path_&_file old_path_&_file

2009 NetApp. All rights reserved.

SnapRestore Versus Copying


Using SnapRestore to revert a single file provides advantages over copying a single file when the file is large such as a database
Copying requires double the storage and time Reverting saves time and reinstates the data NetApp recommends SnapRestore over alternative technologies to ensure reliability

For more information about SnapRestore with volume and aggregate reverts, see the NetApp Protection Software Administration course

2009 NetApp. All rights reserved.

Snapshot Copies
Back up to Local Storage
- Recover files

Administrators may back up and recover files quickly - almost instantaneously - with Snapshot copies NOTE: Snapshot copies do not replace standard backups to another media location See Module 11 for more information about Snapshot copies backup and recovery methods
2009 NetApp. All rights reserved.

Data Center

ndmpcopy Command
Back up to Local/Remote Storage
- Recover files

The ndmpcopy command: Used to transfer data between storage systems that support NDMP v3 or v4
system> ndmpd on

Data Center

Can carry out full and incremental transfers Limits incremental transfers to a maximum of two levels (one full and up to two incremental) Applies NetApp to NetApp only Syntax: system> ndmpcopy [options] source_host:source_path destination_host:destination_path
2009 NetApp. All rights reserved.

SnapVault
Back up to Remote Storage
- Recover qtrees, directories, or files

SnapVault is the NetApp embedded disk-to-disk backup and archival software Administrators may back up and recover: Qtrees Directories on nonNetApp storage

Data Center
FAS1

Central Repository
SnapVault

FAS2

SnapVault Primary Storage Systems

Non NetApp Storage


2009 NetApp. All rights reserved.

Open Systems SnapVault

Secondary Storage System

Tape Dumps and Restores


Back up to Local or Remote Storage
- Recover directories or files

NetApp provides support for:


Classical tape backup and recovery Virtual Tape Library (VTL)

Data Center

Tape System
2009 NetApp. All rights reserved.

VTL System

Dump and Restore Format


Data ONTAP dump adheres to Solaris ufsdump
Dump format:
Phase I and II: Build the map of files and directories, and collect file history and attribute information Phase III: Dump data to tape, specifically directory entries Phase IV: Dump files Phase V: Dump ACLs

Restore format:
Phase I: Restore directories Phase II: Restore files
2009 NetApp. All rights reserved.

Dump and Restore Event Logs


Event logging is off by default
To enable event logging:
backup.log.enable { off | on }

Event log files


Stored in the /etc/log/backup log file Rotated once a week Saved for up to six weeks

Event log message format:


type timestamp identifier event (event_info)

2009 NetApp. All rights reserved.

NetApp Virtual Tape Library Solution


Data Center

NetApp VTL provides:


NetApp VTL looks like a tape library to systems and applications Easily deployed in existing backup environments Existing tape infrastructure satisfies off-site requirements Can replace or enhance physical tape

NetApp Storage
Heterogeneous Storage

Backup Server

UNIX Servers

Tape Library Windows Servers

Benefits versus tape


Performance Reliability Simplified management Flexibility

Linux Servers
2009 NetApp. All rights reserved.

NetApp VTL

NDMP
Back up with Third-Party Tools
- Recover qtrees, directories, or files

NDMP is an open standard that allows backup applications to control native backup and recovery functions on NetApp storage systems and other NDMP servers NDMP-compliant backup applications interact with the ndmpd process on the storage system NDMP requests from backup applications prompt the storage system to invoke native dump and restore commands to initiate backups and restores
2009 NetApp. All rights reserved.

NDMP Support Matrix


Partner Data ONTAP 6.3.3 3.6 6.5.2 4.1 9 5.0 6.1.3, 6.2 2.1.4, 2.1.5 5.0, 5.1 4.5 Data ONTAP 6.4.2 3.7 7.0 4.2 9 5.0, 5.1 6.1.3, 6.2, 7.0 2.1.5 5.2 4.5, 5.0 Data ONTAP 6.5 TBD 7.0, 7.1 TBD TBD TBD TBD TBD TBD 4.5, 5.0 Data ONTAP 7.0 TBD 7.1.1 5.9 11.1 5.5 7.2 2.3 5.3 4.5, 5.0, 5.1 Data ONTAP 8.0 7-Mode TBD 7.1.1 5.9 11.1 5.5 7.2 2.3 5.3 4.5, 5.0, 5.1

Atempo Time Navigator BakBone NetVault CommVault Galaxy BrightStor ARCserve HP Data Protector EMC NetWorker SyncSort Backup Express IBM Tivoli Storage Manager Veritas NetBackup
2009 NetApp. All rights reserved.

NDMP Terminology and Components


NDMP client
The backup application is the NDMP client NDMP clients submit requests to an NDMP server, and then receive replies and status back from the NDMP server

NDMP server
A process or service that runs on the NetApp storage system The NDMP server processes requests from NDMP clients, and then returns reply and status information back to the NDMP client
2009 NetApp. All rights reserved.

Typical NDMP Backup Session


DMA Host DMA Content Index Control Messages Data Connection Payload Data Notifications, file history, log messages

TCP/IP IP Network

TCP/IP

NDMP Data Service TCP/IP, IPC

NDMP Tape Service

Primary Storage System

Secondary Storage System

2009 NetApp. All rights reserved.

NDMP Connection Information


NDMP uses a TCP/IP connection to a dedicated port NDMP does not require CIFS, NFS, HTTP, FCP, or iSCSI protocol license Storage system listens for NDMP requests on port 10000 when ndmpd is enabled
All messages are encoded using external data representation (XDR) standard (see RFC 1014 for more information)

2009 NetApp. All rights reserved.

Using Tape Devices with NDMP


Can be attached through NetApp storage system
Backup Server NDMP Control Connection NDMP Server
Tape Drive Tape Drive Robot

Can be attached through backup server


Backup Server NDMP Control Connection NDMP Server
Tape Drive

Tape Drive
Robot

NOTE: When sharing a tape device with backup


server, always attach and configure the device through the backup server
2009 NetApp. All rights reserved.

Enabling and Configuring NDMP


To enable NDMP (disabled by default):
system> ndmpd on or options ndmpd.enable on

To configure NDPM version (must match backup application):


system> ndmpd version { 2 | 3| 4}

To configure access (no access by default):


system> ndmpd.access

To configure NDMP authorization methods:


system> ndmpd.authtype

Combination of challenge, plain text, or both SnapVault and SnapMirror management requires challenge
2009 NetApp. All rights reserved.

Enabling and Configuring NDMP (Cont.)


To create the local account:
system> useradmin useradd <backupuser>

To set the NDMP password length:


system> ndmpd.password_length {8|16}

To generate an encoded NDMP password:


system> ndmpd password <backupuser>

To enable the NDMP connection log:


system> ndmpd.connectlog.enabled {off|on}

To include or exclude files with ctime changed from incremental dumps:


system> ndmpd.ignore_ctime.enabled {off|on}

2009 NetApp. All rights reserved.

NDMP Status and Session Information


Displaying NDMP status and session information
To determine if a session is operating as expected:
system> ndmpd status [session]

To debug an NDMP session if there are problems:


system> ndmpd probe [session]

Terminating NDMP sessions


To terminate a specific session:
system> ndmpd kill session#

To terminate all NDMP sessions:


system> ndmpd killall
2009 NetApp. All rights reserved.

Module Summary
In this module, you should have learned to: List the methods available to backup and recover data Use ndmpcopy to process full and incremental backups Discuss dump and restore Describe, enable, and configure NDMP on a storage system

2009 NetApp. All rights reserved.

Exercise
Module 15: Backup and Recovery Methods Estimated Time: 60 minutes

Check Your Understanding


What can be recovered using SnapRestore?
Single aggregate, volume, and a file

What is NDMP?
Network Data Management Protocolthe standard protocol for controlling data transfers between primary and secondary storage devices

What are the NetApp disk-to-disk backup and recovery methods?


SnapVault ndmpcopy NetApp VTL products

What are some limitations of ndmpcopy?


Cannot copy individual files Increments limited to two levels Works only with NetApp storage system
2009 NetApp. All rights reserved.

You might also like