![]() |
![]() |
Before beginning the configuration of Tivoli Data Protection for NDMP, ensure that you register the license. See Licensing Tivoli Storage Manager.
The following is a checklist to use for configuring Tivoli Data Protection for NDMP:
Before setting up a tape library for NDMP operations, you should have already determined whether you want to attach your library robotics control to the Tivoli Storage Manager server or to the NAS file server. See Planning for Tape Libraries and Drives used in NDMP Operations .
Connect the tape library robotics to the Tivoli Storage Manager server or to the NAS file server. See the manufacturer's documentation for instructions.
Define the tape library to Tivoli Storage Manager. For example:
define library tsmlib libtype=scsi
Create a device class for NDMP operations. A device class defined with a device type of NAS is not explicitly associated with a specific drive type (for example, 3570 or 8mm). However, we recommend that you define separate device classes for different drive types.
In the device class definition:
For example, to define a device class named NASCLASS for a library named NASLIB and media whose estimated capacity is 40GB, enter the following command:
define devclass nasclass devtype=nas library=naslib mountretention=0 estcapacity=40g
The storage pools you define for NDMP media are different from storage pools you define for Tivoli Storage Manager media because they are defined with different data formats. Tivoli Storage Manager operations use storage pools defined with a NATIVE or NONBLOCK data format. NDMP operations require storage pools with a data format that matches the NAS file server and the backup method to be used. For example, to define a storage pool named NASPOOL for a Network Appliance file server, enter the following command:
define stgpool naspool nasclass maxscratch=10 dataformat=netappdump
Attention: Ensure that you do not accidentally use storage pools that have been defined for NDMP operations in traditional Tivoli Storage Manager operations. Be especially careful when assigning the storage pool name as the value for the DESTINATION parameter of the DEFINE COPYGROUP command. Unless the destination is a storage pool with the appropriate data format, the backup will fail.
Policy allows you to manage the number and retention time of NDMP image backup versions. See Configuring Policy for Tivoli Data Protection for NDMP.
define domain nasdomain description='Policy domain for NAS file servers'
define policyset nasdomain standard
define mgmtclass nasdomain standard mc1
assign defmgmtclass nasdomain standard mc1
define copygroup nasdomain standard mc1 destination=naspool verexists=4
Attention: Ensure that management classes used for NDMP operations contain the name of a storage pool defined for NDMP operations. Accidentally mixing storage pools used in NDMP operations and those used in Tivoli Storage Manager operations will cause backups to fail.
activate policyset nasdomain standard
The policy is ready to be used. Nodes are associated with Tivoli Storage Manager policy when they are registered. For more information, see Step 3. Registering NAS Nodes with the Tivoli Storage Manager Server.
When a client node initiates a backup, the policy is affected by the option file for that client node. You can control the management classes that are applied to NDMP backups regardless of which node initiates the backup. You can do this by creating a set of options to be used by the client nodes. The option set can include an include.fs.nas statement to specify the management class for NAS file server backups. See Creating Client Option Sets from the Server for more information.
Register the NAS file server as a Tivoli Storage Manager node. This node name is used to track the image backups for the NAS file server. For example, to register a NAS file server as a node named NASNODE1, with a password of NASPWD1, in a policy domain named NASDOMAIN, enter the following command:
register node nasnode1 naspwd1 domain=nasdomain type=nas
If you are using a client option set, specify the option set when you register the node.
You can verify that this node is registered by issuing the following command:
query node type=nas
When you specify TYPE=NAS only NAS nodes are displayed.
Define a data mover for each NAS file server in your Tivoli Data Protection for NDMP environment. The data mover name must match the node name that you specified when you registered the NAS node to the Tivoli Storage Manager server. For example, to define a data mover for a NAS node named NASNODE1, enter the following command:
define datamover nasnode1 type=nas hladdress=netapp2 lladdress=10000 userid=root password=admin dataformat=netappdump
In this command:
Define a path to the library from either the Tivoli Storage Manager or the NAS file server.
define path server1 tsmlib srctype=server desttype=library device=/dev/lb1
define path nasnode1 naslib srctype=datamover desttype=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.
When you are creating paths, you must provide special file names for tape libraries and drives. For paths from a NAS data mover, the value of the DEVICE parameter in the DEFINE PATH command is the name by which the NAS file server knows a library or drive. You can obtain these names, known as special file names, by querying the NAS file server. For information about how to obtain names for devices that are connected to a NAS file server, consult the product information for the file server.
For example, for a Network Appliance file server, connect to the file server using telnet and issue the SYSCONFIG command. To display the device names for tape libraries, use this command:
sysconfig -m
To display the device names for tape drives, use this command:
sysconfig -t
Define the tape drives that you want to use in NDMP operations and the paths to those drives. Depending on your hardware and network connections, you can use the drives for only NDMP operations, or for both traditional Tivoli Storage Manager operations and NDMP operations. For example,
define drive naslib nasdrive1 element=117
define path server1 nasdrive1 srctype=server desttype=drive library=naslib device=/dev/rmt0
define path nasnode1 nasdrive1 srctype=datamover desttype=drive library=naslib device=rst01
You must label the tapes and check the tapes into the tape library. These tasks are the same as for other libraries. See Labeling Removable Media Volumes for more information.
You can schedule the backup or restore of NDMP images by using administrative schedules that process the BACKUP NODE or RESTORE NODE administrative commands. The BACKUP NODE and RESTORE NODE commands can be used only for nodes of TYPE=NAS. See Backing Up and Restoring NAS File Servers Using Tivoli Data Protection for NDMP for information about the commands.
For example, to create an administrative schedule called NASSCHED to back up all file systems for a node named NASNODE1, enter the following:
define schedule nassched type=administrative cmd='backup node nasnode1' active=yes starttime=20:00 period=1 perunits=days
The schedule is active, and is set to run at 8:00 p.m. every day. See Chapter 17, Automating Server Operations for more information.