Hi, Thanks for the help. I hope we are nearing to the problem.<div><br></div><div>I enabled logging , this is how my cluster.conf looks like</div><div><br></div><div><div><?xml version="1.0"?></div><div><cluster alias="newCluster" config_version="16" name="newCluster"></div>
<div><logging debug="on"/></div><div><cman expected_votes="1" two_node="1"/></div><div><clusternodes></div><div><clusternode name="server1" nodeid="1" votes="1"></div>
<div><fence><method name="single"><device name="human"/></method></fence></clusternode><clusternode name="server2" nodeid="2" votes="1"><fence><method name="single"><device name="human"/></method></fence></clusternode></clusternodes><fencedevices></div>
<div><br></div><div>        </fencedevices><rm><failoverdomains><failoverdomain name="failOver" nofailback="0" ordered="1" restricted="0"><failoverdomainnode name="server1" priority="1"/><failoverdomainnode name="server2" priority="2"/></failoverdomain></failoverdomains><resources><ip address="192.168.61.130" monitor_link="1"/><apache config_file="conf/httpd.conf" name="httpd" server_root="/etc/httpd" shutdown_wait="0"/></resources><service autostart="1" domain="failOver" exclusive="1" name="Apache" recovery="relocate"><ip address="192.168.61.130" monitor_link="1"><apache config_file="conf/httpd.conf" name="Apache" server_root="/etc/httpd" shutdown_wait="0"/></ip></service><service autostart="1" domain="failOver" exclusive="1" name="website" recovery="relocate"><ip ref="192.168.61.130"><apache ref="httpd"/></ip></service></rm><fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/><logging debug="on"/></cluster></div>
<div><br></div><div>There is no logging happening in /var/run/cluster/</div><div><br></div><div><div>[root@server1 ~]# ls /var/run/cluster/</div><div>apache  ccsd.pid  ccsd.sock  <a href="http://rgmanager.sk">rgmanager.sk</a></div>
</div><div><br></div><div>I started resource manager in foreground and it says like ..</div><div><br></div><div><div>failed acquiring lockspace: No such device</div><div>Locks not working!</div><div><br></div><div>What next i could do ? </div>
<div><br></div><div>-Param</div><br><div class="gmail_quote">On Fri, Aug 24, 2012 at 3:18 PM, emmanuel segura <span dir="ltr"><<a href="mailto:emi2fast@gmail.com" target="_blank">emi2fast@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">/etc/init.d/rgmanager start or service rgmanager start<div class="HOEnZb"><div class="h5"><br><br><div class="gmail_quote">
2012/8/24 Heiko Nardmann <span dir="ltr"><<a href="mailto:heiko.nardmann@itechnical.de" target="_blank">heiko.nardmann@itechnical.de</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">It is strange that strace shows that /var/run/cluster/<a href="http://rgmanager.sk" target="_blank">rgmanager.sk</a> is missing.<br>


<br>
Normally it is helpful to see the complete cluster.conf. Could you provide that one?<br>
<br>
Also of interest is /var/log/cluster/rgmanager.log - do you have debug enabled inside cluster.conf?<br>
<br>
Maybe it is possible to start rgmanager in the foreground (-f) with strace? That might also be a way to show why the <a href="http://rgmanager.sk" target="_blank">rgmanager.sk</a> is missing ...<br>
<br>
Just some ideas ...<br>
<br>
<br>
Kind regards,<br>
<br>
    Heiko<br>
<br>
Am <a href="tel:24.08.2012%2011" value="+12408201211" target="_blank">24.08.2012 11</a>:04, schrieb PARAM KRISH:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
All,<br>
<br>
I am trying to setup a simple two node cluster in my laptop using two RHEL VM's.<br>
<br>
Everything looks just fine to me but i am unable to enable a apache service though it works beautifully when tried with "rg_test test" on both the nodes.<br>
<br>
What could be the problem ? Please help. I am a novice in red hat cluster but learnt a bit of it in the last few days while trying to fix all the problems encountered.<br>
<br>
Here are the details.<br>
<br>
[root@server1 ~]# clustat<br>
Cluster Status for newCluster @ Thu Aug 23 00:29:32 2012<br>
Member Status: Quorate<br>
<br>
 Member Name                 ID   Status<br>
 ------ ----                 ---- ------<br>
 server1                     1 Online, Local<br>
 server2                     2 Online<br>
<br>
[root@server1 ~]# clustat -x<br>
<?xml version="1.0"?><br>
<clustat version="4.1.1"><br>
  <cluster name="newCluster" id="43188" generation="250536"/><br>
  <quorum quorate="1" groupmember="0"/><br>
  <nodes><br>
    <node name="server1" state="1" local="1" estranged="0" rgmanager="0" rgmanager_master="0" qdisk="0" nodeid="0x00000001"/><br>
    <node name="server2" state="1" local="0" estranged="0" rgmanager="0" rgmanager_master="0" qdisk="0" nodeid="0x00000002"/>  </nodes><br>


