-
Notifications
You must be signed in to change notification settings - Fork 0
freenas
victorhooi edited this page Feb 16, 2013
·
1 revision
Needed to add myself to wheel group in Freenas to allow use of su
command.
ZFS send/receive only work on snapshots, so you'll need to create a snapshot first.
[victorhooi@freenas] /# zfs snapshot datastore/joo@transfer
At first, I got the following error:
cannot receive: failed to read from stream
It turns out it's zfs receive
, not zfs recv
.
The commands on both sides are:
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vdF datastore
and
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vdF datastore
https://support.freenas.org/ticket/1894 http://poolski.tumblr.com/post/20957445731/zfs-send-and-receive https://groups.google.com/d/topic/zfs-fuse/gCAQv-_tHjE/discussion http://blog.smartcore.net.au/fast-zfs-send-with-netcat/
The speed is much faster than using rsync.
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vd datastore
cannot receive new filesystem stream: destination 'datastore/joo' exists
must specify -F to overwrite it
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vdF datastore
receiving full stream of datastore/joo@transfer into datastore/joo@transfer
received 108GB stream in 2734 seconds (40.4MB/sec)
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vdF datastore
receiving full stream of datastore/alpha@transfer into datastore/alpha@transfer
received 38.9GB stream in 929 seconds (42.9MB/sec)
[victorhooi@datastore] /mnt/datastore/documents# nc -l 8023 | zfs recv -vdF datastore
receiving full stream of datastore/music@transfer into datastore/music@transfer
received 13.4GB stream in 318 seconds (43.0MB/sec)
compared to 5 Mbs with rsync