Re: GEOM error

From: Christian Brueffer <chris_at_unixpages.org>
Date: Wed, 23 Nov 2005 22:01:56 +0100
On Tue, Nov 22, 2005 at 02:11:23PM -0800, Doug White wrote:
> On Sun, 20 Nov 2005, Christian Brueffer wrote:
> 
> > 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 restoring
> > > > a large dump
> > > >
> > > > Nov 14 12:30:11 nexus kernel: g_vfs_done():da1s1d.bde[WRITE(offset=72350695424, length=131072)]error = 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 returned 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=383341297664, length=65536)]error = 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)?
> 
> You would get a SCSI error in that case since usb storage is attached
> through CAM.
> 

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

-- 
Christian Brueffer	chris_at_unixpages.org	brueffer_at_FreeBSD.org
GPG Key:	 http://people.freebsd.org/~brueffer/brueffer.key.asc
GPG Fingerprint: A5C8 2099 19FF AACA F41B  B29B 6C76 178C A0ED 982D

Received on Wed Nov 23 2005 - 20:02:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:48 UTC