</clustat><br>
<br>
[root@server2 ~]# clustat<br>
Cluster Status for newCluster @ Thu Aug 23 03:13:34 2012<br>
Member Status: Quorate<br>
<br>
 Member Name                 ID   Status<br>
 ------ ----                 ---- ------<br>
 server1                     1 Online<br>
 server2                     2 Online, Local<br>
<br>
[root@server2 ~]# clustat -x<br>
<?xml version="1.0"?><br>
<clustat version="4.1.1"><br>
  <cluster name="newCluster" id="43188" generation="250536"/><br>
  <quorum quorate="1" groupmember="0"/><br>
  <nodes><br>
    <node name="server1" state="1" local="0" estranged="0" rgmanager="0" rgmanager_master="0" qdisk="0" nodeid="0x00000001"/><br>
    <node name="server2" state="1" local="1" estranged="0" rgmanager="0" rgmanager_master="0" qdisk="0" nodeid="0x00000002"/><br>
  </nodes><br>
</clustat><br>
<br>
<br>
[root@server2 ~]# clusvcadm -e Apache<br>
Local machine trying to enable service:Apache...Could not connect to resource group manager<br>
<br>
strace cluvcsadm -e Apache<br>
...<br>
stat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 4), ...}) = 0<br>
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fb5000<br>
write(1, "Local machine trying to enable s"..., 48Local machine trying to enable service:Apache...) = 48<br>
socket(PF_FILE, SOCK_STREAM, 0)         = 5<br></div></div>
connect(5, {sa_family=AF_FILE, path="/var/run/cluster/<a href="http://rgmanager.sk" target="_blank">rgmanag<u></u>er.sk</a> <<a href="http://rgmanager.sk" target="_blank">http://rgmanager.sk</a>>"...}, 110) = -1 ENOENT (No such file or directory)<div>

<div><br>
close(5)                                = 0<br>
write(1, "Could not connect to resource gr"..., 44Could not connect to resource group manager<br>
) = 44<br>
exit_group(1)                           = ?<br>
<br>
<br>
[root@server1 ~]# hostname<br>
server1.localdomain<br>
<br>
[root@server1 ~]# cat /etc/hosts<br>
# Do not remove the following line, or various programs<br>
# that require network functionality will fail.<br>
#127.0.0.1              server1.localdomain server1 localhost.localdomain localhost<br>
192.168.61.132 server1.localdomain server1<br>
192.168.61.133 server2.localdomain server2<br>
::1             localhost6.localdomain6 localhost6<br>
<br>
<br>
Package versions :<br>
luci-0.12.2-24.el5<br>
ricci-0.12.2-24.el5<br>
rgmanager-2.0.52-9.el5<br>
modcluster-0.12.1-2.el5<br>
cluster-cim-0.12.1-2.el5<br>
system-config-cluster-1.0.57-7<br>
lvm2-cluster-2.02.74-3.el5<br>
cluster-snmp-0.12.1-2.el5<br>
<br>
[root@server1 log]# cman_tool status<br>
Version: 6.2.0<br>
Config Version: 15<br>
Cluster Name: newCluster<br>
Cluster Id: 43188<br>
Cluster Member: Yes<br>
Cluster Generation: 250536<br>
Membership state: Cluster-Member<br>
Nodes: 2<br>
Expected votes: 1<br>
Total votes: 2<br>
Quorum: 1<br>
Active subsystems: 2<br>
Flags: 2node<br>
Ports Bound: 0<br>
Node name: server1<br>
Node ID: 1<br>
Multicast addresses: 239.192.168.93<br>
Node addresses: 192.168.61.132<br>
<br>
Redhat :Red Hat Enterprise Linux Server release 5.6 (Tikanga)2.6.18-238.el5xen<br>
<br>
[root@server1 log]# service rgmanager status<br>
clurgmgrd (pid  9775) is running...<br>
<br>
[root@server1 log]# netstat -na | grep 11111<br></div></div>
tcp        0      0 <a href="http://0.0.0.0:11111" target="_blank">0.0.0.0:11111</a> <<a href="http://0.0.0.0:11111" target="_blank">http://0.0.0.0:11111</a>>         0.0.0.0:*                   LISTEN<div>
<br>
<br>
Please let me know if you can help. One thing i noticed was that in the "clustat" it does not show "rgmanager" against both the nodes but i see the service is just running fine.<br>
<br></div>
*Note : No iptables, no SELinux enabled.*<br>
*<div><br>
*<br>
Hope i have given all the details required to help me quickly. Thanks.<br>
<br>
-Param<br>
<br>
<br>
</div></blockquote><div><div>
<br>
--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com" target="_blank">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/linux-cluster</a><br>
</div></div></blockquote></div><br><br clear="all"><br></div></div><div class="HOEnZb"><div class="h5">-- <br>esta es mi vida e me la vivo hasta que dios quiera<br>
</div></div><br>--<br>
Linux-cluster mailing list<br>
<a href="mailto:Linux-cluster@redhat.com">Linux-cluster@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-cluster" target="_blank">https://www.redhat.com/mailman/listinfo/linux-cluster</a><br></blockquote></div><br></div></div>