Hi,
We're running an F540 with Ontap 5.3.2D3, setup for NFS and CIFS services. Most (~95%) of our NFS clients are Solaris 2.6 machines. I would like to know if there is an easy way to migrate home-dir data off of the filer and onto a Sun server (Enterprise 450 with Solaris 2.6).
Doing a plain 'cp' tends to skip over .* files and is a bit tricky about retaining permissions. We also have a script 'copy_dir' that uses the copy_io command, but it takes an extraordinarily long time. We're talking a 6 Gb home directory taking more than 12 hours to copy (over a 100 Mbs connection, too). I am sure that there is no problems with the network, and I suspect that the copy_io is getting hung up trying to copy over each version of the .snapshot directories. Invariably, I will get a stale NFS error and eventually time out.
Is there any way getting past the .snapshot directories during copies? I imagine that other Solaris admins must have run into this problem before.
---------- Yicheng Li (480)413-6636 WISD Engineering Network
Hi,
We're running an F540 with Ontap 5.3.2D3, setup for NFS and CIFS services. Most (~95%) of our NFS clients are Solaris 2.6 machines. I would like to know if there is an easy way to migrate home-dir data off of the filer and onto a Sun server (Enterprise 450 with Solaris 2.6).
Doing a plain 'cp' tends to skip over .* files and is a bit tricky about retaining permissions. We also have a script 'copy_dir' that uses the copy_io command, but it takes an extraordinarily long time. We're talking a 6 Gb home directory taking more than 12 hours to copy (over a 100 Mbs connection, too). I am sure that there is no problems with the network, and I suspect that the copy_io is getting hung up trying to copy over each version of the .snapshot directories. Invariably, I will get a stale NFS error and eventually time out.
Is there any way getting past the .snapshot directories during copies? I imagine that other Solaris admins must have run into this problem before.
You can make snapshots invisible with
vol options volname nosnapdir on
or you can modify the find command that pipes into cpio like this:
find . ( -name .snapshot -prune ) -o -print | cpio ...
Steve Losen scl@virginia.edu phone: 804-924-0640
University of Virginia ITC Unix Support