From: Neil Brown <neilb@suse.de>
To: roma1390 <roma1390@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: raid6 grow "hangs" on 2.6.27 with mounted FS
Date: Mon, 23 Mar 2009 16:02:48 +1100 [thread overview]
Message-ID: <18887.6136.84328.602390@notabene.brown> (raw)
In-Reply-To: message from roma1390 on Saturday March 21
On Saturday March 21, roma1390@gmail.com wrote:
> i have 2.6.27
> trying thease command
>
> # create raid6 with 4 block devices
> mdadm --create /dev/md2 --level=6 --raid-devices=4 /dev/loop{1,2,3,4}
> # wait to sync
> sleep 3
> # create and mount FS
> mkfs.ext2 /dev/md2
> mount /dev/md2 -t ext2 /mnt
>
> # add block device and grow, wait for resync
> mdadm --add /dev/md2 /dev/loop5
> mdadm --grow /dev/md2 --raid-devices=5
> sleep 3
>
> # dmesg prints: VFS: busy inodes on changed media.
> # umount hangs ...
> umount /dev/md2
> # also: "mdadm --query /dev/md2" hangs in D state.
Thanks for the detailed report.
I can almost reproduce this.
However when I run it, the "mdadm --grow" prints
mdadm: Need to backup 384K of critical section..
(as expected) and then hangs.
If I interrupt it and proceed, then the umount hangs.
Is this the case for you?
The umount hangs because there is something important that mdadm needs
to do which it didn't do because it was interrupted. During the
'critical section', mdadm causes all writes to the start of the device
to be blocked. The umount tries to write the filesystem superblock
and hangs.
You can test if this is the problem by running the command
cat /sys/block/md2/md/suspend_hi > /sys/block/md2/md/suspend_lo
That should allow the 'umount' to complete.
This will only happen on very small arrays that take less than a
couple of seconds for the reshape to complete. I have a patch for
mdadm which makes it more robust in this situation. It will be in
future releases.
Does this explain what is happening to you?
Thanks,
NeilBrown
next prev parent reply other threads:[~2009-03-23 5:26 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-21 20:29 roma1390
2009-03-22 9:20 ` martin f krafft
2009-03-22 10:41 ` roma1390
2009-03-23 4:09 ` roma1390
2009-03-23 5:02 ` Neil Brown [this message]
2009-03-23 8:41 ` roma1390
2009-03-23 9:07 ` roma1390
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=18887.6136.84328.602390@notabene.brown \
--to=neilb@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=roma1390@gmail.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
Powered by JetHome