1

There is a master and number of slaves connected to it.

Due to some patches, we have to Reboot the Master and Slave.

Afterwards, we have to make sure replication is running fine.

While doing this process, what precautions should I take so that I don't get stuck anywhere? After rebooting, I also have to validate that all the slaves are working fine.

RolandoMySQLDBA
185k34 gold badges327 silver badges541 bronze badges
asked Dec 6, 2011 at 12:26

1 Answer 1

2
  • Step 01) STOP SLAVE; on all Slaves

  • Step 02) service mysql stop on the Master

  • Step 03) Reboot Master

  • Step 04) For each Slave

    • Reboot each Slave
    • If /etc/my.cnf has skip-slave-start, then run START SLAVE;
  • Step 05) Check that each Slave is fully running

Run the following on the command line

SLAVETHREADCOUNT=`mysql -u... -p... -AN -e"SHOW PROCESSLIST" | grep -c "system user"`
echo ${SLAVETHREADCOUNT}

If SLAVETHREADCOUNT is 2, replication is fully operational.

Give it a Try !!!

answered Dec 6, 2011 at 15:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.