From owner-freebsd-questions@FreeBSD.ORG Tue Sep 20 17:02:49 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 F0FFF16A41F for ; Tue, 20 Sep 2005 17:02:48 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from relay04.roc.ny.frontiernet.net (relay04.roc.ny.frontiernet.net [66.133.182.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A24343D49 for ; Tue, 20 Sep 2005 17:02:48 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter02.roc.ny.frontiernet.net (filter02.roc.ny.frontiernet.net [66.133.183.69]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 8EDB7358120 for ; Tue, 20 Sep 2005 17:02:47 +0000 (UTC) Received: from relay04.roc.ny.frontiernet.net ([66.133.182.167]) by filter02.roc.ny.frontiernet.net (filter02.roc.ny.frontiernet.net [66.133.183.69]) (amavisd-new, port 10024) with LMTP id 11296-01-91 for ; Tue, 20 Sep 2005 17:02:47 +0000 (UTC) Received: from blacklamb.mykitchentable.net (67-51-164-214.dsl1.elk.ca.frontiernet.net [67.51.164.214]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 08BDD358236 for ; Tue, 20 Sep 2005 17:02:35 +0000 (UTC) Received: from [165.107.42.106] (unknown [165.107.42.106]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 89FBD153AD2 for ; Tue, 20 Sep 2005 10:02:34 -0700 (PDT) Message-ID: <4330403C.2020105@mykitchentable.net> Date: Tue, 20 Sep 2005 10:00:44 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Questions Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-2.3.2 (20050629) at filter02.roc.ny.frontiernet.net Subject: Can I Rebuild / and /usr Remotely? Ideas? 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: Tue, 20 Sep 2005 17:02:49 -0000 I have a system running 5.4-STABLE. I created a geom_stripe disk for /usr. It works fine except that upon reboot, the stripe attempts to load itself twice and thus fails. Therefore, since I have no /usr, the system comes up in single user mode. At that point I can do 'kldunload geom_stripe' and then 'kldload geom_stripe' to get the stripe built and finish booting my system. I sent a problem report describing this behavior. http://www.freebsd.org/cgi/query-pr.cgi?pr=83521 Please see it for details. Based upon the information in the pr, the commiter suggests clearing all metadata on the stripe providers and starting over. When I built this system, I configured the disks using sysinstall. I used the "dangerously dedicated"mode just as I had when I ran the 4.x series. I suspect my problems occur because geom_stripe doesn't get along well with disks that are "dangerously dedicated". Anyway, my system has 2 9gb drives (da0 and da1) that I wish to use for the main system. I want a 500mb slice as /dev/da0s1a for '/', a 500mb slice as /dev/da1s1b for swap, and the rest of each drive as /dev/daXs1d. I will build my stripe with /dev/da0s1d and /dev/da1s1d and mount it at /usr. Other directories such as /var, /home, etc. will be symlinked to /usr/var, /usr/home, etc. I have remote console access to this machine and want to attempt to rebuild the system remotely. If I mess up, it's not too difficult to physically get to the box but I would like to avoid it if possible. I have another disk on the system (ad0) that is available and large enough to hold the contents of both da0 and da1. Can I backup my system, do the needed operations on da0 and da1, restore da0 and da1, reboot, and still have a working system? I've never used fdisk, bsdlabel, newfs, and whatever else I might need from the command line. Besides the man pages, are there any guides for what I want to do? Even a simple "first this, then this, then this" type of guide will help me get started. I'd appreciate any help or suggestions on the best way to accomplish this task. I would also appreciate any second opinions regarding other ways to get geom_stripe working properly on this box. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com