Page 1 of 1

ZFS and rsync

Posted: 18 Aug 2013 08:14
by dnar
I just wanted to ask if my current method of syncing pools across N4F servers is ok.

On one server I have an rsync module configured for an entire pool /mnt/MyPool. On the other I perform a daily client sync to an identical pool name. This has been working fine for years, but I have never been sure if I should do this or instead rsync each dataset.... The only down side I can see is that when adding a new dataset I must do the same on both servers.

My zfs:

Code: Select all

$ zfs list
NAME            USED  AVAIL  REFER  MOUNTPOINT
MyPool         1.41T  2.57T  47.7K  /mnt/MyPool
MyPool/alex    44.7G  1.46T  44.7G  /mnt/MyPool/alex
MyPool/backup  73.3G  2.57T  73.3G  /mnt/MyPool/backup
MyPool/helen   47.7K   200G  47.7K  /mnt/MyPool/helen
MyPool/media   1.27T  2.57T  1.27T  /mnt/MyPool/media
MyPool/pub     18.1G  2.57T  18.1G  /mnt/MyPool/pub
MyPool/wayne    482M  2.57T   482M  /mnt/MyPool/wayne

Re: ZFS and rsync

Posted: 13 Sep 2013 07:13
by Windependence
I've been doing the same thing for more years than you and I have had zero problems. That being said, I understand we could probably do the same thing with snapshots but it would be slightly more compliccated. I've just never tried doing it that way. Maybe a ZFS expert will come along and tell us how to send snapshots and recreate the file system on a remote box. :-)

-Tim