From owner-freebsd-rc@FreeBSD.ORG Mon Jul 27 15:17:26 2009 Return-Path: Delivered-To: freebsd-rc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E9C2106564A for ; Mon, 27 Jul 2009 15:17:26 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (chello087206049004.chello.pl [87.206.49.4]) by mx1.freebsd.org (Postfix) with ESMTP id A890B8FC18 for ; Mon, 27 Jul 2009 15:17:25 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 6D5CD45D8D; Mon, 27 Jul 2009 16:49:18 +0200 (CEST) Received: from localhost (pjd-w.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 7FC7745CAC; Mon, 27 Jul 2009 16:49:13 +0200 (CEST) Date: Mon, 27 Jul 2009 16:49:38 +0200 From: Pawel Jakub Dawidek To: Thomas Backman Message-ID: <20090727144938.GK3144@garage.freebsd.pl> References: <200907261200.n6QC07fd014511@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="X0cz4bGbQuRbxrVl" Content-Disposition: inline In-Reply-To: <200907261200.n6QC07fd014511@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 8.0-CURRENT i386 X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=4.5 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-rc@FreeBSD.org Subject: Re: conf/120194: [patch] UFS volumes on ZVOLs cannot be fsck'd at boot X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Jul 2009 15:17:26 -0000 --X0cz4bGbQuRbxrVl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jul 26, 2009 at 12:00:07PM +0000, Thomas Backman wrote: > The following reply was made to PR conf/120194; it has been noted by GNAT= S. >=20 > From: Thomas Backman > To: bug-followup@FreeBSD.org, > freebsd-rc@freebsd.org > Cc: =20 > Subject: Re: conf/120194: [patch] UFS volumes on ZVOLs cannot be fsck'd a= t boot > Date: Sun, 26 Jul 2009 13:49:42 +0200 >=20 > This bug is still relevant and unfixed as of 8.0-BETA2, although I ran = =20 > into it by being unable to mount ZVOLs using fstab, since /dev/zvol is = =20 > populated after mountcritlocal runs. > My fix was to move ZFS to before mountcritlocal, since the root is =20 > already mounted R/W, but I suppose this fix is even better since it =20 > solves the fsck problem as well, which I haven't ran in to yet. > It would be nice to see this easy fix implemented! The problem with proposed patch is that it moves hostid script to before root is mounted read-write and hostid can create /etc/hostid file. Try this patch instead: http://people.freebsd.org/~pjd/patches/zvol_fsck.patch It splits hostid generation from storing it. Now ZVOLs can be initialized before fsck runs. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --X0cz4bGbQuRbxrVl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) iD8DBQFKbb6CForvXbEpPzQRAsOdAKC2qbhRZNpaEgUlQLoRVhFDHFLqogCfc3sp QXkoKnohZTd8xvyRrRs3FNM= =tpP9 -----END PGP SIGNATURE----- --X0cz4bGbQuRbxrVl--