aqk5zd
Goto Top

Synchronize CentOS servers

How can I run two CentOS servers so that they mirror each other?
Data can be exchanged via SSH.

At least the home directory and, if possible, user and server settings should be kept in sync.

Content-ID: 91432064599

Url: https://administrator.de/contentid/91432064599

Ausgedruckt am: 24.11.2024 um 05:11 Uhr

StefanKittel
StefanKittel 09.12.2023 um 15:53:59 Uhr
Goto Top
Hello, bevor we come to the "how" we need to define "what".
It is totaly different to sync fines and databased.
And the direction is important.

Is this a master-slave-type (active-passic) or master-master-type (active-active).

For many types you can use rsync.
Maybe to start services if settings have changed.

Maybe to use a hypervisor (e.g. ESXi) to create a HA environment.

Stefan
AQk5Zd
AQk5Zd 09.12.2023 aktualisiert um 23:20:06 Uhr
Goto Top
Both instances should be equally usable, i.e. master-master and CentOS is installed without virtualization.
No, ESXi is not intended. Would it be easier with a hypervisor? Even if the VM's are on a different hardware?

rsync is a good option, but unfortunately not usable in my case because changes have to be synchronized in both directions.