From: antlists <antlists@youngman.org.uk>
To: David Madore <david+ml@madore.org>
Cc: Linux RAID mailing-list <linux-raid@vger.kernel.org>
Subject: Re: RAID5->RAID6 reshape remains stuck at 0% (does nothing, not even start)
Date: Wed, 30 Sep 2020 15:09:05 +0100 [thread overview]
Message-ID: <90338e5b-9ed4-c86e-fa35-8acdd6768ca7@youngman.org.uk> (raw)
In-Reply-To: <20200930090031.6lzrs336fr4inpz4@achernar.gro-tsen.net>
On 30/09/2020 10:00, David Madore wrote:
> On Wed, Sep 30, 2020 at 05:03:28AM +0100, Wols Lists wrote:
>> uname -a ???
>
> Linux vega.stars 4.9.237-vega #1 SMP Tue Sep 29 23:52:36 CEST 2020 x86_64 GNU/Linux
>
> This is a stock 4.9.237 kernel that I compiled with gcc version 4.8.4
> (Debian 4.8.4-1). RAID-related options in the config are:
>
> CONFIG_MD=y
> CONFIG_BLK_DEV_MD=y
> CONFIG_MD_AUTODETECT=y
> CONFIG_MD_LINEAR=m
> CONFIG_MD_RAID0=y
> CONFIG_MD_RAID1=y
> CONFIG_MD_RAID10=m
> CONFIG_MD_RAID456=m
> CONFIG_MD_MULTIPATH=m
> CONFIG_MD_FAULTY=m
> # CONFIG_MD_CLUSTER is not set
> CONFIG_ASYNC_RAID6_RECOV=m
> CONFIG_RAID6_PQ=m
>
> (I can, of course, put the full config somewhere).
>
>> mdadm --version ???
>
> mdadm - v3.4 - 28th January 2016
>
> (This is the version from Debian 9.13 "stretch" (aka oldstable).)
>
>> https://raid.wiki.kernel.org/index.php/Linux_Raid#When_Things_Go_Wrogn
So my guess was spot on :-)
You'll guess that this is a common problem, with a well-known solution...
https://raid.wiki.kernel.org/index.php/Easy_Fixes#Debian_9_and_Ubuntu
>
> I should have clarified that I suffered no data loss. Since the
> attempt to reshape simply does nothing (and the underlying filesystem
> was read-only just in case), I was able to simply recreate the RAID5
> array with --assume-clean. But I'd really like to convert to RAID6.
>
> I can, of course, provide detailed information on the disks, but since
> I can reproduce the problem on loopback devices, I imagine this isn't
> too relevant.
>
>> I'm guessing you're on an older version of Ubuntu / Debian ?
>
> Yes, Debian 9.13 "stretch" (aka oldstable).
>
That web page tells you, but basically it's what I call the
"frankenkernel problem" - the kernel has been updated to buggery, mdadm
is out-of-date, and they are not regression-tested. The reshape gets
stuck trying to start.
So the fix is to use an up-to-date rescue disk with matched kernel and
mdadm to do the reshape.
Oh - and once you're all back up and running, I'd build the latest mdadm
and upgrade to that. And don't try to reshape the array again, unless
you've upgraded your distro to something recent :-)
Cheers,
Wol
next prev parent reply other threads:[~2020-09-30 14:09 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-30 1:40 RAID5->RAID6 reshape remains stuck at 0% (does nothing, not even start) David Madore
2020-09-30 4:03 ` Wols Lists
2020-09-30 9:00 ` David Madore
2020-09-30 14:09 ` antlists [this message]
2020-09-30 18:58 ` David Madore
2020-09-30 19:03 ` Wols Lists
2020-09-30 19:45 ` David Madore
2020-09-30 20:16 ` antlists
2020-09-30 22:26 ` David Madore
2020-10-01 14:10 ` Wols Lists
2020-10-01 15:04 ` David Madore
2020-10-01 18:21 ` Phil Turmel
2020-10-02 10:52 ` Nix
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=90338e5b-9ed4-c86e-fa35-8acdd6768ca7@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=david+ml@madore.org \
--cc=linux-raid@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).