From: Neil Brown <neilb@suse.de>
To: Andre Majorel <aym-xunil@teaser.fr>
Cc: linux-raid@vger.kernel.org
Subject: Re: Synchronous mdadm --add/--re-add operations
Date: Fri, 26 Jan 2007 09:19:24 +1100 [thread overview]
Message-ID: <17849.11500.153192.854079@notabene.brown> (raw)
In-Reply-To: message from Andre Majorel on Thursday January 25
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
prev parent reply other threads:[~2007-01-25 22:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-25 22:00 Synchronous mdadm --add/--re-add operations Andre Majorel
2007-01-25 22:19 ` Neil Brown [this message]
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=17849.11500.153192.854079@notabene.brown \
--to=neilb@suse.de \
--cc=aym-xunil@teaser.fr \
--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 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.