Perform the follow steps on each host running MariaDB. Complete the steps on one host before starting the process on another host.
-
Stop the service from running on the local node:
pcs resource ban galera-master $(crm_node -n)
-
Wait until
pcs status
shows that the service is no longer running on the local node. This may take a few minutes. The local node will first transition toslave
mode:Master/Slave Set: galera-master [galera] Masters: [ pcmk-mac525400aeb753 pcmk-mac525400bab8ae ] Slaves: [ pcmk-mac5254004bd62f ]
It will eventually transition to
stopped
:Master/Slave Set: galera-master [galera] Masters: [ pcmk-mac525400aeb753 pcmk-mac525400bab8ae ] Stopped: [ pcmk-mac5254004bd62f ]
-
Upgrade the relevant packages.
yum upgrade '*mariadb*' '*galera*'
-
Allow Pacemaker to schedule the galera resource on the local node:
pcs resource clear galera-master
-
Wait until
pcs status
shows that thegalera
resource is running on the local node as a master. The output frompcs status
should include something like:Master/Slave Set: galera-master [galera] Masters: [ pcmk-mac5254004bd62f pcmk-mac525400aeb753 pcmk-mac525400bab8ae ]