Details
-
Task
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Duplicate
-
None
Description
Hi,
We need a script in systemd installations that does --wsrep_recover. Before systemd we could do:
service mysqld start --wsrep_recover. The script is similar in nature to galera_new_cluster.
I have put this issue to critical because we just added this script into training materials, due to be delivered in 2 weeks.
Cheers,
Michaël
Attachments
Issue Links
- is duplicated by
-
MDEV-10004 Galera's pc.recovery process fails in 10.1 with systemd
-
- Closed
-
michaeldg, does it really need to be a separate script?
You can see that the galera_new_cluster script is a pretty simple thing that sets a systemd environment variable and then starts the mariadb unit. You could do those same things manually to set any other value you wanted for that variable.
systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-recover' && \
systemctl start mariadb
systemctl unset-environment _WSREP_NEW_CLUSTER
I wish systemd did a better job of this, but I also think that it would be kind of crazy to distribute a separate script for every possible startup scenario. Maybe a solution would be to extend the galera_new_cluster script (or create a script with a more generic name) that would allow the use of arbitrary command line options when starting the server?