Hi,
Rsync will work with careful planning.
1st set a provisioning policy at designated timing and
run rsync after that timing.
eg: provision domain at 1am to 2am after that run rsync.
ie:
Rsync /home
/var/db
/usr/sausalito/
/var/log
/etc/mail
/etc/smrsh
Once you have setup the hotspare server.
Make sure /etc/init.d/dbrecover stop/start works.
And modified
cat /etc/pam.d/pop3
#%PAM-1.0
auth requisite /lib/security/pam_nologin.so
auth requisite /lib/security/pam_shells.so
#auth required /lib/security/pam_pwdb.so shadow nullok
#account required /lib/security/pam_pwdb.so
auth required /lib/security/pam_stack.so service=system-auth shadow nullok
account required /lib/security/pam_stack.so service=system-auth
### ps: you need to modify pop3 pam 1st and let it run for at least a week
so that /var/db/<transaction log> can be purged.
Cheers
patrick
On Thu, 08 Feb 2007 02:03:12 +0000
Jason Humphrey <jasonh (at mark) businessws.com> wrote:
> Hi,
> Whenever a server goes offline it takes ages to import last nights cmu's
> and after that you have to change the DNS settings. Depending on how
> many sites you have you could be at it for ages. I would really like to
> find a more practical and efficient way of doing all of this. How does
> this sound?
>
> 2 identical servers, both with the same sites and users set-up but with
> using their own IP address. Rsync all the web & user directories on a
> regular bases. Run a primary DNS server (on a 3rd server) using a mysql
> database and a script that checks each service is running every Xmins,
> when it sees a service down it can change the mysql database setting the
> appropriate records to point at the backup server.
>
> Say HTTP access fails; script detects failure, database gets altered,
> traffic now goes to back-up machine which would be identical to the primary.
>
> Can anybody see any obvious hole in this plan, or know of a better way
> to achieve a similar outcome?
> -You would have to set up each new vsite and user twice, bit of a pain
> -I think for simplicity if one service fails the all services should
> fall over so that when the primary is back online you can just Rsync and
> the primary server would be up-to-date
> -I guess Rsync would have to use relative paths
> (/home/sites/www.example.com/web/) instead of (/home/.sites/34/web/) as
> you couldn't guarantee that the site IDs were the same. Is this possible?
> -Mysql databases would also need to be copied very often so not to lose
> new data, is there anyway to get a mysql to replicate changes to a db
> instantly?
>
> Any feedback will be very helpful
>
> Thanks
> Jason
>