victorhooi
Contributor
- Joined
- Mar 16, 2012
- Messages
- 184
(I originally asked this here https://www.reddit.com/r/freenas/comments/bfob7g/problem_sending_zfs_stream_from_one_system_to/ but then realised this might be better for FreeNAS specific things).
I'm trying to migrate all my data from one FreeNAS system to another over the local LAN.
Both hosts are running FreeNAS-11.2-U3.
At first, I figured I'd try using zfs send/receive, since I figured the performance would be better compared to rsync.
I made a snapshot on the source machine.
zfs snapshot -r datastore-naulty-place@migrate
I then tried this - on the receiving side:
On the sending side:
However, I get the following error messages:
The first error (cannot unmount '/var/db/system': Device busy) seems to be caused by FreeNAS using the zpool naulty-datastore as it's System Dataset - not sure how to get around this.
Anyhow, I then re-created the datasets one by one under this zpool, and I'm migrating them one by one. However, mbuffer still didn't work - and gave me the same error messages.
The lines that did work:
and
However, the final performance is patchy - it starts off like this:
and then goes to this:
Those are Megabits, right? That seems awfully...slow?
Is there a better way to migrate data easily from one FreeNAS 11 system to another over the local LAN?
I'm trying to migrate all my data from one FreeNAS system to another over the local LAN.
Both hosts are running FreeNAS-11.2-U3.
At first, I figured I'd try using zfs send/receive, since I figured the performance would be better compared to rsync.
I made a snapshot on the source machine.
zfs snapshot -r datastore-naulty-place@migrate
I then tried this - on the receiving side:
Code:
nc -l 3333 | \ mbuffer -q -s 128k -m 1G | \ pv -rtab | \ zfs receive -vF naulty-datastore
On the sending side:
Code:
zfs send -R datastore-naulty-place@migrate |\ mbuffer -q -s 128k -m 1G | \ pv -b | \ nc 10.5.0.39 3333
However, I get the following error messages:
Code:
cannot unmount '/var/db/system': Device busy 64.0KiB 0:00:10 [5.82KiB/s] [5.82KiB/s] mbuffer: error: outputThread: error writing to <stdout> at offset 0x30000: Broken pipe mbuffer: warning: error during output to <stdout>: Broken pipe
The first error (cannot unmount '/var/db/system': Device busy) seems to be caused by FreeNAS using the zpool naulty-datastore as it's System Dataset - not sure how to get around this.
Anyhow, I then re-created the datasets one by one under this zpool, and I'm migrating them one by one. However, mbuffer still didn't work - and gave me the same error messages.
The lines that did work:
Code:
root@freenas[/mnt]# nc -l 3333 | \ pv -rtab | \ zfs receive -vF naulty-datastore/ablage
and
Code:
zfs send -R datastore-naulty-place/ablage@migrate | \ pv -b | \ nc 10.5.0.39 3333
However, the final performance is patchy - it starts off like this:
Code:
18.6GiB 0:02:52 [ 112MiB/s] [ 110MiB/s]
and then goes to this:
Code:
33.9GiB 0:11:33 [0.00 B/s] [50.0MiB/s]
Those are Megabits, right? That seems awfully...slow?
Is there a better way to migrate data easily from one FreeNAS 11 system to another over the local LAN?