Updated DRBD->delete_resource() to use '--force' instead of 'echo Yes' (which no longer works).

Signed-off-by: digimer <mkelly@alteeve.ca>
main
digimer 2 years ago
parent 053e5312e1
commit d88fde7733
  1. 2
      Anvil/Tools/DRBD.pm

@ -602,7 +602,7 @@ sub delete_resource
# Wipe the DRBD MDs from each backing LV
$anvil->Log->entry({source => $THIS_FILE, line => __LINE__, level => 1, key => "log_0590", variables => { resource => $resource }});
my $shell_call = $anvil->data->{path}{exe}{echo}." yes | ".$anvil->data->{path}{exe}{drbdadm}." wipe-md ".$resource;
my $shell_call = $anvil->data->{path}{exe}{drbdadm}." --force wipe-md ".$resource;
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => { shell_call => $shell_call }});
my ($output, $return_code) = $anvil->System->call({shell_call => $shell_call});
$anvil->Log->variables({source => $THIS_FILE, line => __LINE__, level => $debug, list => {

Loading…
Cancel
Save