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
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users