我们有下面的多主复制场景。我们使用Mariadb 10.1.34和percona 3.0.11
从服务器上的SHOW SLAVE 'master1' STATUS\G工作正常。
在DB (db- Master 1)上执行以下pt-table-checksum命令
pt-table-checksum --replicate=percona.checksums --ignore-databases mysql,Quotient h=localhost,u=checksum_user,p=checksum_password --recursion-method=dsn=D=percona,t=dsns --no-check-binlog-format
Checking if all tables can be checksummed ...
Starting checksum ...
Replica db-slave2 is stopped. Waiting.
Replica db-slave2 is stopped. Waiting.在Master1-db上,percona.dsns表中有db-slave2 2的条目。
上述等待信息在无限循环中继续。
期待任何支持
发布于 2018-08-27 12:20:24
浅谈主数据库服务器
(i)为了安全起见,我复印了原件/bin/pt-table-校验和。
cp /bin/pt-table-checksum /bin/pt-table-checksumorg
(ii)打开/bin/pt-table-checksum文件
vi /bin/pt-表-校验和
(iii)转至电话号码8590按esc,类型8590,按移位g
(4)用my @lagged_slaves = map {cxn=>$_,lag=>undef} @$slaves代替my @lagged_slaves = ();
该程序立即工作并返回预期的结果。
https://dba.stackexchange.com/questions/215862
复制相似问题