server_id conflict causes IO wait failure

Source: Internet
Author: User


Problem Description:

After adding a new MySQL Slave on the line, the server is abnormal.

1, show processlist;

Queueing master event to the relay logreconnecting after a failed master event read

# repeated execution of the instruction, found that slave is constantly trying to register to master, but registration failed.
# Execute show slave status\g find master-slave is in sync state.

2, the server disk IO occupation is more serious

# Top Display 1.9%wa
# iotop Display 9.8M WRITE per second

Workaround:

First think of the operation, the new addition of Slave, the way is to copy the data directory from another Slave directly with the configuration file way.

Login This Slave found the same as the new Slave.

Recall just the operation, found that the new Slave forgot to modify the server_id, started the service.

Change the new Slave server_id to globally unique, restart MySQL and find everything back to normal.

server_id conflict causes IO wait failure

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.