From: Chris Osicki <osk@admin.swisscom-mobile.ch>
To: linux-raid@vger.kernel.org, Neil Brown <neilb@suse.de>
Subject: Re: accessing mirrired lvm on shared storage
Date: Wed, 12 Apr 2006 18:47:19 +0200 [thread overview]
Message-ID: <20060412184719.4e857070@mwdsp001> (raw)
In-Reply-To: <17468.32144.316047.478627@cse.unsw.edu.au>
On Wed, 12 Apr 2006 14:09:52 +1000
Neil Brown <neilb@suse.de> wrote:
> On Friday April 7, osk@admin.swisscom-mobile.ch wrote:
> > Unfortunately md lacks the ability to mark an array as
> > used/busy/you_name_it. Sometime ago I asked on this list for such an
> > enhancement (see thread with subject "Question: array locking,
> > possible"). Although I managed (with great help from few people on
> > this list) to attract Neil's attention, I couldn't fine enough
> > arguments to convince him to put this topic on hist TO-DO list.
> > Neil, you see the constantly growing number of potential users of this
> > feature? ;-)
>
> I don't think that just marking an array "don't mount" is really a
> useful solution. And if it was, it would be something done in 'mdadm'
> rather than in 'md'.
I don't think I understand this bit, sorry, but see below.
>
> What you really want is cluster wide locking using DLM or similar.
> That way when the node which has active use of the array fails,
> another node can pick up automatically.
But I also want to prevent accidentally activation of the array on the
stand-by node. That would mean make mdadm cluster or a lock manager
aware, which we certainly don't want.
That's why I'm asking for a flag on the array which would be far less complex
solution than a Lock Manager.
> Then we could put a flag in the superblock which says 'shared', and md
> would need a special request to assemble such an array.
That would mean, if I get you right, "Attention, it could be used on
another host, go and check or let me assemble it anyway if you know
what you're doing".
I was thinking about a flag saying "locked" which would
mean "array is assembled/used".
Look, if I have a cluster (active/stand-by) when starting it I assemble
my array in exclusive mode by setting the "locked" flag. If I do a
manual fail-over of my package/service using the array in question,
when stopping the array the flag gets cleared. The node which takes
over finds the array "unlocked", locks, assembles and uses it. Now the
active node crashes without clearing the flag. It is now
responsibility of the cluster software to force the assembly of the
array on the node taking over.
And nobody can accidentally/unwittingly assemble the array on stand-by
node (without giving the option -I_know_what_I_am_doing ;-),
which currently is my main concern as I haven't experienced any
crashes or malfunction of my clusters yet. Touching wood ....
It is how ServiceGuard cluster software on HP-UX works except that
disk mirroring and locking is done in LVM. Moreover LVM does know
about SG Cluster and prevents you from doing certain operations
depending on the current state of the cluster.
>
> One thing that is on my todo list is supporting shared raid1, so that
> several nodes in the cluster can assemble the same raid1 and access it
> - providing that the clients all do proper mutual exclusion as
> e.g. OCFS does.
>
> Your desire to have only-assembled-once would be trivial to include in
> that.
If this is what I described above, I hold my breath ;-)
>
> NeilBrown
>
Thanks very much for your time.
Regards,
Chris
next prev parent reply other threads:[~2006-04-12 16:47 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-06 18:19 accessing mirrired lvm on shared storage Matthias Eble
2006-04-07 11:46 ` Chris Osicki
2006-04-07 11:57 ` Matthias Eble
2006-04-12 4:09 ` Neil Brown
2006-04-12 16:47 ` Chris Osicki [this message]
2006-04-13 14:57 ` Mike Snitzer
2006-04-16 22:53 ` Neil Brown
2006-04-17 18:15 ` Mike Snitzer
2006-04-18 14:33 ` Michael Tokarev
-- strict thread matches above, loose matches on Subject: below --
2006-04-07 0:54 Stern, Rick (Serviceguard Linux)
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=20060412184719.4e857070@mwdsp001 \
--to=osk@admin.swisscom-mobile.ch \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/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).