Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Jan 2010 00:11:41 -0800
From:      Artem Belevich <fbsdlist@src.cx>
To:        Rich <rincebrain@gmail.com>
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: Errors on a file on a zpool: How to remove?
Message-ID:  <ed91d4a81001230011t7aef2da8h3be13d2494c06550@mail.gmail.com>
In-Reply-To: <5da0588e1001222223m773648am907267235bdcf882@mail.gmail.com>
References:  <5da0588e1001222223m773648am907267235bdcf882@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The directory that those files are in may be corrupted. What does
zpool status -v show?

You may want to scrub the pool if you haven't done so yet. That would
help to find all corrupted files.

When plain files are corrupted, you should be able to remove them. You
may also try to set atime=off on the filesystem to avoid filesystem
updates on reads.
Some time back when I had zpool corruption I've found no way to remove
corrupted directory that still had some files in it. In the end I had
to rebuild the pool.

BTW, given that your pool did get corrupted, perhaps it might be a
good idea to start moving your data somewhere else rather than worry
about how to remove corrupted files. If corruption is due to bad
hardware, bad files would just keep popping up.

--Artem



On Fri, Jan 22, 2010 at 10:23 PM, Rich <rincebrain@gmail.com> wrote:
> Hey world,
> I've got a series of files in a non-redundant zpool which all report
> Input/Output Error on attempting to manipulate them in any way - stat,
> read, rm, anything.
>
> Whenever anything is attempted, the following style of thing is
> printed to /var/log/messages:
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da4 offset=1231402180608 size=8192
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da5 offset=446136819712 size=8192
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da2 offset=320393101312 size=8192
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da5 offset=446136819712 size=8192
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da2 offset=320393101312 size=8192
> Jan 23 01:22:34 manticore root: ZFS: checksum mismatch, zpool=rigatoni
> path=/dev/da4 offset=1231402180608 size=8192
> Jan 23 01:22:35 manticore root: ZFS: zpool I/O failure, zpool=rigatoni error=86
>
> What can I do? I really would like to just purge all of these files
> from orbit, since I can recreate them, but I can't seem to delete
> them, and deleting the pool is a really inconvenient option, as I have
> other data on it.
>
> I'm running 8.0-RELEASE stock on amd64.
>
> Thanks!
>
> - Rich
> _______________________________________________
> freebsd-fs@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ed91d4a81001230011t7aef2da8h3be13d2494c06550>