Andrew,
Hope following results will help you.
Results when Filesystem script is run having "set -x" as first line
inside "/usr/lib/ocf/resource.d/heartbeat/Filesystem"
+ /usr/lib/ocf/resource.d/heartbeat/Filesystem
+ . /usr/lib/heartbeat/ocf-shellfuncs
+ HA_D=/etc/ha.d
+ basename /usr/lib/ocf/resource.d/heartbeat/Filesystem
+ __SCRIPT_NAME=Filesystem
+ . /etc/ha.d/shellfuncs
+ prefix=/usr
+ exec_prefix=/usr
+ : /etc/ha.d
+ : /etc/ha.d/rc.d
+ : /etc/ha.d/conf
+ : /etc/ha.d/ha.cf
+ : /var/lib/heartbeat
+ : /var/run/heartbeat/rsctmp
+ : /var/lib/heartbeat/fifo
+ : /usr/lib/heartbeat
+ : %Y/%m/%d_%T
+ : /dev/null
+ : /etc/ha.d/resource.d
+ : /usr/share/doc/heartbeat
+ : Filesystem
+ : Filesystem[28098]
+ : /var/run/
+ : /var/lock/subsys/
+ export HA_DIR HA_RCDIR HA_FIFO HA_BIN
+ export HA_DEBUGLOG HA_LOGFILE HA_LOGFACILITY
+ export HA_DATEFMT HA_RESOURCEDIR HA_DOCDIR
+ MKTEMP=/bin/mktemp
+ TESTPROG=/usr/bin/test
+ __ocf_set_defaults
+ __OCF_ACTION=
+ unset LANG
+ LC_ALL=C
+ export LC_ALL
+ OCF_SUCCESS=0
+ OCF_ERR_GENERIC=1
+ OCF_ERR_ARGS=2
+ OCF_ERR_UNIMPLEMENTED=3
+ OCF_ERR_PERM=4
+ OCF_ERR_INSTALLED=5
+ OCF_ERR_CONFIGURED=6
+ OCF_NOT_RUNNING=7
+ OCF_RUNNING_MASTER=8
+ OCF_FAILED_MASTER=9
+ [ -z ]
+ : 0
+ [ -z ]
+ : /usr/lib/ocf
+ [ ! -d /usr/lib/ocf ]
+ [ -z ]
+ : Filesystem
+ [ -z ]
+ : We are being invoked as an init script.
+ : Fill in some things with reasonable values.
+ : default
+ return 0
+ MODPROBE=/sbin/modprobe
+ FSCK=/sbin/fsck
+ FUSER=/bin/fuser
+ MOUNT=/bin/mount
+ UMOUNT=/bin/umount
+ BLOCKDEV=/sbin/blockdev
/usr/lib/ocf/resource.d/heartbeat/Filesystem: 466: Syntax error: Bad
substitution
I took the liberty of running this too
("/usr/lib/ocf/resource.d/heartbeat/Filesystem rsc_id=Filesystem_1
rsc_type=Filesystem provider=heartbeat status device=/dev/drbd0
directory=/ha/ww fstype=ext3 options=default") under the same condition.
+ /usr/lib/ocf/resource.d/heartbeat/Filesystem rsc_id=Filesystem_1
rsc_type=Filesystem provider=heartbeat status device=/dev/drbd0
directory=/ha/ww fstype=ext3 options=default
+ . /usr/lib/heartbeat/ocf-shellfuncs
+ HA_D=/etc/ha.d
+ basename /usr/lib/ocf/resource.d/heartbeat/Filesystem
+ __SCRIPT_NAME=Filesystem
+ . /etc/ha.d/shellfuncs
+ prefix=/usr
+ exec_prefix=/usr
+ : /etc/ha.d
+ : /etc/ha.d/rc.d
+ : /etc/ha.d/conf
+ : /etc/ha.d/ha.cf
+ : /var/lib/heartbeat
+ : /var/run/heartbeat/rsctmp
+ : /var/lib/heartbeat/fifo
+ : /usr/lib/heartbeat
+ : %Y/%m/%d_%T
+ : /dev/null
+ : /etc/ha.d/resource.d
+ : /usr/share/doc/heartbeat
+ : Filesystem
+ : Filesystem[29582]
+ : /var/run/
+ : /var/lock/subsys/
+ export HA_DIR HA_RCDIR HA_FIFO HA_BIN
+ export HA_DEBUGLOG HA_LOGFILE HA_LOGFACILITY
+ export HA_DATEFMT HA_RESOURCEDIR HA_DOCDIR
+ MKTEMP=/bin/mktemp
+ TESTPROG=/usr/bin/test
+ __ocf_set_defaults rsc_id=Filesystem_1 rsc_type=Filesystem
provider=heartbeat status device=/dev/drbd0 directory=/ha/ww fstype=ext3
options=default
+ __OCF_ACTION=rsc_id=Filesystem_1
+ unset LANG
+ LC_ALL=C
+ export LC_ALL
+ OCF_SUCCESS=0
+ OCF_ERR_GENERIC=1
+ OCF_ERR_ARGS=2
+ OCF_ERR_UNIMPLEMENTED=3
+ OCF_ERR_PERM=4
+ OCF_ERR_INSTALLED=5
+ OCF_ERR_CONFIGURED=6
+ OCF_NOT_RUNNING=7
+ OCF_RUNNING_MASTER=8
+ OCF_FAILED_MASTER=9
+ [ -z ]
+ : 0
+ [ -z ]
+ : /usr/lib/ocf
+ [ ! -d /usr/lib/ocf ]
+ [ -z ]
+ : Filesystem
+ [ -z ]
+ : We are being invoked as an init script.
+ : Fill in some things with reasonable values.
+ : default
+ return 0
+ MODPROBE=/sbin/modprobe
+ FSCK=/sbin/fsck
+ FUSER=/bin/fuser
+ MOUNT=/bin/mount
+ UMOUNT=/bin/umount
+ BLOCKDEV=/sbin/blockdev
/usr/lib/ocf/resource.d/heartbeat/Filesystem: 466: Syntax error: Bad
substitution
Please let me know if you need to run it with different settings.
Best regards,
Lasantha.
*-------- Original Message --------*
*Subject: * [Linux-HA] Re: LSB Compliant Filesystem Script
*Date: * Mon, 17/Sep/2007 7:27:04 PM +0550
*From: * "Andrew Beekhof" <[EMAIL PROTECTED]>
*To: * "General Linux-HA mailing list" <[email protected]>
> On 9/17/07, Lasantha Marian <[EMAIL PROTECTED]> wrote:
>
>> Andrew,
>>
>> FYI: My system setup
>> Ubuntu-Server (amd64)
>> Heartbeat 2.0.7 (Ubuntu binary heartbeat-2 (2.0.7-2))
>> DRBD 8.0.6 (Compiled as a module)
>> Dell PowerDedge 2900
>>
>> Following is the result of Filesystem script run with "set -x;
>>
>
> doh! /etc/ha.d/resource.d/Filesystem is only the wrapper :(
> can you repeat but with "set -x" in
> /usr/lib/ocf/resource.d/heartbeat/Filesystem
>
> sorry, brain must not be functioning today
> _______________________________________________
> 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