From owner-freebsd-current@FreeBSD.ORG Thu Nov 13 11:41:18 2003 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 781D316A4CE for ; Thu, 13 Nov 2003 11:41:18 -0800 (PST) Received: from mail.kids-und-co.de (mail.kids-und-co.de [80.190.100.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id AC10E43F85 for ; Thu, 13 Nov 2003 11:41:16 -0800 (PST) (envelope-from rene@fantastici.de) Received: from localhost (mail.int.kids-und-co.de [10.0.1.4]) by mail.kids-und-co.de (Postfix) with ESMTP id C3C2D39478 for ; Thu, 13 Nov 2003 20:41:14 +0100 (CET) Received: from mail.fantastici.de (pD9E83F3F.dip.t-dialin.net [217.232.63.63]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))OK)) by mail.kids-und-co.de (Postfix) with ESMTP id BE4DE3943F for ; Thu, 13 Nov 2003 20:41:11 +0100 (CET) Received: from [192.168.17.48] (omega.fantastici.de [192.168.17.48]) (authenticated bits=0) by mail.fantastici.de (8.12.9p2/8.12.9) with ESMTP id hADJf4ON022881 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO) for ; Thu, 13 Nov 2003 20:41:07 +0100 (CET) (envelope-from rene@fantastici.de) Mime-Version: 1.0 (Apple Message framework v606) In-Reply-To: <20031113153347.GA548@nacom.phy.uic.edu> References: <20031113153347.GA548@nacom.phy.uic.edu> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <4E4A9449-1611-11D8-944B-000A95688814@fantastici.de> Content-Transfer-Encoding: quoted-printable From: =?ISO-8859-1?Q?Ren=E9_Scholz?= Date: Thu, 13 Nov 2003 20:40:59 +0100 To: freebsd-current@freebsd.org X-Mailer: Apple Mail (2.606) X-Virus-Scanned: by amavisd-new at kids-und-co.de Subject: Re: Vinum doesn't work anymore 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: Thu, 13 Nov 2003 19:41:18 -0000 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