linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Question: array locking, possible?
@ 2006-02-07 17:55 Chris Osicki
  2006-02-07 18:16 ` Mike Hardy
  2006-02-07 19:26 ` Paul Clements
  0 siblings, 2 replies; 17+ messages in thread
From: Chris Osicki @ 2006-02-07 17:55 UTC (permalink / raw)
  To: linux-raid


Hi

Is there any way to "lock" an active array?

To make clear what I'm after:

I have two machines forming a fail-over cluster connected over SAN to
two storage boxes which provide them with a "disk" each.
I created a RAID1 using those two "disks". 

Both cluster nodes see both disks but only one node, the active
one uses them by assembling the array.

During a fail-over I stop the array on the active node and assemble
it on the node becoming active. It works OK, or at least I haven't
seen any problems for quite a long time now.

The problem now is how to prevent somebody on the other host from
accidentally assembling the array. Because the result of doing so would
be something from strange to catastrophic ;-)

To rephrase my question, is there any way to make it visible to the
other host that the array is up an running on the this host?

Any comments, ideas?

Thanks for your time.

Regards,
Chris

^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: Question: array locking, possible?
@ 2006-02-09 18:28 Stern, Rick (Serviceguard Linux)
  2006-02-09 20:48 ` Luca Berra
  2006-02-13 17:12 ` Chris Osicki
  0 siblings, 2 replies; 17+ messages in thread
From: Stern, Rick (Serviceguard Linux) @ 2006-02-09 18:28 UTC (permalink / raw)
  To: Chris Osicki, linux-raid

There is more interest, just not vocal.

May want to look at LVM2 and its ability to use tagging to control enablement of VGs. This way it is not HW dependent.

-----Original Message-----
From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Chris Osicki
Sent: Thursday, February 09, 2006 2:26 AM
To: linux-raid@vger.kernel.org
Subject: Re: Question: array locking, possible?



It looks like we are the only two md users interested in such a
feature.
Not enough to get Neil's attention ;-)

Regards,
Chris

On Wed, 8 Feb 2006 21:45:33 +0100
Jure Peèar <pegasus@nerv.eu.org> wrote:

> On Wed, 8 Feb 2006 11:55:49 +0100
> Chris Osicki <osk@admin.swisscom-mobile.ch> wrote:
> 
> > 
> > 
> > I was thinking about it, I have no idea how to do it on Linux if ever possible.
> > I connect over fibre channel SAN, using QLogic QLA2312 HBAS, if it matters.
> > 
> > Anyone any hints?
> 
> I too am running a jbod with md raid between two machines. So far md never
> caused any kind of problems, altough I did have situations where both
> machines were syncing mirrors at once.
> 
> If there's a little tool to reserve a disk via scsi, I'd like to know about
> it too. Even a piece of code would be enough.
> 
> 
> -- 
> 
> Jure Peèar
> http://jure.pecar.org/
> -
> 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
> 
-
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
-
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] 17+ messages in thread
* RE: Question: array locking, possible?
@ 2006-02-13 17:21 Stern, Rick (Serviceguard Linux)
  2006-02-13 17:58 ` Chris Osicki
  0 siblings, 1 reply; 17+ messages in thread
From: Stern, Rick (Serviceguard Linux) @ 2006-02-13 17:21 UTC (permalink / raw)
  To: Chris Osicki, linux-raid

I understand about HP-UX mirroring/LVM.

I was a little too obtuse.

LVM2 has a feature (not well advertised) that allows an VG to be tagged so it will not be activated by "system b" if it is already tagged as being in use by "system a".  I was suggesting that a similar feature could be added to MD.  This way a MD array could be marked as "owned" and, if so, mdadm would not activate it from another system.  This way all of the MD control is still within mdadm.

If Neil is interested, I'll try to dig up more info.

Regards,
Rick  

-----Original Message-----
From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Chris Osicki
Sent: Monday, February 13, 2006 9:13 AM
To: linux-raid@vger.kernel.org
Subject: Re: Question: array locking, possible?



Rick

On HP-UX disk mirroring is done in LVM. I'm using md driver for
mirroring and LVM on top of it.  Controlling access to my disks in LVM
is just too late. I would have to assemble the array before I can activate
VGs. If the array in question is being used on the other host nobody
can guarantee that bad thing wont happen. And what I would like to
prevent is: two hosts accessing (writing) an array.
Thanks anyway for the hint.

Regards,
Chris


On Thu, 9 Feb 2006 10:28:58 -0800
"Stern, Rick (Serviceguard Linux)" <rick.stern@hp.com> wrote:

> There is more interest, just not vocal.
> 
> May want to look at LVM2 and its ability to use tagging to control enablement of VGs. This way it is not HW dependent.
> 
> -----Original Message-----
> From: linux-raid-owner@vger.kernel.org [mailto:linux-raid-owner@vger.kernel.org] On Behalf Of Chris Osicki
> Sent: Thursday, February 09, 2006 2:26 AM
> To: linux-raid@vger.kernel.org
> Subject: Re: Question: array locking, possible?
> 
> 
> 
> It looks like we are the only two md users interested in such a
> feature.
> Not enough to get Neil's attention ;-)
> 
> Regards,
> Chris
> 
> On Wed, 8 Feb 2006 21:45:33 +0100
> Jure Peèar <pegasus@nerv.eu.org> wrote:
> 
> > On Wed, 8 Feb 2006 11:55:49 +0100
> > Chris Osicki <osk@admin.swisscom-mobile.ch> wrote:
> > 
> > > 
> > > 
> > > I was thinking about it, I have no idea how to do it on Linux if ever possible.
> > > I connect over fibre channel SAN, using QLogic QLA2312 HBAS, if it matters.
> > > 
> > > Anyone any hints?
> > 
> > I too am running a jbod with md raid between two machines. So far md never
> > caused any kind of problems, altough I did have situations where both
> > machines were syncing mirrors at once.
> > 
> > If there's a little tool to reserve a disk via scsi, I'd like to know about
> > it too. Even a piece of code would be enough.
> > 
> > 
> > -- 
> > 
> > Jure Peèar
> > http://jure.pecar.org/
> > -
> > 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
> > 
> -
> 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
> -
> 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
> 
-
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
-
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] 17+ messages in thread

end of thread, other threads:[~2006-02-13 22:54 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-07 17:55 Question: array locking, possible? Chris Osicki
2006-02-07 18:16 ` Mike Hardy
2006-02-08 10:49   ` Chris Osicki
2006-02-07 19:26 ` Paul Clements
2006-02-08 10:55   ` Chris Osicki
2006-02-08 20:45     ` Jure Pečar
2006-02-09 10:25       ` Chris Osicki
2006-02-10  0:00         ` Neil Brown
2006-02-10 17:17       ` Paul Clements
  -- strict thread matches above, loose matches on Subject: below --
2006-02-09 18:28 Stern, Rick (Serviceguard Linux)
2006-02-09 20:48 ` Luca Berra
2006-02-13 17:52   ` Chris Osicki
2006-02-13 21:53     ` Luca Berra
2006-02-13 22:54       ` Luca Berra
2006-02-13 17:12 ` Chris Osicki
2006-02-13 17:21 Stern, Rick (Serviceguard Linux)
2006-02-13 17:58 ` Chris Osicki

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