linux-nilfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Viacheslav Dubeyko <slava-yeENwD64cLxBDgjK7y7TUQ@public.gmane.org>
To: KARBOWSKI Piotr
	<piotr.karbowski-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [!] Unable to mount nilfs2 filesystem after power outage - error loading super root.
Date: Fri, 18 Mar 2016 15:45:07 -0700	[thread overview]
Message-ID: <1458341107.2615.27.camel@slavad-ubuntu-14.04> (raw)
In-Reply-To: <56EC7DCE.1020906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>

On Fri, 2016-03-18 at 23:14 +0100, KARBOWSKI Piotr wrote:
> Hi,
> 
> On 03/18/2016 10:36 PM, Viacheslav Dubeyko wrote:
> > It needs to dive into state of the volume. You can use lscp and lssu
> > tools with the goal to retrieve segments and checkpoints state. But,
> > again, this path could provide opportunity for understanding the bug
> > essence and environment. I could see only one way for "recovering"
> > corrupted volume: (1) understand the current state of volume's segments;
> > (2) localize erroneous segment; (3) try to zero erroneous segment(s) by
> > means of dd utility; (4) try to mount again. But it's really dangerous
> > way, you could loose your data.
> 
> I could try, but lscp and lssu does not work with this filesystem since 
> crash. Only 'nilfs-tune -l' display anything.
> 
> # strace lssu /dev/loop/1 2>&1 | grep loop
> execve("/usr/bin/lssu", ["lssu", "/dev/loop/1"], [/* 61 vars */]) = 0
> readlink("/dev/loop", 0x7ffe6a073ac0, 4096) = -1 EINVAL (Invalid argument)
> readlink("/dev/loop/1", 0x7ffe6a073ac0, 4096) = -1 EINVAL (Invalid argument)
> readlink("/dev/loop", 0x7ffe6a073ac0, 4096) = -1 EINVAL (Invalid argument)
> readlink("/dev/loop/1", 0x7ffe6a073ac0, 4096) = -1 EINVAL (Invalid argument)
> write(2, "lssu: cannot open NILFS on /dev/"..., 66lssu: cannot open 
> NILFS on /dev/loop/1: No such file or directory
> 
> Does lscp and lssu needs actually mounted filesystem? It does run 
> readlink() and check /proc/mounts...
> 

Ahhh, I've forgot that you cannot mount your volume. Yes, you can use
lscp and lssu for mounted volume only. So, it needs to analyze raw
volume's content in such situation. No another way. Welcome to the real
world. Sorry..

If you have such issue after power outage then the most probable reason
of such issue is corruption of the last segment. Theoretically, NILFS2
has all necessary for recovering from such issue (because NILFS2 has
checkpoints for all metadata in previous logs). But current state of
NILFS2 code is unable to overcome such situation. Another possible
reason could be inconsistent state of superblock. NILFS2 has two
superblocks (in the beginning and in the end of the volume). So, it's
possible that one of the superblock (or both) has inconsistent state. It
means that some of superblock's field will contain some invalid state.
So, you need to elaborate vision what's wrong on your volume and to
modify the volume state manually.

Thanks,
Vyacheslav Dubeyko.


--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      parent reply	other threads:[~2016-03-18 22:45 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-18 18:16 [!] Unable to mount nilfs2 filesystem after power outage - error loading super root KARBOWSKI Piotr
     [not found] ` <56EC45FD.7010808-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-18 20:13   ` Viacheslav Dubeyko
     [not found]     ` <1458331991.2615.6.camel-dzAnj6fV1RzTdvqWZYKEhEEK6ufn8VP3@public.gmane.org>
2016-03-18 20:40       ` KARBOWSKI Piotr
     [not found]         ` <56EC67A2.8050905-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-18 21:36           ` Viacheslav Dubeyko
     [not found]             ` <1458337014.2615.14.camel-dzAnj6fV1RzTdvqWZYKEhEEK6ufn8VP3@public.gmane.org>
2016-03-18 22:14               ` KARBOWSKI Piotr
     [not found]                 ` <56EC7DCE.1020906-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-03-18 22:45                   ` Viacheslav Dubeyko [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=1458341107.2615.27.camel@slavad-ubuntu-14.04 \
    --to=slava-yeenwd64clxbdgjk7y7tuq@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=piotr.karbowski-Re5JQEeQqe8AvxtiuMwx3w@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;
as well as URLs for NNTP newsgroup(s).