From owner-freebsd-stable@FreeBSD.ORG Wed Jan 19 06:57:58 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5194A16A4CE for ; Wed, 19 Jan 2005 06:57:58 +0000 (GMT) Received: from FS.Denninger.Net (wsip-68-15-213-52.at.at.cox.net [68.15.213.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id BC26943D39 for ; Wed, 19 Jan 2005 06:57:57 +0000 (GMT) (envelope-from karl@FS.Denninger.Net) Received: from fs.denninger.net (localhost [127.0.0.1]) by FS.Denninger.Net (8.12.10/8.12.8) with SMTP id j0J6vvxE012368 for ; Wed, 19 Jan 2005 00:57:57 -0600 (CST) (envelope-from karl@FS.Denninger.Net) Received: from fs.denninger.net [127.0.0.1] by Spamblock-sys; Wed Jan 19 00:57:57 2005 Received: (from karl@localhost) by FS.Denninger.Net (8.12.10/8.12.8/Submit) id j0J6vvqJ012366; Wed, 19 Jan 2005 00:57:57 -0600 (CST) Message-ID: <20050119005757.A12360@Denninger.Net> Date: Wed, 19 Jan 2005 00:57:57 -0600 From: Karl Denninger To: noackjr@alumni.rice.edu References: <20050118234606.C11398@Denninger.Net> <41EDF9C6.4040709@alumni.rice.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <41EDF9C6.4040709@alumni.rice.edu>; from Jon Noack on Wed, Jan 19, 2005 at 12:10:14AM -0600 Organization: Karl's Sushi and Packet Smashers X-Die-Spammers: Spammers cheerfully broiled for supper and served with ketchup! cc: freebsd-stable@freebsd.org Subject: Re: Trials and tribulations on mirroring.... X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Jan 2005 06:57:58 -0000 Thanks.... that should do the trick (and explains why it fails....) -- -- Karl Denninger (karl@denninger.net) Internet Consultant & Kids Rights Activist http://www.denninger.net My home on the net - links to everything I do! http://scubaforum.org Your UNCENSORED place to talk about DIVING! http://www.spamcuda.net SPAM FREE mailboxes - FREE FOR A LIMITED TIME! http://genesis3.blogspot.com Musings Of A Sentient Mind On Wed, Jan 19, 2005 at 12:10:14AM -0600, Jon Noack wrote: > On 01/18/05 23:46, Karl Denninger wrote: > > > > > > So, my next attempt (with a new, fresh load) was to give gmirror a shot > > instead, since I only need Raid 1, and this looks like a "better" option > > from that perspective given gvinum's squirrely and not-all-there status at > > the moment. > > > > Weeeeellll.. the manual page (and the archives on the list here) implies that > > I can do the following: > > > > 1. Set up the system on one of the two mirror disks. > > > > 2. In single user mode, use "gmirror label -v -b round-robin disk ad4" > > to set up the pre-existing disk (with data on it), which I booted from, > > as the "primary". > > > > 3. Then use "gmirror insert disk ad6" to add the secondary (mirrored) disk, > > which will automatically sync it and bring them into a consistent state. > > > > Only one small problem - the first command (in #2) fails, with: > > > > "Can't store metadata on ad4: Operation not permitted" > > > > This is true if the system is mounted read-only (in single user mode) or > > read-write (in multiuser, with all filesystems mounted) > > > > Attempting to label the SECOND (bare) disk works, but of course that's > > backwards and an "insert" would immediately destroy the running system (I > > assume it would also fail with the same permission error, but I've not tried > > it) - so that's not an option. > > > > I also tried it from the fixit disk, but the KLD cannot be loaded from the > > fixit disk, and none of the commands work - so that appears to not be an > > option either. > > > > How do you get this thing set up? The archives here (and man pages) > > strongly imply that this works for a root filesystem and boot drive - > > what am I missing? > > > > Need a Raid 1 solution that works to move over to the 5.x world out here... > > If any filesystem is mounted then GEOM will not allow metadata updates > for the drive. Here's a solution given over on the geom@ list: > http://lists.freebsd.org/pipermail/freebsd-geom/2004-November/000379.html > > I converted to gmirror from ataraid, so I already had 2 disks with > identical contents. I worked around this problem as outlined here (the > instructions have errors that are corrected later in the thread): > http://lists.freebsd.org/pipermail/freebsd-current/2004-October/039907.html > > I wish we handled this in the installer, but as I can't produce the code > to do it I'll shut up now... > > Jon > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > > > %SPAMBLOCK-SYS: Matched [freebsd], message ok