From owner-freebsd-questions@FreeBSD.ORG Thu Nov 19 03:06:04 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C9B391065670 for ; Thu, 19 Nov 2009 03:06:04 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 9E7EB8FC1C for ; Thu, 19 Nov 2009 03:06:04 +0000 (UTC) Received: by pwj15 with SMTP id 15so1232708pwj.3 for ; Wed, 18 Nov 2009 19:06:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=6JcXL6ZmkBtpYvCnloGV+zhviTMaCZGMGOofb5uvZ8Y=; b=a27LbEi5Do/3nKFXOy9Z7Osw3Z51tP9grodiKerOp9N4gWW+BRXf3eBdl7vZpIloJA FJpVVcbvwC5WYfvlhG4bXsj2QojSRtuRB5pmnjS1strxNMEfRbSXQcXmhxyTcTV98vtn sjUAh/m3E1OETkBVbHf6Y+NRu8blzcqnEVBSI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=F/yEVI4Z/6FYvCsKQg00Dt/SaqSh0RItd5HDH3lCFE87/5wZlZ7ZSVwcoSxWX+Oy3L LKQKkcNATk7j0zpSx/9gP/fkMtW2CIUBuTZy1GcNKhIRFFvnKSbsNIFKJIndS1MwfpU3 5DbxA0x4SmdVlt76Y5csyYqv0/tt3i4CwuNSY= MIME-Version: 1.0 Received: by 10.142.7.3 with SMTP id 3mr1392480wfg.126.1258599964356; Wed, 18 Nov 2009 19:06:04 -0800 (PST) In-Reply-To: <4ad871310911181835n7b72dde1o22c73ec86dcc6c12@mail.gmail.com> References: <4ad871310911181835n7b72dde1o22c73ec86dcc6c12@mail.gmail.com> Date: Wed, 18 Nov 2009 21:06:04 -0600 Message-ID: <6201873e0911181906t9ba2699kbc48ad2940f88159@mail.gmail.com> From: Adam Vande More To: Glen Barber Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: Loader does not load after reinstall with previous mirrored disk attached 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: Thu, 19 Nov 2009 03:06:04 -0000 On Wed, Nov 18, 2009 at 8:35 PM, Glen Barber wrote: > Hello, > > First off, this is not a real "I need help" post, though there are a > few questions that I'd like to get insight on, if possible - it is > more for informative purposes in the archives, should someone run into > this very random problem in the future. Additionally, I believe this > is far too unlikely this will happen to many others to consider it to > be a "problem", thus submitting a PR. > > The story, cut down from its original 3 hour length: > > For some time, I was dual-booting OpenSolaris and FreeBSD, on 500GB > SATA and 250GB IDE disks, respectively. When I lost the need to run > OpenSolaris (Flash), I purchased a second 500GB SATA disk. I added > the original SATA disk to gmirror, and synced the 250GB FreeBSD > install to the 500GB SATA drive. Once that finished, I removed the > 250GB disk, and installed the second 500GB disk, adding it to the > mirror. > > All was fine, except I was not using all of the drive space available. > This past weekend, I decided to create a slice to cover the remaining > 250GB, initially to try ZFS, which failed for the following reason. > Here is where question 1 comes into play. > > 1.) What is the correct way to completely break a gmirror setup, > replacing /dev/mirror/gm0 with the original /dev/adN configuration? > Is the assumption that once you initialize gmirror, you will never > need/want to go back to a single disk setup? Is there a clean way to > fix boot0 so it does not look for a mirror, short of > 'vfs.root.mountfrom' in loader.conf? > I usually find this easier to run from fixit cd. I don't remember exact order but something like deactivate stop clear. clear is last for sure because that will remove metadata. Remember to change fstab. -- Adam Vande More