From ced0971b4beba65e6caf1eacf6a3b51238dab507 Mon Sep 17 00:00:00 2001 From: Thomas Schoebel-Theuer Date: Fri, 18 Mar 2022 12:09:12 +0100 Subject: [PATCH] marsadm: warn on missing directory at join-cluster --- userspace/marsadm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/userspace/marsadm b/userspace/marsadm index 02a42aed..f816d819 100755 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -5032,6 +5032,10 @@ sub join_cluster { _create_dirs($cmd); # try new join method if (is_module_loaded()) { + my $act_dir = "$mars/actual-$real_host"; + if (! -d $act_dir) { + ldie "My kernel module is loaded, but directory '$act_dir' is missing\n"; + } my $ip = _get_ip($host); lprint "MARS kernel module is loaded, trying the new $cmd method.\n"; my $old_uuid = get_link("$mars/uuid", 2);