diff --git a/pre-scan.pl b/pre-scan.pl index c420910..17ce411 100755 --- a/pre-scan.pl +++ b/pre-scan.pl @@ -156,7 +156,7 @@ `$LVcommand`; if ($? != 0) { # then the snapshot failed &log ("Failed to create the snapshot -- check for sufficient (250Mb) space in the '" . $cfg->{"mysqlVolumeGroup"} . "' volume group?"); - `systemctl start mariadb.service`; # the slave process will autorestart + startDatabase(); &gone ("Backup failed, but I tried to restart the primary mariadb.service"); # does not return } $DEBUG && print "Snapshot created: $snapLV...\n";