Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2002 23:10:18 -0600
From:      Dustin Puryear <dpuryear@usa.net>
To:        freebsd-isp@FreeBSD.ORG
Subject:   Re: Migration of a complete system
Message-ID:  <5.1.0.14.0.20020108230640.00af9a38@pop.netaddress.com>
In-Reply-To: <20020109021206.A86939@ulstu.ru>
References:  <81C8CA3C286FD511A959000102C9B2CE760390@EXCHANGE> <81C8CA3C286FD511A959000102C9B2CE760390@EXCHANGE>

next in thread | previous in thread | raw e-mail | index | archive | help
At 02:12 AM 1/9/2002 +0300, you wrote:
On Tue, Jan 08, 2002 at 04:40:33PM -0600, Alberth David P?rez Marfil wrote:
 >> Hi list,
 >>  i need to move all users and aplication (Apache, Samba, Sendmail,
 >> postgreSQL) to a new box.
 >> what is the best way to doit with out stop the service?
 >	man dump
 >	man restore

I don't think that is a good solution in this case, but I could be wrong. 
He will have active file systems. In addition, the dumped data will quickly 
be out of date since he doesn't want service interruption. How about:

1. Bring up new server
2. Setup PostgreSQL replication from old to new server - let them sync
3. Redirect new PostgreSQL requests to new machine
4. Stop PostgreSQL replication when ready
5. Redirect incoming SMTP to new server; don't stop old Sendmail
6. Stop old Sendmail once queued mail has been delivered
7. Apache -- just do it
8. Samba is the hardest. Maybe you can set the shares to read-only mode, 
make a copy to new server, users then disconnect, and reconnect to new server

I am assuming that PostgreSQL has some type of replication support. With 
Samba you will have some service interruption. I don't see a way around it. 
Anyway, be careful and verify after each step.

Regards, Dustin
---
Dustin Puryear <dpuryear@usa.net>
Information Systems Consultant
http://members.telocity.com/~dpuryear
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20020108230640.00af9a38>