All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wols Lists <antlists@youngman.org.uk>
To: Joshua Kinard <kumba@gentoo.org>, NeilBrown <neilb@suse.com>,
	John Stoffel <john@stoffel.org>
Cc: Shaohua Li <shli@kernel.org>, Song Liu <songliubraving@fb.com>,
	linux-raid <linux-raid@vger.kernel.org>, Shaohua Li <shli@fb.com>
Subject: Re: [PATCH] md: forbid a RAID5 from having both a bitmap and a journal.
Date: Fri, 20 Oct 2017 00:16:37 +0100	[thread overview]
Message-ID: <59E93255.1050000@youngman.org.uk> (raw)
In-Reply-To: <3c9139e8-8035-d592-7875-f9dab5ab9568@gentoo.org>

On 18/10/17 02:51, Joshua Kinard wrote:
> On 10/17/2017 17:03, NeilBrown wrote:
>> On Tue, Oct 17 2017, John Stoffel wrote:
>>
>>>>>>>> "NeilBrown" == NeilBrown  <neilb@suse.com> writes:
>>>
>>> NeilBrown> Having both a bitmap and a journal is pointless.
>>> NeilBrown> Attempting to do so can corrupt the bitmap if the journal
>>> NeilBrown> replay happens before the bitmap is initialized.
>>> NeilBrown> Rather than try to avoid this corruption, simply
>>> NeilBrown> refuse to allow arrays with both a bitmap and a journal.
>>> NeilBrown> So:
>>> NeilBrown>  - if raid5_run sees both are present, fail.
>>>
>>> So what happens if there's someone out there with an array setup with
>>> both already?  Should the journal or the bitmap be removed at this
>>> time?  
>>
>> If someone has an array like that they can assemble it with
>>   --update=no-bitmap
> 
> IMHO, this should probably get documented in the Linux RAID Wiki once it goes
> through.
> 
Done! I'm not sure where it should go, so under "When things go wrogn",
I've put it in the "easy fixes" section. It simply notes that you are
now not allowed to combine journals and bitmaps, and gives the fix. (It
also says when "now" is :-)
> 
>> I'd rather not automatically disable things.
>>
Cheers,
Wol


  reply	other threads:[~2017-10-19 23:16 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-10 21:20 [PATCH] md/bitmap: avoid read out of the disk Shaohua Li
2017-10-11 12:41 ` Joshua Kinard
2017-10-12  3:09 ` NeilBrown
2017-10-12 17:30   ` Shaohua Li
2017-10-12 17:53     ` Song Liu
2017-10-12 21:46       ` NeilBrown
2017-10-12 22:51         ` Shaohua Li
2017-10-13  5:16       ` NeilBrown
2017-10-13 19:51         ` Shaohua Li
2017-10-16 16:21           ` Song Liu
2017-10-16 21:15             ` NeilBrown
2017-10-16 23:56               ` Shaohua Li
2017-10-17  3:24                 ` [PATCH] md: forbid a RAID5 from having both a bitmap and a journal NeilBrown
2017-10-17 20:41                   ` John Stoffel
2017-10-17 21:03                     ` NeilBrown
2017-10-18  1:51                       ` Joshua Kinard
2017-10-19 23:16                         ` Wols Lists [this message]
2017-10-18 14:48                       ` John Stoffel
2017-10-19 23:21                         ` Wols Lists
2017-10-18  1:50                   ` Joshua Kinard
2017-10-19  3:16                   ` Shaohua Li
2017-10-12 21:44     ` [PATCH] md/bitmap: avoid read out of the disk NeilBrown

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=59E93255.1050000@youngman.org.uk \
    --to=antlists@youngman.org.uk \
    --cc=john@stoffel.org \
    --cc=kumba@gentoo.org \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.com \
    --cc=shli@fb.com \
    --cc=shli@kernel.org \
    --cc=songliubraving@fb.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.