From owner-freebsd-geom@FreeBSD.ORG Sat Sep 11 20:35:26 2004 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4031D16A4CE; Sat, 11 Sep 2004 20:35:26 +0000 (GMT) Received: from kestrel.alerce.com (kestrel.alerce.com [209.182.219.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0E4C43D46; Sat, 11 Sep 2004 20:35:25 +0000 (GMT) (envelope-from hartzell@kestrel.alerce.com) Received: from rosebud.alerce.com (w092.z064001164.sjc-ca.dsl.cnc.net [64.1.164.92]) (authenticated bits=128) by kestrel.alerce.com (8.12.10/8.12.10) with ESMTP id i8BKZLkk052697 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 11 Sep 2004 13:35:22 -0700 (PDT) (envelope-from hartzell@kestrel.alerce.com) Received: from rosebud.alerce.com (localhost [127.0.0.1]) by rosebud.alerce.com (8.12.9p2/8.12.9) with ESMTP id i8BKa1wg007931 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 11 Sep 2004 13:36:02 -0700 (PDT) (envelope-from hartzell@rosebud.alerce.com) Received: (from hartzell@localhost) by rosebud.alerce.com (8.12.9p2/8.12.9/Submit) id i8BKa1ax007927; Sat, 11 Sep 2004 13:36:01 -0700 (PDT) (envelope-from hartzell) From: George Hartzell MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16707.25008.865268.555842@rosebud.alerce.com> Date: Sat, 11 Sep 2004 13:36:00 -0700 To: Pawel Jakub Dawidek In-Reply-To: <20040911074556.GI30151@darkness.comp.waw.pl> References: <16706.33472.228042.851882@rosebud.alerce.com> <20040911074556.GI30151@darkness.comp.waw.pl> X-Mailer: VM 7.14 under 21.4 (patch 14) "Reasonable Discussion" XEmacs Lucid X-Virus-Scanned: ClamAV version 'clamd / ClamAV version 0.65', clamav-milter version '0.60p' cc: George Hartzell cc: freebsd-geom@FreeBSD.org Subject: Re: Mounting root... X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hartzell@kestrel.alerce.com List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Sep 2004 20:35:26 -0000 Pawel Jakub Dawidek writes: > On Fri, Sep 10, 2004 at 09:44:48PM -0700, George Hartzell wrote: > +> > +> I've been playing with your patch for delaying mounting the root > +> partition, and I need some guidance on a reasonable number for the > +> delay value. > +> > +> I have two scsi disks, with identical MBR partition tables, and > +> identical disklabels in da0s1 and da1s1. I have a geom mirror set up > +> mirroring those two MBR-slices, and then have a bsd label on the > +> resulting "slice", and mount the standard a,d,e,f partitions. > +> > +> With the default value of the delay, when I shutdown cleanly, and > +> reboot, I get: > [...] > > If you don't have swap partition on the mirror everything should be fine. Sure enough, if I comment my swap partition out of /etc/fstab, reboot (which causes a rebuild because I was just using the swap), then reboot again (this time I've been running w/out swap), it comes right up w/out a rebuild. > PS. I'm CCing reply to freebsd-geom@, maybe others are also interested. I didn't realize there was a freebsd-geom, I've subscribed and grabbed the archives. It looks like you've been discussing the same problem with kris @ home.pl, and you mention that it's "fixed in current", but he still needs to remove his swap partition to get a clean restart, so I'm assuming you fixed a different problem here. paul at gromit.dlib.vt.edu mentions a similar problem on a NetBSD/RAIDframe system, and says that defining swapoff in /etc/rc.conf fixes it there. We do have a swapoff variable that's used in /etc/rc.d/swap1, I tried defining it swapoff="YES" in /etc/rc.conf, but I still had a rebuild. But, I never saw the message about "Removing block-type swap devices" that swap1_stop() should also produce, so I may be missing something. Actually, I'm definitely confused about the _stop() and _start() stuff. Setting swapoff="YES" doesn't seem to make the script remove any swap partitions. Editing /etc/rc.d/swap1 and changing stop_cmd from ':' to 'swapoff -a' let's me add and remove my swap by saying 'sh /etc/rc.d/swap1 start|stop', but even with that change, I still get a rebuild when I reboot. Is stopping swap not enough? Suggestions? g.