Upload
anuj-gupta
View
215
Download
3
Embed Size (px)
Citation preview
IBM Software Services for Tivoli
IBM Tivoli Support Technical Exchange Web Seminar:
NDMP Configuration for use with Tivoli Storage Manager
2IBM Software Services for Tivoli
Table of Contents
1. Overview of NDMP
2. NDMP Backup Configuration
3. Configuring Virtual Filespaces
4. Configuring NDMP Filer to Server Backups
5. Common Problems and Hints for Backups
6. Common Problems and Hints for Restores
3IBM Software Services for Tivoli
Overview of NDMP
•The Network Data Management Protocol is an open standard protocol
•NDMP deals with the relationship between backup applications and filers
4IBM Software Services for Tivoli
Overview of NDMP (cont)
•Filers run operating systems similar to UNIX
•Netapp filers run DATA ONTAP
•EMC filers run DART
•Filers accept various different types of connections
5IBM Software Services for Tivoli
Overview of TSM and NDMP
•TSM 5.3 supports typical NDMP setup which sends data from a filer to a library in different setups (all of which are described in detail in the TSM Administrator’s Guide)
TSM 5.4 supports 3-WAY NDMP backup•Typical NDMP setup is still used in 5.4, but 3-WAY NDMP is used in certain circumstances
6IBM Software Services for Tivoli
TSM 5.3 NDMP backup configuration setup
7IBM Software Services for Tivoli
TSM 5.3 NDMP backup configuration setup (cont)
• Step 1. Setting Up Tape Libraries for NDMP Operations
• Step 2. Configuring Tivoli Storage Manager Policy for NDMP
Operations • Step 3. Registering NAS Nodes with the Tivoli Storage Manager Server
• Step 4. Defining a Data Mover for the NAS File Server
• Step 5. Defining a Path to a Library
• Step 6. Defining Tape Drives and Paths for NDMP Operations
• Step 7. Labeling Tapes and Checking Tapes into Library
• Step 8. Scheduling NDMP Operations
• Step 9. Defining Virtual File Spaces
8IBM Software Services for Tivoli
Step 1. Setting Up Tape Libraries for NDMP Operations
1. Set up the tape library and media.
• Supported library types• SCSI (TSM server controls robotics directly or by passing SCSI
commands through NAS device)• ACSLS• 349x (Requires NAS vendor support in NDMP server )
a. Attach the SCSI library to the NAS file server or to the Tivoli Storage Manager server, or attach the ACSLS library or 349X library to the Tivoli Storage Manager server.
b. Define the library with a library type of SCSI, ACSLS, or 349X.
c. Define a device class for the tape drives.
9IBM Software Services for Tivoli
Step 2. Configuring TSM Policy for NDMP Operations
•DEFINE DOMAIN
•DEFINE POLICY SET
•DEFINE MGMTCLASS
•DEFINE COPYGROUP
•DEFINE STGPOOL
POLICY DOMAIN
POLICY SET
MANAGEMENT CLASS
COPY GROUP
10IBM Software Services for Tivoli
Step 3. Registering NAS Nodes with the TSM Server
•REGISTER NODE NASNODE NASPASS DOMAIN=NASDOMAIN TYPE=NAS
Step 4. Defining a Data Mover for the NAS File Server
•DEFINE DATAMOVER NASNODE TYPE=NAS HLADDRESS=NETAPP2 LLADDRESS=10000 USERID=ROOT PASSWORD=ADMIN DATAFORMAT=NETAPPDUMP
11IBM Software Services for Tivoli
Step 5. Defining a Path to a Library and Drives
•Define a path to the SCSI library from either the Tivoli Storage Manager or the NAS file server.
DEFINE PATH NASNODE NASLIB SRCT=DATAMOVER DESTT=LIBRARY DEVICE=mc0
•The value of the DEVICE parameter is the special file name for the tape library as it is known to the NAS file server. See Obtaining Special File Names for Path Definitions. ( Next slide)
12IBM Software Services for Tivoli
Step 5. Defining a Path to a Library and Drives (cont.)
Obtaining Special File Names for Path Definitions
To display the device names for tape libraries, issue the following command to the NAS filer:
sysconfig –m
To display the device names for tape drives, issue the following command to the NAS filer:
sysconfig -t
13IBM Software Services for Tivoli
Step 6. Defining Tape Drives and Paths for NDMP
1.Define a drive named NASDRIVE for a library named NASLIB
DEFINE DRIVE NASLIB NASDRIVE ELEMENT=117
2. Define a path for the drive:
DEFINE PATH NASNODE NASDRIVE SRCT=DATAMOVER LIBRARY=NASLIB DEVICE=rst01
14IBM Software Services for Tivoli
Step 7. Labeling Tapes and Checking Tapes into Library
•You must label the tapes and check the tapes into the tape library. These tasks are the same as for other libraries.
Step 8. Scheduling NDMP Operations
•You can schedule the backup or restore of images produced by NDMP operations by using administrative schedules that process the BACKUP NODE or RESTORE NODE administrative commands.
15IBM Software Services for Tivoli
Step 9. Defining Virtual Filespaces
Server Virtual filespace definitions are used to reference NAS directory
paths. A virtual filespace definition is used just like a NAS filespace.
•Example:
VFS Name represents Full path to Directory on NAS device
/NasDir represents /vol/vol2/home
16IBM Software Services for Tivoli
Configuring Virtual Filespaces
Virtual filespaces definitions provide the following
advantages:
• A file system backup can be partitioned among several NDMP backup operations and multiple tape drives.
• You can also use different backup schedules to back up sub-trees of a file system.
• Backup and restore times will be reduced• Provides more flexibility in configuring your NAS
backups• Virtual filespaces provide a mechanism for the
server to manage NAS directory level backups just like NAS filespaces
17IBM Software Services for Tivoli
Configuring Virtual Filespaces (cont.)
•Virtual Filespace Notes:
•The virtual file space name cannot be identical to any file system on the NAS node.
•NDMP Component only “sees” full NAS directory path not the VFS name.
•VFS names can be used wherever NAS filespace names are used such as in:
BACKUP NODE, RESTORE NODE, QUERY TOC,
QUERY NAS BACKUP, QUERY FILESPACE
18IBM Software Services for Tivoli
Configuring Virtual Filespaces (cont)
•Server commands related to Virtual Filespaces and NDMP
• DEFINE VIRTUALFSMAPPING
• DELETE VIRTUALFSMAPPING
• QUERY VIRTUALFSMAPPING
• UPDATE VIRTUALFSMAPPING
19IBM Software Services for Tivoli
Configuring NDMP Filer to Server Backups
20IBM Software Services for Tivoli
Configuring NDMP Filer to Server Backups
This is also known as “3-way NDMP Backup”
1. Set up a native storage pool DEFINE STGPOOL NASPOOL DISK FORMATSIZE=100G 2. Set the copy destination to the storage pool
UPDATE COPYGROUP STANDARD STANDARD STANDARD DESTINATION=NASPOOL TOCDESTINATION=NASPOOL
3. Activate the associated policy set
ACTIVATE POLICYSET STANDARD STANDARD
21IBM Software Services for Tivoli
Configuring NDMP Filer to Server Backups ( Cont.)
4. Set up a node for the NAS device.
• REGISTER NODE NASNODE NASPASS DOMAIN=NASDOMAIN TYPE=NAS
5. Set up a datamover for the NAS device.
• DEFINE DATAMOVER NASNODE TYPE=NAS HLADDRESS=NETAPP2 LLADDRESS=10000 USERID=ROOT PASSWORD=ADMIN DATAFORMAT=NETAPPDUMP
22IBM Software Services for Tivoli
Configuring NDMP Filer to Server Backups (Cont.)
There are several advantages to sending data via
NDMP backup directly over the LAN to the Tivoli Storage
Manager server.
• There are fewer library and device restrictions
• You can also backup NAS images to disk.
• Migration, Reclamation, Backup Storage Pool and
Disaster Recovery module can now be used for Nas
data,
23IBM Software Services for Tivoli
Common problems and hints for NAS backups
• The filer can be backed up 2 different ways:
1. Backup using DSMC (the TSM command-line client). The TOC option can be used with this command.
2. Backup using BACKUP NODE from DSMADMC (the TSM administrative client).
24IBM Software Services for Tivoli
Common problems and hints for NAS backups (cont.)
• A TOC is stored in the TOCDESTINATION and can be used later for file-level restore and file-level browsing
• NAS Backups pin the recovery log until completion
25IBM Software Services for Tivoli
Common problems and hints for NAS backups (cont.)
•There are a few common problems that can be experienced when running NAS backups.
•ANR1104 Operation process process ID terminated - NDMP session errors encountered.
•Investigate TSM and NDMP logs for a root cause
26IBM Software Services for Tivoli
Common problems and hints for NAS backups (cont.)
•09:22:29.127 [54][output.c][6273]: ANR0102E tocbuild.c(946): Error 1 inserting row in table "NDMP.Image.Contents(TEMP)".~
•http://www-1.ibm.com/support/docview.wss?uid=swg21223424
•Install SNAPSURE for EMC or another open-file utility for NETAPP or another vendor
27IBM Software Services for Tivoli
Common problems and hints for NAS restores
• As with NDMP backup, there are 3 different methods for restore:
1. Webclient – The webclient can be used to restore images or for file-level restore. Since TSM supports DAR, but not DDAR, file-level restore of directories will exhibit slow performance
28IBM Software Services for Tivoli
Common problems and hints for NAS restores (cont.)
2. RESTORE NODE – This command can be used to restore images or for file-level restore. File-level restore performance will be poor because DAR will not be used.
3. RESTORE NAS – This command can only restore images and is issued by DSMC (TSM command-line client)
29IBM Software Services for Tivoli
Where to Find More Information:
• More information can be found in the following locations:
• Chapter 7 of the Tivoli Storage Manager Administrator’s Guide
• http://publib.boulder.ibm.com/infocenter/tivihelp/v1r1/topic/com.ibm.itsmcw.doc/anrwgd54178.htm#nscfg
• www.ndmp.org• www.netapp.com• www.emc.com
30IBM Software Services for Tivoli
Q&A:
The operator will instruct you on how to ask your questions of the
presenters.