Hi, On Wed, Jun 08, 2011 at 08:27:29PM +0200, Raoul Bhatia [IPAX] wrote: > hi! > > in postfix_validate_all() we check if postfix's config file and > queue/data directory exist. > > the configuration and these directories might reside on a shared > storage which should be mounted before starting postfix. > > e.g. > > primitive m-mail-fs ocf:heartbeat:Filesystem \ > > params device="/dev/drbd/by-res/mail" directory="/data/mail/" > > fstype="ext4" options="nosuid,nodev,noatime,nodiratime" \ > > op stop interval="0" timeout="60" \ > > op start interval="0" timeout="60" > > primitive m-mail-postfix ocf:ipax:postfix \ > > op monitor interval="30" timeout="30" \ > > params config_dir="/data/mail/conf/" \ > > meta target-role="Started" > > group group-mail-base m-mail-fs m-mail-postfix > > upon startup, pacemaker issues an initial monitor to check if a > resource is currently running. > > this issues an error like this: > > ERROR: Postfix configuration directory '/data/mail/conf' does not exist. 3 > > as far as i can tell, the ocf ra behaves correctly and returns > $OCF_NOT_RUNNING: > > > postfix_validate_all > > ret=$? > > > > #echo "debug[$1:$ret]" > > LSB_STATUS_STOPPED=3 > > if [ $ret -ne $OCF_SUCCESS ]; then > > case $1 in > > stop) exit $OCF_SUCCESS ;; > > monitor) exit $OCF_NOT_RUNNING;; > > status) exit $LSB_STATUS_STOPPED;; > > *) exit $ret;; > > esac > > fi > > the error remains nevertheless. should we do anything about this?
What exactly do you mean by "the error remains"? If you want to reduce the severity of the error message use ocf_is_probe (or however it's called). The resource agent behaves well. Thanks, Dejan > thanks, > raoul > _______________________________________________________ > Linux-HA-Dev: [email protected] > http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev > Home Page: http://linux-ha.org/ _______________________________________________________ Linux-HA-Dev: [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev Home Page: http://linux-ha.org/
