From owner-freebsd-questions@FreeBSD.ORG Thu Nov 5 00:05:33 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 804EA10656AE for ; Thu, 5 Nov 2009 00:05:33 +0000 (UTC) (envelope-from steven.samuel.cole@gmail.com) Received: from mail-gx0-f218.google.com (mail-gx0-f218.google.com [209.85.217.218]) by mx1.freebsd.org (Postfix) with ESMTP id 33EA78FC2A for ; Thu, 5 Nov 2009 00:05:31 +0000 (UTC) Received: by gxk10 with SMTP id 10so376099gxk.3 for ; Wed, 04 Nov 2009 16:05:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=cBpmNKSkAXEuSidGJjZUow9q0fpweISjpVmmbxHSd5s=; b=MS2TtTcAwPrFro76g+PJZDQYlAMUjbM1BgF4uchbpp/1nU3sX+c+f8c13+JXa4q3Nx x3r++A+htlIea0G7vNOijFvf+GLD+Zzr4nTRkbkrxoyHcGK2Vu8FbDwA9+Ah1FwN0NJe Wl/dLknvITkeEejo2tWaxU3agaac8xfyjQYKk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=s+KoFAxdD1T88VC2E6ODXkeS6dghr3wu24N1wo3cPT99rcJpGxpTXpIZeDe4oXVmSv c+bdOna3uP7Ap33zRn0lKQyJwms+F0sUwnaYcTcOKjuotToDmR9OfnYRRnH+Js6O8o1c 7IwWStGL+GJ9d0OsTM1K+kyZ9vXHODJD7g3Xs= Received: by 10.150.236.18 with SMTP id j18mr3943787ybh.110.1257379531536; Wed, 04 Nov 2009 16:05:31 -0800 (PST) Received: from call.local ([121.98.140.46]) by mx.google.com with ESMTPS id 4sm550490ywg.58.2009.11.04.16.05.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 04 Nov 2009 16:05:30 -0800 (PST) Message-ID: <4AF216C6.8000708@gmail.com> Date: Thu, 05 Nov 2009 13:05:26 +1300 From: Steven Samuel Cole User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: questions@freebsd.org References: <4AF11670.7010603@gmail.com> <4AF1F1A8.7030309@eagle.co.nz> In-Reply-To: <4AF1F1A8.7030309@eagle.co.nz> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Re: [zfs-discuss] ZFS non-zero checksum and permanent error with deleted file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Nov 2009 00:05:33 -0000 Thank you very much for your reply! :-) Trevor Pretty schrieb: > Steven > > I had a similar problem back in 2006 when I was first playing with ZFS. > Jeff Bronwick sent me this. It may (or not) help. I'm not sure if the > number is still the inode. If it is a please let zfs-discuss know. > > >> > I've a non-mirrored zfs file systems which shows the status below. I saw >> > the thread in the archives about working this out but it looks like ZFS >> > messages have changed. How do I find out what file(s) this is? >> > [...] >> > errors: The following persistent errors have been detected: >> > >> > DATASET OBJECT RANGE >> > LOCAL 28905 3262251008-3262382080 >> > > I realize this is a bit lame, but currently the answer is: > > find /LOCAL -mount -inum 28905 > > And yes, we do indeed plan to automate this. ;-) > > Jeff Did your output come from a Solaris system ? I couldn't find anything about a -mount parameter in the find man page, what does it do ? [user@host ~]$ sudo zpool status -v zpool01 ... errors: Permanent errors have been detected in the following files: zpool01:<0x3736a> [user@host ~]$ sudo find /mnt/zpool01/ -inum 3736a find: -inum: 3736a: illegal trailing character [user@host ~]$ sudo find /mnt/zpool01/ -inum 0x3736a find: -inum: 0x3736a: illegal trailing character Apparently, the -inum parameter needs a decimal number: [user@host ~]$ sudo find /mnt/zpool01/ -inum 226154 [user@host ~]$ How could find ever find anything ? The file at that inode as deleted after all. And even if it did find anything, what would I do with the result ?