From cc3f4e9ac5f174e43807ce05a18c02e2b8c9ecef Mon Sep 17 00:00:00 2001 From: jmann Date: Wed, 11 Jan 2012 09:10:21 +0100 Subject: [PATCH] fix remote connect on marsadm --- userspace/marsadm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/userspace/marsadm b/userspace/marsadm index 3aa1e070..6df296e4 100644 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -259,6 +259,8 @@ sub join_cluster { die "Sorry, some resources already exist!\nThis is dangerous!\nIf you are sure that no resource clash is possible, re-invoke this command with '--force' option\n" unless ($force and $force =~ m/--force/); } print "joining cluster via rsync (peer='$peer')\n"; + # check connect + system("ssh $peer uname -a") == 0 or die "oops, no connect to $peer ...\n"; _create_cluster(@_); system("rsync --recursive --links -v $peer:$mars/ips/ $mars/ips/") == 0 or die "oops\n"; symlink($ip, "$mars/ips/ip-$host");