There are two ways I've done this in the past:
1) Mount the netapp volumes on the destination host using NFS (CIFS will
likely lead to a permissions issue on the destination files). Then use
rsync to transfer the data from the nfs mount to the new volume. So
A--->B where A is the netapp and B is the freenas host. I did this a
year ago migrating several TB of data off a netapp and on to an Isilon
filer (which runs modified FreeBSD).
2) Mount both the new nas and the old nas on a well connected machine
(as it will be both sending and receiving) and use rsync to transfer the
data from one volume to another. So A-->B-->C where A is the netapp, B
is the well connected machine and C is the destination NAS.
In both cases rsync -va /source/path /destination will work fine. If the
other host does ssh and has the rsync binary you can simply rsync -va
/source/path user@destinationhost:/destination/path although this will
be slower than doing it over NFS due to the overhead of ssh. One thing
to note is that you should be mindful of the trailing slash on your
source, if you leave it on there it won't copy the directory over but it
will copy all of it's contents! That can get messy.
What I would normally do in this situation is do one rsync to the new
filer the day before while everything is up, to get the bulk of the data
moved. Now's the time to make sure the data appears to be there and the
permissions are correct. Then when you have your maintenance window, set
the netapp volumes to read only (so no further changes can happen) and
start a final rsync. Rsync will hash every file and compare it to the
destination, if it's changed it will be moved, if not it will leave it
and go on to the next one. So your second rsync (and maintenance window)
should be much smaller.
While that last rsync is finishing you will have time to finish up all
the other stuff you need to do like change mount points or automount
config files.
On 29/09/2011 9:07 AM, Jon Copeland wrote:
Hey all,
Long time lurker here and finally in a career where I'll be using
Linux more frequently so I'll be happy to be contributing to Clug more
often.
Does anybody have any ideas surrounding how to use rsync to copy data
from one NAS to another?
I'm going to be moving about 600GB of data from an old Netapp
Storevault and onto a fresh Freenas 8.0 VM for one of my clients and
I'd like to do this as gracefully as possible.
Cheers
-j-
_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying
_______________________________________________
clug-talk mailing list
clug-talk@clug.ca
http://clug.ca/mailman/listinfo/clug-talk_clug.ca
Mailing List Guidelines (http://clug.ca/ml_guidelines.php)
**Please remove these lines when replying