From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: adrian-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org
Cc: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org
Subject: Re: nilfs2 fails to mount after io/error
Date: Wed, 03 Dec 2008 23:39:40 +0900 (JST) [thread overview]
Message-ID: <20081203.233940.10724508.ryusuke@osrg.net> (raw)
In-Reply-To: <20081203064930.B64F0829D-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
On Wed, 3 Dec 2008 07:49:56 +0100, Adrian Ulrich wrote:
> Still fails to mount :
>
> # insmod fs/nilfs2.ko
> # echo "-vvv recovery" > /proc/fs/nilfs2/debug_option
> # mount -t nilfs2 -r /dev/wdigital5 /scratch/
>
> Dec 3 06:47:50 echelon kernel: NILFS nilfs_fill_super: start(silent=0)
> Dec 3 06:47:50 echelon kernel: NILFS(recovery) nilfs_search_super_root: looking segment (seg_start=174272512, seg_end=174274559, segnum=85094, seg_seq=181656)
> Dec 3 06:47:50 echelon kernel: NILFS(recovery) load_segment_summary: checking segment (pseg_start=174272512, full_check=1)
> Dec 3 06:47:51 echelon kernel: NILFS(recovery) load_segment_summary: done (ret=0)
> Dec 3 06:47:51 echelon kernel: NILFS(recovery) nilfs_search_super_root: found super root: segnum=85094, seq=181656, pseg_start=174272512, pseg_offset=295
> Dec 3 06:47:51 echelon kernel: NILFS nilfs_attach_checkpoint: failed to attach ifile (checkpoint number=93986, err=-22)
> Dec 3 06:47:51 echelon kernel: NILFS nilfs_fill_super: aborted
> Dec 3 06:47:51 echelon kernel: NILFS put_nilfs: the_nilfs on bdev sdb5 was freed
The segment pointed by the superblock was likely not the latest one.
Could you get a summary of segments as follows, and send it to me
off-line?
bash# for (( i = 0; i <= 85096; i++ )); do dumpseg /dev/wdigital5 $i | grep -e creation -e segment -e "ino = 3,"; done > segdump.txt
bash# bzip2 segdump.txt
This will generate the summary as follows, and it helps
to identify the the last segment actually written.
segment: segnum = 0
partial segment
creation time = 2008-10-10 15:30:36
ino = 3, cno = 1, nblocks = 3, ndatblk = 3
partial segment
creation time = 2008-10-10 15:30:48
ino = 3, cno = 0, nblocks = 39, ndatblk = 38
partial segment
creation time = 2008-10-10 15:30:51
segment: segnum = 1
partial segment
creation time = 2008-10-10 15:30:52
segment: segnum = 2
partial segment
creation time = 2008-10-10 15:30:52
partial segment
creation time = 2008-10-10 15:30:54
...
If you can find the latest segment from 'creation time' fields,
then get a full dump, too.
# dumpseg /dev/wdigital5 [the number of the newest segment] > latest-seg.txt
Regards,
Ryusuke Konishi
next prev parent reply other threads:[~2008-12-03 14:39 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-26 18:22 nilfs2 fails to mount after io/error Adrian Ulrich
[not found] ` <20081126182158.20FD28306-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-11-27 17:10 ` Reinoud Zandijk
[not found] ` <20081127171006.GA3654-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-11-27 21:55 ` Adrian Ulrich
2008-11-28 7:43 ` Ryusuke Konishi
[not found] ` <20081128.164300.47236105.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-11-28 14:37 ` Adrian Ulrich
[not found] ` <20081128153732.be4f5cf8.adrian-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-01 16:50 ` Ryusuke Konishi
[not found] ` <20081202.015029.88482681.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-01 17:14 ` Adrian Ulrich
[not found] ` <20081201171411.99215829D-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-02 5:22 ` Ryusuke Konishi
[not found] ` <20081202.142225.78011419.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-02 6:44 ` Adrian Ulrich
[not found] ` <20081202064345.31DB4802A-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-03 3:00 ` Ryusuke Konishi
[not found] ` <20081203.120021.27010822.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-03 6:49 ` Adrian Ulrich
[not found] ` <20081203064930.B64F0829D-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-03 14:39 ` Ryusuke Konishi [this message]
[not found] ` <20081203162628.B82C3829D@blinkenlights.ch>
[not found] ` <20081203162628.B82C3829D-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-04 8:06 ` Ryusuke Konishi
[not found] ` <20081204.170654.88475919.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-04 8:29 ` Adrian Ulrich
[not found] ` <20081204092947.c29d230d.adrian-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-04 12:58 ` Ryusuke Konishi
[not found] ` <20081204.215805.88483726.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-04 13:04 ` Adrian Ulrich
[not found] ` <20081204140431.ec72f1ec.adrian-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-06 19:05 ` Ryusuke Konishi
[not found] ` <20081207.040509.20004012.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-06 19:53 ` Reinoud Zandijk
[not found] ` <20081206195308.GA11115-5cYspOl2ggRz6xQTk39kMVfVdRo2wo/d@public.gmane.org>
2008-12-07 3:55 ` Ryusuke Konishi
2008-12-07 12:23 ` Adrian Ulrich
[not found] ` <20081207132335.868f8479.adrian-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-07 16:04 ` Ryusuke Konishi
[not found] ` <20081208.010407.85941224.ryusuke-sG5X7nlA6pw@public.gmane.org>
2008-12-08 16:57 ` Adrian Ulrich
[not found] ` <20081208165702.DC1388309-4ZM2p5qjiQGewZBzVTKGGg@public.gmane.org>
2008-12-08 19:08 ` Ryusuke Konishi
2008-12-04 8:30 ` Chris Samuel
[not found] ` <200812041931.02528.chris-Ru3vu9m2XlBAfugRpC6u6w@public.gmane.org>
2008-12-04 10:25 ` 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=20081203.233940.10724508.ryusuke@osrg.net \
--to=ryusuke-sg5x7nla6pw@public.gmane.org \
--cc=adrian-4ZM2p5qjiQGewZBzVTKGGg@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox