mirror of
https://github.com/schoebel/mars
synced 2025-04-09 02:51:56 +00:00
marsadm: remove hindering split-cluster safeguard
On asymmetric networks, this hinders fixing the asymmetry.
This commit is contained in:
parent
86fef78e63
commit
66c96ce2cc
@ -2519,11 +2519,9 @@ sub split_cluster {
|
|||||||
my $ips_backup = "$backup_dir/ips-backup";
|
my $ips_backup = "$backup_dir/ips-backup";
|
||||||
system("mkdir -p $ips_backup") and ldie "OOps";
|
system("mkdir -p $ips_backup") and ldie "OOps";
|
||||||
system("cp -a $mars/ips/* $ips_backup/");
|
system("cp -a $mars/ips/* $ips_backup/");
|
||||||
my $safeguard_cmd = "(( \$(find $mars/ -name 'delete-*' | wc -l) <= \$(find $mars/ -name 'deleted-*' | wc -l) ))";
|
|
||||||
foreach my $peer (glob("$ips_backup/ip-*")) {
|
foreach my $peer (glob("$ips_backup/ip-*")) {
|
||||||
$peer =~ s:^$ips_backup/ip-::;
|
$peer =~ s:^$ips_backup/ip-::;
|
||||||
ssh_cmd($peer, $ssh_probe);
|
ssh_cmd($peer, $ssh_probe);
|
||||||
ssh_cmd($peer, $safeguard_cmd);
|
|
||||||
}
|
}
|
||||||
lprint "Creating IP backups...\n";
|
lprint "Creating IP backups...\n";
|
||||||
# create ips backup
|
# create ips backup
|
||||||
|
Loading…
Reference in New Issue
Block a user