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-Key: 91432064599

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

Printed on: April 27, 2024 at 16:04 o'clock

Member: StefanKittel
StefanKittel Dec 09, 2023 at 14:53:59 (UTC)
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
Member: AQk5Zd
AQk5Zd Dec 09, 2023 updated at 22:20:06 (UTC)
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.