Sync'ing between servers [message #376] |
Thu, 17 November 2005 21:00 |
tbenoit
Messages: 10 Registered: November 2005
|
Junior Member |
|
|
Our use for OpenVZ is a little different than most. We'll be running 1 VPS on each server normally. When we will run 2 VPS on a server is when a primary server dies and will take an unacceptable amount of time to come back up.
With that in mind, we'd like to be able to replicate each VPS to its backup server(s). For example:
SERVER1 = VPS1 (VPS2's backup server)
SERVER2 = VPS2 (VPS1's backup server)
We'd like to use `rsync` every so often (hour, or several hours) to sync VPS1 onto SERVER2 and VPS2 onto SERVER1 which will allow us to more easily bring up the VPS on the backup server if needed.
1) Is this even possible, considering potential corruption issues? I tend to think "Yes". The Application won't have an issue with it. I'm just confirming from an OpenVZ side it'll be ok.
2) If it is, here's the list of directories/files I have set to `rsync`, to sync VPS1 onto SERVER2 (into the same directory structure, of course). Am I missing anything?
..... /vz/private/VPS1
..... /vz/root/VPS1
..... /etc/sysconfig/vz-scripts/VPS1.conf
As always, many thanks for all of your assistance. I truly appreciate it.
Thanks
|
|
|
|
|
|
Re: Sync'ing between servers [message #388 is a reply to message #385] |
Sun, 20 November 2005 02:30 |
tbenoit
Messages: 10 Registered: November 2005
|
Junior Member |
|
|
Many thanks.
Automating the failover was going to be my next step (kind of a "poor man's" cluster).
I appreciate the script. Will save me time from starting my own from scratch.
Thanks
|
|
|
|
|
|
|