[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ezjail] Moving jails between servers
Quite a few times. My procedure is something like this:
a. rsync jail from one server to the other (while running). Exclude basejail, ports, and other things in the jail that you don't want/need to move.
b. copy over /etc/fstab.JAILNAME
c. Configure /etc/rc.conf on both machines so that the jail IP(s) are properly configured. Adjust firewall config too.
d. Shut down the old jail
e. Manually move the jail IPs to the new box.
f. Do a final rsync with --delete (while jail is not running)
g. Start up jail on new box
With a little extra effort, it even works to migrate a jail from i386 to amd64.
Sent from my iPhone
On Sep 21, 2010, at 6:24 PM, Dan Langille <dan AT langille DOT org> wrote:
> I have two servers, one of which is running 15 jails:
> FreeBSD polo.example.org 8.1-STABLE FreeBSD 8.1-STABLE #3: Tue Sep 21 09:32:28 EDT 2010 d AT polo.example DOT org:/usr/obj/usr/src/sys/PHENOM amd64
> The other is running no jails:
> FreeBSD kraken.example.org 8.1-STABLE FreeBSD 8.1-STABLE #0: Sat Sep 18 23:43:48 EDT 2010 d AT kraken.example DOT org:/usr/obj/usr/src/sys/KRAKEN amd64
> Anyone done this?
> Dan Langille - http://langille.org/