On 10/19/99 12:52:29 you wrote:
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).
If you're storing CIFS data, you'll of course lose it. Dump and restore should still work, if you want to do that; you can even do it by rsh over the network rather than go through a tape.
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.
Typically, I like to cd to the directory in question and use:
find . -print | cpio -pdumv /destination/directory
But this will choke on filenames with spaces in them.
Is there any way getting past the .snapshot directories during copies? I imagine that other Solaris admins must have run into this problem before.
The .snapshot is visible (in NFS) only in the topmost directory. You can get around it by copying each subdirectory from the root mountpoint individiaully, or using a find option to prune .snapshot (check the man page).
Bruce