From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Chmielewski Subject: ext3 filesystem which can't be corrected? Date: Wed, 02 Apr 2008 17:03:34 +0200 Message-ID: <47F3A046.7020301@wpkg.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit To: LKML Return-path: Received: from mail.syneticon.net ([213.239.212.131]:35605 "EHLO mail2.syneticon.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755275AbYDBPD4 (ORCPT ); Wed, 2 Apr 2008 11:03:56 -0400 Received: from postfix1.syneticon.net (postfix1.syneticon.net [192.168.112.6]) by mail2.syneticon.net (Postfix) with ESMTP id 7A1A062B92 for ; Wed, 2 Apr 2008 17:03:54 +0200 (CEST) Received: from localhost (filter1.syneticon.net [192.168.113.3]) by postfix1.syneticon.net (Postfix) with ESMTP id 01AA8933D for ; Wed, 2 Apr 2008 17:03:53 +0200 (CEST) Received: from postfix1.syneticon.net ([192.168.113.4]) by localhost (mx03.syneticon.net [192.168.113.3]) (amavisd-new, port 10025) with ESMTP id z7+spVblD6Y5 for ; Wed, 2 Apr 2008 17:03:37 +0200 (CEST) Received: from [192.168.10.145] (koln-4d0b61fa.pool.mediaWays.net [77.11.97.250]) by postfix1.syneticon.net (Postfix) with ESMTP for ; Wed, 2 Apr 2008 17:03:37 +0200 (CEST) Sender: linux-fsdevel-owner@vger.kernel.org List-ID: I have a ext3 filesystem which can't (?) be corrected with e2fsck - it shows files having the same inode, with the same names in the same directory. e2fsck passes the check and does not find any errors (well, the first pass showed lots of errors). The filesystem is iSCSI-connected with commit=60 mount option, and initiator was brutally disconnected from the target several times. However: # cd /mnt/1/lost+found/ These are the directories I can't remove: # ls #83363275/ #83378623/ #83379228/ #83379558/ #83380843/ #83380850/ #83380938/ # cd \#83378623/ Let's see what we have there - four files with exactly the same name and inode: # ls -li total 16 73793642 -rw-r----- 179 backuppc backuppc 46 May 14 2007 attrib 73793642 -rw-r----- 179 backuppc backuppc 46 May 14 2007 attrib 73793642 -rw-r----- 179 backuppc backuppc 46 May 14 2007 attrib 73793642 -rw-r----- 179 backuppc backuppc 46 May 14 2007 attrib Let's remove "attrib" file: # rm -f attrib Ouch: # ls ls: attrib: No such file or directory ls: attrib: No such file or directory ls: attrib: No such file or directory When I want to browse the directory i.e. in midnight commander (mc), it shows me three files in red called "?attrib", dated 1 Jan 1970. # cd / # umount /mnt/1 # mount /dev/sda /mnt/1 # cd /mnt/1/lost+found/#83378623/ # ls attrib attrib attrib # rm attrib rm: remove regular file `attrib'? y # ls ls: attrib: No such file or directory ls: attrib: No such file or directory OK, mounting and unmounting just to delete one file is boring, so let's try it another way: # ls ls: cannot access attrib: No such file or directory attrib # echo 3 > /proc/sys/vm/drop_caches # ls attrib # rm attrib rm: remove regular file `attrib'? y # ls # e2fsck comes from e2fsprogs 1.39 - should I try something newer? -- Tomasz Chmielewski http://wpkg.org