I would use rsync; over NFS if possible otherwise over ssh:

(NFS performs significantly better on read than write so preferably share from 
the old and mount on the new)

old# share -F nfs -o [EMAIL PROTECTED],[EMAIL PROTECTED] /my/data
(or edit /etc/dfs/dfstab and shareall)
new# mount -r old:/my/data /mnt
new# ls -l /my/data/
ls: /my/data/: No such file or directory
new# rsync -aRHDn --delete /mnt/ /my/data/
new# rsync -aRHD --delete /mnt/ /my/data/
new# umount /mnt

Caution! The --delete option tells rsync to delete files it might exist under 
/my/data/ that aren't on /mnt/, so dryrun with -n first to check!

If you get interrupted or need incremental update, simply resume/catch up by 
repeating:
new# rsync -aRHD --delete /mnt/ /my/data/
rsync will continue where it was interrupted (discarding the last incomplete 
file though) and remove deleted files (the --delete option)

For verbosity you may want to add -v and --progress:
new# rsync -aRHDv --delete --progress /mnt/ /my/data/

If you can't share via NFS, like for security reasons:

new# rsync -aRHDv --delete --progress old:/my/data/ /
or
old# rsync -aRHDv --delete --progress /my/data/ new:/

This is even possible via a gatekeeper:
new# rsync -aRHDv --delete --progress -e 'ssh gate ssh' old:/my/data/ /
old# rsync -aRHDv --delete --progress -e 'ssh gate ssh' /my/data/ new:/

Pål
 
 
This message posted from opensolaris.org
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to