public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Nicolas Stransky <nico@stransky.cx>
To: linux-xfs@oss.sgi.com
Subject: Re: Filesystem corrupted: "Sorry, could not find valid secondary superblock"
Date: Mon, 01 Feb 2010 12:29:55 -0500	[thread overview]
Message-ID: <hk732i$8vt$1@ger.gmane.org> (raw)
In-Reply-To: <4B6325E2.2040703@sandeen.net>

Hello,

Unfortunately I am still having big problems with this filesystem. I can
mount it OK but there are problems reading files:

du: cannot access `./DCIS 2 AB': Structure needs cleaning

The previous goes together with a lot of these in dmesg:

[  431.976517] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 ................
[  431.988072] Filesystem "sda1": XFS internal error xfs_da_do_buf(2) at
line 2085 of file fs/xfs/xfs_da_btree.c.  Caller 0xffffffffa016749f
[  431.993185] Pid: 4246, comm: du Not tainted 2.6.26-2-amd64 #1
[  431.998308]
[  431.998309] Call Trace:
[  432.010348]  [<ffffffffa016749f>] :xfs:xfs_da_read_buf+0x24/0x29
[  432.015530]  [<ffffffffa016734d>] :xfs:xfs_da_do_buf+0x54e/0x636
[  432.020696]  [<ffffffffa016749f>] :xfs:xfs_da_read_buf+0x24/0x29
[  432.025860]  [<ffffffffa019580c>] :xfs:_xfs_buf_lookup_pages+0x298/0x2ca
[  432.031974]  [<ffffffffa016749f>] :xfs:xfs_da_read_buf+0x24/0x29
[  432.037173]  [<ffffffffa016c66f>] :xfs:xfs_dir2_leaf_getdents+0x381/0x61a
[  432.042391]  [<ffffffffa016c66f>] :xfs:xfs_dir2_leaf_getdents+0x381/0x61a
[  432.047617]  [<ffffffffa0196f68>] :xfs:xfs_hack_filldir+0x0/0x5b
[  432.052673]  [<ffffffffa0196f68>] :xfs:xfs_hack_filldir+0x0/0x5b
[  432.057517]  [<ffffffffa01695d8>] :xfs:xfs_readdir+0xa6/0xb5
[  432.062197]  [<ffffffffa0196f1b>] :xfs:xfs_file_readdir+0xff/0x14c
[  432.066835]  [<ffffffff802a6bec>] filldir+0x0/0xb7
[  432.071987]  [<ffffffff802a6bec>] filldir+0x0/0xb7
[  432.076557]  [<ffffffff802a6d18>] vfs_readdir+0x75/0xa7
[  432.081137]  [<ffffffff802a6f68>] sys_getdents+0x75/0xbd
[  432.085716]  [<ffffffff802a65da>] sys_fcntl+0x2eb/0x2f7
[  432.090267]  [<ffffffff8020beca>] system_call_after_swapgs+0x8a/0x8f

The server has 2GB of RAM and 4GB of swap. I have tried several times to
xfs_repair but it always fails because of memory problems, even if I use
'xfs_repair -m1500 /dev/sda1' to limit the memory usage.
xfs_repair produces an awful lot of output. I could of course send it
but it's 130k lines long. Here is what it is currently printing, I have
started "xfs_repair -t15 -m500 /dev/sda1" again a few minutes ago. It is
currently in Phase 3.

bp=(bno 1211109312, len 8192 bytes) key=(bno 1211109312, len 4096 bytes)
429f7950: Badness in key lookup (length)
bp=(bno 1211109328, len 8192 bytes) key=(bno 1211109328, len 4096 bytes)
bad directory block magic # 0x2f49cdbc in block 2 for directory inode
2952790372
corrupt block 2 in directory inode 2952790372
        will junk block
bad directory block magic # 0 in block 5 for directory inode 2952790372
corrupt block 5 in directory inode 2952790372
        will junk block
no . entry for directory 2952790372
no .. entry for directory 2952790372
bad directory block magic # 0 in block 0 for directory inode 2952790373
corrupt block 0 in directory inode 2952790373
        will junk block
bad directory block magic # 0 in block 1 for directory inode 2952790373
corrupt block 1 in directory inode 2952790373
        will junk block
doubling cache size to 66768
doubling cache size to 133536
doubling cache size to 267072
doubling cache size to 534144
doubling cache size to 1068288


Any ideas on how I could repair this filesystem?

Thanks a lot!

-- 
Nico

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

      parent reply	other threads:[~2010-02-01 17:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-29 14:42 Filesystem corrupted: "Sorry, could not find valid secondary superblock" Nicolas STRANSKY
2010-01-29 15:38 ` Eric Sandeen
2010-01-29 16:06   ` Nicolas Stransky
2010-01-29 17:12     ` Eric Sandeen
2010-01-29 17:41       ` Nicolas Stransky
2010-01-29 18:16         ` Eric Sandeen
2010-01-29 19:58           ` Nicolas Stransky
2010-02-01 17:29           ` Nicolas Stransky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='hk732i$8vt$1@ger.gmane.org' \
    --to=nico@stransky.cx \
    --cc=linux-xfs@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox