Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Nov 2003 20:40:59 +0100
From:      =?ISO-8859-1?Q?Ren=E9_Scholz?= <rene@fantastici.de>
To:        freebsd-current@freebsd.org
Subject:   Re: Vinum doesn't work anymore
Message-ID:  <4E4A9449-1611-11D8-944B-000A95688814@fantastici.de>
In-Reply-To: <20031113153347.GA548@nacom.phy.uic.edu>
References:  <20031113153347.GA548@nacom.phy.uic.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
Hello,

On 13.11.2003 at 16:33 cosmin wrote:

> Hello, I'm having major problems with the latest kernel sources and =20=

> vinum.  I don't really know where to begin the debug.  For now, I'll =20=

> have to run older sources just to have vinum working.
>
> Vinum isn't able to detect my volume, even though it worked fine =20
> before the install and reboot. Here's some info.
>
> Script started on Thu Nov 13 02:14:17 2003
> # kldunload vinum.ko
> # ls -la /boot/kernel/vinum.ko
> -r-xr-xr-x  1 root  wheel  97304 Nov 13 02:10 /boot/kernel/vinum.ko
> # ls -la /sbin/vinum
> -r-xr-xr-x  1 root  wheel  752300 Nov 13 01:58 /sbin/vinum
> # kldload /boot/kernel/vinum.ko
> # /sbin/vinum
> vinum -> start
> ** no drives found: No such file or directory
> vinum -> dumpconfig
> Drive a:	Device /dev/ad1s1e
> 		Created on  at Sat Jul 19 03:10:25 2003
> 		Config last updated Thu Nov 13 01:45:34 2003
> 		Size:     200047002624 bytes (190779 MB)
> volume raid5 state up
> plex name raid5.p0 state up org raid5 1020s vol raid5
> sd name raid5.p0.s0 drive a len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 0s
> sd name raid5.p0.s1 drive b len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 1020s
> sd name raid5.p0.s2 drive c len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 2040s
> sd name raid5.p0.s3 drive d len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 3060s
> sd name raid5.p0.s4 drive e len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 4080s
> sd name raid5.p0.s5 drive f len 390715080s driveoffset 265s state up =20=

> plex raid5.p0 plexoffset 5100s
>
> [... etc for all the drives ...]
>
> vinum -> read /dev/ad1
> ** no drives found: No such file or directory
> Can't save Vinum config: No child processes
> vinum -> quit
> # exit
>
> Script done on Thu Nov 13 02:15:17 2003
>
>
> Also, when I tried fixing this problem by trying to compile vinum into =
=20
> the kernel (maybe would help, probably wouldn't), I got a compile =20
> error.
>
> The kernel is just the GENERIC kernel with device vinum added at the =20=

> end of it.
> Here is the error:
>
>
> cc -c -O -pipe -mcpu=3Dpentiumpro -Wall -Wredundant-decls =20
> -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes =20
> -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=3Dc99 =
-g =20
> -nostdinc -I-  -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica =20=

> -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/dev/ath =20
> -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm =20=

> -D_KERNEL -include opt_global.h -fno-common -finline-limit=3D15000 =20
> -fno-strict-aliasing  -mno-align-long-strings =20
> -mpreferred-stack-boundary=3D2 -ffreestanding -Werror  =20
> /usr/src/sys/dev/vinum/vinum.c
> /usr/src/sys/dev/vinum/vinum.c: In function `vinumattach':
> /usr/src/sys/dev/vinum/vinum.c:136: error: structure has no member =20
> named `p_intr_nesting_level'
> /usr/src/sys/dev/vinum/vinum.c:143: error: structure has no member =20
> named `p_intr_nesting_level'
> /usr/src/sys/dev/vinum/vinum.c:150: error: structure has no member =20
> named `p_intr_nesting_level'
> /usr/src/sys/dev/vinum/vinum.c:162: error: structure has no member =20
> named `p_intr_nesting_level'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/GENERIC_WITH_VINUM.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>
> The sources are freshly cvsuped from Nov 12, 2003.
>
I can confirm this, I've run truss on 'vinum ls' and get the following =20=

wich let me guess it might have todo with the recent statfs changes.

modfind(0x80b8e74)                               =3D 178 (0xb2)
stat("/var/log/vinum_history",0xbfbfea30)        =3D 0 (0x0)
open("/var/log/vinum_history",0x20a,0666)        =3D 3 (0x3)
lseek(3,0x0,2)                                   =3D 2622 (0xa3e)
gettimeofday(0xbfbfe998,0x0)                     =3D 0 (0x0)
access("/etc/localtime",4)                       =3D 0 (0x0)
open("/etc/localtime",0x0,00)                    =3D 4 (0x4)
fstat(4,0xbfbfe8fc)                              =3D 0 (0x0)
read(0x4,0xbfbfc5dc,0x1f08)                      =3D 837 (0x345)
close(4)                                         =3D 0 (0x0)
fstat(3,0xbfbfe6bc)                              =3D 0 (0x0)
readlink("/etc/malloc.conf",0xbfbfe6a0,63)       ERR#2 'No such file or =20=

directory'
issetugid()                                      =3D 0 (0x0)
issetugid()                                      =3D 0 (0x0)
getuid()                                         =3D 0 (0x0)
mmap(0x0,4096,0x3,0x1002,-1,0x0)                 =3D 671944704 =20
(0x280d1000)
break(0x80e7000)                                 =3D 0 (0x0)
break(0x80eb000)                                 =3D 0 (0x0)
write(3,0x80e7000,50)                            =3D 50 (0x32)
__sysctl(0xbfbfe9c4,0x2,0xbfbfe9cc,0xbfbfe9c0,0x80b6da8,0x14) =3D 0 =
(0x0)
__sysctl(0xbfbfe9cc,0x3,0x0,0x0,0x0,0x0)         =3D 0 (0x0)
open("/dev/vinum/control",0x2,00)                =3D 4 (0x4)
ioctl(4,0x40404641,0x80e4620)                    =3D 0 (0x0)
fork()                                           =3D 1208 (0x4b8)
SIGNAL 20
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^=20=

^^^^^
break(0x80ec000)                                 =3D 0 (0x0)

Ren=E9
--=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E4A9449-1611-11D8-944B-000A95688814>