From owner-freebsd-current@FreeBSD.ORG Tue Aug 23 06:39:33 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0243F16A41F for ; Tue, 23 Aug 2005 06:39:33 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from mailhub03.unibe.ch (mailhub03-eth0.unibe.ch [130.92.9.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id 743EC43D55 for ; Tue, 23 Aug 2005 06:39:32 +0000 (GMT) (envelope-from roth@droopy.unibe.ch) Received: from localhost (scanhub01.unibe.ch [130.92.254.65]) by mailhub03.unibe.ch (Postfix) with ESMTP id BA7B81E8FE; Tue, 23 Aug 2005 08:39:30 +0200 (CEST) Received: from mailhub03.unibe.ch ([130.92.9.70]) by localhost (scanhub01.unibe.ch [130.92.254.65]) (amavisd-new, port 10024) with LMTP id 28406-03-5; Tue, 23 Aug 2005 08:39:29 +0200 (CEST) Received: from asterix.unibe.ch (asterix.unibe.ch [130.92.64.4]) by mailhub03.unibe.ch (Postfix) with ESMTP id 331F21E89B; Tue, 23 Aug 2005 08:39:29 +0200 (CEST) Received: from droopy.unibe.ch (droopy [130.92.64.20]) by asterix.unibe.ch (8.12.10+Sun/8.12.10) with ESMTP id j7N6dTdB024850; Tue, 23 Aug 2005 08:39:29 +0200 (MEST) Received: (from roth@localhost) by droopy.unibe.ch (8.12.10+Sun/8.12.9/Submit) id j7N6dSSi016509; Tue, 23 Aug 2005 08:39:28 +0200 (MEST) Date: Tue, 23 Aug 2005 08:39:28 +0200 From: Tobias Roth To: Kevin Oberman Message-ID: <20050823063928.GA16469@droopy.unibe.ch> References: <20050822222745.BF2A75D07@ptavv.es.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050822222745.BF2A75D07@ptavv.es.net> User-Agent: Mutt/1.4i X-message-flag: Warning! Using Outlook is insecure and promotes virus distribution. Please use a different email client. X-Virus-checked: by University of Berne Cc: current@freebsd.org Subject: Re: Unable to do mdconfig(8) early in boot X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 06:39:33 -0000 On Mon, Aug 22, 2005 at 03:27:45PM -0700, Kevin Oberman wrote: > I just updated my current system which had last been updated about > Aug. 7. Suddenly profile.sh fails to run because mdconfig is returning > an error: > mdconfig: ioctl(/dev/mdctl): Read-only file system > > It looks like it is not writable until after root is done. Why? I haven't had time to try profile.sh on current, so I did't run into this problem yet. Can you pinpoint on which of the mdconfig or mdmfs statements this is happening? > Right now, profile.sh requires fsck and must be run before root. It > seems that starting it after root and before mountcritlocal works, but > there may be some subtleties that I am missing that makes this a bad > idea. I think moving it after root would work. The only reason it is before root is that it historically was put as early as possible in the rcorder chain, so that it gets maximum control over the boot process. Only later it was moved after fsck to avoid problems that showed up after an unclean shutdown. The reason it is between fsck and root should be interpreted as "after fsck, but as early as possible", and not "after fsck, and before root". > Is the inability to create an md device before root has run a problem or > something expected? I'd like to investigate this before having profile.sh executed after root as default. After all, it is supposed to work on read-only root devices, and the behaviour you experienced may be a bug in profile.sh. As a side note, how is profile.sh running on -CURRENT? I had a lot of problems with 6.1BETA: dhclient issues, problems with hangs due to unexpected nic status changes. But then, I not only updated to 6 at that time, I am also using a different laptop with a different nic (before: fxp, now: bge). I'll try updating to BETA2 to see if this improves anything. thanks, t.