|
Trying to start the first node if the cluster has never been created before with galera_new_cluster does not work.
The unique way to make it work is comming out the "pre":
#ExecStartPre=/bin/sh -c "systemctl unset-environment _WSREP_START_POSITION"
#ExecStartPre=/bin/sh -c "VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && \
- systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1"
| log |
Jul 26 11:37:28 web01.tribuna.inc mysqld[13373]: WSREP: Failed to recover position: '2016-07-26 11:37:26 140709822269568 [Note] /usr/sbin/mysqld (mysqld 10.1.16-MariaDB) starting as process 13609 ...'
Jul 26 11:37:28 web01.tribuna.inc systemd[1]: mariadb.service: control process exited, code=exited status=1
Jul 26 11:37:28 web01.tribuna.inc systemd[1]: Failed to start MariaDB database server.
Jul 26 11:37:28 web01.tribuna.inc systemd[1]: Unit mariadb.service entered failed state.
Jul 26 11:37:28 web01.tribuna.inc systemd[1]: mariadb.service failed. |
|