* Synchronous mdadm --add/--re-add operations
@ 2007-01-25 22:00 Andre Majorel
2007-01-25 22:19 ` Neil Brown
0 siblings, 1 reply; 2+ messages in thread
From: Andre Majorel @ 2007-01-25 22:00 UTC (permalink / raw)
To: linux-raid
How do I serialise mdadm --add/--re-add calls other than by
writing some shell to poll /proc/mdstat ? Is there a way to make
mdadm synchronous i.e., waiting until the operation completes or
fails instead of starting it in the background and returning.
--
André Majorel <URL:http://www.teaser.fr/~amajorel/>
Do not use this account for regular correspondence.
See the URL above for contact information.
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Synchronous mdadm --add/--re-add operations
2007-01-25 22:00 Synchronous mdadm --add/--re-add operations Andre Majorel
@ 2007-01-25 22:19 ` Neil Brown
0 siblings, 0 replies; 2+ messages in thread
From: Neil Brown @ 2007-01-25 22:19 UTC (permalink / raw)
To: Andre Majorel; +Cc: linux-raid
On Thursday January 25, aym-xunil@teaser.fr wrote:
> How do I serialise mdadm --add/--re-add calls other than by
> writing some shell to poll /proc/mdstat ? Is there a way to make
> mdadm synchronous i.e., waiting until the operation completes or
> fails instead of starting it in the background and returning.
Something has to poll mdstat (or some /sys file).
In mdadm-2.6 where is a '-W' option which will wait for
resync/recovery to complete. So
mdadm /dev/mdX -add /dev/thing
mdadm -W /dev/mdX
might be what you want.
NeilBrown
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-25 22:19 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-25 22:00 Synchronous mdadm --add/--re-add operations Andre Majorel
2007-01-25 22:19 ` Neil Brown
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.