[Pacemaker] coroync not able to exec services properly
Shravan Mishra
shravan.mishra at gmail.com
Thu Dec 24 19:35:01 UTC 2009
Hi Guys,
I had a perfectly running system for about 3 weeks now but now on reboot I
see problems.
Looks like the processes are being spawned and respawned but a proper exec
is not happening.
Am I missing some permissions on directories.
I have a script which does the following for directories:
=============
getent group haclient > /dev/null || groupadd -r haclient
getent passwd hacluster > /dev/null || useradd -r -g haclient -d
/var/lib/heartbeat/cores/hacluster -s /sbin/nologin -c "cluster user"
hacluster
if [ ! -d "/var/lib/pengine" ];then
mkdir /var/lib/pengine
fi
chown -R hacluster:haclient /var/lib/pengine
if [ ! -d "/var/lib/heartbeat" ];then
mkdir /var/lib/heartbeat
fi
if [ ! -d "/var/lib/heartbeat/crm" ];then
mkdir /var/lib/heartbeat/crm
fi
chown -R hacluster:haclient /var/lib/heartbeat/crm/
chmod 750 /var/lib/heartbeat/crm/
if [ ! -d "/var/lib/heartbeat/ccm" ];then
mkdir /var/lib/heartbeat/ccm
fi
chown -R hacluster:haclient /var/lib/heartbeat/ccm/
chmod 750 /var/lib/heartbeat/ccm/
if [ ! -d "/var/run/heartbeat/" ];then
mkdir /var/run/heartbeat/
fi
if [ ! -d "/var/run/heartbeat/ccm" ];then
mkdir /var/run/heartbeat/ccm/
fi
chown -R hacluster:haclient /var/run/heartbeat/ccm/
chmod 750 /var/run/heartbeat/ccm/
if [ ! -d "/var/run/heartbeat/crm" ];then
mkdir /var/run/heartbeat/crm/
fi
chown -R hacluster:haclient /var/run/heartbeat/crm/
chmod 750 /var/run/heartbeat/crm/
if [ ! -d "/var/run/crm" ];then
mkdir /var/run/crm
fi
if [ ! -d "/var/lib/corosync" ];then
mkdir /var/lib/corosync
fi
=============
I have a very simple active-passive configuration with just 2 nodes.
On starting Corosync , on doing
[root at node2 ~]# ps -ef | grep coro
root 8242 1 0 11:33 ? 00:00:00 /usr/sbin/corosync
root 8248 8242 0 11:33 ? 00:00:00 /usr/sbin/corosync
root 8249 8242 0 11:33 ? 00:00:00 /usr/sbin/corosync
root 8250 8242 0 11:33 ? 00:00:00 /usr/sbin/corosync
root 8252 8242 0 11:33 ? 00:00:00 /usr/sbin/corosync
root 8393 8242 0 11:35 ? 00:00:00 /usr/sbin/corosync
[root at node2 ~]# ps -ef | grep heart
82 7924 1 0 11:28 ? 00:00:00 /usr/lib64/heartbeat/pengine
I'm attaching the log file.
My config is:
# Please read the corosync.conf.5 manual page
compatibility: whitetank
totem {
version: 2
token: 3000
token_retransmits_before_loss_const: 10
join: 60
consensus: 1500
vsftype: none
max_messages: 20
clear_node_high_bit: yes
secauth: on
threads: 0
rrp_mode: passive
interface {
ringnumber: 0
bindnetaddr: 192.168.1.0
# mcastaddr: 226.94.1.1
broadcast: yes
mcastport: 5405
}
interface {
ringnumber: 1
bindnetaddr: 172.20.20.0
# mcastaddr: 226.94.1.1
broadcast: yes
mcastport: 5405
}
}
logging {
fileline: off
to_stderr: yes
to_logfile: yes
to_syslog: yes
logfile: /tmp/corosync.log
debug: on
timestamp: on
logger_subsys {
subsys: AMF
debug: off
}
}
service {
name: pacemaker
ver: 0
}
aisexec {
user:root
group: root
}
amf {
mode: disabled
}
Please help.
Sincerely
Shravan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091224/f2388a05/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: corosync.log
Type: application/octet-stream
Size: 19163 bytes
Desc: not available
URL: <https://lists.clusterlabs.org/pipermail/pacemaker/attachments/20091224/f2388a05/attachment-0001.obj>
More information about the Pacemaker
mailing list