xfs-masters
[Top] [All Lists]

[xfs-masters] [Bug 729] New: Unusable/undelete-able directories during

To: xfs-master@xxxxxxxxxxx
Subject: [xfs-masters] [Bug 729] New: Unusable/undelete-able directories during tarball unpacking
From: bugzilla-daemon@xxxxxxxxxxx
Date: Tue, 28 Nov 2006 13:10:51 -0800
Reply-to: xfs-masters@xxxxxxxxxxx
Sender: xfs-masters-bounce@xxxxxxxxxxx
http://oss.sgi.com/bugzilla/show_bug.cgi?id=729

           Summary: Unusable/undelete-able directories during tarball
                    unpacking
           Product: Linux XFS
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: XFS kernel code
        AssignedTo: xfs-master@xxxxxxxxxxx
        ReportedBy: smckee@xxxxxxxxx


During a tarball unpacking on an 11TB XFS partition directories are created
which are not deleteable or useable. An 'xfs_repair' will fix the problem.

The directories created during the unpack are in
/atlas/data08/OSG/APP/atlas_app/atlas_rel/12.0.3/gcc-alt-3.2.3/include/c++/3.2.3

umfs02:3.2.3]# ls -al
total 0
drwxr-xr-x  2 usatlas1 osg 41 Nov 28 14:32 ./ 
drwxr-xr-x  3 usatlas1 osg 18 Feb  3  2005 ../ 
drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 ctime/ 
drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 iosfwd/ 
drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 new/

Trying a particular "directory" gives:

[umfs02:3.2.3]# ls -al ctime
ls: ctime: Not a directory

I am unable to delete this directory:

[umfs02:3.2.3]# rm -rf ctime
rm: cannot chdir from `.' to `ctime': Not a directory 
[umfs02:3.2.3]# rm -rf ctime/
rm: cannot lstat `ctime/': Not a directory 
[umfs02:3.2.3]# rmdir ctime/
rmdir: `ctime/': Directory not empty

I looked up the i-node info:

[umfs02:3.2.3]# ls -ali
total 0
2147642596 drwxr-xr-x  2 usatlas1 osg 41 Nov 28 14:32 ./
    156997 drwxr-xr-x  3 usatlas1 osg 18 Feb  3  2005 ../
2147648551 drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 ctime/
2147648563 drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 iosfwd/
2147648575 drwxr-xr-x  1 usatlas1 osg  0 Nov 28 14:32 new/

In /var/log/messages I find things like:

Nov 28 14:49:56 umfs02 kernel: dir: inode 2147648551 Nov 28 14:49:56 umfs02
kernel: Filesystem "sda": XFS internal error xfs_da_do_buf(1) at line 2176 of
file fs/xfs/xfs_da_btree.c.  Caller 0xffffffffa016b932 Nov 28 14:49:56 umfs02
kernel: 
Nov 28 14:49:56 umfs02 kernel: Call
Trace:<ffffffffa017a966>{:xfs:xfs_error_report+47}
<ffffffffa016b932>{:xfs:xfs_da_read_buf+22} 
Nov 28 14:49:56 umfs02 kernel:        <ffffffffa016b574>{:xfs:xfs_da_do_buf+678}
<ffffffffa016b932>{:xfs:xfs_da_read_buf+22} 
Nov 28 14:49:56 umfs02 kernel:       
<ffffffffa016bba9>{:xfs:xfs_da_node_lookup_int+145} 
Nov 28 14:49:56 umfs02 kernel:       
<ffffffffa016bba9>{:xfs:xfs_da_node_lookup_int+145} 
Nov 28 14:49:56 umfs02 kernel:       
<ffffffffa0175462>{:xfs:xfs_dir2_node_lookup+64}
<ffffffffa016f75b>{:xfs:xfs_dir2_lookup+248} 
Nov 28 14:49:56 umfs02 kernel:        <ffffffff803188c2>{__down_read+52}
<ffffffffa0194326>{:xfs:xfs_dir_lookup_int+53} 
Nov 28 14:49:56 umfs02 kernel:        <ffffffffa019881c>{:xfs:xfs_lookup+74}
<ffffffffa01a41fc>{:xfs:linvfs_get_parent+75} 
Nov 28 14:49:56 umfs02 kernel:        <ffffffffa017ffb5>{:xfs:xfs_ilock+189}
<ffffffff801900d9>{d_alloc+436} 
Nov 28 14:49:56 umfs02 kernel:        <ffffffff801902d9>{d_alloc_anon+269}
<ffffffffa034b318>{:exportfs:find_exported_dentry+792}

Looking at this node with xfs_db shows:

[umfs02:linux-2.6.9]#  xfs_db -r -c 'inode 2147648551' -c print /dev/sda
core.magic = 0x494e core.mode = 0100000 core.version = 1 core.format = 2 
(extents)
core.nlinkv1 = 1
core.uid = 751564
core.gid = 8002
core.flushiter = 83
core.atime.sec = Tue Nov 28 14:32:01 2006 core.atime.nsec = 857167846
core.mtime.sec = Tue Nov 28 14:32:01 2006 core.mtime.nsec = 857167846
core.ctime.sec = Tue Nov 28 14:32:01 2006 core.ctime.nsec = 857167846 core.size
= 0 core.nblocks = 0 core.extsize = 0 core.nextents = 0 core.naextents = 0
core.forkoff = 0 core.aformat = 2 (extents) core.dmevmask = 0 core.dmstate = 0
core.newrtbm = 0 core.prealloc = 0 core.realtime = 0 core.immutable = 0
core.append = 0 core.sync = 0 core.noatime = 0 core.nodump = 0 core.gen = 3
next_unlinked = null u = (empty)

The kernel info:
[umfs02:linux-2.6.9]# uname -a
Linux umfs02.grid.umich.edu 2.6.9-42.0.3.EL.cernsmp #1 SMP Fri Oct 6 11:52:32
CEST 2006 x86_64 x86_64 x86_64 GNU/Linux

The xfs_info:
[umfs02:linux-2.6.9]# xfs_info /dev/sda
meta-data=/atlas/data08          isize=256    agcount=32, agsize=83923312 blks
         =                       sectsz=512  
data     =                       bsize=4096   blocks=2685545984, imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096  
log      =internal               bsize=4096   blocks=32768, version=1
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0

Let me know if you need further details.

Shawn McKee
University of Michigan Physics

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


<Prev in Thread] Current Thread [Next in Thread>
  • [xfs-masters] [Bug 729] New: Unusable/undelete-able directories during tarball unpacking, bugzilla-daemon <=