<div>Hi Rafael,</div>
<div> </div>
<div>It works fine, well at least when not hiting some CLVM strange behaviours, that I'm able to replay by hand, so your script is allright.</div>
<div> </div>
<div>I'll post to linux-lvm what I could see.</div>
<div> </div>
<div>Brem<br><br> </div>
<div><span class="gmail_quote">2009/7/21, brem belguebli <<a href="mailto:brem.belguebli@gmail.com">brem.belguebli@gmail.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>Hola Rafael,</div>
<div> </div>
<div>Thanks a lot, that'll avoid me going from scratch.</div>
<div> </div>
<div>I'll have a look at them and keep you updated.</div>
<div> </div>
<div>Brem<br> </div>
<div><br> </div>
<div><span class="gmail_quote">2009/7/21, Rafael Micó Miranda <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rmicmirregs@gmail.com" target="_blank">rmicmirregs@gmail.com</a>>:</span> 
<div><span class="e" id="q_1229dea238bb121e_1">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Brem,<br><br>El mar, 21-07-2009 a las 16:40 +0200, brem belguebli escribió:<br>> Hi,<br>><br>> That's what I 'm trying to do.<br>
><br>> If you mean lvm.sh, well, I've been playing with it, but it does some<br>> "sanity" checks that are wierd<br>>      1. It expects HA LVM to be setup (why such check if we want to<br>>         use CLVM).<br>
>      2. it exits if it finds a CLVM VG  (kind of funny !)<br>>      3. it exits if the lvm.conf is newer than /boot/*.img (about this<br>>         one, we tend to prevent the cluster from automatically<br>>         starting ...)<br>
> I was looking to find some doc on how to write my own resources, ie<br>> CLVM resource that checks if the vg is clustered, if so by which node<br>> is it exclusively held, and if the node is down to activate<br>
> exclusively the VG.<br>><br>> If you have some good links to provide me, that'll be great.<br>><br>> Thanks<br>><br>><br>> 2009/7/21, Christine Caulfield <<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:ccaulfie@redhat.com" target="_blank">ccaulfie@redhat.com</a>>:<br>
>         On 07/21/2009 01:11 PM, brem belguebli wrote:<br>>                 Hi,<br>>                 When creating the VG by default clustered, you<br>>                 implicitely assume that<br>>                 it will be used with a clustered FS on top of it (gfs,<br>
>                 ocfs, etc...)<br>>                 that will handle the active/active mode.<br>>                 As I do not intend to use GFS in this particular case,<br>>                 but ext3 and raw<br>
>                 devices, I need to make sure the vg is exclusively<br>>                 activated on one<br>>                 node, preventing the other nodes to access it unless<br>>                 it is the failover<br>
>                 procedure (node holding the VG crashed) and then re<br>>                 activate it<br>>                 exclusively on the failover node.<br>>                 Thanks<br>><br>><br>>         In that case you probably ought to be using rgmanager to do<br>
>         the failover for you. It has a script for doing exactly<br>>         this :-)<br>><br>>         Chrissie<br>><br>><br>>         --<br>>         Linux-cluster mailing list<br>>         <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
>         <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>><br>><br>
> --<br>> Linux-cluster mailing list<br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>> <a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br>
<br>Please, check this link:<br><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/archives/cluster-devel/2009-June/msg00020.html" target="_blank">https://www.redhat.com/archives/cluster-devel/2009-June/msg00020.html</a><br>
<br>I found exactly the same problem as you, and i developed the<br>"lvm-cluster.sh" script to solve the needs I had. You can find the<br>script on the last message of the thread.<br><br>I submitted it to make it part of the main project, but i have no news<br>
about that yet.<br><br>I hope this helps.<br><br>Cheers,<br><br>Rafael<br><br>--<br>Rafael Micó Miranda<br><br>--<br>Linux-cluster mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></span></div>
</div><br></blockquote></div><br>