From owner-freebsd-geom@FreeBSD.ORG Sun Dec 17 21:00:31 2006 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 ACD4F16A403 for ; Sun, 17 Dec 2006 21:00:31 +0000 (UTC) (envelope-from yngwie@stilnovo.ws) Received: from mail.stilnovo.ws (217-133-82-240.b2b.tiscali.it [217.133.82.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 306A643CA0 for ; Sun, 17 Dec 2006 21:00:31 +0000 (GMT) (envelope-from yngwie@stilnovo.ws) Received: from [127.0.0.1] (217-133-82-240.b2b.tiscali.it [217.133.82.240]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.stilnovo.ws (Postfix) with ESMTP id 1A4A240AB4 for ; Sun, 17 Dec 2006 22:00:34 +0100 (CET) Message-ID: <4585AFFE.7050202@stilnovo.ws> Date: Sun, 17 Dec 2006 22:00:46 +0100 From: Andrea Montemaggio User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: GEOM Gate: sparc64/i386 compatibility issues? 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 Dec 2006 21:00:31 -0000 Hi there, I've two machines with a 6.1-RELEASE installed on: one is a sparc64 and the another is an i386 machine with a little (and I think not relevant) kernel configuration differences. If I run ggated on the i386 and I try to connect through ggatec from the sparc, ggated exits telling me it has created ggate0 device but the device does not exist in /dev con the sparc machine; moreover, when I run ggatec list (or ggatel list) the machine freezes (not an hard freeze, but there is inability to do anything). Conversely, if I try to export from the sparc and connect from the i386, i get this error from 'ggatec -v': - error: ggatec: ioctl(/dev/ggctl): Invalid argument. From another i386 machine running a 6.1-RELEAS too, everything is ok. All this seems to be a little strange.. Has anybody any ideas? Thanks a lot, Andrea Montemaggio From owner-freebsd-geom@FreeBSD.ORG Mon Dec 18 11:08:42 2006 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 17BA816A515 for ; Mon, 18 Dec 2006 11:08:42 +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 5E87E43CB9 for ; Mon, 18 Dec 2006 11:08:35 +0000 (GMT) (envelope-from owner-bugmaster@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 kBIB8Ok6089897 for ; Mon, 18 Dec 2006 11:08:24 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kBIB8N9N089893 for freebsd-geom@FreeBSD.org; Mon, 18 Dec 2006 11:08:23 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Dec 2006 11:08:23 GMT Message-Id: <200612181108.kBIB8N9N089893@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon 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 Dec 2006 11:08:42 -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 10 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 o kern/105390 geom [geli] filesystem on a md backed by sparse file with s 4 problems total. From owner-freebsd-geom@FreeBSD.ORG Mon Dec 18 11:40:21 2006 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 E186D16A417 for ; Mon, 18 Dec 2006 11:40:21 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1330F43CD2 for ; Mon, 18 Dec 2006 11:39:02 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 4D30045CDA; Mon, 18 Dec 2006 12:07:06 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id ACF47456B1; Mon, 18 Dec 2006 12:07:02 +0100 (CET) Date: Mon, 18 Dec 2006 12:06:49 +0100 From: Pawel Jakub Dawidek To: Andrea Montemaggio Message-ID: <20061218110649.GB73800@garage.freebsd.pl> References: <4585AFFE.7050202@stilnovo.ws> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="kfjH4zxOES6UT95V" Content-Disposition: inline In-Reply-To: <4585AFFE.7050202@stilnovo.ws> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: GEOM Gate: sparc64/i386 compatibility issues? 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 Dec 2006 11:40:22 -0000 --kfjH4zxOES6UT95V Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Dec 17, 2006 at 10:00:46PM +0100, Andrea Montemaggio wrote: > Hi there, > I've two machines with a 6.1-RELEASE installed on: one is a sparc64 and t= he another is an i386 machine > with a little (and I think not relevant) kernel configuration differences. > If I run ggated on the i386 and I try to connect through ggatec from the = sparc, ggated exits telling me > it has created ggate0 device but the device does not exist in /dev con th= e sparc machine; moreover, > when I run ggatec list (or ggatel list) the machine freezes (not an hard = freeze, but there is inability to do anything). > Conversely, if I try to export from the sparc and connect from the i386, > i get this error from 'ggatec -v': > - error: ggatec: ioctl(/dev/ggctl): Invalid argument. > From another i386 machine running a 6.1-RELEAS too, everything is ok. > All this seems to be a little strange.. Has anybody any ideas? I committed a fix for this problem, I think few days ago. Could you try those revisions (on sparc64): src/sbin/ggate/ggated/ggated.c rev. 1.8 src/sbin/ggate/shared/ggate.c rev. 1.7 src/sbin/ggate/shared/ggate.h rev. 1.4 --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --kfjH4zxOES6UT95V Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFhnZJForvXbEpPzQRAkxQAKD0fmbNXhFN1dXloy0Q4ve98HCMDACeOGY9 23DJiD1GgXvAaRdO2lDdcBo= =pDPg -----END PGP SIGNATURE----- --kfjH4zxOES6UT95V-- From owner-freebsd-geom@FreeBSD.ORG Mon Dec 18 14:23:06 2006 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 AD90E16A403 for ; Mon, 18 Dec 2006 14:23:06 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38D1543CAC for ; Mon, 18 Dec 2006 14:21:24 +0000 (GMT) (envelope-from fbsd06@mlists.homeunix.com) Received: from localhost.localdomain (localhost.localdomain [IPv6:::1]) by gumby.homeunix.com (8.13.6/8.13.6) with ESMTP id kBIDMEib001623 for ; Mon, 18 Dec 2006 13:22:15 GMT (envelope-from fbsd06@mlists.homeunix.com) From: RW To: freebsd-geom@freebsd.org Date: Mon, 18 Dec 2006 13:22:13 +0000 User-Agent: KMail/1.9.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612181322.13560.fbsd06@mlists.homeunix.com> Subject: gconcat/gbde DVD encryption problem 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 Dec 2006 14:23:06 -0000 A couple of years ago, I created some DVDs encrypted with gdbe. I used 2 concatenated, file-backed md devices (to avoid the 2GB dvd file limit) and burned them to dvd. The resulting DVD was accessed like this: ---------------------------------------------------------- mount /dvdrw mdconfig -a -t vnode -f /dvdrw/d1 -u 31 mdconfig -a -t vnode -f /dvdrw/d2 -u 32 gconcat create datadvd /dev/md31 /dev/md32 gbde attach /dev/concat/datadvd mount -o ro /dev/concat/datadvd.bde /mnt/dvd ---------------------------------------------------------- The technique worked fine in February 2005, with whatever was the latest release, I haven't used the technique since then until a few days ago, but now I'm having a problem with FreeBSD 6.1. After the mdconfig I get "WARNING: opening backing store: /dvdrw/d1 readonly", which I doubt is the problem. The failure occurs here: # gbde attach /dev/concat/datadvd Enter passphrase: gbde: Attach to concat/datadvd failed: could not access consumer The same problem exists on a newly created disk, so it probably not corruption. And if I copy the two file to hard disk it works. It just seems to be a problem when they are on the DVD. Any ideas on how to fix this. I'm not particularly bothered about the existing disks, but I'd like to create some new ones. From owner-freebsd-geom@FreeBSD.ORG Mon Dec 18 14:31:04 2006 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 889D616A407 for ; Mon, 18 Dec 2006 14:31:04 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id B54F443CB3 for ; Mon, 18 Dec 2006 14:29:20 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id C75AE46DA5; Mon, 18 Dec 2006 15:28:56 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 17BE5487F0; Mon, 18 Dec 2006 15:28:45 +0100 (CET) Date: Mon, 18 Dec 2006 15:28:30 +0100 From: Pawel Jakub Dawidek To: RW Message-ID: <20061218142830.GE73800@garage.freebsd.pl> References: <200612181322.13560.fbsd06@mlists.homeunix.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="WlEyl6ow+jlIgNUh" Content-Disposition: inline In-Reply-To: <200612181322.13560.fbsd06@mlists.homeunix.com> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: freebsd-geom@freebsd.org Subject: Re: gconcat/gbde DVD encryption problem 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 Dec 2006 14:31:04 -0000 --WlEyl6ow+jlIgNUh Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Dec 18, 2006 at 01:22:13PM +0000, RW wrote: > A couple of years ago, I created some DVDs encrypted with gdbe. I used 2= =20 > concatenated, file-backed md devices (to avoid the 2GB dvd file limit) a= nd=20 > burned them to dvd. The resulting DVD was accessed like this: >=20 > ---------------------------------------------------------- > mount /dvdrw >=20 > mdconfig -a -t vnode -f /dvdrw/d1 -u 31 > mdconfig -a -t vnode -f /dvdrw/d2 -u 32 >=20 > gconcat create datadvd /dev/md31 /dev/md32 >=20 > gbde attach /dev/concat/datadvd >=20 > mount -o ro /dev/concat/datadvd.bde /mnt/dvd > ---------------------------------------------------------- >=20 > The technique worked fine in February 2005, with whatever was the latest= =20 > release, I haven't used the technique since then until a few days ago, b= ut=20 > now I'm having a problem with FreeBSD 6.1. After the mdconfig I get "WARN= ING:=20 > opening backing store: /dvdrw/d1 readonly", which I doubt is the problem.= The=20 > failure occurs here: >=20 > # gbde attach /dev/concat/datadvd > Enter passphrase: > gbde: Attach to concat/datadvd failed: could not access consumer >=20 >=20 > The same problem exists on a newly created disk, so it probably not=20 > corruption. And if I copy the two file to hard disk it works. It just se= ems=20 > to be a problem when they are on the DVD. >=20 > Any ideas on how to fix this. I'm not particularly bothered about the exi= sting=20 > disks, but I'd like to create some new ones. The problem is because gbde(4) tries to open provider read-write, which is not possible with CD-ROMs. You can work-around it by doing: (insert 1st CD) # dd if=3D/dev/acd0 of=3D/dvdrw/d1 bs=3D1m (insert 2nd CD) # dd if=3D/dev/acd0 of=3D/dvdrw/d2 bs=3D1m # mdconfig -a -f /dvdrw/d1 -u 31 # mdconfig -a -f /dvdrw/d2 -u 32 # gconcat create datadvd /dev/md31 /dev/md32 # gbde attach /dev/concat/datadvd --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --WlEyl6ow+jlIgNUh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFhqWOForvXbEpPzQRAjSKAJ9Lr0Ps21RpopL2W2FaniNSkRSlUQCggmvL y5Fe2PrPeGvJVBK1Qd9HvZs= =6fyY -----END PGP SIGNATURE----- --WlEyl6ow+jlIgNUh-- From owner-freebsd-geom@FreeBSD.ORG Mon Dec 18 17:25:45 2006 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 463B516A4B3 for ; Mon, 18 Dec 2006 17:25:45 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7A5143CB2 for ; Mon, 18 Dec 2006 17:24:08 +0000 (GMT) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id EBC7A105B1 for ; Mon, 18 Dec 2006 12:01:31 -0500 (EST) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id C716A51982 for ; Mon, 18 Dec 2006 12:01:23 -0500 (EST) From: RW To: freebsd-geom@freebsd.org Date: Mon, 18 Dec 2006 17:01:21 +0000 User-Agent: KMail/1.9.4 References: <200612181322.13560.fbsd06@mlists.homeunix.com> <20061218142830.GE73800@garage.freebsd.pl> In-Reply-To: <20061218142830.GE73800@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200612181701.21543.fbsd06@mlists.homeunix.com> Subject: Re: gconcat/gbde DVD encryption problem 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 Dec 2006 17:25:45 -0000 On Monday 18 December 2006 14:28, Pawel Jakub Dawidek wrote: > On Mon, Dec 18, 2006 at 01:22:13PM +0000, RW wrote: > > # gbde attach /dev/concat/datadvd > > Enter passphrase: > > gbde: Attach to concat/datadvd failed: could not access consumer > > > > > > The same problem exists on a newly created disk, so it probably not > > corruption. And if I copy the two file to hard disk it works. It just > > seems to be a problem when they are on the DVD. > > > > Any ideas on how to fix this. I'm not particularly bothered about the > > existing disks, but I'd like to create some new ones. > > The problem is because gbde(4) tries to open provider read-write, which > is not possible with CD-ROMs. You can work-around it by doing: > > (insert 1st CD) > # dd if=/dev/acd0 of=/dvdrw/d1 bs=1m > (insert 2nd CD) > # dd if=/dev/acd0 of=/dvdrw/d2 bs=1m > # mdconfig -a -f /dvdrw/d1 -u 31 > # mdconfig -a -f /dvdrw/d2 -u 32 > # gconcat create datadvd /dev/md31 /dev/md32 > # gbde attach /dev/concat/datadvd Actually there are no CDs involved, it's a DVD-R with two big files on it, to work around the 2GB filesize limit on ISO 9660 filesystems. I'm aware that I can work around it by copying the files to a hard disk, but two years ago this worked with the data on the DVD without any problems. From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 01:55:10 2006 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 A6D8516A407; Tue, 19 Dec 2006 01:55:10 +0000 (UTC) (envelope-from max@love2party.net) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8230143CB8; Tue, 19 Dec 2006 01:55:03 +0000 (GMT) (envelope-from max@love2party.net) Received: from [88.66.55.136] (helo=amd64.laiers.local) by mrelayeu.kundenserver.de (node=mrelayeu1) with ESMTP (Nemesis), id 0MKwpI-1GwTyk2giz-0007Wz; Tue, 19 Dec 2006 02:41:15 +0100 From: Max Laier Organization: FreeBSD To: Pawel Jakub Dawidek Date: Tue, 19 Dec 2006 02:41:05 +0100 User-Agent: KMail/1.9.4 References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> In-Reply-To: <20061216170910.GC10541@garage.freebsd.pl> X-Face: ,,8R(x[kmU]tKN@>gtH1yQE4aslGdu+2]; R]*pL,U>^H?)gW@49@wdJ`H<=?utf-8?q?=25=7D*=5FBD=0A=09U=5For=3D=5CmOZf764=26nYj=3DJYbR1PW0ud?=>|!~,,CPC.1-D$FG@0h3#'5"k{V]a~.<=?utf-8?q?mZ=7D44=23Se=7Em=0A=09Fe=7E=5C=5DX5B=5D=5Fxj?=(ykz9QKMw_l0C2AQ]}Ym8)fU MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1325855.hogl3VlRi7"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200612190241.13265.max@love2party.net> X-Provags-ID: kundenserver.de abuse@kundenserver.de login:61c499deaeeba3ba5be80f48ecc83056 Cc: Poul-Henning Kamp , freebsd-geom@freebsd.org Subject: Re: gmirror comes up DEGRADED 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: Tue, 19 Dec 2006 01:55:10 -0000 --nextPart1325855.hogl3VlRi7 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 16 December 2006 18:09, Pawel Jakub Dawidek wrote: > On Sat, Dec 16, 2006 at 03:37:15PM +0100, Max Laier wrote: > > Hi, > > > > I'm new to really playing with gmirror and friends, so please forgive > > me if this is a FAQ - my searches didn't turn up anything. Please CC > > me, for I'm not on the list. > > > > Following setup: 6.2-pre as of Wednesday > > > > ad0, ad2 250G ata on > > atapci0@pci0:31:1: class=3D0x010180 card=3D0x80281043 chip=3D0x244b80= 86 > > rev=3D0x05 hdr=3D0x00 > > vendor =3D 'Intel Corporation' > > device =3D '82801BA (ICH2) UltraATA/100 IDE Controller' > > class =3D mass storage > > subclass =3D ATA > > > > mirror/gm0 over ad0, ad2 > > > > mirror/gm0s1 spanning all of the available space on gm0 > > mirror/gm0s1a spanning all of the available space on gm0s1 > > > > mirror/gm0s1a.bde gbde encryption on gm0s1a.bde > > > > Now if I wait for the mirror to get in sync and do a reboot, it comes > > up DEGRADED and resyncs ad0 (again) :-\ Does that mean I have to > > stop everything manually before rebooting? Is there a fundamental > > error in the setup that I can remedy? How do you do this right? It > > certainly is not a good idea to do it the other way round (i.e. > > mirror two gbde provider), right? > > > > Any help greatly appreciated. > > If I read the code properly, the problem you are seeing is because gbde > doesn't close its consumers on shutdown. It opens consumer r1w1e1 on > attach, but it only close it on manual detach. This is wrong. It should > open consumer on first provider open or should close it on shutdown. I > decided not to touch gbde, so you need to ask phk@ or someone else to > fix it. Would it make sense to have a "graceful orphanization" for this kind of=20 things? i.e. an operation with a semantic like "somebody asked me to go=20 away, so next time you get the chance - could you do so as well (for I=20 depend on you being okay with this)?" It seems overly complicated to ask=20 classes that don't require a state save to implement a dedicated hook to=20 go away on system shutdown. For a "graceful orphanization", however, all=20 you need to do is keep a flag in the softc, pass down the request and=20 wait for the open count to drop to zero. Does that sound like it might work? I'd try to dig into it if it makes=20 sense. > I also found a bug in g_bde_access() function: > > if ((cp->acr + dr) =3D=3D 0 && (cp->acw + dw) =3D=3D 0 && (cp->ace + de)= =3D=3D 1) > { > > I think it should be: > > if ((cp->acr + dr) =3D=3D 1 && (cp->acw + dw) =3D=3D 0 && (cp->ace + de)= =3D=3D 1) > { Since *dr is decremented in the body, this seems to be the case indeed. =2D-=20 /"\ Best regards, | mlaier@freebsd.org \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | mlaier@EFnet / \ ASCII Ribbon Campaign | Against HTML Mail and News --nextPart1325855.hogl3VlRi7 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQBFh0M5XyyEoT62BG0RAjieAJ9QYCuLNvIEcZZI/vy6qnUpQ4AmJgCfVeFr KlIEe+TVG95PMc4gk1OSzRI= =NXU+ -----END PGP SIGNATURE----- --nextPart1325855.hogl3VlRi7-- From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 17:59:14 2006 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 36F5916A403 for ; Tue, 19 Dec 2006 17:59:14 +0000 (UTC) (envelope-from pgiessel@mac.com) Received: from achilles.leela.ws (achilles.leela.ws [66.207.162.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25C9943CD0 for ; Tue, 19 Dec 2006 17:59:00 +0000 (GMT) (envelope-from pgiessel@mac.com) Received: from [192.168.123.109] (ip72-192-132-228.sd.sd.cox.net [72.192.132.228]) (authenticated bits=0) by achilles.leela.ws (8.13.6/8.13.6) with ESMTP id kBJHiWii070071 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 19 Dec 2006 08:44:34 -0900 (AKST) (envelope-from pgiessel@mac.com) Message-ID: <45882500.3040401@mac.com> Date: Tue, 19 Dec 2006 09:44:32 -0800 From: "Peter A. Giessel" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.8) Gecko/20061025 Thunderbird/1.5.0.8 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: Ulf Lilleengen References: <45097F3B.2060606@dot.state.ak.us> <20060915125607.GA2722@stud.ntnu.no> <450ACB69.3090704@dot.state.ak.us> <20061215234229.GA11754@vimes.studby.ntnu.no> In-Reply-To: <20061215234229.GA11754@vimes.studby.ntnu.no> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-geom@freebsd.org Subject: Re: Replacing failed drive in gvinum causes panic 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: Tue, 19 Dec 2006 17:59:14 -0000 On 2006/12/15 15:42, Ulf Lilleengen seems to have typed: > How did it go? I forgot all about this as I became busy with school, sorry. > Changing the labels shouldn't be necessary, but the drive you're replacing with > should have at least the same labelsize as the one you replacing. DriveSavers managed to rescue the data. > This guide says more on this. > http://www.vinumvm.org/vinum/replacing-drive.html yes, we followed that letter by letter, the array would refuse to come back up. From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 18:21:13 2006 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 502AD16A412 for ; Tue, 19 Dec 2006 18:21:13 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from aposerv.p-i-n.com (aposerv.p-i-n.com [62.156.172.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9052A43CA0 for ; Tue, 19 Dec 2006 18:21:12 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (pinserv2.p-i-n.com [10.101.240.52]) by aposerv.p-i-n.com (8.12.11/8.12.11) with ESMTP id kBJHkNED032765 for ; Tue, 19 Dec 2006 18:46:23 +0100 (CET) (envelope-from rabe@p-i-n.com) Received: from pinserv2.p-i-n.com (localhost.p-i-n.com [127.0.0.1]) by p-i-n.com (8.13.6/8.13.6) with ESMTP id kBJHkIgB074009 for ; Tue, 19 Dec 2006 18:46:18 +0100 (CET) (envelope-from rabe@pinserv2.p-i-n.com) Received: (from rabe@localhost) by pinserv2.p-i-n.com (8.13.6/8.13.6/Submit) id kBJHkI0M074008 for freebsd-geom@freebsd.org; Tue, 19 Dec 2006 18:46:18 +0100 (CET) (envelope-from rabe) Resent-Message-Id: <200612191746.kBJHkI0M074008@pinserv2.p-i-n.com> Date: Thu, 14 Dec 2006 19:49:40 +0100 From: "Raphael H. Becker" To: freebsd-geom@freebsd.org Message-ID: <20061214184940.GA50750@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.2i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Resent-From: "Raphael H. Becker" Resent-Date: Tue, 19 Dec 2006 18:46:18 +0100 Resent-To: freebsd-geom@freebsd.org Subject: gstripe oder graid3 on USB-Sticks 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: Tue, 19 Dec 2006 18:21:13 -0000 Hello *, today I bought 3 USB sticks to find out, if there's something to play with GEOM on it. My FreeBSD ist 6.2-RC1. umass0: SanDisk Corporation Cruzer Micro, rev 2.00/0.10, addr 3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C) # graid3 status sticks Name Status Components raid3/sticks COMPLETE da1 da2 da0 I newfs'd this stick-RAID3 and dd'd about 1G /dev/zero into a file, gives me about 8MB/sec. Trying to read this file using dd seems to deadlock the device, dd is'nt interruptable by SIGHUP (^C) until removing one stick of the mounted raid3, which causes an error. umount /mnt works. umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: at uhub4 port 4 (addr 3) disconnected (da0:umass-sim0:0:0:0): lost device GEOM_RAID3: Device sticks: provider da0 disconnected. (da0:dead_sim0:0:0:0): Synchronize cache failed, status == 0x8, scsi status == 0x0 (da0:dead_sim0:0:0:0): removing device entry GEOM_RAID3: Request failed (error=22). da0[READ(offset=12872192, length=65536)] umass0: detached After reinserting the stick, the automatic rebuild begins and finishes successfully: umass0: SanDisk Corporation Cruzer Micro, rev 2.00/0.10, addr 3 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device da0: 40.000MB/s transfers da0: 977MB (2001888 512 byte sectors: 64H 32S/T 977C) GEOM_RAID3: Device sticks: provider da0 detected. GEOM_RAID3: Device sticks: rebuilding provider da0. GEOM_RAID3: Device sticks: rebuilding provider da0 finished. GEOM_RAID3: Device sticks: provider da0 activated. Remounting / umount works: root@daemon:~# mount /dev/raid3/stickss1 /mnt/ root@daemon:~# mount /dev/raid3/stickss1 on /mnt (ufs, local) root@daemon:~# umount ... but fsck the umounted filesystem root@daemon:~# fsck /dev/raid3/stickss1 fsck: Could not determine filesystem type Any idea about this? Is this geom-specific? Or USB-stick related? Can anyone else reproduce this behaviour (lock when reading)? From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 22:05:27 2006 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 034F616A407 for ; Tue, 19 Dec 2006 22:05:27 +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 8B62243CA6 for ; Tue, 19 Dec 2006 22:05:17 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gwm0x-0001pJ-4Q for freebsd-geom@freebsd.org; Tue, 19 Dec 2006 21:56:43 +0100 Received: from 89-172-47-128.adsl.net.t-com.hr ([89.172.47.128]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Dec 2006 21:56:43 +0100 Received: from ivoras by 89-172-47-128.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 Dec 2006 21:56:43 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Tue, 19 Dec 2006 21:54:50 +0100 Lines: 38 Message-ID: References: <20061214184940.GA50750@p-i-n.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig4113C3AFA587C3D7F77399C4" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-47-128.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <20061214184940.GA50750@p-i-n.com> X-Enigmail-Version: 0.94.1.2 Sender: news Subject: Re: gstripe oder graid3 on USB-Sticks 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: Tue, 19 Dec 2006 22:05:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig4113C3AFA587C3D7F77399C4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Raphael H. Becker wrote: > Hello *, >=20 > today I bought 3 USB sticks to find out, if there's something to play=20 > with GEOM on it. My FreeBSD ist 6.2-RC1. > umass0: BBB reset failed, IOERROR As someone who had the same idea recently I can tell you that the problem you're seeing is almost certainly in the motherboard. My sticks draw ~250 mA, but it turns out my 4 USB ports are wired such that they all share the same 500 mA source, resulting in weird and random appearing errors when all three are connected. Try finding separately powered USB ports (new motherboards often have them on board but lack the connectors). --------------enig4113C3AFA587C3D7F77399C4 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.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiFGbldnAQVacBcgRAjG6AJ9IURzHs0VzFT0Xx1mkwqVUVO5iSgCguD/+ bfXkWcAhUcQFCdhlqdpvbzY= =WjVM -----END PGP SIGNATURE----- --------------enig4113C3AFA587C3D7F77399C4-- From owner-freebsd-geom@FreeBSD.ORG Tue Dec 19 23:34:03 2006 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 BCA8D16A407 for ; Tue, 19 Dec 2006 23:34:03 +0000 (UTC) (envelope-from rabe@p-i-n.com) Received: from aposerv.p-i-n.com (aposerv.p-i-n.com [62.156.172.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CEA843CBE for ; Tue, 19 Dec 2006 23:33:49 +0000 (GMT) (envelope-from rabe@p-i-n.com) Received: from p-i-n.com (pinserv2.p-i-n.com [10.101.240.52]) by aposerv.p-i-n.com (8.12.11/8.12.11) with ESMTP id kBJNXldw042633; Wed, 20 Dec 2006 00:33:47 +0100 (CET) (envelope-from rabe@p-i-n.com) Received: from pinserv2.p-i-n.com (localhost.p-i-n.com [127.0.0.1]) by p-i-n.com (8.13.6/8.13.6) with ESMTP id kBJNXiHN076667; Wed, 20 Dec 2006 00:33:44 +0100 (CET) (envelope-from rabe@pinserv2.p-i-n.com) Received: (from rabe@localhost) by pinserv2.p-i-n.com (8.13.6/8.13.6/Submit) id kBJNXiaB076666; Wed, 20 Dec 2006 00:33:44 +0100 (CET) (envelope-from rabe) Date: Wed, 20 Dec 2006 00:33:44 +0100 From: "Raphael H. Becker" To: Ivan Voras Message-ID: <20061219233344.GA75640@p-i-n.com> References: <20061214184940.GA50750@p-i-n.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.2i Organization: PHOENIX Pharmahandel AG & Co KG, Mannheim, Deutschland Cc: freebsd-geom@freebsd.org Subject: Re: gstripe oder graid3 on USB-Sticks 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: Tue, 19 Dec 2006 23:34:03 -0000 Hello Ivan, On Tue, Dec 19, 2006 at 09:54:50PM +0100, Ivan Voras wrote: > Raphael H. Becker wrote: > > Hello *, > > > > today I bought 3 USB sticks to find out, if there's something to play > > with GEOM on it. My FreeBSD ist 6.2-RC1. > > > umass0: BBB reset failed, IOERROR This happened on pulling one of the three sticks. > As someone who had the same idea recently I can tell you that the > problem you're seeing is almost certainly in the motherboard. My sticks > draw ~250 mA, but it turns out my 4 USB ports are wired such that they > all share the same 500 mA source, resulting in weird and random > appearing errors when all three are connected. > > Try finding separately powered USB ports (new motherboards often have > them on board but lack the connectors). I use them on a USB hub with an external power supply. I don't think this is a power-issue cause I tried this last year using two self powered USB2.0 HDD with geom-stripe. Same result: writing is pretty good, reading a file using dd locks up. (6.0-RELEASE) Maybe, I will try this next days, it is an issue about reading parallel from different devices on a USB hub, which (probably) cannot satisfy two concurrent tasks at the same time at the same root-hub/port. gstripe3 was able to rebuild the RAID after re-inserting an arbitrary stick of the 3, so USB+GEOM seems to be fine here. Maybe this I completly unrelated to GEOM, I cannot guess this. Regards Raphael From owner-freebsd-geom@FreeBSD.ORG Wed Dec 20 15:58:18 2006 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 0A44116A47B for ; Wed, 20 Dec 2006 15:58:18 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7128A43CB9 for ; Wed, 20 Dec 2006 15:58:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id 2C275456B1; Wed, 20 Dec 2006 16:57:55 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id C8BB245683; Wed, 20 Dec 2006 16:57:49 +0100 (CET) Date: Wed, 20 Dec 2006 16:57:36 +0100 From: Pawel Jakub Dawidek To: Max Laier Message-ID: <20061220155736.GD88356@garage.freebsd.pl> References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> <200612190241.13265.max@love2party.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IDYEmSnFhs3mNXr+" Content-Disposition: inline In-Reply-To: <200612190241.13265.max@love2party.net> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Poul-Henning Kamp , freebsd-geom@freebsd.org Subject: Re: gmirror comes up DEGRADED 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 Dec 2006 15:58:18 -0000 --IDYEmSnFhs3mNXr+ Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 19, 2006 at 02:41:05AM +0100, Max Laier wrote: > On Saturday 16 December 2006 18:09, Pawel Jakub Dawidek wrote: > > On Sat, Dec 16, 2006 at 03:37:15PM +0100, Max Laier wrote: > > > Hi, > > > > > > I'm new to really playing with gmirror and friends, so please forgive > > > me if this is a FAQ - my searches didn't turn up anything. Please CC > > > me, for I'm not on the list. > > > > > > Following setup: 6.2-pre as of Wednesday > > > > > > ad0, ad2 250G ata on > > > atapci0@pci0:31:1: class=3D0x010180 card=3D0x80281043 chip=3D0x244b= 8086 > > > rev=3D0x05 hdr=3D0x00 > > > vendor =3D 'Intel Corporation' > > > device =3D '82801BA (ICH2) UltraATA/100 IDE Controller' > > > class =3D mass storage > > > subclass =3D ATA > > > > > > mirror/gm0 over ad0, ad2 > > > > > > mirror/gm0s1 spanning all of the available space on gm0 > > > mirror/gm0s1a spanning all of the available space on gm0s1 > > > > > > mirror/gm0s1a.bde gbde encryption on gm0s1a.bde > > > > > > Now if I wait for the mirror to get in sync and do a reboot, it comes > > > up DEGRADED and resyncs ad0 (again) :-\ Does that mean I have to > > > stop everything manually before rebooting? Is there a fundamental > > > error in the setup that I can remedy? How do you do this right? It > > > certainly is not a good idea to do it the other way round (i.e. > > > mirror two gbde provider), right? > > > > > > Any help greatly appreciated. > > > > If I read the code properly, the problem you are seeing is because gbde > > doesn't close its consumers on shutdown. It opens consumer r1w1e1 on > > attach, but it only close it on manual detach. This is wrong. It should > > open consumer on first provider open or should close it on shutdown. I > > decided not to touch gbde, so you need to ask phk@ or someone else to > > fix it. >=20 > Would it make sense to have a "graceful orphanization" for this kind of= =20 > things? i.e. an operation with a semantic like "somebody asked me to go= =20 > away, so next time you get the chance - could you do so as well (for I=20 > depend on you being okay with this)?" It seems overly complicated to ask= =20 > classes that don't require a state save to implement a dedicated hook to= =20 > go away on system shutdown. For a "graceful orphanization", however, all= =20 > you need to do is keep a flag in the softc, pass down the request and=20 > wait for the open count to drop to zero. Most classes don't have to open provider below immediately - they open them on first open of their providers. For example BSD class doesn't hold MBR provider open if not needed. When you open ad0s1a, BSD class opens ad0s1, then MBR class opens ad0. Some classes have to keep providers open all the time or it's just easier that way, because of complex error handling. MIRROR class for example may want to synchronize components even if its provider is not open. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --IDYEmSnFhs3mNXr+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFiV1wForvXbEpPzQRAiztAKCdgC6x3aFA3ou2bNLRfSP8RatQuACdEFGb EURZZ1Jk3xbtBbHo0K4yK0c= =K58B -----END PGP SIGNATURE----- --IDYEmSnFhs3mNXr+-- From owner-freebsd-geom@FreeBSD.ORG Wed Dec 20 16:05:15 2006 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 4732916A40F for ; Wed, 20 Dec 2006 16:05:15 +0000 (UTC) (envelope-from pjd@garage.freebsd.pl) Received: from mail.garage.freebsd.pl (arm132.internetdsl.tpnet.pl [83.17.198.132]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1977A43CA3 for ; Wed, 20 Dec 2006 16:03:07 +0000 (GMT) (envelope-from pjd@garage.freebsd.pl) Received: by mail.garage.freebsd.pl (Postfix, from userid 65534) id CD18746DA5; Wed, 20 Dec 2006 17:02:47 +0100 (CET) Received: from localhost (pjd.wheel.pl [10.0.1.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.garage.freebsd.pl (Postfix) with ESMTP id 67F3B4569A; Wed, 20 Dec 2006 17:02:43 +0100 (CET) Date: Wed, 20 Dec 2006 17:02:29 +0100 From: Pawel Jakub Dawidek To: Max Laier Message-ID: <20061220160229.GE88356@garage.freebsd.pl> References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> <200612190241.13265.max@love2party.net> <20061220155736.GD88356@garage.freebsd.pl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="XuV1QlJbYrcVoo+x" Content-Disposition: inline In-Reply-To: <20061220155736.GD88356@garage.freebsd.pl> X-PGP-Key-URL: http://people.freebsd.org/~pjd/pjd.asc X-OS: FreeBSD 7.0-CURRENT i386 User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on mail.garage.freebsd.pl X-Spam-Level: X-Spam-Status: No, score=-5.9 required=3.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.0.4 Cc: Poul-Henning Kamp , freebsd-geom@freebsd.org Subject: Re: gmirror comes up DEGRADED 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 Dec 2006 16:05:15 -0000 --XuV1QlJbYrcVoo+x Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 20, 2006 at 04:57:36PM +0100, Pawel Jakub Dawidek wrote: > On Tue, Dec 19, 2006 at 02:41:05AM +0100, Max Laier wrote: > > Would it make sense to have a "graceful orphanization" for this kind of= =20 > > things? i.e. an operation with a semantic like "somebody asked me to g= o=20 > > away, so next time you get the chance - could you do so as well (for I= =20 > > depend on you being okay with this)?" It seems overly complicated to a= sk=20 > > classes that don't require a state save to implement a dedicated hook t= o=20 > > go away on system shutdown. For a "graceful orphanization", however, a= ll=20 > > you need to do is keep a flag in the softc, pass down the request and= =20 > > wait for the open count to drop to zero. >=20 > Most classes don't have to open provider below immediately - they open > them on first open of their providers. For example BSD class doesn't hold > MBR provider open if not needed. When you open ad0s1a, BSD class opens > ad0s1, then MBR class opens ad0. Some classes have to keep providers > open all the time or it's just easier that way, because of complex error > handling. MIRROR class for example may want to synchronize components > even if its provider is not open. Let me add the conclusion. For those simple GEOM classes that don't have to use shutdown hooks. --=20 Pawel Jakub Dawidek http://www.wheel.pl pjd@FreeBSD.org http://www.FreeBSD.org FreeBSD committer Am I Evil? Yes, I Am! --XuV1QlJbYrcVoo+x Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFiV6VForvXbEpPzQRAsulAJ9Yn2siS1dWXObbg3Q3rWcSyZUfQQCdFeQ5 ASYQCKpBwRQ73qw6JLzBXYk= =XtaY -----END PGP SIGNATURE----- --XuV1QlJbYrcVoo+x-- From owner-freebsd-geom@FreeBSD.ORG Wed Dec 20 18:19:59 2006 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 99F9C16A4A0 for ; Wed, 20 Dec 2006 18:19:59 +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 07D5543CA2 for ; Wed, 20 Dec 2006 18:19:57 +0000 (GMT) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gx62c-0000wy-Go for freebsd-geom@freebsd.org; Wed, 20 Dec 2006 19:19:46 +0100 Received: from 89-172-37-210.adsl.net.t-com.hr ([89.172.37.210]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Dec 2006 19:19:46 +0100 Received: from ivoras by 89-172-37-210.adsl.net.t-com.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Dec 2006 19:19:46 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Wed, 20 Dec 2006 19:19:18 +0100 Lines: 31 Message-ID: References: <200612161537.21348.max@love2party.net> <20061216170910.GC10541@garage.freebsd.pl> <200612190241.13265.max@love2party.net> <20061220155736.GD88356@garage.freebsd.pl> <20061220160229.GE88356@garage.freebsd.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig0927FD5E3F8139047F6EAB40" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 89-172-37-210.adsl.net.t-com.hr User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) In-Reply-To: <20061220160229.GE88356@garage.freebsd.pl> X-Enigmail-Version: 0.94.1.2 Sender: news Subject: Re: gmirror comes up DEGRADED 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 Dec 2006 18:19:59 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig0927FD5E3F8139047F6EAB40 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Pawel Jakub Dawidek wrote: > Let me add the conclusion. For those simple GEOM classes that don't hav= e > to use shutdown hooks. =2E..though a GEOM-provided shutdown hook (destroy event) would be very very nice, and it'a shame it doesn't exist. --------------enig0927FD5E3F8139047F6EAB40 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.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFFiX6xldnAQVacBcgRAkuZAJ9EFaWFNFDXxQICRhqIb7tWzotMDgCg3A+n P0pWKQ02F2oVc07ugNHMrwA= =/zcc -----END PGP SIGNATURE----- --------------enig0927FD5E3F8139047F6EAB40-- From owner-freebsd-geom@FreeBSD.ORG Fri Dec 22 22:14:13 2006 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 8D6BB16A416 for ; Fri, 22 Dec 2006 22:14:13 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id 64F6D13C441 for ; Fri, 22 Dec 2006 22:14:09 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id 28ED1107E8 for ; Fri, 22 Dec 2006 12:53:03 -0500 (EST) Received: from gumby.homeunix.com (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id C90B051CD5 for ; Fri, 22 Dec 2006 12:52:02 -0500 (EST) Date: Fri, 22 Dec 2006 17:51:59 +0000 From: RW To: freebsd-geom@freebsd.org Message-ID: <20061222175159.1c3d3921@gumby.homeunix.com> In-Reply-To: <200612181701.21543.fbsd06@mlists.homeunix.com> References: <200612181322.13560.fbsd06@mlists.homeunix.com> <20061218142830.GE73800@garage.freebsd.pl> <200612181701.21543.fbsd06@mlists.homeunix.com> X-Mailer: Sylpheed-Claws 2.6.0 (GTK+ 2.10.6; i386-portbld-freebsd6.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: gconcat/gbde DVD encryption problem 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: Fri, 22 Dec 2006 22:14:13 -0000 On Mon, 18 Dec 2006 17:01:21 +0000 RW wrote: > On Monday 18 December 2006 14:28, Pawel Jakub Dawidek wrote: > > On Mon, Dec 18, 2006 at 01:22:13PM +0000, RW wrote: > > > > # gbde attach /dev/concat/datadvd > > > Enter passphrase: > > > gbde: Attach to concat/datadvd failed: could not access consumer > > > > > > > > > The same problem exists on a newly created disk, so it probably > > > not corruption. And if I copy the two file to hard disk it > > > works. It just seems to be a problem when they are on the DVD. > > > > > > Any ideas on how to fix this. I'm not particularly bothered about > > > the existing disks, but I'd like to create some new ones. > > > > The problem is because gbde(4) tries to open provider read-write, > > which is not possible ... > I'm aware that I can work around it by copying the files to a hard > disk, but two years ago this worked with the data on the DVD without > any problems. So is that it? Is it no longer possible to create an encrypted CDR or DVD+/-R? Does the equivalent method work with GELI?