From owner-freebsd-geom@FreeBSD.ORG Sun Apr 3 13:07:39 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64DAF16A4CE for ; Sun, 3 Apr 2005 13:07:39 +0000 (GMT) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B96643D31 for ; Sun, 3 Apr 2005 13:07:38 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id 647F8347116; Sun, 3 Apr 2005 15:06:02 +0200 (CEST) Date: Sun, 3 Apr 2005 15:06:02 +0200 From: Pawel Malachowski To: freebsd-geom@freebsd.org Message-ID: <20050403130602.GA86317@shellma.zin.lublin.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4.2i Subject: Processess running on gconcat lock in kserel or ufs state X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 13:07:39 -0000 Hello, Processess runing on gconcat drive frequently lock on my machine in kserele/ufs state. Could you try giving some hints/patches? Details below. Machine: FreeBSD x.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #0: Mon Mar 28 21:35:57 CEST 2005 root@x.pl:/usr/obj/usr/src/sys/x i386 (previously 5.3-RELEASE, same problem). gconcat drive build on top of 6 GBDE drives. GBDE drives are on physical ATA drives (usually adXs1e slice), reported by S.M.A.R.T. as OK. This gconcat volume receives many concurrent read/write sessions (about 30-50 all the time, constant network traffic, about 10-15Mbit/s od reading and 2-4Mbit/s of writing activity). /dev/concat/c1 624G 143G 474G 23% 1445 84503129 0% /x /dev/concat/c1 on /x (ufs, local, soft-updates) tunefs -m was used on /x filesystem to reduce minfree to 1%. After day or two processes trying to read /x are locking. First (most active process) locks in kserel state, every next process (for example shell trying `cd /x') locks in ufs state. There are ongoing writing processes and it seems these are not locked (upload is proceeding). They will lock after upload is finished and read operation is performed. gstat -I 5s output (look at concat/c1 % busy): dT: 5.019 flag_I 5000000us sizeof 240 i -1 L(q) ops/s r/s kBps ms/r w/s kBps ms/w %busy Name 0 0 0 0 0.0 0 0 0.0 0.0| fd0 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1e.bde 0 0 0 0 0.0 0 0 0.0 0.0| ad0 0 11 11 79 16.3 0 0 0.0 1.7| ad1 0 7 7 53 12.9 0 0 0.0 1.0| ad4 0 14 14 106 27.5 0 0 0.0 3.2| ad5 0 30 20 108 20.3 11 79 17.1 6.4| ad6 0 4 4 26 12.4 0 0 0.0 0.5| ad7 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1 0 1 1 77 29.5 0 0 0.0 1.8| ad1s1f.bde 0 0 0 51 26.3 0 0 0.0 1.0| ad4s1d.bde 0 11 11 79 16.6 0 0 0.0 1.7| ad1s1 0 1 1 102 41.0 0 0 0.0 3.3| ad5s1d.bde 0 1 1 102 38.2 1 77 58.2 6.5| ad6s1d.bde 0 7 7 53 13.3 0 0 0.0 1.0| ad4s1 0 0 0 26 25.7 0 0 0.0 0.5| ad7s1d.bde 0 14 14 106 27.8 0 0 0.0 3.2| ad5s1 0 30 20 108 20.7 11 79 17.2 6.4| ad6s1 6 3 3 357 34.9 1 77 58.5 101.5| concat/c1 0 4 4 26 12.8 0 0 0.0 0.5| ad7s1 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1a 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1b 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1c 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1d 0 0 0 0 0.0 0 0 0.0 0.0| ad0s1e 0 0 0 0 0.0 0 0 0.0 0.0| ad1s1c 0 0 0 0 0.0 0 0 0.0 0.0| ad1s1d 0 0 0 0 0.0 0 0 0.0 0.0| ad1s1e 0 11 11 79 16.8 0 0 0.0 1.8| ad1s1f 0 0 0 0 0.0 0 0 0.0 0.0| ad4s1c 0 7 7 53 13.4 0 0 0.0 1.0| ad4s1d 0 0 0 0 0.0 0 0 0.0 0.0| ad5s1c 0 14 14 106 28.0 0 0 0.0 3.2| ad5s1d 0 0 0 0 0.0 0 0 0.0 0.0| ad6s1c 0 30 20 108 20.8 11 79 17.4 6.5| ad6s1d 0 0 0 0 0.0 0 0 0.0 0.0| ad7s1c 0 4 4 26 12.9 0 0 0.0 0.5| ad7s1d Physical access to this machine is very problematic. Sorry, I'm going to reboot this host, so no more details for now. ;) Machine will reboot, but /x can't be unmounted (probably tries and gives up), so both / and /x are dirty and are fscked during next boot. -- Paweł Małachowski From owner-freebsd-geom@FreeBSD.ORG Sun Apr 3 14:48:33 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3E3216A4CE for ; Sun, 3 Apr 2005 14:48:33 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E45B43D3F for ; Sun, 3 Apr 2005 14:48:31 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id B3B36ACAEE; Sun, 3 Apr 2005 16:48:13 +0200 (CEST) Date: Sun, 3 Apr 2005 16:48:13 +0200 From: Pawel Jakub Dawidek To: Pawel Malachowski Message-ID: <20050403144813.GB837@darkness.comp.waw.pl> References: <20050403130602.GA86317@shellma.zin.lublin.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qicme7IxPpkH/pPU" Content-Disposition: inline In-Reply-To: <20050403130602.GA86317@shellma.zin.lublin.pl> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: Processess running on gconcat lock in kserel or ufs state X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 14:48:33 -0000 --qicme7IxPpkH/pPU Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 03, 2005 at 03:06:02PM +0200, Pawel Malachowski wrote: +> Hello, +>=20 +> Processess runing on gconcat drive frequently lock on my machine +> in kserele/ufs state. Could you try giving some hints/patches? I think I found the problem. Could you try this patch: http://people.freebsd.org/~pjd/patches/g_concat.c.patch There was missing g_io_deliver() in case of insufficient memory. I also add a fix for very rare case - when we need two I/O operations and allocation of the second bio will fail, we leaked memory. Thanks for the report. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --qicme7IxPpkH/pPU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCUAItForvXbEpPzQRAgRuAKDo5DZgBIXKs9twkFnHzR3DXewQDwCg71my GNlg7k4AIEv73hw42Cdd50I= =2Rlt -----END PGP SIGNATURE----- --qicme7IxPpkH/pPU-- From owner-freebsd-geom@FreeBSD.ORG Sun Apr 3 16:02:27 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7CDB16A4CE for ; Sun, 3 Apr 2005 16:02:27 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A0B643D31 for ; Sun, 3 Apr 2005 16:02:24 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 3FAC2ACAFE; Sun, 3 Apr 2005 18:02:06 +0200 (CEST) Date: Sun, 3 Apr 2005 18:02:06 +0200 From: Pawel Jakub Dawidek To: Jeremy Claeson Message-ID: <20050403160206.GC837@darkness.comp.waw.pl> References: <16a400ac05032719041880e998@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BqNvIJgrK1/MQy2W" Content-Disposition: inline In-Reply-To: <16a400ac05032719041880e998@mail.gmail.com> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: Newbie help on geom mirror setup X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 16:02:27 -0000 --BqNvIJgrK1/MQy2W Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 27, 2005 at 10:04:15PM -0500, Jeremy Claeson wrote: +> Here's where I keep failing: +> the step where I use bsdlabel. If I do "bsdlabel -w -B +> /dev/mirror/gm0s1", I get an error "Geom not found". What should I do +> in "bsdlabel -e /dev/mirror/gm0s1"? My other disk looks like this: +> # /dev/ad4s1: +> 8 partitions: +> # size offset fstype [fsize bsize bps/cpg] +> c: 488392002 0 unused 0 0 # "raw" part, +> don't edit +> d: 488392002 0 4.2BSD 2048 16384 28552 Which FreeBSD version are you using? When you get "Geom not found" error geom_mirror.ko module is loaded? Does /dev/mirror/gm0s1 file exist? You should not use offset 0 for 'd' partition - user 16 instead and decrease its size. Also remember that gm0s1 is one sector smaller than its smallest component. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --BqNvIJgrK1/MQy2W Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCUBN+ForvXbEpPzQRAmIpAKCRnipQwJiLxMn9RuqUL4wrmb1HDwCgrTSD zPPlWL9ravZwMN/7bchO7jM= =KOjo -----END PGP SIGNATURE----- --BqNvIJgrK1/MQy2W-- From owner-freebsd-geom@FreeBSD.ORG Sun Apr 3 18:43:53 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2DF9B16A4CE; Sun, 3 Apr 2005 18:43:53 +0000 (GMT) Received: from shellma.zin.lublin.pl (shellma.zin.lublin.pl [212.182.126.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D792743D41; Sun, 3 Apr 2005 18:43:52 +0000 (GMT) (envelope-from pawmal-posting@freebsd.lublin.pl) Received: by shellma.zin.lublin.pl (Postfix, from userid 1018) id D5DF8347116; Sun, 3 Apr 2005 20:42:13 +0200 (CEST) Date: Sun, 3 Apr 2005 20:42:13 +0200 From: Pawel Malachowski To: Pawel Jakub Dawidek Message-ID: <20050403184213.GA95013@shellma.zin.lublin.pl> References: <20050403130602.GA86317@shellma.zin.lublin.pl> <20050403144813.GB837@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050403144813.GB837@darkness.comp.waw.pl> User-Agent: Mutt/1.4.2i cc: freebsd-geom@FreeBSD.org Subject: Re: Processess running on gconcat lock in kserel or ufs state X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 03 Apr 2005 18:43:53 -0000 On Sun, Apr 03, 2005 at 04:48:13PM +0200, Pawel Jakub Dawidek wrote: > I think I found the problem. Could you try this patch: > http://people.freebsd.org/~pjd/patches/g_concat.c.patch I will give it a try ASAP. > There was missing g_io_deliver() in case of insufficient memory. > I also add a fix for very rare case - when we need two I/O operations > and allocation of the second bio will fail, we leaked memory. -- Paweł Małachowski From owner-freebsd-geom@FreeBSD.ORG Mon Apr 4 02:18:36 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60A7516A4CF for ; Mon, 4 Apr 2005 02:18:36 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B1B043D2D for ; Mon, 4 Apr 2005 02:18:36 +0000 (GMT) (envelope-from christian.caron@videotron.ca) Received: from [24.200.155.207] by VL-MO-MR007.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IEE00FJXH2Z0A@VL-MO-MR007.ip.videotron.ca> for freebsd-geom@freebsd.org; Sun, 03 Apr 2005 22:18:35 -0400 (EDT) Date: Sun, 03 Apr 2005 22:18:40 -0400 From: Christian Caron To: freebsd-geom@freebsd.org Message-id: <4250A400.50200@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: fr, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) Subject: mirroring two data disks (no system files on them) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 02:18:36 -0000 Hi, my setup is: - one disk ad0 (15GB) with FreeBSD 5.3 installed - two identical disks ad2 and ad3 (15GB) with no data on it I just want to have a mirrored data disk (consisting of two identical disks). I found http://people.freebsd.org/~rse/mirror/, but it applies for mirroring a system disk. I went through: gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1 gmirror load gmirror configure -a gm0s1 gmirror insert gm0s1 /dev/ad2s1 add 'geom_mirror_load="YES"' in /boot/loader.conf It loads ok and if I type: "gmirror list" I get the "Providers" and "Consumers" list which all looks ok. But how do I access the mirror? Where can I put my data? I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading... Any hints? Christian From owner-freebsd-geom@FreeBSD.ORG Mon Apr 4 06:40:02 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 53D2116A4CE for ; Mon, 4 Apr 2005 06:40:02 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A95643D66 for ; Mon, 4 Apr 2005 06:39:56 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 57975ACAFE; Mon, 4 Apr 2005 08:38:44 +0200 (CEST) Date: Mon, 4 Apr 2005 08:38:44 +0200 From: Pawel Jakub Dawidek To: Christian Caron Message-ID: <20050404063844.GF837@darkness.comp.waw.pl> References: <4250A400.50200@videotron.ca> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dZMKKfncsnDOeEps" Content-Disposition: inline In-Reply-To: <4250A400.50200@videotron.ca> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@freebsd.org Subject: Re: mirroring two data disks (no system files on them) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 06:40:02 -0000 --dZMKKfncsnDOeEps Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Apr 03, 2005 at 10:18:40PM -0400, Christian Caron wrote: +> Hi, +>=20 +> my setup is: +>=20 +> - one disk ad0 (15GB) with FreeBSD 5.3 installed +> - two identical disks ad2 and ad3 (15GB) with no data on it +>=20 +> I just want to have a mirrored data disk (consisting of two identical=20 +> disks). +>=20 +> I found http://people.freebsd.org/~rse/mirror/, but it applies for=20 +> mirroring a system disk. +>=20 +> I went through: +>=20 +> gmirror label -v -n -b round-robin gm0s1 /dev/ad3s1 +> gmirror load +> gmirror configure -a gm0s1 +> gmirror insert gm0s1 /dev/ad2s1 +> add 'geom_mirror_load=3D"YES"' in /boot/loader.conf +>=20 +> It loads ok and if I type: +>=20 +> "gmirror list" +>=20 +> I get the "Providers" and "Consumers" list which all looks ok. +>=20 +> But how do I access the mirror? Where can I put my data? +>=20 +> I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading= ... +>=20 +> Any hints? Just to be sure: did you create file system on it? --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --dZMKKfncsnDOeEps Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCUOD0ForvXbEpPzQRAofbAJ0aNkHkE2/dj0Rg0iJE31SKYJ2xcgCcCTo3 pr2bnfsJeAjsTqqhYw64Crg= =a94H -----END PGP SIGNATURE----- --dZMKKfncsnDOeEps-- From owner-freebsd-geom@FreeBSD.ORG Mon Apr 4 19:50:22 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 23A8516A4CE for ; Mon, 4 Apr 2005 19:50:22 +0000 (GMT) Received: from freebsd.czest.pl (silver.iplus.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id E410A43D2F for ; Mon, 4 Apr 2005 19:50:20 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id j34JwLtf070110 for ; Mon, 4 Apr 2005 19:58:21 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.12.10/8.12.9/Submit) id j34JwKqp070109 for freebsd-geom@FreeBSD.org; Mon, 4 Apr 2005 19:58:21 GMT (envelope-from dunstan) Date: Mon, 4 Apr 2005 19:58:20 +0000 From: "Wojciech A. Koszek" To: freebsd-geom@FreeBSD.org Message-ID: <20050404195820.GA70074@freebsd.czest.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: Panic while loading GEOM BSD class (KASSERTions) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Apr 2005 19:50:22 -0000 Hello GEOM hackers, 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Mon Mar 14 21:35:40 CET 2005 FreeBSD dunstan.freebsd.czest.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #5: Mon Apr 4 16:54:55 CEST 2005 root@dunstan.freebsd.czest.pl:/usr/obj/usr/src/sys/HOME8 i386 My current kernel configuration: dunstan@dunstan:(~)$ grep -i geom /usr/src/sys/i386/conf/HOME8 options GEOM_GPT # GUID Partition Tables. # Debugging for use in -current options KDB options DDB options GDB options INVARIANTS options INVARIANT_SUPPORT options WITNESS options WITNESS_SKIPSPIN [..] options WITNESS_KDB options KDB_TRACE options KDB_UNATTENDED options DDB options GDB [..] options MUTEX_DEBUG options ALT_BREAK_TO_DEBUGGER options KTR options KTR_ENTRIES=9000 options KTR_COMPILE=(KTR_GEN) options KTR_MASK=KTR_ALL options KTR_VERBOSE While loading geom_bsd.ko I get repeatable panic. (kgdb) bt #0 doadump () at pcpu.h:159 #1 0xc04b8354 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:410 #2 0xc04b866d in panic (fmt=0xc0635bd4 "The GEOM class %s already loaded") at /usr/src/sys/kern/kern_shutdown.c:566 #3 0xc0489904 in g_load_class (arg=0xc2b54160, flag=0) at /usr/src/sys/geom/geom_subr.c:89 #4 0xc0487477 in one_event () at /usr/src/sys/geom/geom_event.c:185 #5 0xc0487501 in g_run_events () at /usr/src/sys/geom/geom_event.c:205 #6 0xc0488a19 in g_event_procbody () at /usr/src/sys/geom/geom_kern.c:134 #7 0xc04a40e8 in fork_exit (callout=0xc04889dc , arg=0x0, frame=0xd5424d48) at /usr/src/sys/kern/kern_fork.c:790 #8 0xc05f338c in fork_trampoline () at /usr/src/sys/i386/i386/exception.s:209 (kgdb) I didn't want to send this report throught freebsd-bugs@.. because having debugging options enabled in kernel configuration is not what users want to do,. I'm also not sure we can qualify it as a bug but.. Regards, -- * Wojciech A. Koszek && dunstan@FreeBSD.czest.pl From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 01:11:42 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 169D716A4CE; Tue, 5 Apr 2005 01:11:42 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id C13EC43D45; Tue, 5 Apr 2005 01:11:41 +0000 (GMT) (envelope-from christian.caron@videotron.ca) Received: from [24.200.155.207] by VL-MO-MR011.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IEG008928NGFR@VL-MO-MR011.ip.videotron.ca>; Mon, 04 Apr 2005 21:11:41 -0400 (EDT) Date: Mon, 04 Apr 2005 21:11:46 -0400 From: Christian Caron In-reply-to: <20050404063844.GF837@darkness.comp.waw.pl> To: Pawel Jakub Dawidek Message-id: <4251E5D2.9010300@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: fr, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) References: <4250A400.50200@videotron.ca> <20050404063844.GF837@darkness.comp.waw.pl> cc: freebsd-geom@freebsd.org Subject: Re: mirroring two data disks (no system files on them) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 01:11:42 -0000 > +> > +> I tried adding /dev/mirror/gm0s1 to /etc/fstab, but it dies when loading... > +> > +> Any hints? > > Just to be sure: did you create file system on it? > Sorry about the lack of details. I should have take more time to describe. By following the guidelines, I indeed use sysinstall (fdisk and label) to create c partitions on ad2 and ad3 (I hope I did it right). The error showing at boot time is: ==== Cannot find file system superblock /dev/mirror/gm0s1c: CAN'T CHECK FILE SYSTEM. /dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. /dev/mirror/gm0s1c: CANNOT SEEK BLK: -1 /dev/mirror/gm0s1c: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. (...) THE FOLLOWING FILE SYSTEM HAD AN UNEXPECTED INCONSISTENCY: ufs: /dev/mirror/gm0s1c (/mirror) Automatic file system check failed; help! Mar 29 18:28:15 init: /bin/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /bin/sh: ==== Then I can mount /, /tmp, /var and /usr to remove tne entry from /etc/fstab: /dev/mirror/gm0s1c /mirror ufs rw 2 2 When I comment out this entry, I can boot normally, but I can't access the geom drive. Here's the content when it boots ok: ad2: 14669MB [29805/16/63] at ata1-master UDMA33 ad3: 14669MB [29805/16/63] at ata1-slave UDMA33 GEOM_MIRROR: Device gm0s1 created (id=522018943) GEOM_MIRROR: Device gm0s1: provider ad2 detected. GEOM_MIRROR: Device gm0s1: provider ad3 detected. GEOM_MIRROR: Device gm0s1: provider ad3 activated. GEOM_MIRROR: Device gm0s1: provider mirror/gm0s1 launched. GEOM_MIRROR: Device gm0s1: rebuilding provider ad2. GEOM_MIRROR: Device gm0s1: rebuilding provider ad2 finished. GEOM_MIRROR: Device gm0s1: provider ad2 activated. > ls -l /dev/ad2* /dev/ad3* crw-r----- 1 root operator 4, 13 Mar 30 00:00 /dev/ad2 crw-r----- 1 root operator 4, 30 Mar 30 00:00 /dev/ad2a crw-r----- 1 root operator 4, 31 Mar 30 00:00 /dev/ad2c crw-r----- 1 root operator 4, 14 Mar 30 00:00 /dev/ad3 crw-r----- 1 root operator 4, 19 Mar 30 00:00 /dev/ad3a crw-r----- 1 root operator 4, 20 Mar 30 00:00 /dev/ad3c > ls -l /dev/mirror crw-r----- 1 root operator 4, 21 Mar 30 00:00 gm0s1 crw-r----- 1 root operator 4, 28 Mar 30 00:00 gm0s1a crw-r----- 1 root operator 4, 29 Mar 30 00:00 gm0s1c I think that's all the details I have... Christian From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 02:21:33 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E57B16A4CE for ; Tue, 5 Apr 2005 02:21:33 +0000 (GMT) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA8A843D1D for ; Tue, 5 Apr 2005 02:21:32 +0000 (GMT) (envelope-from christian.caron@videotron.ca) Received: from [24.200.155.207] by VL-MO-MR007.ip.videotron.ca (iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep 8 2003)) with ESMTP id <0IEG00BXMBVVP6@VL-MO-MR007.ip.videotron.ca> for freebsd-geom@freebsd.org; Mon, 04 Apr 2005 22:21:32 -0400 (EDT) Date: Mon, 04 Apr 2005 22:21:37 -0400 From: Christian Caron In-reply-to: <4250F778.3040903@zvala.cz> To: Tomas Zvala , freebsd-geom@freebsd.org Message-id: <4251F631.3050707@videotron.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT X-Accept-Language: fr, en User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) References: <4250A400.50200@videotron.ca> <4250F778.3040903@zvala.cz> Subject: Re: mirroring two data disks (no system files on them) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 02:21:33 -0000 Tomas Zvala a écrit : > did /dev/ad3s1 contain filesystem already? did you do newfs > /dev/mirror/gm0s1 ? what does it mean "dies"? what does it say? Ok... man newfs shed some light on how to prepare a new disk... newfs -U /dev/mirror/gm0s1 mkdir /mirror mount /dev/mirror/gm0s1 /mirror did the trick. It boots ok and it seems to work (gmirror list does return something, although it says "DIRTY" which doesn't sound excellent...). I'll read the manual. Thanks! Christian From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 02:38:02 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 49E6416A4CE for ; Tue, 5 Apr 2005 02:38:02 +0000 (GMT) Received: from FS.denninger.net (wsip-68-15-213-52.at.at.cox.net [68.15.213.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8DA6043D49 for ; Tue, 5 Apr 2005 02:38:01 +0000 (GMT) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net (localhost [127.0.0.1]) by FS.denninger.net (8.13.3/8.13.1) with SMTP id j352c0kN030051 for ; Mon, 4 Apr 2005 21:38:00 -0500 (CDT) (envelope-from karl@FS.denninger.net) Received: from fs.denninger.net [127.0.0.1] by Spamblock-sys; Mon Apr 4 21:38:00 2005 Received: (from karl@localhost) by FS.denninger.net (8.13.3/8.13.1/Submit) id j352c0uv030049; Mon, 4 Apr 2005 21:38:00 -0500 (CDT) (envelope-from karl) Message-ID: <20050404213800.A29631@denninger.net> Date: Mon, 4 Apr 2005 21:38:00 -0500 From: Karl Denninger To: Christian Caron , Tomas Zvala , freebsd-geom@freebsd.org References: <4250A400.50200@videotron.ca> <4250F778.3040903@zvala.cz> <4251F631.3050707@videotron.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Mailer: Mutt 0.93.2i In-Reply-To: <4251F631.3050707@videotron.ca>; from Christian Caron on Mon, Apr 04, 2005 at 10:21:37PM -0400 Organization: Karl's Sushi and Packet Smashers X-Die-Spammers: Spammers cheerfully broiled for supper and served with ketchup! Subject: Re: mirroring two data disks (no system files on them) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 02:38:02 -0000 On Mon, Apr 04, 2005 at 10:21:37PM -0400, Christian Caron wrote: > Tomas Zvala a écrit : > > did /dev/ad3s1 contain filesystem already? did you do newfs > > /dev/mirror/gm0s1 ? what does it mean "dies"? what does it say? > > Ok... man newfs shed some light on how to prepare a new disk... > > newfs -U /dev/mirror/gm0s1 > mkdir /mirror > mount /dev/mirror/gm0s1 /mirror > > did the trick. It boots ok and it seems to work (gmirror list does > return something, although it says "DIRTY" which doesn't sound > excellent...). > > I'll read the manual. > > Thanks! > > Christian "Dirty" is normal. It means the volume is mounted and has data on it, and is not "clean", just as a mounted disk is "dirty" while it is actually mounted. -- -- Karl Denninger (karl@denninger.net) Internet Consultant & Kids Rights Activist http://www.denninger.net My home on the net - links to everything I do! http://scubaforum.org Your UNCENSORED place to talk about DIVING! http://www.spamcuda.net SPAM FREE mailboxes - FREE FOR A LIMITED TIME! http://genesis3.blogspot.com Musings Of A Sentient Mind From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 13:32:28 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0188116A4CE for ; Tue, 5 Apr 2005 13:32:28 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C69A43D3F for ; Tue, 5 Apr 2005 13:32:27 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 7B96EACAFE; Tue, 5 Apr 2005 15:32:17 +0200 (CEST) Date: Tue, 5 Apr 2005 15:32:17 +0200 From: Pawel Jakub Dawidek To: "Wojciech A. Koszek" Message-ID: <20050405133217.GK837@darkness.comp.waw.pl> References: <20050404195820.GA70074@freebsd.czest.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="H/P/fp31Su+ob3Cg" Content-Disposition: inline In-Reply-To: <20050404195820.GA70074@freebsd.czest.pl> User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 cc: freebsd-geom@FreeBSD.org Subject: Re: Panic while loading GEOM BSD class (KASSERTions) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 13:32:28 -0000 --H/P/fp31Su+ob3Cg Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 04, 2005 at 07:58:20PM +0000, Wojciech A. Koszek wrote: +> Hello GEOM hackers, +>=20 +> 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #1: Mon Mar 14 21:35:40 CET 2005 = =20 +>=20 +> FreeBSD dunstan.freebsd.czest.pl 5.4-PRERELEASE FreeBSD 5.4-PRERELEASE #= 5: +> Mon Apr 4 16:54:55 CEST 2005 root@dunstan.freebsd.czest.pl:/usr/obj/usr= /src/sys/HOME8 i386 +>=20 +> My current kernel configuration: +>=20 +> dunstan@dunstan:(~)$ grep -i geom /usr/src/sys/i386/conf/HOME8 +> options GEOM_GPT # GUID Partition Tables. GEOM_BSD is always added to the kernel: /sys/conf/files.alpha:geom/geom_bsd.c standard /sys/conf/files.alpha:geom/geom_bsd_enc.c standard /sys/conf/files.amd64:geom/geom_bsd.c standard /sys/conf/files.amd64:geom/geom_bsd_enc.c standard /sys/conf/files.i386:geom/geom_bsd.c standard /sys/conf/files.i386:geom/geom_bsd_enc.c standard /sys/conf/files.ia64:geom/geom_bsd.c standard /sys/conf/files.ia64:geom/geom_bsd_enc.c standard /sys/conf/files.pc98:geom/geom_bsd.c standard /sys/conf/files.pc98:geom/geom_bsd_enc.c standard /sys/conf/files.sparc64:geom/geom_bsd.c standard /sys/conf/files.sparc64:geom/geom_bsd_enc.c standard 'standard' means it is always compiled in. You can look for BSD class in 'sysctl -b kern.geom.confxml' output. And if you want to ask if we should panic or not if class is already there... I suggested phk@ in the past to just return an error, not sure what his response was (maybe 'prepare a patch' :)). --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --H/P/fp31Su+ob3Cg Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCUpNhForvXbEpPzQRAkRAAKDDujflxrO4gE3rh3NLpaeC/JnKfQCgy2vA M6jnpqKm9fLSFAQEy0y9xco= =hb8v -----END PGP SIGNATURE----- --H/P/fp31Su+ob3Cg-- From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 13:59:56 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 749DA16A4CE; Tue, 5 Apr 2005 13:59:56 +0000 (GMT) Received: from freebsd.czest.pl (silver.iplus.pl [80.48.250.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 59D3243D66; Tue, 5 Apr 2005 13:59:35 +0000 (GMT) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.12.10/8.12.9) with ESMTP id j35E7btf075567; Tue, 5 Apr 2005 14:07:37 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.12.10/8.12.9/Submit) id j35E7bt7075566; Tue, 5 Apr 2005 14:07:37 GMT (envelope-from dunstan) Date: Tue, 5 Apr 2005 14:07:35 +0000 From: "Wojciech A. Koszek" To: Pawel Jakub Dawidek Message-ID: <20050405140735.GA75518@freebsd.czest.pl> References: <20050404195820.GA70074@freebsd.czest.pl> <20050405133217.GK837@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050405133217.GK837@darkness.comp.waw.pl> User-Agent: Mutt/1.4.2.1i cc: freebsd-geom@freebsd.org Subject: Re: Panic while loading GEOM BSD class (KASSERTions) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 13:59:56 -0000 On Tue, Apr 05, 2005 at 03:32:17PM +0200, Pawel Jakub Dawidek wrote: > On Mon, Apr 04, 2005 at 07:58:20PM +0000, Wojciech A. Koszek wrote: > +> Hello GEOM hackers, [..] > > GEOM_BSD is always added to the kernel: > > /sys/conf/files.alpha:geom/geom_bsd.c standard [..] > And if you want to ask if we should panic or not if class is already > there... I suggested phk@ in the past to just return an error, not > sure what his response was (maybe 'prepare a patch' :)). Hi Pawel, I mean exacly this. We have GEOM_BSD by default. but it would be nice to cleanly return with error code. Similar problem is reported with if_run.ko and if_ppp.ko (PR: kern/79493). Regards, -- * Wojciech A. Koszek && dunstan@FreeBSD.czest.pl From owner-freebsd-geom@FreeBSD.ORG Tue Apr 5 14:05:53 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C78516A4E1; Tue, 5 Apr 2005 14:05:53 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 60D1843D2F; Tue, 5 Apr 2005 14:05:52 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j35E4owx012350; Tue, 5 Apr 2005 16:05:50 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: "Wojciech A. Koszek" From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 05 Apr 2005 14:07:35 -0000." <20050405140735.GA75518@freebsd.czest.pl> Date: Tue, 05 Apr 2005 16:04:50 +0200 Message-ID: <12349.1112709890@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: Pawel Jakub Dawidek cc: freebsd-geom@freebsd.org Subject: Re: Panic while loading GEOM BSD class (KASSERTions) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2005 14:05:53 -0000 In message <20050405140735.GA75518@freebsd.czest.pl>, "Wojciech A. Koszek" writ es: >On Tue, Apr 05, 2005 at 03:32:17PM +0200, Pawel Jakub Dawidek wrote: >> On Mon, Apr 04, 2005 at 07:58:20PM +0000, Wojciech A. Koszek wrote: >> +> Hello GEOM hackers, >[..] >> >> GEOM_BSD is always added to the kernel: >> >> /sys/conf/files.alpha:geom/geom_bsd.c standard >[..] >> And if you want to ask if we should panic or not if class is already >> there... I suggested phk@ in the past to just return an error, not >> sure what his response was (maybe 'prepare a patch' :)). > >Hi Pawel, >I mean exacly this. We have GEOM_BSD by default. but it would be nice to >cleanly return with error code. Similar problem is reported with if_run.ko >and if_ppp.ko (PR: kern/79493). In current we have changed it to return EEXISTS if you try to load a class with the same name as an already existing class. -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. From owner-freebsd-geom@FreeBSD.ORG Thu Apr 7 23:44:36 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BF8616A4CE for ; Thu, 7 Apr 2005 23:44:36 +0000 (GMT) Received: from darkness.comp.waw.pl (darkness.comp.waw.pl [195.117.238.136]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0E3E43D2D for ; Thu, 7 Apr 2005 23:44:34 +0000 (GMT) (envelope-from pjd@darkness.comp.waw.pl) Received: by darkness.comp.waw.pl (Postfix, from userid 1009) id 4F98DACAFE; Fri, 8 Apr 2005 01:44:24 +0200 (CEST) Date: Fri, 8 Apr 2005 01:44:24 +0200 From: Pawel Jakub Dawidek To: freebsd-geom@FreeBSD.org Message-ID: <20050407234424.GV837@darkness.comp.waw.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VnCKLxguT6BBzdXa" Content-Disposition: inline User-Agent: Mutt/1.4.2i X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 5.2.1-RC2 i386 Subject: Bug in geom_ctl errors handling. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Apr 2005 23:44:36 -0000 --VnCKLxguT6BBzdXa Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi. I finally tracked down a bug which I was seeing from time to time. If you saw 'Bad address' as an result of some geom(8) command, you saw the bug. The problem we got here, is that copyout(9) was done not from user process, but from eg. g_event thread, where address space is different. Here is the patch to fix it: http://people.freebsd.org/~pjd/patches/geom_ctl.c.patch --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --VnCKLxguT6BBzdXa Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFCVcXYForvXbEpPzQRAsppAJ4iNhocWjPLVQ33ps1EB0RSr7HpcACdE7Gj 40Xe83iHSVkAA8Gm8JAjizg= =H7Kc -----END PGP SIGNATURE----- --VnCKLxguT6BBzdXa-- From owner-freebsd-geom@FreeBSD.ORG Fri Apr 8 05:42:03 2005 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 766A516A4CF; Fri, 8 Apr 2005 05:42:03 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id B84FB43D48; Fri, 8 Apr 2005 05:42:02 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.3/8.13.1) with ESMTP id j385g1oK023987; Fri, 8 Apr 2005 07:42:01 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 08 Apr 2005 01:44:24 +0200." <20050407234424.GV837@darkness.comp.waw.pl> Date: Fri, 08 Apr 2005 07:42:01 +0200 Message-ID: <23986.1112938921@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: freebsd-geom@freebsd.org Subject: Re: Bug in geom_ctl errors handling. X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Apr 2005 05:42:03 -0000 Good catch, go for it! In message <20050407234424.GV837@darkness.comp.waw.pl>, Pawel Jakub Dawidek writes: > >--VnCKLxguT6BBzdXa >Content-Type: text/plain; charset=iso-8859-2 >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >Hi. > >I finally tracked down a bug which I was seeing from time to time. >If you saw 'Bad address' as an result of some geom(8) command, you saw >the bug. > >The problem we got here, is that copyout(9) was done not from user >process, but from eg. g_event thread, where address space is different. > >Here is the patch to fix it: > > http://people.freebsd.org/~pjd/patches/geom_ctl.c.patch > >--=20 >Pawel Jakub Dawidek http://www.wheel.pl >pjd@FreeBSD.org http://www.FreeBSD.org >FreeBSD committer Am I Evil? Yes, I Am! > >--VnCKLxguT6BBzdXa >Content-Type: application/pgp-signature >Content-Disposition: inline > >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.2.4 (FreeBSD) > >iD8DBQFCVcXYForvXbEpPzQRAsppAJ4iNhocWjPLVQ33ps1EB0RSr7HpcACdE7Gj >40Xe83iHSVkAA8Gm8JAjizg= >=H7Kc >-----END PGP SIGNATURE----- > >--VnCKLxguT6BBzdXa-- > -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.