All of lore.kernel.org
 help / color / mirror / Atom feed
From: roma1390 <roma1390@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: raid6 grow "hangs" on 2.6.27 with mounted FS
Date: Mon, 23 Mar 2009 10:41:49 +0200	[thread overview]
Message-ID: <49C74B4D.2060003@gmail.com> (raw)
In-Reply-To: <18887.6136.84328.602390@notabene.brown>

Neil Brown wrote:
 > On Saturday March 21, roma1390@gmail.com wrote:
 > 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?

Yes, mdadm hangs by itself, If i start mdadm in background and wait some 
time for reconstrucion, umount still hangs. I didn't touch mdadm, and 
mdadm likes to stop...

 > 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

First try was:

   mdadm --grow /dev/md2 --raid-devices=5 &
   sleep 3
   cat /sys/block/md2/md/suspend_hi
   # output: 768
   cat /sys/block/md2/md/suspend_lo
   # output: 0
   cat /sys/block/md2/md/suspend_hi > /sys/block/md2/md/suspend_lo
   sleep 20
   umount /dev/md2

And this works! mdadm unhangs, and umount doesn't block any more.

 > 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?

Yes, thanks. May be if I retest this situation with same kernel and 
limited recovery bandwith, then may be i can't hit same problem again?

 > Thanks,
 > NeilBrown

Thanks.



  reply	other threads:[~2009-03-23  8:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-21 20:29 raid6 grow "hangs" on 2.6.27 with mounted FS 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
2009-03-23  8:41   ` roma1390 [this message]
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=49C74B4D.2060003@gmail.com \
    --to=roma1390@gmail.com \
    --cc=linux-kernel@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 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.