From owner-freebsd-questions@FreeBSD.ORG Wed Jan 23 16:16:55 2008 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 601A716A419 for ; Wed, 23 Jan 2008 16:16:55 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (ns1.jnielsen.net [69.55.238.237]) by mx1.freebsd.org (Postfix) with ESMTP id 1668A13C467 for ; Wed, 23 Jan 2008 16:16:54 +0000 (UTC) (envelope-from john@jnielsen.net) Received: from ns1.jnielsen.net (jn@ns1 [69.55.238.237]) by ns1.jnielsen.net (8.12.9p2/8.12.9) with ESMTP id m0NGGsqU088159; Wed, 23 Jan 2008 11:16:54 -0500 (EST) (envelope-from john@jnielsen.net) Received: (from www@localhost) by ns1.jnielsen.net (8.12.9p2/8.12.9/Submit) id m0NGGs1r088158; Wed, 23 Jan 2008 11:16:54 -0500 (EST) (envelope-from john@jnielsen.net) X-Authentication-Warning: ns1.jnielsen.net: www set sender to john@jnielsen.net using -f Received: from nc-2wac-zop05.wachovia.com (nc-2wac-zop05.wachovia.com [162.111.235.16]) by newwebmail.jnielsen.net (Horde MIME library) with HTTP; Wed, 23 Jan 2008 11:16:54 -0500 Message-ID: <20080123111654.o77i3ia94oo884sw@newwebmail.jnielsen.net> Date: Wed, 23 Jan 2008 11:16:54 -0500 From: John Nielsen To: Chris Haulmark References: <6FC9F9894A9F8C49A722CF9F2132FC2210120D5E@ms05.mailstreet2003.net> In-Reply-To: <6FC9F9894A9F8C49A722CF9F2132FC2210120D5E@ms05.mailstreet2003.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.4) / FreeBSD-4.9 X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on ns1.jnielsen.net X-Virus-Status: Clean Cc: freebsd-questions@freebsd.org Subject: Re: mfsbsd 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, 23 Jan 2008 16:16:55 -0000 Quoting Chris Haulmark : > Anyone used mfsbsd to do remote install of a dedicated server with > success? No, but.. > Summary: > > A dedicated server has FreeBSD 6.x running with / as the entire > partition of the entire disk. Hoping to find a solution to do reinstall > remotely. That's unfortunate. Is it really the entire disk? If you even had, say, a swap partition you could potentially use it to bootstrap the process-- 1) Comment out swap line in /etc/fstab 2) Reboot 3) re-label and newfs the swap partition 4) dump/restore some or all of your existing setup to the new fs (or do a manual minimal install using sysinstall, or do an installworld with DESTDIR set to the new fs ...) 5) Change /etc/fstab on the ORIGINAL root partition (since that's still what you'll be booting from for now) to mount root from the new fs 6) Reboot and cross your fingers 7) Observe that the new fs is mounted and the original one is not. Make your partitioning changes. Move / restore / reinstall your directories and mountpoints as needed. 8) Make sure the /etc/fstab on the NEW root (preferrably on partition a) points to the right place. 9) Re-install the boot blocks on the disk and the slice for good measure (using fdisk and bsdlabel respectively) 10) Reboot and cross your fingers and toes 11) Observe that your original swap area is NOT mounted and that everything else is. Edit /etc/fstab to use your swap area for swap again. 12) swapon -a > depenguinator seems incompatible with the current latest FreeBSD > releases. > > Advices other than "DRAC, IPKM or hire a tech" are welcome. Using mfsbsd, depenguinator, or an approach like the one above there is at least one point in the process where you only get one chance to get it right. Depending on your personality this might be an adrenaline rush, but in any case you should have a backup plan such as DRAC, IPKM, or an available tech. Or an IP KVM (Belkin makes one that will let you use ISO images over the network as a USB CD). Or a serial console. etc. etc. JN