Linux NILFS development
 help / color / mirror / Atom feed
From: Ryusuke Konishi <ryusuke-sG5X7nlA6pw@public.gmane.org>
To: users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org,
	yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org
Subject: Re: Fail to mount NILFS.
Date: Sun, 23 Aug 2009 17:20:53 +0900 (JST)	[thread overview]
Message-ID: <20090823.172053.111144710.ryusuke@osrg.net> (raw)
In-Reply-To: <200908230755.02831.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>

[-- Attachment #1: Type: Text/Plain, Size: 1375 bytes --]

Hi,
On Sun, 23 Aug 2009 07:55:02 +0300, Yuri Chislov wrote:
> On Sunday 23 August 2009 06:23:22 Ryusuke Konishi wrote:
> > If the new script find the blocks storing the root inode, it will also
> > dump them to files like:
> >
> > ifile-2-seg649-1329203
> > ifile-2-seg649-1329259
> > ifile-2-seg649-1329315
> > ifile-2-seg649-1329372
> > ifile-2-seg649-1329428
> > ifile-2-seg649-1329455
> >
> > Then, we can see if the root inode is actually broken or not.
> Hi,
> 
>  There is output from script.
> sudo ./find_root.sh /dev/cciss/c0d1p1 10938 | tee -a segment-with-root-
> inode.log
> find_root.sh: root inode not found
> 
> Thanks.
> Yuri.

Thank you for following this analysis.

It reached the beginning of the partition.

What will happen if you start the script from the last segment number?

The last segment number is calculated from the block count which
appears in /proc/partitions:

 $ cat /proc/partitions
major minor  #blocks  name

   8       16   71687325 sdb
   8       17   35840983 sdb1
   8       18   35841015 sdb2

 $ expr 35840983 / 4 / 2048 - 1
 4374
 $ sudo ./find-root.sh /dev/sdb1 4374


And, the attached patch will output some information about how disk
block numbers are converted with DAT file.

I think this will give another hint on which metadata broke in nilfs.

Could you apply it and try mount again?

Thanks in advance,
Ryusuke Konishi

[-- Attachment #2: 0001-nilfs2-add-debug-messages-on-bmap-lookup-and-dat-tra.patch.bz2 --]
[-- Type: Application/Octet-Stream, Size: 1143 bytes --]

[-- 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-08-23  8:20 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-21 16:18 Fail to mount NILFS Yuri Chislov
     [not found] ` <200908211918.34720.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-22  2:25   ` Ryusuke Konishi
     [not found]     ` <20090822.112533.68801227.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-22  8:46       ` Yuri Chislov
     [not found]         ` <200908221146.28241.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-22  9:50           ` Ryusuke Konishi
     [not found]             ` <20090822.185013.23110170.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-22 10:36               ` Yuri Chislov
     [not found]                 ` <200908221336.13326.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-22 11:43                   ` Ryusuke Konishi
     [not found]                     ` <20090822.204316.57646960.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-22 12:34                       ` Ryusuke Konishi
     [not found]                         ` <20090822.213438.101583642.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-22 14:36                           ` Yuri Chislov
     [not found]                             ` <200908221736.42571.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-22 16:21                               ` Ryusuke Konishi
     [not found]                                 ` <20090823.012139.108366726.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-22 16:36                                   ` Yuri Chislov
     [not found]                                     ` <200908221936.12308.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-23  3:23                                       ` Ryusuke Konishi
     [not found]                                         ` <20090823.122322.09561031.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-23  4:55                                           ` Yuri Chislov
     [not found]                                             ` <200908230755.02831.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-23  8:20                                               ` Ryusuke Konishi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-08-23 13:06 Yuri Chislov
     [not found] ` <200908231606.17747.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-23 13:09   ` Ryusuke Konishi
     [not found]     ` <20090823.220941.57456918.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-24 16:08       ` Ryusuke Konishi
     [not found]         ` <20090825.010847.29421896.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-24 16:21           ` Yuri Chislov
     [not found]             ` <200908241921.35124.yuri-EJC0RcYdacHR7s880joybQ@public.gmane.org>
2009-08-24 17:33               ` Ryusuke Konishi
     [not found]                 ` <20090825.023349.64850558.ryusuke-sG5X7nlA6pw@public.gmane.org>
2009-08-24 18:11                   ` Yuri Chislov

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=20090823.172053.111144710.ryusuke@osrg.net \
    --to=ryusuke-sg5x7nla6pw@public.gmane.org \
    --cc=users-JrjvKiOkagjYtjvyW6yDsg@public.gmane.org \
    --cc=yuri-EJC0RcYdacHR7s880joybQ@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