New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ocf:heartbeat:mariadb documentation #1441
Comments
I dont know whats wrong, but even after install and setting permission 755 i keep getting: |
You shouldnt need to chmod it. Just run You might also need to copy heartbeat/mysql-common.sh to /usr/lib/ocf/lib/heartbeat/. |
For me the issue was resolved. The problem was the initial setup before setting up the cluster. It had nothing to do with Pacemaker itself. Please close, if @tsrubar issue is resolved as well. |
Thanks, it helped and finally made me able to create EDIT: ok, so now I am for few hours dealing with this: i have 2 instances of mariadb configured exactly according to manual instructions, when run manually, they are working perfectly, but when i stop them and let the pcs start them up as a resource, im keep getting:
When i tried to create resource the same way as @AquaL1te mentioned, i always got the error: |
So, i managed to create and start master/slave resource, using a cib file. I dont know why pcs didnt accept my instructions directly, but now it works. Also some struggling with selinux took the place... |
@AquaL1te please, what was yor problem? i am in the same stage now as you were, that no server come up as a master. Thanks |
@tsrubar it was just a quick test for my home setup. I haven't used it in "production" because of lack of time. However, I did document all the steps so that when I'll resume that hobby project, I won't make the same mistakes. I hope it's useful for you as well. Also check out the official documentation. Make sure replication and manual failover works before you start adding it to the HA cluster. The replication users are mostly important, since they need extra permissions when using Pacemaker, which is not covered in the MariaDB manual for obvious reasons. Below is my documentation from a few months ago. Some stuff might not be applicable for you, but hopefully it will give you a rough idea of what I did. Troubleshooting commands
Preperation
|
@AquaL1te Many thanks, you are my hero :D |
I followed the resource-agents/heartbeat/README.mariadb.md instructions. First comment is that the commands are out of date.
I had to create the resource with this command
pcs resource create mariadb ocf:heartbeat:mariadb node_list='rp1 rp2' replication_user=mariabackup replication_passwd='password123' promotable promoted-max=1 notify=true
. If this is the correct way, then please update the README.md.The other instructions seems to be valid and in line with the official mariadb documentation.
The synchronization between the master and slave work fine without Pacemaker, but when I run the Pacemaker command to create the cloned resource, both resources remain in a slave role.
I was assuming Pacemaker would handle this for me, like it can do with other clone resources such as Redis and DRBD. Is this assumption wrong? Please check if the instructions in the README.md need updates in order to make it work as designed.
Some more info:
pcs resource describe ocf:heartbeat:mariadb
, this user has the following roles assigned:replication client, replication slave, SUPER, PROCESS, RELOAD
bc
was not installed, after installing the promoting of resources finally worked. However, not stable.The text was updated successfully, but these errors were encountered: