Percona XtraDB Cluster init script for Debian/Ubuntu patch (version 2)

Recently I wrote a blog post with a patch for Percona XtraDB Cluster Init script. But this was more a dirty hack then a real debian/ubuntu patch as Jan pointed it to me. So I rewrote that patch to not work as the init script of RedHat/CentOS but more like it should work on Debian, Now to initialize the cluster, on the very first node that will start the cluster, you need to run the following command:
root@percona1:/etc/init.d# /etc/init.d/mysql initialize
 * Starting MySQL (Percona XtraDB Cluster) database server and initialize the cluster mysqld                                  [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.
Please note, the new command initialize. I hope this patch is better for Debian afficionados ;-)

Recently I wrote a blog post with a patch for Percona XtraDB Cluster Init script. But this was more a dirty hack then a real debian/ubuntu patch as Jan pointed it to me.

So I rewrote that patch to not work as the init script of RedHat/CentOS but more like it should work on Debian,

Now to initialize the cluster, on the very first node that will start the cluster, you need to run the following command:

root@percona1:/etc/init.d# /etc/init.d/mysql initialize
 * Starting MySQL (Percona XtraDB Cluster) database server and initialize the cluster mysqld                                  [ OK ] 
 * Checking for corrupt, not cleanly closed and upgrade needing tables.

Please note, the new command initialize.

I hope this patch is better for Debian afficionados 😉

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

2 Comments

  1. Thanks for these patches.

    We’re working on ubuntu 12.04 in AWS and installed the xtradb software through aptitude.

    But these two patches should probably make it into the /etc/init.d/mysql script that is put in place after the packages are installed. Are these patches planned to be merged in to the main release?

    • Hi Matt,

      I’ve no idea if development will add those patches in main release, but you can always post a comment on launchpad’s bug saying you would like it and don’t forget to press the “that bug affects me” link.

      Thank you.

Leave a Reply

Your email address will not be published. Required fields are marked *

As MySQL Community Manager, I am an employee of Oracle and the views expressed on this blog are my own and do not necessarily reflect the views of Oracle.

You can find articles I wrote on Oracle’s blog.