From owner-freebsd-current@FreeBSD.ORG Mon Oct 4 16:00:10 2004 Return-Path: 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 85F0B16A4D4 for ; Mon, 4 Oct 2004 16:00:10 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04E6A43D4C for ; Mon, 4 Oct 2004 16:00:06 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id i94G4rn0008984; Mon, 4 Oct 2004 09:04:53 -0700 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id i94G4rja008983; Mon, 4 Oct 2004 09:04:53 -0700 Date: Mon, 4 Oct 2004 09:04:53 -0700 From: Brooks Davis To: Ion-Mihai Tetcu Message-ID: <20041004160453.GA7705@odin.ac.hmc.edu> References: <20041004173545.3af254c6@it.buh.tecnik93.com> <20041004153257.GA30883@odin.ac.hmc.edu> <20041004184708.248efdd8@it.buh.tecnik93.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Qxx1br4bt0+wmkIi" Content-Disposition: inline In-Reply-To: <20041004184708.248efdd8@it.buh.tecnik93.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: freebsd-current@freebsd.org Subject: Re: /dev/md0 keeps mounting on /var X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Mon, 04 Oct 2004 16:00:10 -0000 --Qxx1br4bt0+wmkIi Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 04, 2004 at 06:47:08PM +0300, Ion-Mihai Tetcu wrote: > On Mon, 4 Oct 2004 08:32:57 -0700 > Brooks Davis wrote: >=20 > > On Mon, Oct 04, 2004 at 05:35:45PM +0300, Ion-Mihai Tetcu wrote: > > > For some time I keep getting /dev/md0 mounting on /var as the last > > > mount when going to multi-user. The obvious result is that all > > > services that use /var fail to start/function properly. Since I > > > don=B4t use it I suppose I=B4ve done something wrong with mergemaster. > > >=20 > > > The only workaround I=B4ve found is to rename /boor/kernel/g_md.ko. > > >=20 > > > And since I just can=B4t fix this since ~ beta4 could someone point me > > > where to look ? > >=20 > > This is proably happening because your /var is failing the writability > > test in /etc/rc.d/var. One situation I can of where this could happen > > and you would otherwise have a valid /var would be if you have a > > read-only NFS root and an NFS /var. >=20 > No, it is not the case. Does the order in fstab meter ?=20 > /dev/ad0s3d is already mountrd on /var when md0 bumps in. > >From memory it looks like this: >=20 > % mount > /dev/ad0s3a on / (ufs, local) > devfs on /dev (devfs, local) > /dev/ad0s3f on /tmp (ufs, local, soft-updates) > /dev/ad0s3d on /var (ufs, local, soft-updates) > /dev/ad0s3e on /usr (ufs, local, soft-updates) > /dev/ad0s2d on /home (ufs, local, soft-updates) > /dev/ad0s4 on /vol/it/xp (msdosfs, local, read-only) > /dev/ad1s3d on /vol/it/cur/h (ufs, local, soft-updates) > /dev/ad1s2d on /vol/it/n (ufs, local, soft-updates) > devfs on /var/named/dev (devfs, local) > /dev/md0 on /var (ufs, local, soft-updates) Weird. Order shouldn't matter. The code in the var script is really simple. It creates the md file system if you have varmfs=3D"YES" or if "/bin/mkdir -p /var/.diskless" fails. Hmm, I just noticed that ru never MFC'd the fix to add -p to that command. Do you have a /var/.diskless on /dev/ad0s3d? If so, that's probably the problem. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --Qxx1br4bt0+wmkIi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBYXSkXY6L6fI4GtQRAkKZAKDZOoKBpLH1SIlIk27e+OdEKFcHgACbBGoG 2IUpng1wVWYxCTau29sdVNY= =rXIQ -----END PGP SIGNATURE----- --Qxx1br4bt0+wmkIi--