• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

ZFS Replication / SSH Connectivity Question

coolrunnings

Limp Gawd
Joined
Nov 21, 2004
Messages
511
I have been playing around with several servers I have in my home lab running OpenIndiana + Napp-IT (thanks _GEA!). I decided I wanted to delve into learning how ZFS Send/Receive work for pseudo-replication. One of the sites I found while Googling suggested using a command like this to send a snapshot from one server to the other:
Code:
zfs send -i scratchpool@snapshot1 scratchpool@snapshot2 |ssh id@host pfexec zfs recv slavepool

The website where I found it is here: http://docs.oracle.com/cd/E17952_01/refman-5.5-en/ha-zfs-config.html

When I run this while SSHed into one of the servers, it will hang for about a minute or more and then come back with a message saying
connect to host servername port 22: Connection timed out

I have only ever used Putty to SSH into a server, never run SSH from a command line and don't know the first thing of how to configure it. I checked to ensure I got all the hostnames correct. I checked to make sure I can use Putty to connect to each of the two servers (success there). I've also tried just typing:
Code:
ssh username@hostname ls
and I keep getting the same error.

Can anyone suggest how to configure things so this will work? Any and all suggestions would be appreciated at this point. Also, if anyone has any free replication scripts that are reliable and easy to modify, I would really like to learn how to do this. Thanks for all the help!
 
im going to ask a really dump question, just making sure your subbing id with the username and host with the IP or FQDN of the slave box?

when you putty in, are you doing this from your desktop to server-A and server-B?

can you verify when SSH'd into server-A that you can ping server-B? can you telnet into port 22?

Another thing, its weird its not asking you for a password, unless server-A and server-B have pre-shared keys already setup between them (but based on what your saying i would assume not)
 
Hey Steve, you got it. Gotta cover all the bases. I did sub the username and the IP as well as the FQDN on the slave box.

I am using Putty from my laptop to Server A and Server B and each one comes right up.

While SSHed into either server, I can ping the other both by IP address and FQDN. I can telnet into port 22 as well but I get a protocol mismatch error when I do that.

It is odd that I'm not getting prompted for a password, as that is what I expected to see from that command. You're correct, I have not set up pre-shared keys myself. Each of those servers has Napp-IT on it by the way, so I'm not sure if part of its setup might have anything to do with it... I also tried this on a 3rd server I have running the same OS in a similar configuration and get the same results. I'm stumped!
 
i would import/export keys for each server removing the requirement for a password then try again.
 
Back
Top