public inbox for linux-raid@vger.kernel.org
 help / color / mirror / Atom feed
From: "Tkaczyk, Mariusz" <mariusz.tkaczyk@linux.intel.com>
To: Xiao Ni <xni@redhat.com>,
	Oleksandr Shchirskyi <oleksandr.shchirskyi@linux.intel.com>,
	linux-raid@vger.kernel.org
Subject: Re: Kernel bug in async_xor_offs during RAID5 recovery
Date: Tue, 11 May 2021 15:13:23 +0200	[thread overview]
Message-ID: <bdb2be6e-fd1b-ef5a-1de7-222e4b981ae2@linux.intel.com> (raw)
In-Reply-To: <3e5b79fd-f4ec-1db4-bddb-c3cdb7124497@redhat.com>


Hi Xiao,
I simplified the scenario.

On 06.05.2021 12:57, Xiao Ni wrote:
> Hi Oleksandr Shchirskyi
> 
> Can this only happen with PPL, imsm and nvme disks? My machine doesn't support 
> creating raid device with nvme devices.
Could you try to create array with IMSM_NO_PLATFORM=1?

> And rotational disks don't have /sys/block/nvme1n1/device/device/remove. What's 
> the meaning about setting 1
> to the remove file?
> 
> I tried to create the imsm raid with rotational disks and ppl. Then remove and 
> add disk to trigger recovery. It works
> well.
I verified that drive removal is not crucial here.
The main trick here is to impose the PPL recovery. I did that by following
scenario:
1. Create array (I was able to reproduce it with 1Gb size):
#mdadm -CR imsm -e imsm -n3 /dev/nvme[456]n1
#mdadm -CR vol2 -l5 -n3 /dev/nvme[456]n1 -z 1G -c64 --assume-clean 
--consistency-policy=ppl

2. Get mdmon pid:
# ps -ef | grep mdmon

3. Write data to the drive, and kill mdmon after that (this will force
array to stay dirty):
#dd of=/dev/md126 if=/dev/urandom bs=4M oflag=direct; kill -9 {mdmon_pid}

4. Stop Array:
# mdadm -Ss

5. Start Array:
# mdadm -As

Thanks,
Mariusz

      reply	other threads:[~2021-05-11 13:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-30 20:16 Kernel bug in async_xor_offs during RAID5 recovery Oleksandr Shchirskyi
2021-05-06 10:57 ` Xiao Ni
2021-05-11 13:13   ` Tkaczyk, Mariusz [this message]

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=bdb2be6e-fd1b-ef5a-1de7-222e4b981ae2@linux.intel.com \
    --to=mariusz.tkaczyk@linux.intel.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=oleksandr.shchirskyi@linux.intel.com \
    --cc=xni@redhat.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