From owner-freebsd-geom@FreeBSD.ORG Sun Jun 17 09:14:48 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D9BAB16A400; Sun, 17 Jun 2007 09:14:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id B16A313C448; Sun, 17 Jun 2007 09:14:48 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5H9Em7C073186; Sun, 17 Jun 2007 09:14:48 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5H9EmXi073182; Sun, 17 Jun 2007 09:14:48 GMT (envelope-from linimon) Date: Sun, 17 Jun 2007 09:14:48 GMT From: Mark Linimon Message-Id: <200706170914.l5H9EmXi073182@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/113790: [patch] enable the Camellia block cipher on GEOM ELI (geli). X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 09:14:49 -0000 Synopsis: [patch] enable the Camellia block cipher on GEOM ELI (geli). Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Sun Jun 17 09:14:33 UTC 2007 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=113790 From owner-freebsd-geom@FreeBSD.ORG Sun Jun 17 14:29:10 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D18FC16A468 for ; Sun, 17 Jun 2007 14:29:10 +0000 (UTC) (envelope-from gianrubio@gmail.com) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.234]) by mx1.freebsd.org (Postfix) with ESMTP id 9232313C45A for ; Sun, 17 Jun 2007 14:29:10 +0000 (UTC) (envelope-from gianrubio@gmail.com) Received: by nz-out-0506.google.com with SMTP id 14so1027947nzn for ; Sun, 17 Jun 2007 07:29:10 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CsV6zMRKCRO/zFi5lvrGjxYU66WOLebwdPkAlpK60i92qNd3bc3AP87DPtjqZpgysDnGni0BhFJL1t1R82P14iFrE+V/5dFTadueJoXA8uPZHHGm8yiHVu+Qh9hWgO5qJiDQHyTTIq6rvG238TxOh78KygJR/YqFLeQPNKUk9gg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XznZOaO5FW3fU52vpEC/ZT6+LK8aClmmMfvmq1RpzBHgsXIqt3YWTFW3gtlarIcoo+xCWGwrr3wgT4sSyfP5fEA/tThvHNu7vyS8/d7vEpWPaiJY3aQbr4BqyJ/9VnONbGCK56D7iTLa4MoBATLWv71qpbLa2gp94Y6akl3sflw= Received: by 10.142.116.14 with SMTP id o14mr244270wfc.1182090549760; Sun, 17 Jun 2007 07:29:09 -0700 (PDT) Received: by 10.143.16.12 with HTTP; Sun, 17 Jun 2007 07:29:09 -0700 (PDT) Message-ID: Date: Sun, 17 Jun 2007 14:29:09 +0000 From: "Giancarlo Rubio" To: "..."@twoflower.idi.ntnu.no, "Giancarlo Rubio" , freebsd-geom@freebsd.org In-Reply-To: <20070617142631.GA33976@twoflower.idi.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070617142631.GA33976@twoflower.idi.ntnu.no> Cc: Subject: Re: Gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 14:29:10 -0000 > The difference is because of the filesystem layout and metadata, while gvinum > show's you the "raw" disk data size. > > When it comes to the negative numbers...I think this might have something to do > with the filesystem and not gvinum. But perhaps you could send the output off > 'gvinum printconfig'? gvinum -> printconfig # Vinum configuration of servidor.AERO, saved at Sun Jun 17 11:28:31 2007 drive raid53 device /dev/ad7s1a drive raid52 device /dev/ad6s1a drive raid51 device /dev/ad4s1a volume data plex name data.p0 org raid5 388s vol data sd name data.p0.s2 drive raid53 len 781422300s driveoffset 265s plex data.p0 plexoffset 776s sd name data.p0.s1 drive raid52 len 781422300s driveoffset 265s plex data.p0 plexoffset 388s sd name data.p0.s0 drive raid51 len 781419196s driveoffset 265s plex data.p0 plexoffset 0s gvinum -> > -- > Ulf Lilleengen > -- Giancarlo Rubio "Linux is for people who hate Windows, BSD is for people who love UNIX" 100% Rwindow$-Free Freebsd-BR User #88 From owner-freebsd-geom@FreeBSD.ORG Sun Jun 17 14:51:04 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DF1F616A400 for ; Sun, 17 Jun 2007 14:51:04 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from merke.itea.ntnu.no (merke.itea.ntnu.no [129.241.7.61]) by mx1.freebsd.org (Postfix) with ESMTP id 6DBB813C448 for ; Sun, 17 Jun 2007 14:51:04 +0000 (UTC) (envelope-from lulf@stud.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by merke.itea.ntnu.no (Postfix) with ESMTP id 9F86313DD54; Sun, 17 Jun 2007 16:26:34 +0200 (CEST) Received: from twoflower.idi.ntnu.no (twoflower.idi.ntnu.no [129.241.104.169]) by merke.itea.ntnu.no (Postfix) with ESMTP; Sun, 17 Jun 2007 16:26:32 +0200 (CEST) Received: by twoflower.idi.ntnu.no (Postfix, from userid 1002) id E874E17023; Sun, 17 Jun 2007 16:26:31 +0200 (CEST) Date: Sun, 17 Jun 2007 16:26:31 +0200 From: Ulf Lilleengen To: Giancarlo Rubio Message-ID: <20070617142631.GA33976@twoflower.idi.ntnu.no> Mail-Followup-To: Giancarlo Rubio , freebsd-geom@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-06) X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "..."@twoflower.idi.ntnu.no List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 14:51:05 -0000 On Sat, Jun 16, 2007 at 05:08:49PM -0300, Giancarlo Rubio wrote: > Hi all > > I'm using raid 5 with 3 400gb disks, via gvinum. > > Disks > ad4: 381553MB at ata2-master SATA150 > ad6: 381554MB at ata3-master SATA150 > ad7: 381554MB at ata3-slave SATA150 > > When i listing the raid via gvinum show > > servidor# gvinum > gvinum -> list > 3 drives: > D raid53 State: up /dev/ad7s1a A: 0/381553 MB (0%) > D raid52 State: up /dev/ad6s1a A: 0/381553 MB (0%) > D raid51 State: up /dev/ad4s1a A: 0/381552 MB (0%) > > 1 volume: > V data State: up Plexes: 1 Size: 745 GB > > 1 plex: > P data.p0 R5 State: up Subdisks: 3 Size: 745 GB > > 3 subdisks: > S data.p0.s2 State: up D: raid53 Size: 372 GB > S data.p0.s1 State: up D: raid52 Size: 372 GB > S data.p0.s0 State: up D: raid51 Size: 372 GB > gvinum -> > > > devfs 1.0K 1.0K 0B 100% /dev > /dev/ad0s1e 496M 14K 456M 0% /tmp > /dev/ad0s1f 69G 2.0G 61G 3% /usr > /dev/ad0s1d 1.4G 79M 1.2G 6% /var > /dev/gvinum/data 722G 722G -58G 109% /home The difference is because of the filesystem layout and metadata, while gvinum show's you the "raw" disk data size. When it comes to the negative numbers...I think this might have something to do with the filesystem and not gvinum. But perhaps you could send the output off 'gvinum printconfig'? -- Ulf Lilleengen From owner-freebsd-geom@FreeBSD.ORG Sun Jun 17 15:23:07 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C01A016A469 for ; Sun, 17 Jun 2007 15:23:07 +0000 (UTC) (envelope-from lulf@pvv.ntnu.no) Received: from fri.itea.ntnu.no (fri.itea.ntnu.no [129.241.7.60]) by mx1.freebsd.org (Postfix) with ESMTP id 7B3FD13C4D0 for ; Sun, 17 Jun 2007 15:23:07 +0000 (UTC) (envelope-from lulf@pvv.ntnu.no) Received: from localhost (localhost [127.0.0.1]) by fri.itea.ntnu.no (Postfix) with ESMTP id BDCC88289; Sun, 17 Jun 2007 17:05:05 +0200 (CEST) Received: from twoflower.idi.ntnu.no (twoflower.idi.ntnu.no [129.241.104.169]) by fri.itea.ntnu.no (Postfix) with ESMTP; Sun, 17 Jun 2007 17:05:05 +0200 (CEST) Received: by twoflower.idi.ntnu.no (Postfix, from userid 1002) id 6C7CB17023; Sun, 17 Jun 2007 17:05:05 +0200 (CEST) Date: Sun, 17 Jun 2007 17:05:05 +0200 From: Ulf Lilleengen To: Giancarlo Rubio Message-ID: <20070617150505.GA37562@twoflower.idi.ntnu.no> Mail-Followup-To: Giancarlo Rubio , "..."@twoflower.idi.ntnu.no, freebsd-geom@freebsd.org References: <20070617142631.GA33976@twoflower.idi.ntnu.no> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-06) X-Content-Scanned: with sophos and spamassassin at mailgw.ntnu.no. Cc: "..."@twoflower.idi.ntnu.no, freebsd-geom@freebsd.org Subject: Re: Gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "..."@twoflower.idi.ntnu.no List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 15:23:07 -0000 On søn, jun 17, 2007 at 02:29:09pm +0000, Giancarlo Rubio wrote: > > The difference is because of the filesystem layout and metadata, while > > gvinum > > show's you the "raw" disk data size. > > > > When it comes to the negative numbers...I think this might have something > > to do > > with the filesystem and not gvinum. But perhaps you could send the output > > off > > 'gvinum printconfig'? > > gvinum -> printconfig > # Vinum configuration of servidor.AERO, saved at Sun Jun 17 11:28:31 2007 > drive raid53 device /dev/ad7s1a > drive raid52 device /dev/ad6s1a > drive raid51 device /dev/ad4s1a > volume data > plex name data.p0 org raid5 388s vol data > sd name data.p0.s2 drive raid53 len 781422300s driveoffset 265s plex > data.p0 plexoffset 776s > sd name data.p0.s1 drive raid52 len 781422300s driveoffset 265s plex > data.p0 plexoffset 388s > sd name data.p0.s0 drive raid51 len 781419196s driveoffset 265s plex > data.p0 plexoffset 0s > gvinum -> Well, seems ok. Everything works fine, right? Perhaps just a bug in 'df'. Btw, it's not recommended to have different sized subdisk in the array. -- Ulf Lilleengen From owner-freebsd-geom@FreeBSD.ORG Sun Jun 17 17:27:45 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D68EB16A41F for ; Sun, 17 Jun 2007 17:27:45 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from spork.qfe3.net (spork.qfe3.net [212.13.207.101]) by mx1.freebsd.org (Postfix) with ESMTP id 9E76513C44C for ; Sun, 17 Jun 2007 17:27:45 +0000 (UTC) (envelope-from tom.hurst@clara.net) Received: from [81.104.144.87] (helo=voi.aagh.net) by spork.qfe3.net with esmtp (Exim 4.66 (FreeBSD)) (envelope-from ) id 1HzyBA-000CIa-1c; Sun, 17 Jun 2007 18:04:44 +0100 Received: from freaky by voi.aagh.net with local (Exim 4.67 (FreeBSD)) (envelope-from ) id 1HzyB9-0008NG-Hf; Sun, 17 Jun 2007 18:04:43 +0100 Date: Sun, 17 Jun 2007 18:04:43 +0100 From: Thomas Hurst To: Giancarlo Rubio Message-ID: <20070617170443.GA31185@voi.aagh.net> Mail-Followup-To: Giancarlo Rubio , freebsd-geom@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Not much. User-Agent: Mutt/1.5.15 (2007-04-06) Sender: Thomas Hurst Cc: freebsd-geom@freebsd.org Subject: Re: Gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2007 17:27:45 -0000 * Giancarlo Rubio (gianrubio@gmail.com) wrote: > /dev/gvinum/data 722G 722G -58G 109% /home > > Why this difference are showing?? And why the avail is negative number?? UFS by default reserves ~8% of the disk as only usable by root, since like most filesystems it performs poorly when there's very little free space. Hence when root does end up filling the disk, you end up >100% use. -- Thomas 'Freaky' Hurst http://hur.st/ From owner-freebsd-geom@FreeBSD.ORG Mon Jun 18 11:08:21 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8052F16A400 for ; Mon, 18 Jun 2007 11:08:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6EB5513C480 for ; Mon, 18 Jun 2007 11:08:21 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5IB8LZP017600 for ; Mon, 18 Jun 2007 11:08:21 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5IB8KH3017596 for freebsd-geom@FreeBSD.org; Mon, 18 Jun 2007 11:08:20 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Jun 2007 11:08:20 GMT Message-Id: <200706181108.l5IB8KH3017596@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-geom@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 11:08:21 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/73177 geom kldload geom_* causes panic due to memory exhaustion o kern/76538 geom [gbde] nfs-write on gbde partition stalls and continue o kern/83464 geom [geom] [patch] Unhandled malloc failures within libgeo o kern/84556 geom [geom] GBDE-encrypted swap causes panic at shutdown o kern/87544 geom [gbde] mmaping large files on a gbde filesystem deadlo o kern/89102 geom [geom_vfs] [panic] panic when forced unmount FS from u o bin/90093 geom fdisk(8) incapable of altering in-core geometry o kern/90582 geom [geom_mirror] [panic] Restore cause panic string (ffs_ o kern/98034 geom [geom] dereference of NULL pointer in acd_geom_detach o kern/104389 geom [geom] [patch] sys/geom/geom_dump.c doesn't encode XML o kern/113419 geom [geom] geom fox multipathing not failing back o misc/113543 geom [geom] [patch] geom(8) utilities don't work inside the 12 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/78131 geom gbde "destroy" not working. o kern/79251 geom [2TB] newfs fails on 2.6TB gbde device o kern/94632 geom [geom] Kernel output resets input while GELI asks for f kern/105390 geom [geli] filesystem on a md backed by sparse file with s o kern/107707 geom [geom] [patch] add new class geom_xbox360 to slice up p bin/110705 geom gmirror control utility does not exit with correct exi o kern/113790 geom [patch] enable the Camellia block cipher on GEOM ELI ( 7 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Jun 18 12:03:03 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 86CBC16A469 for ; Mon, 18 Jun 2007 12:03:03 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 3D76813C465 for ; Mon, 18 Jun 2007 12:03:03 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I0FwX-0001pa-Dp for freebsd-geom@freebsd.org; Mon, 18 Jun 2007 14:02:49 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jun 2007 14:02:49 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 18 Jun 2007 14:02:49 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Mon, 18 Jun 2007 14:02:25 +0200 Lines: 43 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigD2518E5A2B5BFC33422D53B7" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.12 (X11/20060911) In-Reply-To: X-Enigmail-Version: 0.94.2.0 Sender: news Cc: freebsd-fs@freebsd.org Subject: Re: Gvinum X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Jun 2007 12:03:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigD2518E5A2B5BFC33422D53B7 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Giancarlo Rubio wrote: > 1 volume: > V data State: up Plexes: 1 Size: 74= 5 GB > /dev/gvinum/data 722G 722G -58G 109% /home >=20 > Why this difference are showing?? And why the avail is negative number?= ? Raw device size is: 745 GB. UFS reserves 8% of disk space so that only=20 root can fill it (for performance reasons but also for security - so=20 that ordinary users don't fill the drive). The size of this reserved=20 space is: 745*0.08=3D59.6 GB, and when you fill it, this intentionally=20 gets reported as negative value. The differences in the output (109%=20 instead of 108% and 58 GB instead of 59 GB) are most likely due to=20 rounding errors. The real question is why does df report 722 GB free, when it should be=20 reporting 685 GB (745-59.6=3D685.4). --------------enigD2518E5A2B5BFC33422D53B7 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGdnRYldnAQVacBcgRAsCDAKDBHk3MTFDnxN+sYVATWXdBlz6gDgCg+sF7 wuOpc7nUK1NypgQFYTZGN0A= =6Ztz -----END PGP SIGNATURE----- --------------enigD2518E5A2B5BFC33422D53B7-- From owner-freebsd-geom@FreeBSD.ORG Wed Jun 20 20:15:18 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 164A516A421; Wed, 20 Jun 2007 20:15:18 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E067613C48A; Wed, 20 Jun 2007 20:15:17 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5KKFHV8011195; Wed, 20 Jun 2007 20:15:17 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5KKFHX1011191; Wed, 20 Jun 2007 20:15:17 GMT (envelope-from linimon) Date: Wed, 20 Jun 2007 20:15:17 GMT From: Mark Linimon Message-Id: <200706202015.l5KKFHX1011191@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-usb@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 20:15:18 -0000 Old Synopsis: [umass] unable to access 1024 sector size storage New Synopsis: [geom] unable to access 1024 sector size storage Responsible-Changed-From-To: freebsd-usb->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jun 20 20:14:52 UTC 2007 Responsible-Changed-Why: mjacob suggests this reassignment. http://www.freebsd.org/cgi/query-pr.cgi?pr=113837 From owner-freebsd-geom@FreeBSD.ORG Wed Jun 20 20:20:35 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 66C0C16A41F for ; Wed, 20 Jun 2007 20:20:35 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 0BCDB13C44C for ; Wed, 20 Jun 2007 20:20:34 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id A468417382; Wed, 20 Jun 2007 20:20:33 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l5KKKXpN007183; Wed, 20 Jun 2007 20:20:33 GMT (envelope-from phk@critter.freebsd.dk) To: Mark Linimon From: "Poul-Henning Kamp" In-Reply-To: Your message of "Wed, 20 Jun 2007 20:15:17 GMT." <200706202015.l5KKFHX1011191@freefall.freebsd.org> Date: Wed, 20 Jun 2007 20:20:33 +0000 Message-ID: <7182.1182370833@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-usb@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 20:20:35 -0000 In message <200706202015.l5KKFHX1011191@freefall.freebsd.org>, Mark Linimon wri tes: >New Synopsis: [geom] unable to access 1024 sector size storage Unless somebody broke something, this is certainly not a GEOM bug, because GEOM will access any sectorsize >= 512 bytes, and by "any" I don't just mean power-of-two sizes. Run: diskinfo -v /dev/da3 and see what it says. If it says anything but 1024 byte sector size, the problem is in scsi_da or umass, possibly both. If it says 1024 byte sector size, somebody broke GEOM. -- 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 Wed Jun 20 21:00:12 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8F80816A400 for ; Wed, 20 Jun 2007 21:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 7F6EE13C448 for ; Wed, 20 Jun 2007 21:00:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5KL0Crt015172 for ; Wed, 20 Jun 2007 21:00:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5KL0C55015171; Wed, 20 Jun 2007 21:00:12 GMT (envelope-from gnats) Date: Wed, 20 Jun 2007 21:00:12 GMT Message-Id: <200706202100.l5KL0C55015171@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Arne "Wörner" Cc: Subject: Re: kern/113837: [umass] unable to access 1024 sectot size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Arne Wörner List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 21:00:12 -0000 The following reply was made to PR kern/113837; it has been noted by GNATS. From: Arne "Wörner" To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/113837: [umass] unable to access 1024 sectot size storage Date: Wed, 20 Jun 2007 13:28:10 -0700 (PDT) It looks like msdosfs cannot handle sector sizes different than 512B... What if u try this: 1. dd if=/dev/da3 of=/tmp/da3.cpy ibs=1k obs=1m 2. mdconfig -a -f /tmp/da3.cpy 3. mount_msdosfs /dev/md0s1 /mnt ? -Arne ____________________________________________________________________________________ Get the free Yahoo! toolbar and rest assured with the added security of spyware protection. http://new.toolbar.yahoo.com/toolbar/features/norton/index.php From owner-freebsd-geom@FreeBSD.ORG Wed Jun 20 21:06:53 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 50DFD16A46D; Wed, 20 Jun 2007 21:06:53 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 0F36913C4D5; Wed, 20 Jun 2007 21:06:52 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.13.8/8.13.4) with ESMTP id l5KL5KBk038547; Wed, 20 Jun 2007 15:05:21 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 20 Jun 2007 15:05:52 -0600 (MDT) Message-Id: <20070620.150552.-1548241557.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <7182.1182370833@critter.freebsd.dk> References: <200706202015.l5KKFHX1011191@freefall.freebsd.org> <7182.1182370833@critter.freebsd.dk> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 20 Jun 2007 15:05:21 -0600 (MDT) Cc: freebsd-usb@freebsd.org, linimon@freebsd.org, freebsd-geom@freebsd.org Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Jun 2007 21:06:53 -0000 In message: <7182.1182370833@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <200706202015.l5KKFHX1011191@freefall.freebsd.org>, Mark Linimon wri : tes: : : >New Synopsis: [geom] unable to access 1024 sector size storage : : Unless somebody broke something, this is certainly not a GEOM bug, : because GEOM will access any sectorsize >= 512 bytes, and by "any" : I don't just mean power-of-two sizes. : : Run: : diskinfo -v /dev/da3 : and see what it says. : : If it says anything but 1024 byte sector size, the problem is in : scsi_da or umass, possibly both. : : If it says 1024 byte sector size, somebody broke GEOM. I know that GEOM works with 1056 byte sectors for the spi dataflash I have in my ARM box. No FS work with that, but that's not GEOM's fault. :-) Warner From owner-freebsd-geom@FreeBSD.ORG Thu Jun 21 01:20:47 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3873E16A421; Thu, 21 Jun 2007 01:20:47 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 0F51813C45B; Thu, 21 Jun 2007 01:20:47 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5L1Kk2C033909; Thu, 21 Jun 2007 01:20:46 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5L1KknB033905; Thu, 21 Jun 2007 01:20:46 GMT (envelope-from linimon) Date: Thu, 21 Jun 2007 01:20:46 GMT From: Mark Linimon Message-Id: <200706210120.l5L1KknB033905@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Cc: Subject: Re: kern/113885: [geom] [patch] improved gmirror balance algorithm X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 01:20:47 -0000 Old Synopsis: improved gmirror balance algorithm New Synopsis: [geom] [patch] improved gmirror balance algorithm Responsible-Changed-From-To: freebsd-bugs->freebsd-geom Responsible-Changed-By: linimon Responsible-Changed-When: Thu Jun 21 01:18:50 UTC 2007 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=113885 From owner-freebsd-geom@FreeBSD.ORG Thu Jun 21 11:30:11 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B2D8216A421 for ; Thu, 21 Jun 2007 11:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 9CA8A13C4C6 for ; Thu, 21 Jun 2007 11:30:11 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5LBUBQ8092463 for ; Thu, 21 Jun 2007 11:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5LBUBP6092459; Thu, 21 Jun 2007 11:30:11 GMT (envelope-from gnats) Date: Thu, 21 Jun 2007 11:30:11 GMT Message-Id: <200706211130.l5LBUBP6092459@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: Bernard Steiner Cc: Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernard Steiner List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 11:30:11 -0000 The following reply was made to PR kern/113837; it has been noted by GNATS. From: Bernard Steiner To: bug-followup@FreeBSD.org Cc: Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage Date: Thu, 21 Jun 2007 12:32:43 +0200 (MET DST) [sorry I goofed up with send-pr; this is my first bug report...] No, it's not a geom issue. Same thing happens with geom disabled. Nothing to do with msdosfs, either. I have since tried the following: 1) booted into single user without any geom modules; same effect 2) dd with conv=noerror seems to deliver some data of some sort (though not sufficient for a valid file system) 3) reading 512, 1k, 2k, 4k off da3 fails. lseek() to 512, 1024, 1536, 2048 and *then* reading 512, 1k, 2k, 4k fails as well. Bernard From owner-freebsd-geom@FreeBSD.ORG Thu Jun 21 15:41:10 2007 Return-Path: X-Original-To: freebsd-geom@FreeBSD.org Delivered-To: freebsd-geom@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DDAA416A400 for ; Thu, 21 Jun 2007 15:41:10 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from auriate.fluffles.net (cust.95.160.adsl.cistron.nl [195.64.95.160]) by mx1.freebsd.org (Postfix) with ESMTP id 958F713C484 for ; Thu, 21 Jun 2007 15:41:10 +0000 (UTC) (envelope-from etc@fluffles.net) Received: from 195-241-125-45.dsl.ip.tiscali.nl ([195.241.125.45] helo=[10.0.0.18]) by auriate.fluffles.net with esmtpa (Exim 4.66 (FreeBSD)) (envelope-from ) id 1I1OmF-000Bki-Lr; Thu, 21 Jun 2007 17:40:55 +0200 Message-ID: <467A9C0F.7040607@fluffles.net> Date: Thu, 21 Jun 2007 17:41:03 +0200 From: Fluffles User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Mark Linimon References: <200706210120.l5L1KknB033905@freefall.freebsd.org> In-Reply-To: <200706210120.l5L1KknB033905@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@FreeBSD.org, freebsd-geom@FreeBSD.org Subject: Re: kern/113885: [geom] [patch] improved gmirror balance algorithm X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 15:41:10 -0000 Mark Linimon wrote: > Old Synopsis: improved gmirror balance algorithm > New Synopsis: [geom] [patch] improved gmirror balance algorithm > > Responsible-Changed-From-To: freebsd-bugs->freebsd-geom > Responsible-Changed-By: linimon > Responsible-Changed-When: Thu Jun 21 01:18:50 UTC 2007 > Responsible-Changed-Why: > Over to maintainer(s). > > http://www.freebsd.org/cgi/query-pr.cgi?pr=113885 > This improvement sounds really nice and i would be happy to test it. One question though: in RAID1 it is theoretically possible to get the same sequential read speed as in RAID0. Does this patch fix this as well? Ofcourse more IOps is very nice for multiuser servers, but more (sequential) MB/s is nice too for NAS purposes etc. Thanks! - Veronica From owner-freebsd-geom@FreeBSD.ORG Thu Jun 21 20:30:12 2007 Return-Path: X-Original-To: freebsd-geom@hub.freebsd.org Delivered-To: freebsd-geom@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B84D916A421 for ; Thu, 21 Jun 2007 20:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4AA3013C44C for ; Thu, 21 Jun 2007 20:30:12 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l5LKUBaC034730 for ; Thu, 21 Jun 2007 20:30:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l5LKUBYU034728; Thu, 21 Jun 2007 20:30:11 GMT (envelope-from gnats) Date: Thu, 21 Jun 2007 20:30:11 GMT Message-Id: <200706212030.l5LKUBYU034728@freefall.freebsd.org> To: freebsd-geom@FreeBSD.org From: "Bernard Steiner" Cc: Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bernard Steiner List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jun 2007 20:30:12 -0000 The following reply was made to PR kern/113837; it has been noted by GNATS. From: "Bernard Steiner" To: bug-followup@freebsd.org Cc: Subject: Re: kern/113837: [geom] unable to access 1024 sector size storage Date: Thu, 21 Jun 2007 21:39:19 +0200 Luckily the WinME machine is a laptop which has a PCMCIA slot and also has a slightly elderly 6.2 pre-release on it. So I grabbed hold of a pcmcia (cardbus) SD card reader, inserted card. Voila: ad4 at ata2 got detected, ad4 accessible by fdisk, ad4s1 mountable msdosfs. May i humbly suggest that the bug is somewhere in either umass or cam or both. Bernard From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 05:07:24 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D317C16A468 for ; Sat, 23 Jun 2007 05:07:24 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext11.nokia.com (smtp.nokia.com [131.228.20.170]) by mx1.freebsd.org (Postfix) with ESMTP id 6143613C44B for ; Sat, 23 Jun 2007 05:07:24 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext11.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5N4kgU2013596 for ; Sat, 23 Jun 2007 07:46:46 +0300 Received: from siebh102.NOE.Nokia.com ([172.30.195.29]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 07:46:43 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh102.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 12:46:42 +0800 Received: from [172.30.67.199] ([172.30.67.199]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 14:46:40 +1000 Message-ID: <467CA5B0.4090508@nokia.com> Date: Sat, 23 Jun 2007 14:46:40 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Jun 2007 04:46:40.0913 (UTC) FILETIME=[7DB1C810:01C7B551] X-Nokia-AV: Clean Subject: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 05:07:24 -0000 Hi, I've encountered a duplicate free in 6.1-RELEASE-based code. I have noticed that the same stack trace was reported about two years ago on a number of occasions, and some code was added to try and help debug the situation. However, I don't see any resolution. Does anyone have any more information on this before I try and debug it further? Any hints for trying to find who freed it first? Maybe I should add the KTR debug that went into 1.66 of geom_io.c. db> bt Tracing pid 17 tid 100016 td 0x86badaf0 kdb_enter(80750631) at kdb_enter+0x2b panic(807786cd,8a778d80,81856780,80747d25,807786b1,...) at panic+0x137 uma_dbg_free(81856780,0,8a778d80) at uma_dbg_free+0x110 uma_zfree_arg(81856780,8a778d80,0) at uma_zfree_arg+0x66 g_destroy_bio(8a778d80,805319b4,8a778d80,e1ca3c60,805c9620,...) at g_destroy_bio+0x13 g_disk_done(8a778d80) at g_disk_done+0x62 biodone(8a778d80) at biodone+0x58 ad_done(88042840) at ad_done+0x2a ata_completed(88042840,0,86c38cdc,0,80753b6d,...) at ata_completed+0x504 taskqueue_run(86c38cc0,e1ca3cec,8056999a,0,0,...) at taskqueue_run+0x86 taskqueue_swi_run(0) at taskqueue_swi_run+0xe ithread_execute_handlers(86c14000,86c29280) at ithread_execute_handlers+0xfa ithread_loop(86c534f0,e1ca3d38,86c534f0,80569a10,0,...) at ithread_loop+0x76 fork_exit(80569a10,86c534f0,e1ca3d38) at fork_exit+0xa0 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe1ca3d6c, ebp = 0 --- The panic string is: Duplicate free of item 0x8a778d80 from zone 0x81856780(g_bio) Thanks, Dave From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 07:00:34 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1DACB16A400 for ; Sat, 23 Jun 2007 07:00:34 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext14.nokia.com (smtp.nokia.com [131.228.20.173]) by mx1.freebsd.org (Postfix) with ESMTP id A05E413C45B for ; Sat, 23 Jun 2007 07:00:33 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh107.NOE.Nokia.com (esebh107.ntc.nokia.com [172.21.143.143]) by mgw-ext14.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5N70SZD000454 for ; Sat, 23 Jun 2007 10:00:31 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh107.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 10:00:30 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 15:00:28 +0800 Received: from [172.30.67.199] ([172.30.67.199]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 17:00:26 +1000 Message-ID: <467CC50A.3080900@nokia.com> Date: Sat, 23 Jun 2007 17:00:26 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <467CA5B0.4090508@nokia.com> In-Reply-To: <467CA5B0.4090508@nokia.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Jun 2007 07:00:26.0913 (UTC) FILETIME=[2D903110:01C7B564] X-Nokia-AV: Clean Cc: ext David Cecil Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 07:00:34 -0000 A little more information that I hope might trigger some thoughts. I have also seen a trace very similar to the one in my original mail, but instead of bio_done calling g_disk_done, it calls g_mirror_done. This time it panics because it tries to dereference the bio_from field. The common thread is that in both cases, the bio is freed prior to the done handler referencing it (well at least the bio_from field is NULL in the g_mirror_case, so I'm assuming it was freed). I wonder if these handlers are not playing nicely together? Some locking required between them that is missing maybe? Unread portion of the kernel message buffer: ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=46231338 Fatal trap 12: page fault while in kernel mode cpuid = 1; apic id = 01 fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0x8053318b stack pointer = 0x28:0xe1466c4c frame pointer = 0x28:0xe1466c54 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 19 (swi6: task queue) trap number = 12 panic: page fault cpuid = 1 KDB: stack backtrace: db_trace_self_wrapper(8075f7be) at db_trace_self_wrapper+0x25 kdb_backtrace(100,863ba190,28,e1466c0c,c,...) at kdb_backtrace+0x29 panic(807403d4,8077f4a5,0,fffff,863be29b,...) at panic+0x124 trap_fatal(e1466c0c,0,863ba190,0,c,...) at trap_fatal+0x2ce trap_pfault(e1466c0c,0,0) at trap_pfault+0x1e7 trap(e1460008,28,28,8a0cb840,89b1a6b4,...) at trap+0x36d calltrap() at calltrap+0x5 --- trap 0xc, eip = 0x8053318b, esp = 0xe1466c4c, ebp = 0xe1466c54 --- g_mirror_done(89b1a6b4) at g_mirror_done+0xb biodone(89b1a6b4) at biodone+0x8b ad_done(8a0cb840) at ad_done+0x2a ata_completed(8a0cb840,0) at ata_completed+0x534 taskqueue_run(8644bac0,e1466cec,80566279,0,0,...) at taskqueue_run+0xbd taskqueue_swi_run(0) at taskqueue_swi_run+0xe ithread_execute_handlers(863be200,86433000) at ithread_execute_handlers+0x139 ithread_loop(86468460,e1466d38) at ithread_loop+0x64 fork_exit(805662ec,86468460,e1466d38) at fork_exit+0x71 fork_trampoline() at fork_trampoline+0x8 --- trap 0x1, eip = 0, esp = 0xe1466d6c, ebp = 0 --- ext David Cecil wrote: > Hi, > > I've encountered a duplicate free in 6.1-RELEASE-based code. I have > noticed that the same stack trace was reported about two years ago on > a number of occasions, and some code was added to try and help debug > the situation. However, I don't see any resolution. Does anyone have > any more information on this before I try and debug it further? > > Any hints for trying to find who freed it first? Maybe I should add > the KTR debug that went into 1.66 of geom_io.c. > > db> bt > Tracing pid 17 tid 100016 td 0x86badaf0 > kdb_enter(80750631) at kdb_enter+0x2b > panic(807786cd,8a778d80,81856780,80747d25,807786b1,...) at panic+0x137 > uma_dbg_free(81856780,0,8a778d80) at uma_dbg_free+0x110 > uma_zfree_arg(81856780,8a778d80,0) at uma_zfree_arg+0x66 > g_destroy_bio(8a778d80,805319b4,8a778d80,e1ca3c60,805c9620,...) at > g_destroy_bio+0x13 > g_disk_done(8a778d80) at g_disk_done+0x62 > biodone(8a778d80) at biodone+0x58 > ad_done(88042840) at ad_done+0x2a > ata_completed(88042840,0,86c38cdc,0,80753b6d,...) at ata_completed+0x504 > taskqueue_run(86c38cc0,e1ca3cec,8056999a,0,0,...) at taskqueue_run+0x86 > taskqueue_swi_run(0) at taskqueue_swi_run+0xe > ithread_execute_handlers(86c14000,86c29280) at > ithread_execute_handlers+0xfa > ithread_loop(86c534f0,e1ca3d38,86c534f0,80569a10,0,...) at > ithread_loop+0x76 > fork_exit(80569a10,86c534f0,e1ca3d38) at fork_exit+0xa0 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xe1ca3d6c, ebp = 0 --- > > The panic string is: > Duplicate free of item 0x8a778d80 from zone 0x81856780(g_bio) > > Thanks, > Dave > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" -- Software Engineer Secure and Mobile Connectivity Enterprise Solutions Nokia +61 7 5553 8307 (office) +61 412 728 222 (cell) From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 07:32:42 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 11CB516A468 for ; Sat, 23 Jun 2007 07:32:42 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30308.mail.mud.yahoo.com (web30308.mail.mud.yahoo.com [209.191.69.70]) by mx1.freebsd.org (Postfix) with SMTP id D957613C4B9 for ; Sat, 23 Jun 2007 07:32:41 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 85493 invoked by uid 60001); 23 Jun 2007 07:32:41 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=eR3Khv9PIzPppDMGmOEkuN+HGfZdFGpjsEPlVhNLbeu6tXZDyd7YJRJhrW2aos3Y3f1J0kE8zfdr3/d97zZClN6vA36wjLSwl44NZWSMPNysHYwtWmJ2b+VdBt69kHq/5Zde1KIFQQfubm2ewzIh8XGLzizj+GvS0k3aXmV7Q80=; X-YMail-OSG: PTPZeDQVM1l5A0.XMKAB0J1yo1MIpYwHYcWNnODmxp4nMDVc2HtQQR8oYPBAzitY3Q-- Received: from [89.53.20.188] by web30308.mail.mud.yahoo.com via HTTP; Sat, 23 Jun 2007 00:32:41 PDT Date: Sat, 23 Jun 2007 00:32:41 -0700 (PDT) From: Arne "Wörner" To: David Cecil , freebsd-geom@freebsd.org In-Reply-To: <467CC50A.3080900@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <79542.83694.qm@web30308.mail.mud.yahoo.com> Cc: ext David Cecil Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 07:32:42 -0000 How do u do that? Any special test program? Does it happen in R6.2 and/or 7-CUR, too? R there any exceptional events shortly before it happens? -Arne --- David Cecil wrote: > A little more information that I hope might trigger some thoughts. > > I have also seen a trace very similar to the one in my original mail, > but instead of bio_done calling g_disk_done, it calls g_mirror_done. > This time it panics because it tries to dereference the bio_from field. > The common thread is that in both cases, the bio is freed prior to the > done handler referencing it (well at least the bio_from field is NULL in > the g_mirror_case, so I'm assuming it was freed). I wonder if these > handlers are not playing nicely together? Some locking required between > them that is missing maybe? > > > Unread portion of the kernel message buffer: > ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=46231338 > > Fatal trap 12: page fault while in kernel mode > cpuid = 1; apic id = 01 > fault virtual address = 0x0 > fault code = supervisor read, page not present > instruction pointer = 0x20:0x8053318b > stack pointer = 0x28:0xe1466c4c > frame pointer = 0x28:0xe1466c54 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 19 (swi6: task queue) > trap number = 12 > panic: page fault > cpuid = 1 > KDB: stack backtrace: > db_trace_self_wrapper(8075f7be) at db_trace_self_wrapper+0x25 > kdb_backtrace(100,863ba190,28,e1466c0c,c,...) at kdb_backtrace+0x29 > panic(807403d4,8077f4a5,0,fffff,863be29b,...) at panic+0x124 > trap_fatal(e1466c0c,0,863ba190,0,c,...) at trap_fatal+0x2ce > trap_pfault(e1466c0c,0,0) at trap_pfault+0x1e7 > trap(e1460008,28,28,8a0cb840,89b1a6b4,...) at trap+0x36d > calltrap() at calltrap+0x5 > --- trap 0xc, eip = 0x8053318b, esp = 0xe1466c4c, ebp = 0xe1466c54 --- > g_mirror_done(89b1a6b4) at g_mirror_done+0xb > biodone(89b1a6b4) at biodone+0x8b > ad_done(8a0cb840) at ad_done+0x2a > ata_completed(8a0cb840,0) at ata_completed+0x534 > taskqueue_run(8644bac0,e1466cec,80566279,0,0,...) at taskqueue_run+0xbd > taskqueue_swi_run(0) at taskqueue_swi_run+0xe > ithread_execute_handlers(863be200,86433000) at > ithread_execute_handlers+0x139 > ithread_loop(86468460,e1466d38) at ithread_loop+0x64 > fork_exit(805662ec,86468460,e1466d38) at fork_exit+0x71 > fork_trampoline() at fork_trampoline+0x8 > --- trap 0x1, eip = 0, esp = 0xe1466d6c, ebp = 0 --- > > > > ext David Cecil wrote: > > Hi, > > > > I've encountered a duplicate free in 6.1-RELEASE-based code. I have > > noticed that the same stack trace was reported about two years ago on > > a number of occasions, and some code was added to try and help debug > > the situation. However, I don't see any resolution. Does anyone have > > any more information on this before I try and debug it further? > > > > Any hints for trying to find who freed it first? Maybe I should add > > the KTR debug that went into 1.66 of geom_io.c. > > > > db> bt > > Tracing pid 17 tid 100016 td 0x86badaf0 > > kdb_enter(80750631) at kdb_enter+0x2b > > panic(807786cd,8a778d80,81856780,80747d25,807786b1,...) at panic+0x137 > > uma_dbg_free(81856780,0,8a778d80) at uma_dbg_free+0x110 > > uma_zfree_arg(81856780,8a778d80,0) at uma_zfree_arg+0x66 > > g_destroy_bio(8a778d80,805319b4,8a778d80,e1ca3c60,805c9620,...) at > > g_destroy_bio+0x13 > > g_disk_done(8a778d80) at g_disk_done+0x62 > > biodone(8a778d80) at biodone+0x58 > > ad_done(88042840) at ad_done+0x2a > > ata_completed(88042840,0,86c38cdc,0,80753b6d,...) at ata_completed+0x504 > > taskqueue_run(86c38cc0,e1ca3cec,8056999a,0,0,...) at taskqueue_run+0x86 > > taskqueue_swi_run(0) at taskqueue_swi_run+0xe > > ithread_execute_handlers(86c14000,86c29280) at > > ithread_execute_handlers+0xfa > > ithread_loop(86c534f0,e1ca3d38,86c534f0,80569a10,0,...) at > > ithread_loop+0x76 > > fork_exit(80569a10,86c534f0,e1ca3d38) at fork_exit+0xa0 > > fork_trampoline() at fork_trampoline+0x8 > > --- trap 0x1, eip = 0, esp = 0xe1ca3d6c, ebp = 0 --- > > > > The panic string is: > > Duplicate free of item 0x8a778d80 from zone 0x81856780(g_bio) > > > > Thanks, > > Dave > > _______________________________________________ > > freebsd-geom@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > > > -- > Software Engineer > Secure and Mobile Connectivity > Enterprise Solutions > Nokia > +61 7 5553 8307 (office) > +61 412 728 222 (cell) > > _______________________________________________ > freebsd-geom@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-geom > To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" > ____________________________________________________________________________________ 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 09:43:01 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B84D16A400 for ; Sat, 23 Jun 2007 09:43:01 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext12.nokia.com (smtp.nokia.com [131.228.20.171]) by mx1.freebsd.org (Postfix) with ESMTP id B0BFD13C44C for ; Sat, 23 Jun 2007 09:43:00 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh107.NOE.Nokia.com (esebh107.ntc.nokia.com [172.21.143.143]) by mgw-ext12.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5N9guYt025586; Sat, 23 Jun 2007 12:42:57 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh107.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 12:42:55 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 17:42:53 +0800 Received: from [172.30.67.199] ([172.30.67.199]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 19:42:49 +1000 Message-ID: <467CEB18.9020207@nokia.com> Date: Sat, 23 Jun 2007 19:42:48 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: "\"\"\"ext Arne W?rner\" \"\"@mgw-mx04.nokia.com" References: <79542.83694.qm@web30308.mail.mud.yahoo.com> In-Reply-To: <79542.83694.qm@web30308.mail.mud.yahoo.com> X-OriginalArrivalTime: 23 Jun 2007 09:42:50.0007 (UTC) FILETIME=[DCE65A70:01C7B57A] X-Nokia-AV: Clean Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 09:43:01 -0000 Hi Arne, one of our QA engineers has produced the problem. Our code is currently 6.1 based, so we can't do the same thing with 6.2 or 7.0. I see nothing in 6.2 to indicate it's fixed, based on the commit log or changes to geom_io.c (I should have looked at g_mirror.c too). We have not changed GEOM. I was planning to ask him about reproducability too. As far as I know, it was primarily network load, thogh there was a relatively small amount of that. Thanks, Dave ext Arne W?rner" "@mgw-mx04.nokia.com wrote: > How do u do that? > Any special test program? > > Does it happen in R6.2 and/or 7-CUR, too? > > R there any exceptional events shortly before it happens? > > -Arne > > > --- David Cecil wrote: > > >> A little more information that I hope might trigger some thoughts. >> >> I have also seen a trace very similar to the one in my original mail, >> but instead of bio_done calling g_disk_done, it calls g_mirror_done. >> This time it panics because it tries to dereference the bio_from field. >> The common thread is that in both cases, the bio is freed prior to the >> done handler referencing it (well at least the bio_from field is NULL in >> the g_mirror_case, so I'm assuming it was freed). I wonder if these >> handlers are not playing nicely together? Some locking required between >> them that is missing maybe? >> >> >> Unread portion of the kernel message buffer: >> ad4: TIMEOUT - WRITE_DMA retrying (1 retry left) LBA=46231338 >> >> Fatal trap 12: page fault while in kernel mode >> cpuid = 1; apic id = 01 >> fault virtual address = 0x0 >> fault code = supervisor read, page not present >> instruction pointer = 0x20:0x8053318b >> stack pointer = 0x28:0xe1466c4c >> frame pointer = 0x28:0xe1466c54 >> code segment = base 0x0, limit 0xfffff, type 0x1b >> = DPL 0, pres 1, def32 1, gran 1 >> processor eflags = interrupt enabled, resume, IOPL = 0 >> current process = 19 (swi6: task queue) >> trap number = 12 >> panic: page fault >> cpuid = 1 >> KDB: stack backtrace: >> db_trace_self_wrapper(8075f7be) at db_trace_self_wrapper+0x25 >> kdb_backtrace(100,863ba190,28,e1466c0c,c,...) at kdb_backtrace+0x29 >> panic(807403d4,8077f4a5,0,fffff,863be29b,...) at panic+0x124 >> trap_fatal(e1466c0c,0,863ba190,0,c,...) at trap_fatal+0x2ce >> trap_pfault(e1466c0c,0,0) at trap_pfault+0x1e7 >> trap(e1460008,28,28,8a0cb840,89b1a6b4,...) at trap+0x36d >> calltrap() at calltrap+0x5 >> --- trap 0xc, eip = 0x8053318b, esp = 0xe1466c4c, ebp = 0xe1466c54 --- >> g_mirror_done(89b1a6b4) at g_mirror_done+0xb >> biodone(89b1a6b4) at biodone+0x8b >> ad_done(8a0cb840) at ad_done+0x2a >> ata_completed(8a0cb840,0) at ata_completed+0x534 >> taskqueue_run(8644bac0,e1466cec,80566279,0,0,...) at taskqueue_run+0xbd >> taskqueue_swi_run(0) at taskqueue_swi_run+0xe >> ithread_execute_handlers(863be200,86433000) at >> ithread_execute_handlers+0x139 >> ithread_loop(86468460,e1466d38) at ithread_loop+0x64 >> fork_exit(805662ec,86468460,e1466d38) at fork_exit+0x71 >> fork_trampoline() at fork_trampoline+0x8 >> --- trap 0x1, eip = 0, esp = 0xe1466d6c, ebp = 0 --- >> >> >> >> ext David Cecil wrote: >> >>> Hi, >>> >>> I've encountered a duplicate free in 6.1-RELEASE-based code. I have >>> noticed that the same stack trace was reported about two years ago on >>> a number of occasions, and some code was added to try and help debug >>> the situation. However, I don't see any resolution. Does anyone have >>> any more information on this before I try and debug it further? >>> >>> Any hints for trying to find who freed it first? Maybe I should add >>> the KTR debug that went into 1.66 of geom_io.c. >>> >>> db> bt >>> Tracing pid 17 tid 100016 td 0x86badaf0 >>> kdb_enter(80750631) at kdb_enter+0x2b >>> panic(807786cd,8a778d80,81856780,80747d25,807786b1,...) at panic+0x137 >>> uma_dbg_free(81856780,0,8a778d80) at uma_dbg_free+0x110 >>> uma_zfree_arg(81856780,8a778d80,0) at uma_zfree_arg+0x66 >>> g_destroy_bio(8a778d80,805319b4,8a778d80,e1ca3c60,805c9620,...) at >>> g_destroy_bio+0x13 >>> g_disk_done(8a778d80) at g_disk_done+0x62 >>> biodone(8a778d80) at biodone+0x58 >>> ad_done(88042840) at ad_done+0x2a >>> ata_completed(88042840,0,86c38cdc,0,80753b6d,...) at ata_completed+0x504 >>> taskqueue_run(86c38cc0,e1ca3cec,8056999a,0,0,...) at taskqueue_run+0x86 >>> taskqueue_swi_run(0) at taskqueue_swi_run+0xe >>> ithread_execute_handlers(86c14000,86c29280) at >>> ithread_execute_handlers+0xfa >>> ithread_loop(86c534f0,e1ca3d38,86c534f0,80569a10,0,...) at >>> ithread_loop+0x76 >>> fork_exit(80569a10,86c534f0,e1ca3d38) at fork_exit+0xa0 >>> fork_trampoline() at fork_trampoline+0x8 >>> --- trap 0x1, eip = 0, esp = 0xe1ca3d6c, ebp = 0 --- >>> >>> The panic string is: >>> Duplicate free of item 0x8a778d80 from zone 0x81856780(g_bio) >>> >>> Thanks, >>> Dave >>> _______________________________________________ >>> freebsd-geom@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-geom >>> To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" >>> >> -- >> Software Engineer >> Secure and Mobile Connectivity >> Enterprise Solutions >> Nokia >> +61 7 5553 8307 (office) >> +61 412 728 222 (cell) >> >> _______________________________________________ >> freebsd-geom@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-geom >> To unsubscribe, send any mail to "freebsd-geom-unsubscribe@freebsd.org" >> >> > > > > > ____________________________________________________________________________________ > 8:00? 8:25? 8:40? Find a flick in no time > with the Yahoo! Search movie showtime shortcut. > http://tools.search.yahoo.com/shortcuts/#news > From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 09:52:23 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CF82E16A469 for ; Sat, 23 Jun 2007 09:52:23 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 8DBB113C44C for ; Sat, 23 Jun 2007 09:52:23 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id 3649B17383; Sat, 23 Jun 2007 09:52:22 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id l5N9qLl1024067; Sat, 23 Jun 2007 09:52:21 GMT (envelope-from phk@critter.freebsd.dk) To: David Cecil From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sat, 23 Jun 2007 19:42:48 +1000." <467CEB18.9020207@nokia.com> Date: Sat, 23 Jun 2007 09:52:21 +0000 Message-ID: <24066.1182592341@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-geom@freebsd.org Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 09:52:23 -0000 repl: bad addresses: "\"\"\"ext Arne W?rner\" \"\"@mgw-mx04.nokia.com" -- no at-sign after local-part (\) In message <467CEB18.9020207@nokia.com>, David Cecil writes: >Hi Arne, > >one of our QA engineers has produced the problem. Our code is currently >6.1 based, so we can't do the same thing with 6.2 or 7.0. I see nothing >in 6.2 to indicate it's fixed, based on the commit log or changes to >geom_io.c (I should have looked at g_mirror.c too). We have not changed >GEOM. What is the disk configuration of the test box ? Which GEOM classes are used ? -- 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 Sat Jun 23 09:55:29 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC04316A421 for ; Sat, 23 Jun 2007 09:55:29 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext11.nokia.com (smtp.nokia.com [131.228.20.170]) by mx1.freebsd.org (Postfix) with ESMTP id 332D813C4AE for ; Sat, 23 Jun 2007 09:55:28 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-ext11.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5N9tQVT027530; Sat, 23 Jun 2007 12:55:26 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 12:55:25 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 17:55:23 +0800 Received: from [172.30.67.199] ([172.30.67.199]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 19:55:20 +1000 Message-ID: <467CEE02.3080406@nokia.com> Date: Sat, 23 Jun 2007 19:55:14 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: ext Poul-Henning Kamp References: <24066.1182592341@critter.freebsd.dk> In-Reply-To: <24066.1182592341@critter.freebsd.dk> X-OriginalArrivalTime: 23 Jun 2007 09:55:21.0210 (UTC) FILETIME=[9CA6D5A0:01C7B57C] X-Nokia-AV: Clean Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-geom@freebsd.org Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 09:55:29 -0000 gmirror of slice, single SATA disk. I'm pretty sure there was no second disk, though I will verify. Thanks, Dave ext Poul-Henning Kamp wrote: > repl: bad addresses: > "\"\"\"ext Arne W?rner\" \"\"@mgw-mx04.nokia.com" > -- no at-sign after local-part (\) > In message <467CEB18.9020207@nokia.com>, David Cecil writes: > >> Hi Arne, >> >> one of our QA engineers has produced the problem. Our code is currently >> 6.1 based, so we can't do the same thing with 6.2 or 7.0. I see nothing >> in 6.2 to indicate it's fixed, based on the commit log or changes to >> geom_io.c (I should have looked at g_mirror.c too). We have not changed >> GEOM. >> > > What is the disk configuration of the test box ? Which GEOM classes > are used ? > > > -- Software Engineer Secure and Mobile Connectivity Enterprise Solutions Nokia +61 7 5553 8307 (office) +61 412 728 222 (cell) From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 10:12:40 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A031D16A46B for ; Sat, 23 Jun 2007 10:12:40 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30313.mail.mud.yahoo.com (web30313.mail.mud.yahoo.com [209.191.69.75]) by mx1.freebsd.org (Postfix) with SMTP id 1983813C457 for ; Sat, 23 Jun 2007 10:12:40 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 88318 invoked by uid 60001); 23 Jun 2007 10:12:39 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=XCUH10c+NI5L7SMWJbCWoNj+rLRuN8i4bEBNCqDY5/wscxVfyeQeYR5B6Y0hUKCuWWrUqEEi90EA+KZIynFj5VISzs+x44MXEwNMikZRt5cANmSiAJx90HKAoeaVewmMcFPO4355WuwoiODyl2pTEexK2I7LxcfhbnWFhDpoFuw=; X-YMail-OSG: L3g7ikMVM1lqw72bx6kXwbZ7.xjcrRN.X2IBp0efKrqe0B2J21Cf_SB5BoC3Xq_KS3T4Cs7V3Aco8YKzQilEMH5xDFjoA1rZ6SCGpgAMDkG4HaaM_vI- Received: from [89.53.20.188] by web30313.mail.mud.yahoo.com via HTTP; Sat, 23 Jun 2007 03:12:39 PDT Date: Sat, 23 Jun 2007 03:12:39 -0700 (PDT) From: Arne "Wörner" To: David Cecil In-Reply-To: <467CEE02.3080406@nokia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <503026.87876.qm@web30313.mail.mud.yahoo.com> Cc: freebsd-geom@freebsd.org Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 10:12:40 -0000 Have you changed other parts of the kernel, so that some other code could free the BIO related memory (e.g. in case of a context switch; and even although it has nothing to do with that BIO; maybe another thread used that memory area somewhen before GEOM alloc-ed it)? :-) -Arne ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 10:18:27 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7647916A421 for ; Sat, 23 Jun 2007 10:18:27 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from mgw-ext12.nokia.com (smtp.nokia.com [131.228.20.171]) by mx1.freebsd.org (Postfix) with ESMTP id DFB4113C465 for ; Sat, 23 Jun 2007 10:18:26 +0000 (UTC) (envelope-from david.cecil@nokia.com) Received: from esebh106.NOE.Nokia.com (esebh106.ntc.nokia.com [172.21.138.213]) by mgw-ext12.nokia.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l5NAI6LR020344; Sat, 23 Jun 2007 13:18:24 +0300 Received: from siebh101.NOE.Nokia.com ([172.30.195.27]) by esebh106.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 13:17:02 +0300 Received: from syebe101.NOE.Nokia.com ([172.30.128.65]) by siebh101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 18:16:55 +0800 Received: from [172.30.67.199] ([172.30.67.199]) by syebe101.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 23 Jun 2007 20:16:53 +1000 Message-ID: <467CF30E.8050108@nokia.com> Date: Sat, 23 Jun 2007 20:16:46 +1000 From: David Cecil User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: "\"\"\"ext Arne W?rner\" \"\"@mgw-mx01.nokia.com" References: <503026.87876.qm@web30313.mail.mud.yahoo.com> In-Reply-To: <503026.87876.qm@web30313.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 23 Jun 2007 10:16:53.0866 (UTC) FILETIME=[9F227CA0:01C7B57F] X-Nokia-AV: Clean Cc: freebsd-geom@freebsd.org Subject: Re: Duplicate free X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 10:18:27 -0000 That possibility has not escaped me Arne. I will pursue that idea to, as we certainly have changed other parts of the kernel (primarily networking). I thought I'd ask, as the problem looked exactly the same as an old one logged a while ago, for which I didn't see evidence of a fix. Regards, Dave ext Arne W?rner" "@mgw-mx01.nokia.com wrote: > Have you changed other parts of the kernel, so that some other code could free > the BIO related memory (e.g. in case of a context switch; and even although it > has nothing to do with that BIO; maybe another thread used that memory area > somewhen before GEOM alloc-ed it)? :-) > > -Arne > > > > > ____________________________________________________________________________________ > Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. > http://smallbusiness.yahoo.com/webhosting > -- Software Engineer Secure and Mobile Connectivity Enterprise Solutions Nokia +61 7 5553 8307 (office) +61 412 728 222 (cell) From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 18:34:59 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4189416A468 for ; Sat, 23 Jun 2007 18:34:59 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpi2.ngi.it (smtpi2.ngi.it [88.149.128.21]) by mx1.freebsd.org (Postfix) with ESMTP id BB87113C465 for ; Sat, 23 Jun 2007 18:34:58 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from k7.diff.org (81-174-26-135.static.ngi.it [81.174.26.135] (may be forged)) by smtpi2.ngi.it (8.13.8/8.13.8) with ESMTP id l5NIYhka006745; Sat, 23 Jun 2007 20:34:43 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by k7.diff.org (8.13.8/8.13.8) with ESMTP id l5NIZQMt078206; Sat, 23 Jun 2007 20:35:27 +0200 (CEST) (envelope-from nonsolosoft@diff.org) Message-ID: <467D67EE.5090507@diff.org> Date: Sat, 23 Jun 2007 20:35:26 +0200 From: Ferruccio Zamuner Organization: NonSoLoSoft - Italy - http://www.nonsolosoft.com/ User-Agent: Thunderbird 1.5.0.9 (X11/20070110) MIME-Version: 1.0 To: freebsd-geom@freebsd.org References: <467D2665.4030903@diff.org> In-Reply-To: <467D2665.4030903@diff.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Ferruccio Zamuner Subject: Re: gmirror and offset X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 18:34:59 -0000 Ferruccio Zamuner wrote: > I've tried to edit bsdlabel: > > r1# bsdlabel -e /dev/mirror/gm0 > > ----- > # /dev/mirror/gm0: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > a: 2097152 0 4.2BSD 0 0 0 > c: 167766732 0 unused 0 0 # "raw" part, > don't edit > e: 12582912 2097152 4.2BSD 0 0 0 > f: 20971520 14680064 4.2BSD 0 0 0 > g: 14680064 35651584 4.2BSD 0 0 0 > h: 117435084 50331648 4.2BSD 0 0 0 > ----- > > BUT bsdlabel writes: > > ----- > partition c: partition extends past end of unit > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard > system utilities > partition h: partition extends past end of unit > re-edit the label? [y]: ----- > modified in: ----- # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 2048 16384 28552 c: 167766731 0 unused 0 0 # "raw" part, don't edit e: 12582912 2097152 4.2BSD 2048 16384 28552 f: 20971520 14680064 4.2BSD 2048 16384 28552 g: 14680064 35651584 4.2BSD 2048 16384 28488 h: 117435083 50331648 4.2BSD 2048 16384 28552 ----- It seems right now. Thank you, \fer From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 19:17:18 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5A98916A421 for ; Sat, 23 Jun 2007 19:17:18 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from smtpi1.ngi.it (smtpi1.ngi.it [88.149.128.20]) by mx1.freebsd.org (Postfix) with ESMTP id ED42113C4B7 for ; Sat, 23 Jun 2007 19:17:17 +0000 (UTC) (envelope-from nonsolosoft@diff.org) Received: from k7.diff.org (81-174-26-135.static.ngi.it [81.174.26.135] (may be forged)) by smtpi1.ngi.it (8.13.8/8.13.8) with ESMTP id l5NDt90m014525; Sat, 23 Jun 2007 15:55:10 +0200 Received: from [127.0.0.1] (localhost [127.0.0.1]) by k7.diff.org (8.13.8/8.13.8) with ESMTP id l5NDtnG7068094; Sat, 23 Jun 2007 15:55:52 +0200 (CEST) (envelope-from nonsolosoft@diff.org) Message-ID: <467D2665.4030903@diff.org> Date: Sat, 23 Jun 2007 15:55:49 +0200 From: Ferruccio Zamuner Organization: NonSoLoSoft - Italy - http://www.nonsolosoft.com/ User-Agent: Thunderbird 1.5.0.9 (X11/20070110) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: nonsolosoft@diff.org Subject: gmirror and offset X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 19:17:18 -0000 /dev/ad4 has running FreeBSD 6.2-RELEASE from where: r1# dd if=/dev/zero of=/dev/ad6 bs=512 count=79 79+0 records in 79+0 records out 40448 bytes transferred in 0.012255 secs (3300543 bytes/sec) r1# /usr/sbin/sysinstall to create ad6s1, ad6s2, ad6s3 and made ad6s1 "active" r1# fdisk /dev/ad6 ******* Working on device /dev/ad6 ******* parameters extracted from in-core disklabel are: cylinders=232581 heads=16 sectors/track=63 (1008 blks/cyl) Figures below won't work with BIOS for partitions not in cyl 1 parameters to be used for BIOS calculations are: cylinders=232581 heads=16 sectors/track=63 (1008 blks/cyl) Media sector size is 512 Warning: BIOS sector numbering starts with sector 1 Information from DOS bootblock is: The data for partition 1 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 63, size 167766732 (81917 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 1023/ head 254/ sector 63 The data for partition 2 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 167766795, size 2104515 (1027 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 3 is: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 169871310, size 64565235 (31525 Meg), flag 0 beg: cyl 1023/ head 255/ sector 63; end: cyl 1023/ head 254/ sector 63 The data for partition 4 is: r1# bsdlabel ad6s1 # /dev/ad6s1: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 167766732 0 unused 0 0 # "raw" part, don't edit I want to create a mirror on ad6s1: r1# gmirror label -h -v -b split -s 4096 gm0 ad6s1 Metadata value stored on ad6s1. Done. r1# gmirror load r1# bsdlabel /dev/mirror/gm0 # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 167766732 63 unused 0 0 # "raw" part, don't edit partition c: partition extends past end of unit bsdlabel: partition c doesn't start at 0! bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities What have I done wrong? I've tried to edit bsdlabel: r1# bsdlabel -e /dev/mirror/gm0 and when I'm in the editor I find: ----- # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 234441632 16 unused 0 0 c: 167766732 63 unused 0 0 # "raw" part, don't edit ----- Then I modify it to: ----- # /dev/mirror/gm0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 2097152 0 4.2BSD 0 0 0 c: 167766732 0 unused 0 0 # "raw" part, don't edit e: 12582912 2097152 4.2BSD 0 0 0 f: 20971520 14680064 4.2BSD 0 0 0 g: 14680064 35651584 4.2BSD 0 0 0 h: 117435084 50331648 4.2BSD 0 0 0 ----- BUT bsdlabel writes: ----- partition c: partition extends past end of unit bsdlabel: partition c doesn't cover the whole unit! bsdlabel: An incorrect partition c may cause problems for standard system utilities partition h: partition extends past end of unit re-edit the label? [y]: ----- How can I fix it? Bye, \fer From owner-freebsd-geom@FreeBSD.ORG Sat Jun 23 19:42:34 2007 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 61AA816A421 for ; Sat, 23 Jun 2007 19:42:34 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: from web30312.mail.mud.yahoo.com (web30312.mail.mud.yahoo.com [209.191.69.74]) by mx1.freebsd.org (Postfix) with SMTP id 1916C13C458 for ; Sat, 23 Jun 2007 19:42:33 +0000 (UTC) (envelope-from arne_woerner@yahoo.com) Received: (qmail 13292 invoked by uid 60001); 23 Jun 2007 19:42:33 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=Exz15e1ap5816ajrjGr3e4IK3HJZIntGbdywq0P99OGRvbx9mpJ98jjn6BvNEjPGr6qOSmuQjXA1YJREONSHMYnYJIavyr6tZC7TUSU5b1DwHbmjAq2BVvvBQw+N34syMGM22qzZ+AQGI6r43FzVgOjGWJRWIwPzoZkhyoorENo=; X-YMail-OSG: jgYF9cAVM1kCx4_9aXPOD_tqkzV0VWLz0ZBUMHAwR3i2wtXbKpq8TzK2FpnAlrPK9Q-- Received: from [89.53.20.188] by web30312.mail.mud.yahoo.com via HTTP; Sat, 23 Jun 2007 12:42:33 PDT Date: Sat, 23 Jun 2007 12:42:33 -0700 (PDT) From: Arne "Wörner" To: Ferruccio Zamuner , freebsd-geom@freebsd.org In-Reply-To: <467D2665.4030903@diff.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <459558.12877.qm@web30312.mail.mud.yahoo.com> Cc: Subject: Re: gmirror and offset X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jun 2007 19:42:34 -0000 --- Ferruccio Zamuner wrote: > The data for partition 1 is: > sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) > start 63, size 167766732 (81917 Meg), flag 80 (active) > beg: cyl 0/ head 1/ sector 1; > end: cyl 1023/ head 254/ sector 63 > r1# gmirror label -h -v -b split -s 4096 gm0 ad6s1 > gmirror uses the last sector of ad6s1 for meta data... See: diskinfo /dev/mirror/gm0 > r1# bsdlabel /dev/mirror/gm0 > # /dev/mirror/gm0: > 8 partitions: > # size offset fstype [fsize bsize bps/cpg] > c: 167766732 63 unused 0 0 # "raw" part, don't > edit > partition c: partition extends past end of unit > bsdlabel: partition c doesn't start at 0! > bsdlabel: partition c doesn't cover the whole unit! > bsdlabel: An incorrect partition c may cause problems for standard system > utilities > > What have I done wrong? > c: is only 167766731 in size... and the offset must be 0 then... The other problems r solved the same way... -Arne ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/