All of lore.kernel.org
 help / color / mirror / Atom feed
From: dennis-peiler-hi6Y0CQ0nG0@public.gmane.org
To: NILFS Users mailing list <users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org>
Subject: Re: Kernel Bug after corrupted filesystem
Date: Thu, 01 Jan 2009 09:34:00 +0100	[thread overview]
Message-ID: <20090101083400.24930@gmx.net> (raw)
In-Reply-To: <20081231.233620.76970897.ryusuke-sG5X7nlA6pw@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 827 bytes --]

> 
> Thanks.
> Well, could you try to get some information with a debug build module?
> 
> First, pull the latest code from our git repository.
> 
> The debug build module can be built by commenting out the following
> line of the fs/Makefile.
> 
>    #CONFIG_NILFS_DEBUG=y
> 
> Then, set debug levels before mounting as follows:
> 
>   # modprobe nilfs2
>   # echo "-vvv fs -vvv recovery -vvv mdt -vvv btnode -vv dat" >
> /proc/fs/nilfs2/debug_option
>   # mount -t nilfs2 /dev/xxx /test
> 
> This will log some more information in syslog including
> block addresses.
> What I'd like to see next is content of key disk blocks, but first
> we need to know rough situation.
> 
Hi and happy new year,
ok have done that and atached the log hope this information is usefull and I hope this helps to further improve nilfs

Robinx99

