From: Neil Brown <neilb@suse.de>
To: "Czarnowska, Anna" <anna.czarnowska@intel.com>
Cc: "linux-raid@vger.kernel.org" <linux-raid@vger.kernel.org>
Subject: Re: Autorebuild - many instances of Monitor?
Date: Thu, 28 Oct 2010 11:13:49 +1100 [thread overview]
Message-ID: <20101028111349.70a184de@notabene> (raw)
In-Reply-To: <A9DE54D0CD747C4CB06DCE5B6FA2246F010BA7829D@irsmsx504.ger.corp.intel.com>
On Wed, 27 Oct 2010 08:55:05 +0100
"Czarnowska, Anna" <anna.czarnowska@intel.com> wrote:
> Hi Neil,
> As a result of our internal discussion on autorebuild we decided to introduce new parameter for mdadm -F to be able to run monitoring without moving spares.
> It doesn't seem reasonable to have two processes juggling disks at the same time so we also think we should allow only one spare sharing process.
> Our current version only allows one Monitor to move spares.
>
> When introducing parameter that indicates there will be no spare sharing, I think it would be confusing to have spare-group based code still move spares.
> So I think the option should also disable old style spare migration. With the option there is no problem having several Monitors on the same devices.
> Without the option Monitor will move spares as before and also based on new config domains.
>
> However there is one issue we would like to get your opinion on.
> Allowing only one instance of Monitor moving spares would not be fully backward compatible i.e. with spare-group based spare migration it was possible to run multiple instances of Monitor.
> If run on different sets of devices there is no conflict between many instances, but if the sets of monitored devices overlap, then for example two or more monitors could add spares to the same array that just needs one.
> Do you think we should allow user to run multiple instances of Monitor that does spare sharing, possibly introducing a conflict between instances?
>
The possibility of confusion clearly isn't a new issue. It has always been
possible to run multiple monitor processes that could confuse each other.
But it doesn't seem to be a problem in practice - people just don't do that.
So it isn't clear to me why you now want to prevent people from doing
something that they didn't do anyway.
It would be reasonable to ensure that only one instance of
"mdadm --monitor --scan"
was running, as '--scan' gives mdadm permission to monitor anything that it
finds. Maybe that is where you should put the locking if you really think
some is needed.
i.e. if Monitor is run with 'scan' set, then fail if you cannot claim a lock
file.
NeilBrown
next prev parent reply other threads:[~2010-10-28 0:13 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 7:55 Autorebuild - many instances of Monitor? Czarnowska, Anna
2010-10-28 0:13 ` Neil Brown [this message]
-- strict thread matches above, loose matches on Subject: below --
2010-10-29 7:50 Czarnowska, Anna
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=20101028111349.70a184de@notabene \
--to=neilb@suse.de \
--cc=anna.czarnowska@intel.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).