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 😉