From owner-freebsd-questions@FreeBSD.ORG Wed Dec 19 17:19:31 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFE8D16A419 for ; Wed, 19 Dec 2007 17:19:31 +0000 (UTC) (envelope-from nuno@fccn.pt) Received: from app03.fccn.pt (app02.fccn.pt [193.137.198.37]) by mx1.freebsd.org (Postfix) with ESMTP id 48EEE13C4D9 for ; Wed, 19 Dec 2007 17:19:31 +0000 (UTC) (envelope-from nuno@fccn.pt) Received: from mx.anubis.local (ste [10.1.2.2]) by ste.anubis.internal (Postfix) with ESMTP id 745A619FC4C; Wed, 19 Dec 2007 17:19:29 +0000 (WET) Received: from janus (janus.corp.fccn.pt [193.136.44.31]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx.anubis.local (Postfix) with ESMTP id 36CC81B4450; Wed, 19 Dec 2007 17:19:29 +0000 (WET) From: =?iso-8859-1?Q?Nuno_Gon=E7alves?= To: "'Kevin Kinsey'" References: <003e01c84250$9e2b8bd0$1f2c88c1@corp.fccn.pt> <47694D85.7020903@daleco.biz> Date: Wed, 19 Dec 2007 17:19:24 -0000 Message-ID: <007801c84263$4fdb5970$1f2c88c1@corp.fccn.pt> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <47694D85.7020903@daleco.biz> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AchCYHeL357Fzu/uTm64mEMntz7O3QAAGnEQ X-Warning-Anubis: User opted out of Anti-Virus checks X-Warning-Anubis: User opted out of Anti-Spam checks X-Content-Checker: AnubisNetworks MPS Cc: freebsd-questions@freebsd.org Subject: RE: Bare Metal Recovery FreeBSD How To 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, 19 Dec 2007 17:19:31 -0000 Thank you all on responding this mater. Well the situation is the hardware is wrecked! So the only thing that I = have is the content of all partitions available. The backup is a tar = uncompressed data. So I have the contents in a server. So the objective is to use a completely different hardware but with the = same kernel, same configurations, same partitions, etc. In that way, what I thought (but I don't know if it is the proper way) was to install a = minimum freeBSD (same version which is 6.0) with the following partitions and booting with F1 option: /dev/ad1s1b none swap sw 0 = 0 /dev/ad1s1a / ufs rw 1 = 1 /dev/ad1s1d /new_root ufs rw 2 = 2 /dev/ad1s1e /archive ufs rw 2 2 /dev/acd0 /cdrom cd9660 ro,noauto 0 = 0 Then migrate the partions that I have in my backup / -> to partition /new_root (/dev/ad1s1d) at the end this should be = changed to /dev/ad1s1a /archive -> to partition /archive (/dev/ad1s1e) The idea is to make use of the same swap partition, and of course if all goes OK the partition / of the minimum system is lost when bootManager = is changed to boot on /new_root. That is what I have in mind but I am not sure if it will work. I am new to FreeBSD and I am more used to red hat, still I am putting = some effort to change that :) Best regards and thanks once again Nuno -----Original Message----- From: Kevin Kinsey [mailto:kdk@daleco.biz]=20 Sent: quarta-feira, 19 de Dezembro de 2007 16:58 To: Nuno Gon=E7alves Cc: freebsd-questions@freebsd.org Subject: Re: Bare Metal Recovery FreeBSD How To Nuno Gon=E7alves wrote: > I am trying to do a Bare Metal Recovery from a FreeBSD 6.0 system to a > different Hardware. >=20 > I have a backup from all partitions of the affected system so I am = trying to > install a minimum FreeBSD 6.0 in a different hardware which I already = have > up and running. What kind of backup? Is it a dump(8) file? =20 > I created a Swap Partition, a =93/=94 partition where the minimum = system is > running, and a third partition =93/backup=94 in which I will restore = the backup > through the network. >=20 > Next step will be to change the boot manager and make it boot through > =93/backup=94. >=20 > Do you guys think this is doable? >=20 > I Think I probably must recompile the kernel after the bare metal = recovery > because the hardware is different, still do you think it might work? Did the kernel have a lot of customization? A GENERIC kernel should boot on almost anything --- which is why "bare metal recovery" seems=20 a misnomer to me. If the hard disk survives, I simply stick it in=20 another box and rarely have any difficulties. If it doesn't, I do a minimal install with the desired final slice/partition scheme on=20 the new HDD, and simply restore(8) over the top. > What is your opinion on this? What should be the best approach ? Well, I don't know your exact situation, but OOTOMH, the partitioning scheme you mention seems like wasting a disk unless you want the final system to have only /, swap, and /backup. Which could be OK, I guess, but isn't the traditional BSD Right Way(tm). Also, I'd consider installing a newer release than 6.0, and only restoring the important stuff. Again, it depends on your situation. My $.02, Kevin Kinsey --=20 You have been in Afghanistan, I perceive. -- Sherlock Holmes, A Study in Scarlet