[Linux-HA] Permissions problem with CentOS 5.1 and Heartbeat 2.1.3-3?

Andrew Beekhof beekhof at gmail.com
Mon Feb 11 03:33:01 MST 2008


On Feb 10, 2008, at 5:36 PM, Damon Estep wrote:

> I am having an issue with Heartbeat 2.1.3-3 on CentOS 5.1 that does  
> not
> appear on Centos 4.6 with nearly identical setup and the same  
> heartbeat
> version.
>
>
>
> Heartbeat and drbd were installed via yum from the Centos extras
> repository.
>
>
>
> The problem seems to be that the LRM cannot find or access key
> executables, such as gawk and drbdadm, so IPAddr and DRBD OCF  
> resources
> cannot start or failover.
>
>
>
> SELinux is disabled.
>
>
>
> Looks like some type of permissions issue with the Heartbeat service
> account, any ideas?
>
>
>
> gawk and drbd are installed;
>
>
>
> [root at cn1-inverness-co log]# whereis gawk
>
> gawk: /bin/gawk /usr/bin/gawk /usr/share/man/man1/gawk.1.gz
>
>
>
> [root at cn1-inverness-co log]# whereis drbdadm
>
> drbdadm: /sbin/drbdadm /usr/share/man/man8/drbdadm.8.gz
>
>
>
>
>
> Here are the relevant log entries;
>
>
>
> Feb  9 23:10:04 cn1-inverness-co lrmd: [2886]: info: RA output:
> (resource_vg8_drbd:0:monitor:stderr)
> /usr/lib/ocf/resource.d/heartbeat/.ocf-binaries: line 76: which:  
> command
> not found


its looking for a command called which (it functions much like whereis  
except only returns the first result)

you'll need to instal 'which' or fix the following function to work on  
your system

have_binary () {
     bin=`echo $1 | sed -e 's/ -.*//'`
     if [ -x "`which $bin`" ] ; then
	return 0
     fi
     return 1
}



>
>
> Feb  9 23:10:04 cn1-inverness-co drbd[4043]: ERROR: Setup problem:
> Couldn't find utility drbdadm
>
> Feb  9 23:10:04 cn1-inverness-co crmd: [2889]: ERROR:  
> process_lrm_event:
> LRM operation resource_vg8_drbd:0_monitor_0 (call=6, rc=5) Error not
> installed
>
>
>
> AND
>
>
>
> Feb  9 11:06:37 cn1-inverness-co lrmd: [2822]: info: RA output:
> (resource_ip:start:stderr)
> /usr/lib/ocf/resource.d/heartbeat/.ocf-binaries: line 76: which:  
> command
> not found
>
> Feb  9 11:06:37 cn1-inverness-co IPaddr[3494]: ERROR: Setup problem:
> Couldn't find utility /bin/gawk
>
> Feb  9 11:06:37 cn1-inverness-co crmd: [2825]: ERROR:  
> process_lrm_event:
> LRM operation resource_ip_start_0 (call=9, rc=5) Error not installed
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems



More information about the Linux-HA mailing list