Open RoyvanEmpel opened 11 months ago
It seems that after readding the node some configs are missing?
# systemctl status mariadb.service
● mariadb.service - MariaDB 10.6.15 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; vendor preset: enabled)
Drop-In: /etc/systemd/system/mariadb.service.d
└─migrated-from-my.cnf-settings.conf
Active: failed (Result: exit-code) since Fri 2023-08-18 00:31:52 CEST; 7min ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 51186 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/SUCCESS)
Process: 51187 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 51189 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited, status=0/SUCCESS)
Process: 51290 ExecStart=/usr/sbin/mariadbd $MYSQLD_OPTS $_WSREP_NEW_CLUSTER $_WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 51309 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
Process: 51311 ExecStartPost=/etc/mysql/debian-start (code=exited, status=203/EXEC)
Main PID: 51290 (code=exited, status=0/SUCCESS)
Status: "MariaDB server is down"
Aug 18 00:31:51 db-201 systemd[1]: Starting MariaDB 10.6.15 database server...
Aug 18 00:31:51 db-201 sh[51190]: WSREP: Recovered position 62be2c5d-3d42-11e6-ac82-0e98101eb438:69
Aug 18 00:31:52 db-201 systemd[51311]: mariadb.service: Failed to execute command: No such file or directory
Aug 18 00:31:52 db-201 systemd[51311]: mariadb.service: Failed at step EXEC spawning /etc/mysql/debian-start: No such file or directory
Aug 18 00:31:52 db-201 systemd[1]: mariadb.service: Control process exited, code=exited, status=203/EXEC
Aug 18 00:31:52 db-201 systemd[1]: mariadb.service: Failed with result 'exit-code'.
Aug 18 00:31:52 db-201 systemd[1]: Failed to start MariaDB 10.6.15 database server.
After A LOT of problems i finally got the nodes back up and running. I deleted all the left over configs and files and services from the nodes that galera manager didn't delete. After all the nodes were up and running again in galera manager i they can get monitored but can not add new nodes using the UI.
Since i had to use the galera_new_cluster command galera manager now doesn't see it as the same cluster and it can't do anything. Is there somewere an UUID that i can edit so galera manager is able to pickup the new cluster?
I fixed my issues by starting the new galera cluster and using rsync to sync all the nodes. Now that it's back up i shutdown all the servers and recovered the cluster using the galera manager.
These are my steps for fixing my initial issue:
systemctl status mariadb
Hello,
I want to setup a galera cluster using the galera manager. I have setup a cluster with 3 servers and they are all in sync. Now i want to restore a mariabackup from my curreny mariadb server. How should I go about this?
I tried the following steps:
mariabackup --copy-back --target-dir=/path/to/backupdir
on the first nodeSince I made backups of my /var/lib/mysql folder i restored that with the right permissions but mariadb still doesn't start. I tried removing /var/lib/mysql and /etc/mysql but that doesn't fix anything.
I am now stuck at my node 1 and 2 that no longer start with the following error: