Linux NILFS development
 help / color / mirror / Atom feed
From: pg-9Cpm1x5jwYpury8xqvH7Ik8g8846gVy9@public.gmane.org (Peter Grandi)
To: Linux fs NILFS <linux-nilfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: NILFS error after power loss
Date: Sat, 22 Jul 2017 16:21:53 +0100	[thread overview]
Message-ID: <22899.28049.793418.168521@tree.ty.sabi.co.uk> (raw)
In-Reply-To: <78546a7101d18887029883c515fadbf5-m2T68/X/qvZAfugRpC6u6w@public.gmane.org>

>> The standard NILFS2 recovery is to mount an earlier
>> checkpoint. This to be done quickly to ensure they don't get
>> deleted by the cleaner, but then if the system does not start
>> it should not start either.

> I have started on Ubuntu Live and mounted the filesystem

That can be done with option 'nogc' to avoid garbage collection
of checkpoints.

> and have made the earliest checkpoint a snapshot in order not
> to lose it.

Good idea, would be nice perhaps also for other checkpoints.

> How do I rollback in the simplest way?

As the manual explains, checkpoints can be mounted, and if they
fail to be mounted, be deleted. The NILFS2 code tries to mount
the latest checkpoint (with a valid checksum).

>> Usually corruption like this is because of the storage system
>> not implementing correctly barriers, and that might related
>> to the use of DM (some versions lack that implementation). If
>> barriers do work the previous checkpoint to the faulty one
>> should always be correct, because it has been checkpointed.

> I do not know the technical details well enough. Where can I
> read more about what barriers mean in this context?

I think that there are things like "web search engines" that
might help, but to starts that search those means features of
hardware and software that ensure that all critical updates are
recorded on persistent storage, things used to implement "fsync"
and the in-kernel equivalent. Since you use a laptop you may
have been tempted to disable or weaken them.

> What does DM mean?

"Device Manager", as indicated by the error message including
"dm-0":

>> Apr 24 06:55:22 nixos kernel: NILFS (dm-0): bad btree node (ino=1609, blocknr=13626216): level = 51, flags = 0x44, nchildren = 12298

It is used to support LVM2 or LUKS etc.
--
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:[~2017-07-22 15:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3909a3843e9fc28c7c1f7812f47b7b2b@fripost.org>
     [not found] ` <3909a3843e9fc28c7c1f7812f47b7b2b-m2T68/X/qvZAfugRpC6u6w@public.gmane.org>
2017-07-16 19:37   ` NILFS error after power loss mikael-m2T68/X/qvZAfugRpC6u6w
     [not found]     ` <39eaa9df1d7d61fbcbfba585f26896e5-m2T68/X/qvZAfugRpC6u6w@public.gmane.org>
2017-07-16 22:47       ` Peter Grandi
     [not found]         ` <78546a7101d18887029883c515fadbf5@fripost.org>
     [not found]           ` <78546a7101d18887029883c515fadbf5-m2T68/X/qvZAfugRpC6u6w@public.gmane.org>
2017-07-22 15:21             ` Peter Grandi [this message]
     [not found]               ` <6603e34b36ee6db3997c47e450fc28dd@fripost.org>
     [not found]                 ` <6603e34b36ee6db3997c47e450fc28dd-m2T68/X/qvZAfugRpC6u6w@public.gmane.org>
2017-07-31 13:20                   ` Peter Grandi

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=22899.28049.793418.168521@tree.ty.sabi.co.uk \
    --to=pg-9cpm1x5jwypury8xqvh7ik8g8846gvy9@public.gmane.org \
    --cc=linux-nilfs-u79uwXL29TY76Z2rM5mHXA@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