[Linux-cluster] CLVMD without GFS

Moralejo, Alfredo alfredo.moralejo at roche.com
Tue Aug 18 13:19:19 UTC 2009


Hi,

Yes, I understand that.

However, what I meant is that, from a configuration simplicity point of view, it could be convenient to add the functionality into a only resource that take care of the entire cycle, logical volume activation in exclusive mode and mounting it. I think this is the most common usage of the fs resource. In this way, I don't need to create two resources for each filesystem (one for the logical volume and one other for the fs) and I can be sure a filesystem can not be mounted by hand in another node (as it has been activate exclusively in the node running the service).

Best regards,

Alfredo


________________________________
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of brem belguebli
Sent: Tuesday, August 18, 2009 11:36 AM
To: linux clustering
Subject: Re: [Linux-cluster] CLVMD without GFS

Alfredo,

The resource Rafael created operates at LV level not FS.

As far as I understand, a FS exclusive tag would be efficient only under rgmanager control, but it wouldn't if an admin decided to mount the FS by hand on another cluster node.

Brem


2009/8/18, Moralejo, Alfredo <alfredo.moralejo at roche.com<mailto:alfredo.moralejo at roche.com>>:

Hi Brem,



Maybe I did not explain it properly.



What I mean is that fs resource should activate the filesystems in exclusive mode as the resource created by Rafael does (lvm-cluster.sh) as I far as I understand to ensure the filesystem can not be mounted in other nodes accidentally.



Best regards,



Alfredo





________________________________

From: linux-cluster-bounces at redhat.com<mailto:linux-cluster-bounces at redhat.com> [mailto:linux-cluster-bounces at redhat.com<mailto:linux-cluster-bounces at redhat.com>] On Behalf Of brem belguebli
Sent: Tuesday, August 18, 2009 11:10 AM

To: linux clustering
Subject: Re: [Linux-cluster] CLVMD without GFS



Hello Alfredo,



For the exclusive bypass, I have opened a bugzilla ticket. Hopefully it'll be fixed (enhanced)0



For your second point, I'm not sure to ubndestand what you're saying.



My concern is to avoid manual activation on the wrong node, not an accidental rgmanager activation.



Even if you configure your FS resource as exclusive, if it is possible, this won't be of any effect with ext3 outside of rgmanager control as it is not cluster aware.

Brem

2009/8/18, Moralejo, Alfredo <alfredo.moralejo at roche.com<mailto:alfredo.moralejo at roche.com>>:

Hi,



I have the same concern with the activation of non-GFS file systems and I agree with the idea of using exclusive activation (keeping in mind that the strange behavior of exclusive tag being bypassed should be fixed). However, from my point of view, the best way is not to create a new resource but adding a new "exclusive" option to the regular fs resource or something like that, as I think it's the desired behavior most times the fs resource is used.



Best regards,



Alfredo







________________________________

From: linux-cluster-bounces at redhat.com<mailto:linux-cluster-bounces at redhat.com> [mailto:linux-cluster-bounces at redhat.com<mailto:linux-cluster-bounces at redhat.com>] On Behalf Of brem belguebli
Sent: Saturday, August 01, 2009 2:25 AM
To: linux clustering
Subject: Re: [Linux-cluster] CLVMD without GFS



Hi Rafael,

Of course, that is what I was telling you the other day, your script works fine, but I just wanted to twist a little clvm.

The prerequisites are already setup (locking type, dm-mp, lvm, etc...).

The only thing that disturbes me is that you can bypass under certain conditions the locking.

Thanks for the help

Brem



2009/8/1 Rafael Micó Miranda <rmicmirregs at gmail.com<mailto:rmicmirregs at gmail.com>>

Hi Brem,

El vie, 31-07-2009 a las 06:09 -0400, crosa at redhat.com<mailto:crosa at redhat.com> escribió:

>
> --- mensagem original ---
> De: brem belguebli <brem.belguebli at gmail.com<mailto:brem.belguebli at gmail.com>>
> Assunto: Re: [Linux-cluster] CLVMD without GFS
> Data: 29 de Julho de 2009
> Hora: 10:1:29
>
> Hi Rafael,
>
> Just posted the basic tests I'm doing on both linux-cluster and linux-lvm.
>
> I can't get exclusive activation to work properly, I may be missing some
> step in my process.
>
> Brem
>
>

>

> --
> Linux-cluster mailing list
> Linux-cluster at redhat.com<mailto:Linux-cluster at redhat.com>
> https://www.redhat.com/mailman/listinfo/linux-cluster

Sorry, i'm not sure if I missed this mail.

Maybe i need to explain a couple of things first, just to make them
clear.

As part of the use of the lvm-cluster.sh resource script, you need to:

1.- Configure properly the lock type into lvm.conf to type 3 (example
into this link:

https://www.redhat.com/archives/linux-cluster/2009-July/msg00253.html

)

2.- Configure your multipathing software

3.- Create your Physical Volumes

4.- Configure your Volume Groups as clustered Volume Groups

5.- Create your Logical Volumens into the clustered Volume Groups

6.- And, and the not so obvious, de-activate all the Logical Volumes you
plan to use as exclusive Logical Volumes (using exclusive flag).

De-activation can be done with "vgchange -an volgrp01/logvol01" or
similar command.

If you don't do step 6, you will receive an error message when executing
"lvchange -aey volgrp01/logvol01". This command is executed (with the
proper volume group and logical volume names) internally in the resource
script.

I designed the lvm-cluster.sh resource script to be verbose, maybe you
can copy here your logs (default to /var/log/messages on RHEL systems).

Cheers and thanks,

Rafael

--
Rafael Micó Miranda

--
Linux-cluster mailing list
Linux-cluster at redhat.com<mailto:Linux-cluster at redhat.com>
https://www.redhat.com/mailman/listinfo/linux-cluster



--
Linux-cluster mailing list
Linux-cluster at redhat.com<mailto:Linux-cluster at redhat.com>
https://www.redhat.com/mailman/listinfo/linux-cluster



--
Linux-cluster mailing list
Linux-cluster at redhat.com<mailto:Linux-cluster at redhat.com>
https://www.redhat.com/mailman/listinfo/linux-cluster

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20090818/d7cdf3dc/attachment.htm>


More information about the Linux-cluster mailing list