Galera Cluster with MySQL 5.7 adding a new node

August 7, 2018 96 views
MySQL Ubuntu 16.04

Hi all,

I'm attempting to add another node to my Galera Cluster running MySQL 5.7. Whenever I use

sudo systemctl start mysql

It fails. The cluster it's joining has a good 50gigs of data in it so it should execute a state transfer via rsync per the config but it never finishes and fails out normally after 5 ish minutes.

Is there a way to adjust the timeout? I've adjusted it within (/lib/systemd/system/mysql.service) to 7200 seconds. Am I missing somewhere else?

Thank you!

1 Answer

Hello friend!

Are you able to pull the service log and find out what it is reporting the problem to be after this occurs? I'm thinking that will be ideal in this case. Something like this should do it:

journalctl -u mysql.service --no-pager

Kind Regards,
Jarland

  • Hey Jarland,

    Yea not much help.

    Aug 09 16:09:19 coindera-db-nyc-01 mysql-systemd-start[5249]: /usr/share/mysql/mysql-systemd-start: line 45: /lib/apparmor/profile-load: No such file or directory
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: mysql.service: Control process exited, code=exited status=127
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: Failed to start MySQL Wsrep Server.
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: mysql.service: Unit entered failed state.
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: mysql.service: Failed with result 'exit-code'.
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: mysql.service: Service hold-off time over, scheduling restart.
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: Stopped MySQL Wsrep Server.
    Aug 09 16:09:19 coindera-db-nyc-01 systemd[1]: Starting MySQL Wsrep Server...
    
Have another answer? Share your knowledge.