From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from koch.ro ([88.198.2.104]:45115 "EHLO koch.ro" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756060Ab3FMTpk convert rfc822-to-8bit (ORCPT ); Thu, 13 Jun 2013 15:45:40 -0400 From: Thomas Koch Reply-To: thomas@koch.ro To: Josef Bacik Subject: Re: Stale NFS file handle after power loss Date: Thu, 13 Jun 2013 21:45:29 +0200 Cc: "linux-btrfs@vger.kernel.org" References: <65278856.dWSg6uQ8zb@x121e> <20130610130047.GA10307@localhost.localdomain> <4263017.nb4SMd4E6p@x121e> In-Reply-To: <4263017.nb4SMd4E6p@x121e> MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Message-Id: <201306132145.29326.thomas@koch.ro> Sender: linux-btrfs-owner@vger.kernel.org List-ID: Thomas Koch: > On Monday, June 10, 2013 09:00:47 AM Josef Bacik wrote: > > On Sat, Jun 08, 2013 at 01:14:35PM -0600, Thomas Koch wrote: > > > Hi, > > > > > > I had a power loss on my btrfs file system during package installation > > > and now I found this: > > > > > > > > > % ls -l /var/lib/dpkg/tmp.ci > > > ls: cannot access /var/lib/dpkg/tmp.ci/conffiles: Stale NFS file handle > > > ls: cannot access /var/lib/dpkg/tmp.ci/md5sums: Stale NFS file handle > > > total 0 > > > -????????? ? ? ? ? ? conffiles > > > -????????? ? ? ? ? ? md5sums > > > % sudo rm -rf /var/lib/dpkg/tmp.ci/conffiles > > > rm: cannot remove ‘/var/lib/dpkg/tmp.ci/conffiles’: Stale NFS file > > > handle > > > > > > I booted with a live system and ran btrfsck (without --repair!) but > > > this did not change the situation. Unfortunately I wasn't clever > > > enough to save the output of btrfsck somehow. Do you need it? > > > > > > Could you help me to get rid of these bogus files, please? > > > > Don't run with --repair, but please capture the output so I can see > > what's going wrong. Thanks, > > > > Josef > > sudo btrfsck /dev/x121e/root > checking extents > checking fs roots > root 5 inode 9319255 errors 1040 > root 5 inode 9698560 errors 1000 > root 5 inode 11591532 errors 2001 > unresolved ref dir 11591531 index 2 namelen 9 name conffiles > filetype 1 error 4 > root 5 inode 11591534 errors 2001 > unresolved ref dir 11591531 index 4 namelen 7 name md5sums filetype > 1 error 4 > found 270172975104 bytes used err is 1 > total csum bytes: 261797296 > total tree bytes: 2063106048 > total fs tree bytes: 1575575552 > btree space waste bytes: 561459705 > file data blocks allocated: 386128334848 > referenced 262981738496 > Btrfs Btrfs v0.19 Hi Josef, do you think that you might find some solution to this problem or should I plan to re-setup my machine? Regards, Thomas Koch, http://www.koch.ro