[-- Attachment #2: dmsg --]
[-- Type: application/octet-stream, Size: 7022 bytes --]

[ 1403.410728] NILFS nilfs_fill_super: start(silent=0)
[ 1403.410743] NILFS init_nilfs: called
[ 1403.410797] NILFS init_nilfs: loading super block
[ 1403.522848] NILFS init_nilfs: checking magic number
[ 1403.523456] NILFS init_nilfs: storing disk layout
[ 1403.523469] NILFS init_nilfs: done (err=0)
[ 1403.523985] NILFS(recovery) nilfs_search_super_root: looking segment (seg_start=24576, seg_end=26623, segnum=12, seg_seq=51994)
[ 1403.523997] NILFS(recovery) load_segment_summary: checking segment (pseg_start=24576, full_check=1)
[ 1403.550875] NILFS(recovery) load_segment_summary: done (ret=0)
[ 1403.550890] NILFS(recovery) load_segment_summary: checking segment (pseg_start=24578, full_check=1)
[ 1403.553235] NILFS(recovery) load_segment_summary: done (ret=3)
[ 1403.553246] NILFS(recovery) nilfs_search_super_root: strayed: scan_newer=1, ret=3
[ 1403.553253] NILFS(recovery) nilfs_search_super_root: looking segment (seg_start=28672, seg_end=30719, segnum=14, seg_seq=51995)
[ 1403.553260] NILFS(recovery) load_segment_summary: checking segment (pseg_start=28672, full_check=1)
[ 1403.574651] NILFS(recovery) load_segment_summary: done (ret=4)
[ 1403.574663] NILFS(recovery) nilfs_search_super_root: strayed: scan_newer=1, ret=4
[ 1403.574670] NILFS(recovery) nilfs_search_super_root: found super root: segnum=12, seq=51994, pseg_start=24576, pseg_offset=2
[ 1403.574677] NILFS nilfs_load_super_root: called (sr_block=24577)
[ 1403.576256] NILFS nilfs_load_super_root: done (err=0)
[ 1403.576637] NILFS(mdt) nilfs_mdt_read_block: called (ino=4, blkoff=0)
[ 1403.577506] NILFS(btnode) nilfs_btnode_submit_block: called: blocknr=667027 pblocknr=0 new=0 ino=4
[ 1403.577961] NILFS(dat) nilfs_dat_translate: called (vblocknr=667027)
[ 1403.577971] NILFS(mdt) nilfs_mdt_read_block: called (ino=3, blkoff=5233)
[ 1403.578669] NILFS(btnode) nilfs_btnode_submit_block: called: blocknr=26323 pblocknr=0 new=0 ino=3
[ 1403.579104] NILFS(btnode) nilfs_btnode_submit_block: done (err=0)
[ 1403.611958] Pid: 9129, comm: mount.nilfs2 Tainted: P          2.6.27-11-generic #1
[ 1403.611968] 
[ 1403.611970] Call Trace:
[ 1403.612003]  [<ffffffffa0f92d59>] nilfs_btree_do_lookup+0x219/0x240 [nilfs2]
[ 1403.612027]  [<ffffffffa0f92dee>] nilfs_btree_lookup+0x6e/0xb0 [nilfs2]
[ 1403.612050]  [<ffffffffa0f924e9>] nilfs_bmap_lookup_at_level+0x49/0xa0 [nilfs2]
[ 1403.612073]  [<ffffffffa0f9255f>] nilfs_bmap_lookup+0x1f/0x40 [nilfs2]
[ 1403.612094]  [<ffffffffa0f902c6>] nilfs_mdt_submit_block+0xe6/0x1e0 [nilfs2]
[ 1403.612117]  [<ffffffffa0f903fe>] nilfs_mdt_read_block+0x3e/0x280 [nilfs2]
[ 1403.612138]  [<ffffffffa0f9077b>] nilfs_mdt_get_block+0x6b/0x360 [nilfs2]
[ 1403.612149]  [<ffffffff80313859>] ? set_bh_page+0x9/0x50
[ 1403.612159]  [<ffffffff8050367e>] ? _spin_lock+0xe/0x20
[ 1403.612185]  [<ffffffffa0fa4972>] nilfs_palloc_get_entry_block+0x62/0x70 [nilfs2]
[ 1403.612209]  [<ffffffffa0f96ccb>] nilfs_dat_translate+0x3b/0x170 [nilfs2]
[ 1403.612231]  [<ffffffffa0f90fb9>] nilfs_btnode_submit_block+0x179/0x2f0 [nilfs2]
[ 1403.612252]  [<ffffffffa0f91144>] nilfs_btnode_get+0x14/0x80 [nilfs2]
[ 1403.612274]  [<ffffffffa0f921ad>] nilfs_bmap_get_block+0x1d/0x20 [nilfs2]
[ 1403.612296]  [<ffffffffa0f92c76>] nilfs_btree_do_lookup+0x136/0x240 [nilfs2]
[ 1403.612318]  [<ffffffffa0f92dee>] nilfs_btree_lookup+0x6e/0xb0 [nilfs2]
[ 1403.612339]  [<ffffffffa0f924e9>] nilfs_bmap_lookup_at_level+0x49/0xa0 [nilfs2]
[ 1403.612361]  [<ffffffffa0f9255f>] nilfs_bmap_lookup+0x1f/0x40 [nilfs2]
[ 1403.612382]  [<ffffffffa0f902c6>] nilfs_mdt_submit_block+0xe6/0x1e0 [nilfs2]
[ 1403.612403]  [<ffffffffa0f903fe>] nilfs_mdt_read_block+0x3e/0x280 [nilfs2]
[ 1403.612424]  [<ffffffffa0f9077b>] nilfs_mdt_get_block+0x6b/0x360 [nilfs2]
[ 1403.612432]  [<ffffffff80503576>] ? _spin_lock_irq+0x16/0x20
[ 1403.612439]  [<ffffffff80503384>] ? __down_write_nested+0xc4/0xd0
[ 1403.612465]  [<ffffffffa0fa1bd8>] nilfs_cpfile_get_checkpoint+0x68/0x210 [nilfs2]
[ 1403.612487]  [<ffffffffa0f8f9f9>] ? nilfs_mdt_set_entry_size+0x9/0x40 [nilfs2]
[ 1403.612508]  [<ffffffffa0f8ca68>] nilfs_attach_checkpoint+0xc8/0x200 [nilfs2]
[ 1403.612528]  [<ffffffffa0f8d844>] nilfs_get_sb+0x454/0x740 [nilfs2]
[ 1403.612568]  [<ffffffff802bbb0b>] ? kstrdup+0x5b/0x80
[ 1403.612576]  [<ffffffff802d5c0d>] ? alloc_pages_current+0xad/0x110
[ 1403.612588]  [<ffffffff802ec4f1>] vfs_kern_mount+0x81/0x180
[ 1403.612598]  [<ffffffff802ec663>] do_kern_mount+0x53/0x110
[ 1403.612606]  [<ffffffff803080bc>] do_new_mount+0x9c/0xd0
[ 1403.612612]  [<ffffffff80308765>] do_mount+0x245/0x270
[ 1403.612619]  [<ffffffff802d5c0d>] ? alloc_pages_current+0xad/0x110
[ 1403.612627]  [<ffffffff802b126d>] ? __get_free_pages+0x1d/0x50
[ 1403.612633]  [<ffffffff80308850>] sys_mount+0xc0/0xf0
[ 1403.612642]  [<ffffffff8021285a>] system_call_fastpath+0x16/0x1b
[ 1403.612647] 
[ 1403.612650] NILFS: btree level mismatch: 64 != 2
[ 1403.612662] NILFS(mdt) nilfs_mdt_submit_block: lookup: blkoff=5233 -> blocknr=5233 (ret=-5, ino=3)
[ 1403.612670] NILFS(mdt) nilfs_mdt_read_block: failed (err=-5)
[ 1403.612675] NILFS(dat) nilfs_dat_translate: failed (ret=-5)
[ 1403.612680] NILFS(btnode) nilfs_btnode_submit_block: return -5 (xlate).
[ 1403.612685] NILFS(btnode) nilfs_btnode_submit_block: done (err=-5)
[ 1403.612692] NILFS(mdt) nilfs_mdt_submit_block: lookup: blkoff=0 -> blocknr=0 (ret=-5, ino=4)
[ 1403.612698] NILFS(mdt) nilfs_mdt_read_block: failed (err=-5)
[ 1403.612704] NILFS nilfs_attach_checkpoint: failed to attach ifile (checkpoint number=112612, err=-5)
[ 1403.612711] NILFS(mdt) nilfs_mdt_destroy: called (ino=6)
[ 1403.612720] NILFS(mdt) nilfs_mdt_destroy: done
[ 1403.613246] NILFS: error loading a checkpoint (checkpoint number=112612).
[ 1403.613254] NILFS nilfs_fill_super: aborted
[ 1403.613259] NILFS(mdt) nilfs_mdt_clear: called (ino=5)
[ 1403.613265] NILFS(mdt) nilfs_mdt_clear: called truncate_inode_pages()
[ 1403.613271] NILFS(mdt) nilfs_mdt_clear: called nilfs_bmap_clear()
[ 1403.613277] NILFS(mdt) nilfs_mdt_clear: done (ino=5)
[ 1403.613281] NILFS(mdt) nilfs_mdt_destroy: called (ino=5)
[ 1403.613286] NILFS(mdt) nilfs_mdt_destroy: done
[ 1403.613289] NILFS(mdt) nilfs_mdt_clear: called (ino=4)
[ 1403.613308] NILFS(mdt) nilfs_mdt_clear: called truncate_inode_pages()
[ 1403.613314] NILFS(mdt) nilfs_mdt_clear: called nilfs_bmap_clear()
[ 1403.613327] NILFS(mdt) nilfs_mdt_clear: done (ino=4)
[ 1403.613331] NILFS(mdt) nilfs_mdt_destroy: called (ino=4)
[ 1403.613336] NILFS(mdt) nilfs_mdt_destroy: done
[ 1403.613340] NILFS(mdt) nilfs_mdt_clear: called (ino=3)
[ 1403.613350] NILFS(mdt) nilfs_mdt_clear: called truncate_inode_pages()
[ 1403.613355] NILFS(mdt) nilfs_mdt_clear: called nilfs_bmap_clear()
[ 1403.613365] NILFS(mdt) nilfs_mdt_clear: done (ino=3)
[ 1403.613369] NILFS(mdt) nilfs_mdt_destroy: called (ino=3)
[ 1403.613375] NILFS(mdt) nilfs_mdt_destroy: done
[ 1403.613379] NILFS(mdt) nilfs_mdt_destroy: called (ino=3)
[ 1403.613385] NILFS(mdt) nilfs_mdt_destroy: done
[ 1403.613393] NILFS put_nilfs: the_nilfs on bdev loop1 was freed

[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
users mailing list
users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
https://www.nilfs.org/mailman/listinfo/users

  parent reply	other threads:[~2009-01-01  8:34 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-30 13:19 Kernel Bug after corrupted filesystem robinx99-hi6Y0CQ0nG0
     [not found] ` <20081230131953.298540-hi6Y0CQ0nG0@public.gmane.org>
2008-12-31  2:53   ` Ryusuke Konishi
     [not found]     ` <20081231.115354.105606600.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-31  3:12       ` Ryusuke Konishi
2008-12-31 11:17       ` Dennis Peiler
     [not found]         ` <20081231111707.25420-hi6Y0CQ0nG0@public.gmane.org>
2008-12-31 14:36           ` Ryusuke Konishi
     [not found]             ` <20081231.233620.76970897.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-01-01  8:34               ` dennis-peiler-hi6Y0CQ0nG0 [this message]
2009-01-01  9:31               ` robinx99-hi6Y0CQ0nG0
     [not found]                 ` <20090101093121.302730-hi6Y0CQ0nG0@public.gmane.org>
2009-01-01 15:27                   ` Ryusuke Konishi
     [not found]                     ` <20090102.002735.88475791.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-01-03  7:54                       ` robinx99-hi6Y0CQ0nG0
     [not found]                         ` <20090103075438.264510-hi6Y0CQ0nG0@public.gmane.org>
2009-01-03 16:10                           ` Ryusuke Konishi

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=20090101083400.24930@gmx.net \
    --to=dennis-peiler-hi6y0cq0ng0@public.gmane.org \
    --cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.