[MDEV-11495] galera_new_cluster and galera_recovery do not support suffixes Created: 2016-12-06  Updated: 2016-12-07  Resolved: 2016-12-07

Status: Closed
Project: MariaDB Server
Component/s: Galera, Scripts & Clients
Affects Version/s: 10.1.19
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Geoff Montee (Inactive) Assignee: Nirbhay Choubey (Inactive)
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

As described in the following blog post, MariaDB's systemd service file supports multiple instances as defined by a unique suffix for each instance:

http://nirbhay.in/blog/2016/06/systemd-managing-multiple-mariadb-instances/

galera_new_cluster and galera_recovery should also allow the user to specify the suffix.

The systemd service file should also pass the suffix to galera_recovery.



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2016-12-07 ]

galera_recovery.sh already gets the suffix via -default-file/-defaults-group-suffix from systemd script.

/usr/bin/galera_recovery --defaults-file=@INSTALL_SYSCONF2DIR@/my%I.cnf

/usr/bin/galera_recovery --defaults-group-suffix=%I

And, galera_new_cluster.sh also accepts the service name at command-line.
Thus, a node (with suffix) can be bootstrapped like :
$ galera_new_cluster mariadb@node1

systemctl set-environment _WSREP_NEW_CLUSTER='--wsrep-new-cluster' && \
    systemctl start ${1:-mariadb}

Generated at Thu Feb 08 07:50:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.