Re: Can't save Vinum config: No such file or directory

From: Stijn Hoop <stijn_at_win.tue.nl>
Date: Sat, 14 Feb 2004 09:56:14 +0100
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 install it
> >>> remotely (which is a bit icky). Maybe I can do a remote install tomorrow, 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 the
> > daemon not being able to save the configuration to disk, which as far as my
> > reading of the source got me. 
> 
> There are a number of things you can do:
> 
> 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 frags, 98358 blocks, 0.0% fragmentation)
Feb 13 13:32:23 pcwin002 kernel: Can't stat /dev/vinum/stor: No such file or 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?
> 
> 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_at_pcwin002] <~> sudo vinum start
Can't save Vinum config: No such file or directory
[stijn_at_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_at_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_at_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_at_pcwin002] <~> sudo vinum stop
vinum unloaded
Script done on Sat Feb 14 09:33:37 2004
------------>8-------------------->8--------------->8----------

Received on Fri Feb 13 2004 - 23:55:33 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:43 UTC