[Linux-cluster] Things that i don't understand about cluster suite

carlopmart carlopmart at gmail.com
Wed Sep 20 14:03:42 UTC 2006


Thanks Jim, but If i change iLO fence for a GNBD fence, results are the 
same for my three questions, or do I need to configure one gnbd fence 
for each node???

Jim Parsons wrote:
> carlopmart wrote:
> 
>> Hi all,
>>
>>  Sorry for this toppic, but i have serious doubts about using cluster 
>> suite under some deployments. My questions:
>>
>>  a) How can I configure status check on a service script? for exmaple: 
>> I have two nodes with CS U4 with postfix service running on two nodes 
>> and using DLM as a lock manager. If I stop postfix from the script and 
>> I wait status check, nothing happens and rgmanager returns an ok for 
>> the service, but this service is stopped !!!.
>>
>>  b) is it posible to startup only one node on a two-node cluster? i 
>> have tested this feature, but this node doesn't startup ( i am using 
>> iLO as a fencing method, but I have tested gnbd too and the result is 
>> the same).
>>
>>  c) why relocate service doesn't works?? I have attached my config. 
>> For example, if I reboot one node, all services go to the second. This 
>> is ok, but when this primary node is up, services continue getting up 
>> in the previous node and they don't migrate towards the other node.
>>
>>
>>  I suppose that I am doing something wrong but i don't know what. 
>> Somebody can helps me??
>>
>> many thanks. 
> 
> Below in the conf file, you have one ilo device declared under the 
> fencedevice section, and both nodes are using it. This would mean that 
> if one node were ever fenced, then both nodes would be fenced. ilo is a 
> per node fence type - they are rarely shared. I think you should have a 
> fencedevice block of type ilo for each node, and then the fence section 
> under each node should ref the appropriate device....that is, node1 
> should use it's built-in ilo and node2 should use its own.
> 
> -J
> 
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>> <?xml version="1.0"?>
>> <cluster config_version="23" name="DMZCluster">
>>     <fence_daemon post_fail_delay="0" post_join_delay="3"/>
>>     <clusternodes>
>>         <clusternode name="klecker" votes="1">
>>             <fence>
>>                 <method name="1">
>>                     <device name="fence_iLO"/>
>>                 </method>
>>             </fence>
>>         </clusternode>
>>         <clusternode name="samosa" votes="1">
>>             <fence>
>>                 <method name="1">
>>                     <device name="fence_iLO"/>
>>                 </method>
>>             </fence>
>>         </clusternode>
>>     </clusternodes>
>>     <cman expected_votes="1" two_node="1"/>
>>     <fencedevices>
>>         <fencedevice agent="fence_ilo" hostname="10.10.10.221" 
>> login="Administrator" name="fence_iLO" passwd="fenceilo"/>
>>     </fencedevices>
>>     <rm>
>>         <failoverdomains>
>>             <failoverdomain name="PriCluster" ordered="1" restricted="0">
>>                 <failoverdomainnode name="klecker" priority="1"/>
>>                 <failoverdomainnode name="samosa" priority="2"/>
>>             </failoverdomain>
>>             <failoverdomain name="SecCluster" ordered="1">
>>                 <failoverdomainnode name="klecker" priority="2"/>
>>                 <failoverdomainnode name="samosa" priority="1"/>
>>             </failoverdomain>
>>         </failoverdomains>
>>         <resources/>
>>         <service autostart="1" domain="SecCluster" exclusive="1" 
>> name="dbserver" recovery="relocate">
>>             <ip address="192.168.100.68" monitor_link="1">
>>                 <script file="/opt/cluconfig/etc/init.d/postgresql" 
>> name="postgresql"/>
>>             </ip>
>>         </service>
>>         <service autostart="1" domain="SecCluster" exclusive="1" 
>> name="euq" recovery="relocate">
>>             <ip address="192.168.100.70" monitor_link="1">
>>                 <script file="/opt/cluconfig/etc/init.d/euq" name="euq"/>
>>                 <script file="/opt/cluconfig/etc/init.d/euqa" 
>> name="euqa"/>
>>             </ip>
>>         </service>
>>         <service autostart="1" domain="PriCluster" exclusive="1" 
>> name="smtp-imss" recovery="relocate">
>>             <ip address="192.168.100.69" monitor_link="1">
>>                 <script file="/opt/cluconfig/etc/init.d/imss" 
>> name="imss">
>>                     <script file="/opt/cluconfig/etc/init.d/imss-mta" 
>> name="imss-mta"/>
>>                 </script>
>>             </ip>
>>         </service>
>>     </rm>
>> </cluster>
>>
>>
>> ------------------------------------------------------------------------
>>
>> -- 
>> Linux-cluster mailing list
>> Linux-cluster at redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-cluster
>>
> 
> 
> 
> -- 
> Linux-cluster mailing list
> Linux-cluster at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-cluster
> 

-- 
CL Martinez
carlopmart {at} gmail {d0t} com




More information about the Linux-cluster mailing list