how to do a live migration of a freebsd box to another box with rsync

Ruben de Groot mail25 at bzerk.org
Mon Jul 6 07:59:25 UTC 2009


On Sun, Jul 05, 2009 at 06:18:03PM +0200, insrc typed:
> Hi,
> I'm used to migrate GNU/Linux system from one box to another by booting the
> second box with a liveCD (like systemrescueCD for example) and by copying
> the "/" filesystem (using the ssh transport)  with rsync.
> I would like to do the same for BSD system but i have two issues:
> - as the UFS write support is still experimental in the Linux kernel, it
> seems that i've to use a BSD liveCD but i can't find one :-/ I heard about
> frenzy ( http://frenzy.org.ua/en/ ) but the homepage says that the project
> is no longer maintained !
> - i'm wondering how to restore the bootloader after copying the files on the
> second box. On linux, i can use the grub-install script to do the job but
> i'm a bit lost on FreeBSD :-)

Assuming you install on the first slice of the first disk (ad0s1), to install
the bootloader and bootstrap code:

fdisk -B ad0
bsdlabel -B ad0s1

Ruben



More information about the freebsd-questions mailing list