# Using pt-table-checksum with named slave (multiple masters replicating to one slave)

**URL:** <https://forums.percona.com/t/using-pt-table-checksum-with-named-slave-multiple-masters-replicating-to-one-slave/13070>\
**Category:** General Questions\
**Tags:** percona\
**Created:** [November 17, 2021, 12:40pm UTC](https://forums.percona.com/t/using-pt-table-checksum-with-named-slave-multiple-masters-replicating-to-one-slave/13070 "2021-11-17T12:40:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![richardhowes](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/richardhowes/32/5106_2.png) [@richardhowes](https://forums.percona.com/u/richardhowes)\
**Post date:** [November 17, 2021, 12:40pm UTC](https://forums.percona.com/t/using-pt-table-checksum-with-named-slave-multiple-masters-replicating-to-one-slave/13070/1 "2021-11-17T12:40:17Z")

</div>

Hi,

I am trying to use pt-table-checksum on two master servers that replicate to one slave.

So there are two master servers, A and B, with different databases on each. Then there is one slave server, C, which runs two named slaves to replicate the two master servers. In other words

SHOW SLAVE ‘A’ STATUS\G;  
SHOW SLAVE ‘B’ STATUS\G;

shows the two slave processes. For those not familiar, this setup is used because separate slave servers for each master would result in one unnecessary server.

The problem is it seems pt-table-checksum runs a ‘SHOW SLAVE STATUS’ check and with this setup that returns an empty set, so pt-table-checksum thinks the slave us not running which in fact it is.

Any way to run pt-table-checksum while telling it to access the named slave on the slave server?

Thank you.

---

<div class="post-metadata">

**Author:** ![Denis\_Subbota](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/denis_subbota/32/23607_2.png) [@Denis\_Subbota](https://forums.percona.com/u/Denis_Subbota)\
**Post date:** [August 12, 2022, 2:46pm UTC](https://forums.percona.com/t/using-pt-table-checksum-with-named-slave-multiple-masters-replicating-to-one-slave/13070/2 "2022-08-12T14:46:54Z")

</div>

Hello

To use pt-table-checksum with multi sourse master you can use --channel flag

`--channel` `` [¶](https://www.percona.com/doc/percona-toolkit/LATEST/pt-table-checksum.html#cmdoption-pt-table-checksum-channel)

type: string

Channel name used when connected to a server using replication channels. Suppose you have two masters, master\_a at port 12345, master\_b at port 1236 and a slave connected to both masters using channels chan\_master\_a and chan\_master\_b. If you want to run pt-table-sync to syncronize the slave against master\_a, pt-table-sync won’t be able to determine what’s the correct master since SHOW SLAVE STATUS will return 2 rows. In this case, you can use –channel=chan\_master\_a to specify the channel name to use in the SHOW SLAVE STATUS command.

Regards,  
Denis Subbota.  
Managed Services, Percona.
