Tuesday, 1 May 2012

NDMP Copy

1 NDMP Copy

Transfers directory trees between filers using NDMP (Network Data management Protocol)
  • Ndmpcopy transfers data between filers/v-filers using the Network Data Management Protocol (NDMP) versions 3 and higher. 
  • This process can be thought of as creating a dedicated data pipe between dump running on the source filer and restore running on the destination filer.

1.1 Pre-Requisite

Turn on ndmp by

Filer > ndmpd on

Ping the filers each other and make sure they are reachable

Make sure that the Data ONTAP release on the filers you are using for the copy support NDMP version 3 and/or higher.

Filer >ndmpd version 

For filers running ONTAP version 7.X, change the ndmpd authentication type to challenge

Filer > options ndmpd.authtype challenge

1.2 How to run ndmpcopy command

From the filer use the following syntax to run the command.

Syntax:

ndmpcopy [options] source destination

Where, source and destination are of the form [filer:]path

Options:

-sa username:password This is used for authenticating at source filer

-da username:password This is used for authenticating at source filer

-st text | md5 Source filer authentication type

-dt text | md5 Destination filer authentication type

-l 0 | 1 | 2 Level 0,1 and 2 copy (default is 0)

-d Debug

-f Force flag

-h Help

Example:

Filer > ndmpcopy -sa root:password –da root:password  /vol/vol_s 10.100.201.10:/vol/vol_d

In this example /vol/vol_s directory on the source filer is copied to /vol/vol_d on filer 10.100.201.10

-sa root:password option is specified to user is root  and password is  “password” for the source user authentication and –da for the same purpose at destination filer, Screen shot.

1.3 Problems Faced and Lessons Learnt

  • Initially filer was giving ndmp authentication error, this was fixed by specifying the username and password (-sa and -da) option. 
  • NDMP can copy at qtree level, but can not copy individual sub directories 
  • Snapshot backups are taken for copying the data and snapshot copy is deleted after transfer is over. 
  • No need to restrict the destination volume for copy. 
  • Also ONTAP version 7.x requires, ndmpd.authtype set to challenge 

 
Please write your valuable comments, about my blogspot.

4 comments:

  1. What is the "-ds" option for, in your example

    ReplyDelete
  2. What is the -da option used for?
    This is your description:
    "-da username:password This is used for authenticating at source filer "

    ReplyDelete
    Replies
    1. 32 bit aggregate to 64 bit aggregate

      If there is any existing aggregate in 32bit means.
      Create one aggregate with 64 bit
      Fas > aggr status
      Fas > aggr create aggr1 –B 34 10
      Fas > vol create vol2 aggr1 100g
      Fas > ndmpd on
      Fas > ndmpd –l 0 –f /vol/vol1 /vol/vol2

      Normal volume to root volume

      Fas > aggr create aggr1 10
      Fas > vol create vol1 aggr1 100g
      Fas > ndmpd on
      Fas > ndmpd –l 0 –f /vol/vol0 /vol/vol1
      Fas > vol option vol1 root
      Fas > reboot

      Delete
  3. step 1. on EACH filer you are copying between do this to hash your password "ndmpd password USER"

    explanation: SOURCE_FILER will need the credentials for user on it. use the -sa (Source Authentication) user name, colon, hashed password for that filer. follow with the DEST_FILER user name, colon, hashed password.

    SOURCE_FILER> ndmpcopy -sa USER:PASS_HASH -da USER:PASS_HASH "SOURCE_FILER:/vol/volume/.snapshot/qtree/folder/file" "DESTINATION_FILER:/vol/volume/qtree/"

    For connection issues make sure the "options ndmp.access host=IP1, IP2, IP3"

    ReplyDelete