Mariadb Synchronisation

Juergen Raschke mail at juergen-raschke.de
Mon Nov 25 16:14:54 CET 2024


Hallo,

On 23.11.24 21:48, Stefan U. Hegner wrote:

> MariaDB [(none)]> SHOW SLAVE STATUS \G;
> *************************** 1. row ***************************
>                  Slave_IO_State: *Master_Host: laputopu*
[...]
>                  Relay_Log_File: mbiribuku-relay-bin.000001
[...]
>     Replicate_Ignore_Server_Ids: *Master_Server_Id: 2*



>      MariaDB [(none)]> SHOW SLAVE STATUS \G;
> *************************** 1. row ***************************
>                  Slave_IO_State: *Master_Host: mbiribuku*
[...]
>                  Relay_Log_File: laputopu-relay-bin.000001
[...]
>     Replicate_Ignore_Server_Ids: *Master_Server_Id: 2*
>


> Ich begreife nicht, dass die Kisten sich mit den Server-Ids behaken.
>
> In der Config und in der DB sind die doch klar verschieden. Beide Kisten melden jeweils die andere als Master-Host, aber im Slave-Status steht beide Male eine Master_Server_ID:2.
>


Bei beiden mysql-Servern die gleiche ''Replicate_Ignore_Server_Ids'' gesetzt.
Somit sieht Server1 nur seine Replikationsdaten, die von Server2 ignoriert er.


https://mariadb.com/kb/en/show-replica-status/
Replicate_Ignore_Server_Ids
List of server_ids that are currently being ignored for replication purposes,
or an empty string for none, as specified in the IGNORE_SERVER_IDS option of
the CHANGE MASTER TO statement.

Gruss,
Juergen








More information about the Linux mailing list