You can't have two pools with the same name on the same system. This implies the remote pool has to be on a different physical system.If both pools are on the same host, which it appears to be based on the OP, there is no reason to use SSH. In fact it will reduce the transfer rate substantially.
The file containing the fingerprint is located on he remote system:if I run
ssh -i /data/ssh/replication root@192.168.10.179, it will ask me the password. If I run cmd below, it didn't ask me the password, but the send/receive didn't work(didn't stop and no data was reflected in new pool)
Code:zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
you mentioned add it automatically, do you mean I should copy /data/ssh/replication the one in old system to new system?
/root/.ssh/known_hosts
root@freenas[~]# zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
full send of zfsrz2@a estimated size is 12.1K
full send of zfsrz2/share@a estimated size is 12.1K
full send of zfsrz2/.system@a estimated size is 13.1K
full send of zfsrz2/.system/configs-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 12.1K
full send of zfsrz2/.system/rrd-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 97.1M
full send of zfsrz2/.system/syslog-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 123K
full send of zfsrz2/.system/webui@a estimated size is 12.1K
full send of zfsrz2/.system/cores@a estimated size is 12.1K
full send of zfsrz2/.system/samba4@a estimated size is 1.18M
full send of zfsrz2/bak@a estimated size is 12.1K
full send of zfsrz2/pdata@a estimated size is 12.1K
full send of zfsrz2/pdata/seafile@a estimated size is 12.1K
total estimated size is 98.5M
The authenticity of host '192.168.10.179 (192.168.10.179)' can't be established.
ECDSA key fingerprint is SHA256:b7m0xo26eqsIAEnCbw79B/eLjInmlU1DFmg5eAamL3Q.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)? TIME SENT SNAPSHOT
TIME SENT SNAPSHOT
10:57:52 57.4K zfsrz2/share@a
10:57:53 57.4K zfsrz2/share@a
10:57:55 57.4K zfsrz2/share@a
10:57:56 57.4K zfsrz2/share@a
10:57:57 57.4K zfsrz2/share@a
^C
This is why you need to only run the ssh command alone. Not zfs send and receive, yet.I comment the line with the source IP. Same
root@freenas[~]# zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2 full send of zfsrz2/pdata/seafile@a estimated size is 12.1K total estimated size is 98.5M The authenticity of host '192.168.10.179 (192.168.10.179)' can't be established. ECDSA key fingerprint is SHA256:b7m0xo26eqsIAEnCbw79B/eLjInmlU1DFmg5eAamL3Q. No matching host key fingerprint found in DNS. Are you sure you want to continue connecting (yes/no)? TIME SENT SNAPSHOT
ssh -i /data/ssh/replication root@192.168.10.179
The authenticity of host '192.168.10.179 (192.168.10.179)' can't be established.
ECDSA key fingerprint is SHA256:b7m0xo26eqsIAEnCbw79B/eLjInmlU1DFmg5eAamL3Q.
No matching host key fingerprint found in DNS.
Are you sure you want to continue connecting (yes/no)?
ssh -i /data/ssh/replication root@192.168.10.179
zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
, is that correct ?
Connection to 192.168.10.179 closed.
root@freenas[~]# zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
full send of zfsrz2@a estimated size is 12.1K
full send of zfsrz2/share@a estimated size is 12.1K
full send of zfsrz2/.system@a estimated size is 13.1K
full send of zfsrz2/.system/configs-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 12.1K
full send of zfsrz2/.system/rrd-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 97.1M
full send of zfsrz2/.system/syslog-1e6cbdfb415748b98d868947a6e14a88@a estimated size is 123K
full send of zfsrz2/.system/webui@a estimated size is 12.1K
full send of zfsrz2/.system/cores@a estimated size is 12.1K
full send of zfsrz2/.system/samba4@a estimated size is 1.18M
full send of zfsrz2/bak@a estimated size is 12.1K
full send of zfsrz2/pdata@a estimated size is 12.1K
full send of zfsrz2/pdata/seafile@a estimated size is 12.1K
total estimated size is 98.5M
TIME SENT SNAPSHOT
TIME SENT SNAPSHOT
root@192.168.10.179's password: 11:11:05 57.4K zfsrz2/share@a
11:11:06 57.4K zfsrz2/share@a
11:11:08 57.4K zfsrz2/share@a
11:11:09 57.4K zfsrz2/share@a
11:11:10 57.4K zfsrz2/share@a
Did you run the command from the source which seems to be the old system at 192.168.10.180?Thanks for your patient, Apollo. I ran the commandssh -i /data/ssh/replication root@192.168.10.179
And press "yes", input password, now I am in 192.168.10.179 shell.
I suppose I should go back to my old system(192.168.10.180), then runzfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
, is that correct ?
ssh -i /data/ssh/replication root@192.168.10.179
zfs send -vv -R zfsrz2@a | ssh -i /data/ssh/replication root@192.168.10.179 zfs receive -vv -F zfsrz2
It is not necessary to install a new system.I am installing another new freenas system to try it again. I will keep you updated when I make progress. Thanks again for your suggestion and helps.
The issue is not related to zfs send and zfs receive command.I am installing another new freenas system to try it again. I will keep you updated when I make progress. Thanks again for your suggestion and helps.
---update
I made another freenas ENV, I ran the same cmds in sequence and got the same result. I guess I have to send/receive datasets one by one then.
I you run the ssh command agin, if the authenticaion has been successflu, then it shouldn't ask you about the password until fingerprint has been accepted.The issue is not related to zfs send and zfs receive command.
For some reason it is not accepting the ssh conenction due to authentication issue.
This is my understanding the authentication is the root cause of your problem.
ssh -i /data/ssh/replication root@192.168.10.180