From owner-freebsd-current@FreeBSD.ORG Wed Nov 23 21:02:22 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5690116A420 for ; Wed, 23 Nov 2005 21:02:22 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from ms-dienst.rz.rwth-aachen.de (ms-1.rz.RWTH-Aachen.DE [134.130.3.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id F36A143D75 for ; Wed, 23 Nov 2005 21:02:05 +0000 (GMT) (envelope-from chris@haakonia.hitnet.rwth-aachen.de) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IQF007R3EFF3A@ms-dienst.rz.rwth-aachen.de> for freebsd-current@freebsd.org; Wed, 23 Nov 2005 22:02:04 +0100 (MET) Received: from relay.rwth-aachen.de ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 23 Nov 2005 22:02:02 +0100 (MET) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by relay.rwth-aachen.de (8.13.3/8.13.3/1) with ESMTP id jANL21jH016382; Wed, 23 Nov 2005 22:02:01 +0100 (MET) Received: from lorien.hitnet.rwth-aachen.de ([137.226.181.92] helo=haakonia.hitnet.rwth-aachen.de) by bigboss.hitnet.rwth-aachen.de with esmtp (Exim 3.35 #1 (Debian)) id 1Ef1kc-0005GT-00; Wed, 23 Nov 2005 22:01:58 +0100 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 2D0363F40B; Wed, 23 Nov 2005 22:01:57 +0100 (CET) Date: Wed, 23 Nov 2005 22:01:56 +0100 From: Christian Brueffer In-reply-to: <20051122141101.G24336@carver.gumbysoft.com> To: Doug White Message-id: <20051123210156.GC1856@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=L6iaP+gRLNZHKoI4; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.11 X-Operating-System: FreeBSD 6.0-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <200511150403.jAF43B6f001417@jerry.xoo.net> <20051119162011.I88861@carver.gumbysoft.com> <20051120011438.GA4194@unixpages.org> <20051122141101.G24336@carver.gumbysoft.com> Cc: Ulf Kieber , freebsd-current@freebsd.org Subject: Re: GEOM error X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Nov 2005 21:02:22 -0000 --L6iaP+gRLNZHKoI4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Nov 22, 2005 at 02:11:23PM -0800, Doug White wrote: > On Sun, 20 Nov 2005, Christian Brueffer wrote: >=20 > > On Sat, Nov 19, 2005 at 04:22:11PM -0800, Doug White wrote: > > > On Tue, 15 Nov 2005, Ulf Kieber wrote: > > > > > > > Re, > > > > > > > > on a 6.0-RELEASE I receive the following error since I tried restor= ing > > > > a large dump > > > > > > > > Nov 14 12:30:11 nexus kernel: g_vfs_done():da1s1d.bde[WRITE(offset= =3D72350695424, length=3D131072)]error =3D 1 > > > > > > > > Besides that, no other errors are logged, especially no SCSI errors. > > > > The problem persists even after the restore has completed. > > > > > > errno 1 is EPERM ("Operation not permitted") and is generally returne= d if > > > you attempt to write somewhere you're not allowed to. Considering the > > > offset is near the end of the disk, GBDE may be trying to prevent you= from > > > overwriting metadata blocks at the end of the partition. How or why > > > restore(8) would be writing there I'm not sure. > > > > > > A SCSI error would return as errno 5 (EIO, "Input/output error"). > > > > > > > I get the same messages with my external USB drive from time to time > > (interestingly also GBDE encrypted). > > > > Nov 20 02:03:30 haakonia kernel: g_vfs_done():da3s2c.bde[WRITE(offset= =3D383341297664, length=3D65536)]error =3D 1 > > > > The message repeats every 30 seconds and trying to unmount the file > > system fails. When I try to shut the system down, the message appears > > n > 50 times followed by a panic. > > > > Is it possible that the system tries to write on a bad sector and > > consequently fails (provided that the on-disk sector remapping also > > fails)? >=20 > You would get a SCSI error in that case since usb storage is attached > through CAM. >=20 Ok. Any suggestion on where to go from here? I can trigger this pretty reliably on the drive. Just have to copy enough data around. - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --L6iaP+gRLNZHKoI4 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDhNjEbHYXjKDtmC0RAkWLAJ0YdRNa8PMuwdPTb/IaD5WTKExv/wCgkH3e WGszBBShJGaKfAQh8JpMrPc= =QVgL -----END PGP SIGNATURE----- --L6iaP+gRLNZHKoI4--