This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"net" | |
"net/http" | |
"os" | |
"os/exec" | |
"os/signal" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 1. prevent pacemaker from managing galera | |
# pcs resource unmanage galera | |
--- 2. make sure ***mysql is not running on any node***. To bootstrap, mysql has to be completely shut down: | |
# ps -ef | grep mysql | |
< nothing, on all three controllers > | |
--- 3. Choose the node you want to bootstrap and run mysqld_safe with --wsrep-new-cluster: |