From owner-freebsd-questions@FreeBSD.ORG Wed Sep 28 17:17:03 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E17E616A41F for ; Wed, 28 Sep 2005 17:17:03 +0000 (GMT) (envelope-from ian@codepad.net) Received: from braint.aber.ac.uk (braint.aber.ac.uk [144.124.16.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F3A843D49 for ; Wed, 28 Sep 2005 17:17:03 +0000 (GMT) (envelope-from ian@codepad.net) Received: from localhost ([127.0.0.1] helo=braint.aber.ac.uk) by braint.aber.ac.uk with esmtp (Exim 4.50) id 1EKfYD-00076A-5c for freebsd-questions@freebsd.org; Wed, 28 Sep 2005 18:17:01 +0100 Received: from penbpc1ins5.penb.aber.ac.uk ([144.124.140.85]) by braint.aber.ac.uk with esmtp (Exim 4.50) id 1EKfY4-00075c-53 for freebsd-questions@freebsd.org; Wed, 28 Sep 2005 18:16:52 +0100 From: Xian To: freebsd-questions@freebsd.org Date: Wed, 28 Sep 2005 18:16:52 +0100 User-Agent: KMail/1.8.2 References: <4B3EE484EEA4F344BBB62F8316489986467326@corpsrv.RedMoon.local> In-Reply-To: <4B3EE484EEA4F344BBB62F8316489986467326@corpsrv.RedMoon.local> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200509281816.52134.ian@codepad.net> X-Sophos-Scanned: from ian@codepad.net virus scanned OK X-UWA-Mid: 1EKfY4-00075c-53 X-UWA-Originating-IP: 144.124.140.85 X-UWA-Bounce-Filter: 41JVx0Uyxlk Subject: Re: Server Crash X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 17:17:04 -0000 On Wednesday 28 September 2005 14:20, Cody Holland wrote: > Ok, I'm having some problems....due to the fact that I'm pretty new and > have no idea on how to do this. We had a server crash, hardware > related, and I want to take my dump backups and restore them on another > system. The dump files are located on a remote ftp server. So > basically what I'm trying to accomplish is installing FreeBSD on the new > system, getting the dump files off of the backup server, and then > restoring them on a live server. Is this possible, or should I be > trying to do this a different way. I cannot restore everything exactly > without some changes. The new server is SCSI, and the old server was on > an IDE hard drive and I had re-compiled the kernel with all SCSI devices > disabled (I don't know if that even matters). Anyway I'm kind of lost > and am looking for some guidance. I've done plenty of reading and have > attempted the restoration on my own, but keep hosing the new system. > Any help would greatly be appreciated. > > Thanks, > Cody If you old system has the SCSI devices compiled out of the kernel this could make things difficult. The way I would go about this would be to find a bootable CD of FreeBSD (FreeSBIE is good). And make the partitions on your new disks with it. Then make a folder somewhere (like /mnt/new) and mount your new (empty) root file system on it. restore your root file system from your backups. Commands such as `fetch ftp://blah/blah | restore -rf -` could work nicely but restore can hang around long enough creating directories that fetch sometimes times out. just use a bit of cunning here or shout again on this list. Then mount the other new (empty) file systems on /mnt/new or wherever _and_ a devfs on /mnt/new/dev. Restore the rest of the file systems. Chroot yourself into /mnt/new and its just like your old machine was. Build and install yourself a new kernel with all the bits you need for your new hardware. Then reboot and remove the bootable CD. I _should_ "just work" (TM) Maybe other people here can improve on this but this way has worked for me in the past. /Xian