From f3d5f65235fa5829b185b6df5954ec4c1c1d0ae4 Mon Sep 17 00:00:00 2001 From: Neil MacGregor Date: Thu, 20 Oct 2022 11:01:07 -0600 Subject: [PATCH] Resolving Issue \#2, used a function call instead of calling systemctl to start the database, when failing to create the snapshot --- pre-scan.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";