From owner-freebsd-fs@FreeBSD.ORG Sat Jan 23 08:11:42 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7BFF106566B for ; Sat, 23 Jan 2010 08:11:42 +0000 (UTC) (envelope-from artemb@gmail.com) Received: from mail-iw0-f198.google.com (mail-iw0-f198.google.com [209.85.223.198]) by mx1.freebsd.org (Postfix) with ESMTP id 6FAC38FC19 for ; Sat, 23 Jan 2010 08:11:41 +0000 (UTC) Received: by iwn36 with SMTP id 36so1626871iwn.3 for ; Sat, 23 Jan 2010 00:11:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=cy6hGdaO7YzZNTX5MkbxlpzKuyEsT7jngmssI90bbfA=; b=rYF6CEkG2alU5q9SAsQ0tHgjjRZSPYMS+4RHE3y88ePncgqR8upGkvU5A8JGMDgqgB v8j1/octQa2JMM5bJG4kmqwcXmix05dfD2VZwKVEV3MZyFjx5fcShTQPtraDF6LLsqrz XGGeQFGAEHIP6ZTnmfv+M++SCJW7voODBX0nQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=NtU/ksyjusfnurBJDxAkNmcO9tJNdS2Vu8EnPvrjFSNcGVJkRcAMo8hEI5TGBHWvjV KCmKEVc9zlIRa5LzsPShP5hXDxbFx86IRtHK/cHEB+iQ9I1Kw8KJnHoo2D2EDBULftQs 2WYzwkpT9yfizvbP1DNmbBTckl435vkfDNhjM= MIME-Version: 1.0 Sender: artemb@gmail.com Received: by 10.231.154.197 with SMTP id p5mr3448856ibw.28.1264234301404; Sat, 23 Jan 2010 00:11:41 -0800 (PST) In-Reply-To: <5da0588e1001222223m773648am907267235bdcf882@mail.gmail.com> References: <5da0588e1001222223m773648am907267235bdcf882@mail.gmail.com> Date: Sat, 23 Jan 2010 00:11:41 -0800 X-Google-Sender-Auth: f6c5d204a720992d Message-ID: From: Artem Belevich To: Rich Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-fs Subject: Re: Errors on a file on a zpool: How to remove? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jan 2010 08:11:42 -0000 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 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" >