linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Oliver Freyermuth <o.freyermuth@googlemail.com>
To: linux-btrfs@vger.kernel.org
Subject: Re: btrfs recovery
Date: Sat, 28 Jan 2017 17:46:24 +0100	[thread overview]
Message-ID: <ad929c7d-8781-6c9f-382c-b2fbdfad5f2c@googlemail.com> (raw)
In-Reply-To: <pan$cc953$ec4078b0$696ed46d$9618e10e@cox.net>

Hi Duncan, 

thanks for your extensive reply! 

Am 28.01.2017 um 06:00 schrieb Duncan:
> All three options apparently default to 64K (as that's what I see here 
> and I don't believe I've changed them), but can be changed.  See the 
> kernel options help and where it points for more.
> 
Indeed, I have here:
CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
(still at default)
CONFIG_X86_CHECK_BIOS_CORRUPTION=y
CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y
The last option sets the default value for the bootparam,
so my kernel boots with checks on even without the bootparam explicitly set. 

I have now increased 
CONFIG_X86_RESERVE_LOW=640
which was previously indeed set to 64, and rebooted successfully. 

I have also tried to set:
memory_corruption_check_size=640
as kernel parameter. Sadly, the system froze before it could produce any output on screen, or write anything to PMEM.  
So I am now running with the default of checking the first 64k, but hope I am more safe since I use CONFIG_X86_RESERVE_LOW=640 now. 

> Meanwhile, since the defaults cover it, no quirk should be necessary (tho 
> I might increase the reserve and test coverage area to the maximum 640K 
> and run for awhile to be sure it's not going above the 64K default), but 
> were it outside the default 64K coverage area, I would probably file it 
> as a bug (my usual method for confirmed bugs), and mark it initially as 
> an arch-x86 bug, tho they may switch it to something else, later.  But 
> the devs would probably suggest further debugging, possibly giving you 
> debug patches to try, etc, to nail down the specific device, before 
> setting up a quirk for it.  Because the problem could be an expansion 
> card or something, not the mobo/factory-default-machine, too, and it'd be 
> a shame to setup a quirk for the wrong hardware.
I have another funny addition. I have access to a machine with exact same hardware configuration, and I am pretty sure it has the same firmware version, of course maybe slightly differently configured. 
That one is running openSUSE 13.1 with standard kernel. 
They use:
CONFIG_X86_CHECK_BIOS_CORRUPTION=y
CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=y
CONFIG_X86_RESERVE_LOW=64
That machine does *NOT* produce the corruption-messages in syslog. 

The obvious differences are the kernel version (I run 4.9, that machine has 3.12.57-44-default),
and the fact that my machine was booted via UEFI, while the openSUSE machine booted classically via BIOS (i.e. CSM of the UEFI). 
Even the GPU is the same. That machine uses nvidia binary, while I use nouveau by now, but indeed I find in old syslogs the same corruption messages from the time I still used the binary blob. 

So my hunch is that it is related to me booting via EFI, but of course it might be a firmware bug triggered by some kernel-firmware-interaction change between 3.12 and 4.9,
or something in the firmware configuration. 

> Btrfs restore is a very useful tool.  It has gotten me out of a few 
> "changes since the last backup weren't valuable enough to have updated 
> the backup yet when the risk was theoretical, so nothing serious, but now 
> that it's no longer theory only, it'd still be useful to be able to save 
> the current version, if it's not /too/ much trouble" type situations, 
> myself. =:^)
> 
> Just don't count on restore to save your *** and always treat what it can 
> often bring to current as a pleasant surprise, and having it fail won't 
> be a down side, while having it work, if it does, will always be up side. 
> =:^)
> 
I'll keep that in mind, and I think that in the future, before trying any "btrfs check" (or even repair)
I will always try restore first if my backup was not fresh enough :-). 


  parent reply	other threads:[~2017-01-28 17:16 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-26  9:18 btrfs recovery Oliver Freyermuth
2017-01-26  9:25 ` Hugo Mills
2017-01-26  9:36   ` Oliver Freyermuth
2017-01-26 10:00     ` Hugo Mills
2017-01-26 11:01     ` Oliver Freyermuth
2017-01-27 11:01       ` Oliver Freyermuth
2017-01-27 12:58         ` Austin S. Hemmelgarn
2017-01-28  5:00           ` Duncan
2017-01-28 12:37             ` Janos Toth F.
2017-01-28 16:51               ` Oliver Freyermuth
2017-01-28 16:46             ` Oliver Freyermuth [this message]
2017-01-31  4:58               ` Duncan
2017-01-31 12:45                 ` Austin S. Hemmelgarn
2017-02-01  4:36                   ` Duncan
2017-01-30 12:41             ` Austin S. Hemmelgarn
2017-01-28 21:04       ` Oliver Freyermuth
2017-01-28 22:27         ` Hans van Kranenburg
2017-01-29  2:02           ` Oliver Freyermuth
2017-01-29 16:44             ` Hans van Kranenburg
2017-01-29 19:09               ` Oliver Freyermuth
2017-01-29 19:28                 ` Hans van Kranenburg
2017-01-29 19:52                   ` Oliver Freyermuth
2017-01-29 20:13                     ` Hans van Kranenburg
  -- strict thread matches above, loose matches on Subject: below --
2017-01-30 20:02 Michael Born
2017-01-30 20:27 ` Hans van Kranenburg
2017-01-30 20:51 ` Chris Murphy
2017-01-30 21:07   ` Michael Born
2017-01-30 21:16     ` Hans van Kranenburg
2017-01-30 22:24       ` GWB
2017-01-30 22:37         ` Michael Born
2017-01-31  0:29           ` GWB
2017-01-31  9:08           ` Graham Cobb
2017-01-30 21:20     ` Chris Murphy
2017-01-30 21:35       ` Chris Murphy
2017-01-30 21:40       ` Michael Born
2017-01-31  4:30     ` Duncan
2017-01-19 10:06 Sebastian Gottschall
2017-01-20  1:08 ` Qu Wenruo
2017-01-20  9:45   ` Sebastian Gottschall
2017-01-23 11:15   ` Sebastian Gottschall
2017-01-24  0:39     ` Qu Wenruo
2017-01-20  8:05 ` Duncan
2017-01-20  9:59   ` Sebastian Gottschall

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=ad929c7d-8781-6c9f-382c-b2fbdfad5f2c@googlemail.com \
    --to=o.freyermuth@googlemail.com \
    --cc=linux-btrfs@vger.kernel.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).