Copy a LUN using NDMP
How to Copy a LUN in Data ONTAP 7-mode
For NetApp Data ONTAP 7-mode, it is possible to use ndmpcopy to copy a LUN from one storage system to another.
Example of a LUN to copy:
/vol/rtplunvol/ibmx336_03-run-A-w2k8r2-x86-64-hermes-dfm.d5-01
Example command:
ndmpcopy -da root:netapp1 /vol/rtplunvol/ibmx336_03-run-A-w2k8r2-x86-64-hermes-dfm.d5-01 10.61.133.185:/vol/x33603_boot_vol/bootlun/
Command Syntax
fas17A> ndmpcopy
usage:
ndmpcopy [<options>] <source> <destination>
<source> and <destination> are of the form [<filer>:]<path>
If an IPv6 address is specified, it must be enclosed in square brackets
options:
[-sa <username>:<password>]
[-da <username>:<password>]
source/destination filer authentication
[-st { text | md5 }]
[-dt { text | md5 }]
source/destination filer authentication type
default is md5
[-l { 0 | 1 | 2 }]
incremental level
default is 0
[-d]
debug mode
[-f]
force flag, to copy system files
[-mcs { inet | inet6 }]
force specified address mode for source control connection
[-mcd { inet | inet6 }]
force specified address mode for destination control connection
[-md { inet | inet6 }]
force specified address mode for data connection
[-h]
display this message
fas17A>
Example of Copying a LUN
FAS000> ndmpcopy -da root:netapp1 /vol/rtplunvol/ibmx336_03-run-A-w2k8r2-x86-64-hermes-dfm.d5-01 10.61.133.185:/vol/x33603_boot_vol/bootlun/
Ndmpcopy: Starting copy [ 2 ] ...
Ndmpcopy: FAS000: Notify: Connection established
Ndmpcopy: 10.61.133.185: Notify: Connection established
Ndmpcopy: FAS000: Connect: Authentication successful
Ndmpcopy: 10.61.133.185: Connect: Authentication successful
Ndmpcopy: FAS000: Log: DUMP: creating "/vol/rtplunvol/../snapshot_for_backup.2" snapshot.
Ndmpcopy: FAS000: Log: DUMP: Using Partial Volume Dump of selected subtrees
Ndmpcopy: FAS000: Log: DUMP: Date of this level 0 dump: Thu Mar 29 18:16:41 2012.
Ndmpcopy: FAS000: Log: DUMP: Date of last level 0 dump: the epoch.
Ndmpcopy: FAS000: Log: DUMP: Dumping /vol/rtplunvol/ibmx336_03-run-A-w2k8r2-x86-64-hermes-dfm.d5-01 to NDMP connection
Ndmpcopy: FAS000: Log: DUMP: mapping (Pass I)[regular files]
Ndmpcopy: FAS000: Log: DUMP: Reading file names from NDMP.
Ndmpcopy: FAS000: Log: DUMP: mapping (Pass II)[directories]
Ndmpcopy: FAS000: Log: DUMP: estimated 5524310 KB.
Ndmpcopy: FAS000: Log: DUMP: dumping (Pass III) [directories]
Ndmpcopy: FAS000: Log: DUMP: dumping (Pass IV) [regular files]
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:40:48 2012: Begin level 0 restore
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:40:48 2012: Reading directories from the backup
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:41:02 2012: Creating files and directories.
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:41:03 2012: Writing data to files.
Ndmpcopy: FAS000: Log: DUMP: Thu Mar 29 18:21:45 2012 : We have written 8922111 KB.
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:45:29 2012 : We have read 8924356 KB from the backup.
Ndmpcopy: FAS000: Log: DUMP: Thu Mar 29 18:26:45 2012 : We have written 12755825 KB.
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:50:29 2012 : We have read 12755941 KB from the backup.
Ndmpcopy: 10.61.133.185: Log: RESTORE: Thu Mar 29 18:51:13 2012: Restoring NT ACLs.
Ndmpcopy: FAS000: Log: DUMP: dumping (Pass V) [ACLs]
Ndmpcopy: 10.61.133.185: Log: RESTORE: RESTORE IS DONE
Ndmpcopy: 10.61.133.185: Log: RESTORE: The destination path is /vol/x33603_boot_vol/bootlun/
Ndmpcopy: FAS000: Log: DUMP: 12782739 KB
Ndmpcopy: FAS000: Log: DUMP: DUMP IS DONE
Ndmpcopy: FAS000: Log: DUMP: Deleting "/vol/rtplunvol/../snapshot_for_backup.2" snapshot.
Ndmpcopy: 10.61.133.185: Notify: restore successful
Ndmpcopy: FAS000: Notify: dump successful
Ndmpcopy: Transfer successful [ 12 minutes 2 seconds ]
Ndmpcopy: Done
FAS000>
Checking the status.
fas17A> ndmpd status
ndmpd ON.
Session: 127
Active
version: 4
Operating on behalf of primary host.
tape device: not open
mover state: Idle
data state: Active
data operation: Restore
fas17A>
fas17A> Thu Mar 29 18:51:13 EDT [lun.newLocation.offline:warning]: LUN /vol/x33603_boot_vol/bootlun/ibmx336_03-run-A-w2k8r2-x86-64-hermes-dfm.d5-01 has been taken offline to prevent map conflicts after a copy or move operation.