diff --git a/userspace/marsadm b/userspace/marsadm index 1d8f5d08..95eb5b24 100644 --- a/userspace/marsadm +++ b/userspace/marsadm @@ -783,7 +783,7 @@ sub primary_res { my $pri = "$mars/resource-$res/primary"; my $old = readlink($pri) or ldie "cannot determine current primary\n"; if($sec) { - ldie "for safety reasons, switching to secondary is only allowed when I ($host) am primary\n" if($old ne $host); + ldie "for safety reasons, switching to secondary is only allowed when I ($host) am primary\n" if ($old ne $host) && !$force; $host = "(none)"; } elsif($old eq $host) { lprint "I am already primary.\n";