linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Stop IMSM verify?
@ 2012-09-13  1:00 Daniel Frey
  2012-09-13  1:22 ` NeilBrown
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Frey @ 2012-09-13  1:00 UTC (permalink / raw)
  To: linux-raid

Is there any way to stop the verify of an IMSM raid through mdadm?

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.

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.

Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stop IMSM verify?
  2012-09-13  1:00 Stop IMSM verify? Daniel Frey
@ 2012-09-13  1:22 ` NeilBrown
  2012-09-13  1:34   ` Daniel Frey
  0 siblings, 1 reply; 5+ messages in thread
From: NeilBrown @ 2012-09-13  1:22 UTC (permalink / raw)
  To: Daniel Frey; +Cc: linux-raid

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

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.

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

NeilBrown

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stop IMSM verify?
  2012-09-13  1:22 ` NeilBrown
@ 2012-09-13  1:34   ` Daniel Frey
  2012-09-18  6:46     ` NeilBrown
  0 siblings, 1 reply; 5+ messages in thread
From: Daniel Frey @ 2012-09-13  1:34 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

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
 ~ #

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.

Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stop IMSM verify?
  2012-09-13  1:34   ` Daniel Frey
@ 2012-09-18  6:46     ` NeilBrown
  2012-09-19  1:21       ` Daniel Frey
  0 siblings, 1 reply; 5+ messages in thread
From: NeilBrown @ 2012-09-18  6:46 UTC (permalink / raw)
  To: Daniel Frey; +Cc: linux-raid

[-- 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 --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Stop IMSM verify?
  2012-09-18  6:46     ` NeilBrown
@ 2012-09-19  1:21       ` Daniel Frey
  0 siblings, 0 replies; 5+ messages in thread
From: Daniel Frey @ 2012-09-19  1:21 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

On 09/17/2012 11:46 PM, NeilBrown wrote:
> 
> 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
> 

I did discover my power supply was toast, the +5V line dropped well out
of tolerance. I've resolved that issue now.

Normally sleeping and waking doesn't cause the array to rebuild.

Gentoo's shutdown scripts weren't shutting the array down properly
initially, but I did fix that issue as well. All is finally good on my
computer.

The kernel I'm currently running is 3.4.9, but I can build the stable
3.5.4 to test if needed. I can test the patch (all I have to do to
replicate it is suspend + yank the power cord.) If you do write the
patch let me know what version to patch against.

Thanks Neil,

Dan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-09-19  1:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2012-09-19  1:21       ` Daniel Frey

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).