From: Vojtech Myslivec <vojtech@xmyslivec.cz>
To: Manuel Riel <manu@snapdragon.cc>
Cc: Chris Murphy <lists@colorremedies.com>,
Michal Moravec <michal.moravec@logicworks.cz>,
songliubraving@fb.com, guoqing.jiang@cloud.ionos.com,
Btrfs BTRFS <linux-btrfs@vger.kernel.org>,
Linux-RAID <linux-raid@vger.kernel.org>
Subject: Re: Linux RAID with btrfs stuck and consume 100 % CPU
Date: Wed, 17 Mar 2021 16:55:36 +0100 [thread overview]
Message-ID: <5e9e627f-7f73-c243-8084-58f156b984c5@xmyslivec.cz> (raw)
In-Reply-To: <56AD80D0-6853-4E3A-A94C-AD1477D3FDA4@snapdragon.cc>
Thanks a lot Manuel for your findings and information.
It's good to know btrfs is not causing this issue and the common symptom
is an MD journal on another RAID device.
I have moved journal from logical volume on RAID1 to a plain partition
on a SSD and I will monitor the state.
Vojtech
On 17. 03. 21 5:35, Manuel Riel wrote:
> Final update on this issue for anyone who encounters a similar problem in the future:
>
> I didn't observe any "hanging" RAID devices after using an ordinary NVMe partition as journal. So using e.g. another md-RAID1 array as journal doesn't seem to be supported.
>
> The docs[1] say "This means the cache disk must be ... sustainable." The sustainable part motivated me to use a md-RAID1 array. I think the docs should mention that the journal can't be on another RAID array.
>
> I'm sending in a patch to emphasize this in the docs.
>
>
> 1: https://www.kernel.org/doc/html/latest/driver-api/md/raid5-cache.html
>
>> On Feb 28, 2021, at 4:34 PM, Manuel Riel <manu@snapdragon.cc> wrote:
>>
>> Hit another mdadm "hanger" today. No more reading possible and md4_raid6 stuck at 100% CPU.
>>
>> I've now moved the write journal off the RAID1 device. So it's not a "nested" RAID any more. Hope this will help.
>>
>> With only one hardware device used as write cache, I suppose only write-through mode[1] is suggested now.
>>
>>
>> 1: https://www.kernel.org/doc/Documentation/md/raid5-cache.txt
>
next prev parent reply other threads:[~2021-03-17 16:05 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-22 20:47 Linux RAID with btrfs stuck and consume 100 % CPU Vojtech Myslivec
2020-07-22 22:00 ` antlists
2020-07-23 2:08 ` Chris Murphy
[not found] ` <29509e08-e373-b352-d696-fcb9f507a545@xmyslivec.cz>
2020-07-28 20:23 ` Chris Murphy
[not found] ` <695936b4-67a2-c862-9cb6-5545b4ab3c42@xmyslivec.cz>
2020-08-14 20:04 ` Chris Murphy
[not found] ` <2f2f1c21-c81b-55aa-6f77-e2d3f32d32cb@xmyslivec.cz>
2020-08-19 22:58 ` Chris Murphy
2020-08-26 15:35 ` Vojtech Myslivec
2020-08-26 18:07 ` Chris Murphy
2020-09-16 9:42 ` Vojtech Myslivec
2020-09-17 17:08 ` Chris Murphy
2020-09-17 17:20 ` Chris Murphy
2020-09-17 17:43 ` Chris Murphy
2020-09-23 18:14 ` Vojtech Myslivec
2021-02-11 3:14 ` Manuel Riel
2021-02-28 8:34 ` Manuel Riel
[not found] ` <56AD80D0-6853-4E3A-A94C-AD1477D3FDA4@snapdragon.cc>
2021-03-17 15:55 ` Vojtech Myslivec [this message]
2020-07-29 21:06 ` Guoqing Jiang
2020-07-29 21:48 ` Chris Murphy
2020-08-12 14:19 ` Vojtech Myslivec
2020-08-12 14:19 ` Vojtech Myslivec
2020-07-30 6:45 ` Song Liu
2020-08-12 13:58 ` Vojtech Myslivec
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=5e9e627f-7f73-c243-8084-58f156b984c5@xmyslivec.cz \
--to=vojtech@xmyslivec.cz \
--cc=guoqing.jiang@cloud.ionos.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=linux-raid@vger.kernel.org \
--cc=lists@colorremedies.com \
--cc=manu@snapdragon.cc \
--cc=michal.moravec@logicworks.cz \
--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 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).