Replicate a pool not working

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
I'm upgrading my main pool with more/larger drives and z1 to z2. I'm having trouble with replicating. I first tried the GUI. Apparently there is a way to set up a replication task and have it automatically generate the snapshot to replicate, but I couldn't make sense out of the options.

The command line seems straight-forward. The old pool is Ark; new one is NewArk. First make a snapshot; that goes fine:
Code:
Tabernacle:~$ sudo zfs snapshot -r Ark@migrate
Password:
Tabernacle:~$

Of course I had to create the pool before I could replicate to it, but zfs didn't want to send to it:

Code:
Tabernacle:~$ sudo zfs send -R Ark@migrate | zfs receive NewArk
cannot receive new filesystem stream: destination 'NewArk' exists
must specify -F to overwrite it
warning: cannot send 'Ark@migrate': signal received

So I added -F as suggested; made sense to put it in the receive command. No go, but also in the send command was absolutely wrong.

Code:
Tabernacle:~$ sudo zfs send -R Ark@migrate | zfs receive -F NewArk
Password:
cannot unmount '/mnt/NewArk': permission denied
warning: cannot send 'Ark@migrate': signal received
Tabernacle:~$ sudo zfs send -RF Ark@migrate | zfs receive NewArk
invalid option 'F'

This snapshot/replicate stuff seems pretty obtuse. What's the secret incantation?
 
Last edited:

Glorious1

Guru
Joined
Nov 23, 2014
Messages
1,211
Okay, after further pondering, it seems I had to sudo the receive command as well. Now something is happening. But let me ask this: as I am doing this over SSH, is the replication going to stop when the SSH session times out?
 
Top