From owner-freebsd-current@FreeBSD.ORG Sat Feb 14 00:55:33 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 2EBD716A4CE; Sat, 14 Feb 2004 00:55:33 -0800 (PST) Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9510143D1D; Sat, 14 Feb 2004 00:55:32 -0800 (PST) (envelope-from stijn@pcwin002.win.tue.nl) Received: from pcwin002.win.tue.nl (orb_rules@localhost [127.0.0.1]) by pcwin002.win.tue.nl (8.12.10/8.12.10) with ESMTP id i1E8uE8w000873; Sat, 14 Feb 2004 09:56:14 +0100 (CET) (envelope-from stijn@pcwin002.win.tue.nl) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.12.10/8.12.10/Submit) id i1E8uEFL000872; Sat, 14 Feb 2004 09:56:14 +0100 (CET) (envelope-from stijn) Date: Sat, 14 Feb 2004 09:56:14 +0100 From: Stijn Hoop To: "Greg 'groggy' Lehey" Message-ID: <20040214085614.GA652@pcwin002.win.tue.nl> References: <20040213130520.GB714@pcwin002.win.tue.nl> <20040213175748.B662@korben.in.tern> <20040213173456.GH714@pcwin002.win.tue.nl> <20040213201416.E662@korben.in.tern> <20040213205311.GI714@pcwin002.win.tue.nl> <20040214042346.GZ61632@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/04w6evG8XlLl3ft" Content-Disposition: inline In-Reply-To: <20040214042346.GZ61632@wantadilla.lemis.com> User-Agent: Mutt/1.4.1i X-Bright-Idea: Let's abolish HTML mail! cc: freebsd-current@FreeBSD.org Subject: Re: Can't save Vinum config: No such file or directory 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: Sat, 14 Feb 2004 08:55:33 -0000 --/04w6evG8XlLl3ft Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Feb 14, 2004 at 02:53:46PM +1030, Greg 'groggy' Lehey wrote: > On Friday, 13 February 2004 at 21:53:11 +0100, Stijn Hoop wrote: > > On Fri, Feb 13, 2004 at 08:15:45PM +0100, Lukas Ertl wrote: > >> On Fri, 13 Feb 2004, Stijn Hoop wrote: > >> > >>> On Fri, Feb 13, 2004 at 05:58:32PM +0100, Lukas Ertl wrote: > >>>> On Fri, 13 Feb 2004, Stijn Hoop wrote: > >>>>> after I reverted the syscons change I could build a working kernel,= but > >>>>> something has changed in vinum, so that the volumes are not created= in > >>>>> /dev/vinum anymore. > >>>> > >>>> I don't think that a change in vinum caused that (from when was your= last > >>>> kernel?), but I'm gonna try to reproduce that bug. > >>> > >>> Last kernel + world were from Feb 6. Unfortunately work got in my way= and > >>> while my work box has now completed a built from that time, it hasn't= been > >>> installed yet, and I'll be at home for the weekend so I'd have to ins= tall it > >>> remotely (which is a bit icky). Maybe I can do a remote install tomor= row, but > >>> I wouldn't count on it, so it would be monday at the earliest that I = could > >>> test other kernels. > >> > >> Hm, I've now upgraded my testbox to the latest kernel, and I absolutely > >> can't reproduce that bug. saveconfig, dumpconfig, starting, stopping, > >> everything works fine. :-/ > >> > >> You're sure the error is not located somewhere else? > > > > If you could clue me in where to look? The error I see is produced by t= he > > daemon not being able to save the configuration to disk, which as far a= s my > > reading of the source got me.=20 >=20 > There are a number of things you can do: >=20 > 1. Give the output of 'vinum list' and 'vinum list -v'. From your ls > output, it looks as if it didn't create any objects. Is that > correct? If not, does 'saveconfig' work? No objects where found beyond the two drives. See below for the full log. > 2. Check the system log files. It's possible that there's an error > message there. These are the only relevant lines I could find in my /var/log/all.log: Feb 13 13:06:13 pcwin002 kernel: /dev/vinum/stor: clean, 787640 free (776 f= rags, 98358 blocks, 0.0% fragmentation) Feb 13 13:32:23 pcwin002 kernel: Can't stat /dev/vinum/stor: No such file o= r directory The first is from the old kernel and in-between I booted the new kernel. > > Maybe I can 'dd' the configuration from the disk to send to you? >=20 > 3. You don't need to do that. Well, probably not. Try 'vinum > dumpconfig', which should give you better information. See below. Would I lose my data if I recreated the configuration file? (just an idea). --Stijn ------------>8-------------------->8--------------->8---------- Script started on Sat Feb 14 09:33:14 2004 [stijn@pcwin002] <~> sudo vinum start Can't save Vinum config: No such file or directory [stijn@pcwin002] <~> sudo vinum list 2 drives: D stor1 State: up /dev/ad6s1e A: 57277/57277 MB (100%) D stor0 State: up /dev/ad4s1e A: 57277/57277 MB (100%) 0 volumes: 0 plexes: 0 subdisks: [stijn@pcwin002] <~> sudo vinum list -v 2 drives: Drive stor1: Device /dev/ad6s1e Created on pcwin002.win.tue.nl at Thu Sep 11 09:19:17 2003 Config last updated Sat Feb 14 09:33:19 2004 Size: 60060123648 bytes (57277 MB) Used: 135680 bytes (0 MB) Available: 60059987968 bytes (57277 MB) State: up Last error: none Active requests: 0 Maximum active: 0 Drive stor0: Device /dev/ad4s1e Created on pcwin002.win.tue.nl at Thu Sep 11 09:19:17 2003 Config last updated Sat Feb 14 09:33:19 2004 Size: 60060123648 bytes (57277 MB) Used: 135680 bytes (0 MB) Available: 60059987968 bytes (57277 MB) State: up Last error: none Active requests: 0 Maximum active: 0 0 volumes: 0 plexes: 0 subdisks: [stijn@pcwin002] <~> sudo vinum dumpconfig Drive stor0: Device /dev/ad4s1e Created on pcwin002.win.tue.nl at Thu Sep 11 09:19:17 2003 Config last updated Sat Feb 14 09:33:19 2004 Size: 60060123648 bytes (57277 MB) Drive /dev/ad4s1e: 55 GB (60060123648 bytes) Drive stor1: Device /dev/ad6s1e Created on pcwin002.win.tue.nl at Thu Sep 11 09:19:17 2003 Config last updated Sat Feb 14 09:33:19 2004 Size: 60060123648 bytes (57277 MB) Drive /dev/ad6s1e: 55 GB (60060123648 bytes) [stijn@pcwin002] <~> sudo vinum stop vinum unloaded Script done on Sat Feb 14 09:33:37 2004 ------------>8-------------------->8--------------->8---------- --/04w6evG8XlLl3ft Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (FreeBSD) iD8DBQFALeKtY3r/tLQmfWcRAj6sAKCVztLILprYoI7gwEsbRwmm+BhOGwCgheJ4 +TGfM3RSuq2/lzvfFV+uM/0= =k/QZ -----END PGP SIGNATURE----- --/04w6evG8XlLl3ft--