Thank you very much, I'll suggest the inclusion of a dependency in the Centos package.
# yum install which... Damon > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:linux-ha- > [EMAIL PROTECTED] On Behalf Of Andrew Beekhof > Sent: Monday, February 11, 2008 3:33 AM > To: General Linux-HA mailing list > Subject: Re: [Linux-HA] Permissions problem with CentOS 5.1 and > Heartbeat2.1.3-3? > > > 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; > > > > > > > > [EMAIL PROTECTED] log]# whereis gawk > > > > gawk: /bin/gawk /usr/bin/gawk /usr/share/man/man1/gawk.1.gz > > > > > > > > [EMAIL PROTECTED] 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 > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems > > _______________________________________________ > Linux-HA mailing list > [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
