linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Daniel Frey <djqfrey@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Stop IMSM verify?
Date: Tue, 18 Sep 2012 16:46:41 +1000	[thread overview]
Message-ID: <20120918164641.224b9c19@notabene.brown> (raw)
In-Reply-To: <CA+ZgY1FMZm-g3-ODPLaRnN14+da+8QBcWhSX-p08kx70pGz97g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 2782 bytes --]

On Wed, 12 Sep 2012 18:34:41 -0700 Daniel Frey <djqfrey@gmail.com> wrote:

> On Wed, Sep 12, 2012 at 6:22 PM, NeilBrown <neilb@suse.de> wrote:
> > On Wed, 12 Sep 2012 18:00:21 -0700 Daniel Frey <djqfrey@gmail.com> wrote:
> >
> >> Is there any way to stop the verify of an IMSM raid through mdadm?
> >
> > No.
> 
> Darn.
> 
> >> I found https://raid.wiki.kernel.org/index.php/RAID_Administration,
> >> but the imsm raid does not seem to have sync_action anywhere in the
> >> /sys/block tree.
> >
> > It certainly should be there.
> >   find /sys/block -name sync_action
> > ??
> 
> I'm using mdadm exclusively for my imsm raid, and:
> 
>  ~ # find /sys/block -name sync_action
>  ~ #

Of course... it only exists in that tree via a symlink that find won't follow.

% find /sys/devices/ -name sync_action

will work.

> 
> I take it the imsm raid should have that? I used that exact same
> command (and found nothing) before I posted to the list.
> 
> >> I've been having issues with suspend which I'm trying to troubleshoot,
> >> and I know I can stop it if I boot into Windows. Just wondering if
> >> that functionality is in mdadm.
> >
> > I suspect your problem is that mdmon is being killed at an awkward time
> > during shutdown.
> > What distro?  Is 'systemd' being used?
> 
> The distro is gentoo (no systemd) - suspend works (as in it goes into
> suspend properly) but 8 out of 10 times it fails to wake out of
> suspend by either the keyboard or power button. The only way to "wake"
> it is to yank the power plug from the PSU for a few seconds and plug
> it in. As you can imagine, the imsm raid isn't too happy about that...
> it boots in Verify mode. I've found I can stop the raid verify in
> Windows, so I thought perhaps mdadm could do the same.
> 
> I haven't quite figured the suspend issue out yet. It could be
> hardware (thinking maybe PSU?) but I'm trying to troubleshoot this
> issue methodologically. It started after an upgrade to a kernel >
> 3.0.2, I have yet to try a 2.6.x to see if it goes back to normal.
> When it does resume properly, everything is fine (mdadm doesn't
> resync.) It's related to the sleep of death (or eternal sleep?) issue.

I guess it would be nice if we could somehow arrange that the array were
marked 'clean' just before suspend.... it looks like that should be possible.
'suspend notifiers' are called after the 'sync' and before user-space is
frozen.  I could maybe get md to register a 'suspend notifier' which poked
mdmon somehow so that it would mark the array as clean.  It might not even be
that hard.
If I were to create a patch against mainline (or maybe some earlier kernel if
you really wanted), would you be able/willing to test it out?

NeilBrown


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

  reply	other threads:[~2012-09-18  6:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-13  1:00 Stop IMSM verify? Daniel Frey
2012-09-13  1:22 ` NeilBrown
2012-09-13  1:34   ` Daniel Frey
2012-09-18  6:46     ` NeilBrown [this message]
2012-09-19  1:21       ` Daniel Frey

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=20120918164641.224b9c19@notabene.brown \
    --to=neilb@suse.de \
    --cc=djqfrey@gmail.com \
    --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).