root@ubuntu-starworld-http1:/etc/init.d# sh -x /etc/ha.d/resource.d/Filesystem /dev/drbd0 /cdrom start + unset LC_ALL + export LC_ALL + unset LANGUAGE + export LANGUAGE + . /etc/ha.d/resource.d//hto-mapfuncs + PARAMETER_SPLIT_SIGN== + OCF_ROOT_DIR=/usr/lib/ocf + OCF_RA_DIR=/usr/lib/ocf/resource.d/ + BASENAME=/usr/bin/basename + fstype= + operation=start + options= + ra_execocf rsc_id=Filesystem_/dev/drbd0 rsc_type=Filesystem provider=heartbeat start device=/dev/drbd0 directory=/cdrom fstype= options= + ra_ocfinit rsc_id=Filesystem_/dev/drbd0 rsc_type=Filesystem provider=heartbeat start device=/dev/drbd0 directory=/cdrom fstype= options= + RSCIDPAIR=rsc_id=Filesystem_/dev/drbd0 + RSCTYPEPAIR=rsc_type=Filesystem + echo rsc_type=Filesystem + cut -d= -f2 + RSCTYPE=Filesystem + PROVIDERPAIR=provider=heartbeat + echo provider=heartbeat + cut -d= -f2 + PROVIDER=heartbeat + OPERATION=start + setup_OCF_env_vars rsc_id=Filesystem_/dev/drbd0 + echo rsc_id=Filesystem_/dev/drbd0 + cut -d= -f1 + hbvarname=rsc_id + echo rsc_id=Filesystem_/dev/drbd0 + cut -d= -f2 + hbvarvalue=Filesystem_/dev/drbd0 + [ ! -z Filesystem_/dev/drbd0 ] + ocfvarname=OCF_RESOURCE_INSTANCE + eval OCF_RESOURCE_INSTANCE=Filesystem_/dev/drbd0 + OCF_RESOURCE_INSTANCE=Filesystem_/dev/drbd0 + export OCF_RESOURCE_INSTANCE + setup_OCF_env_vars rsc_type=Filesystem + echo rsc_type=Filesystem + cut -d= -f1 + hbvarname=rsc_type + echo rsc_type=Filesystem + cut -d= -f2 + hbvarvalue=Filesystem + [ ! -z hbvarvalue ] + rsc_type=Filesystem + ocfvarname=OCF_RESOURCE_TYPE + eval OCF_RESOURCE_TYPE=Filesystem + OCF_RESOURCE_TYPE=Filesystem + export OCF_RESOURCE_TYPE + setup_OCF_env_vars provider=heartbeat + echo provider=heartbeat + cut -d= -f1 + hbvarname=provider + echo provider=heartbeat + cut -d= -f2 + hbvarvalue=heartbeat + [ ! -z hbvarvalue ] + ocfvarname=OCF_RESOURCE_PROVIDER + eval OCF_RESOURCE_PROVIDER=heartbeat + OCF_RESOURCE_PROVIDER=heartbeat + export OCF_RESOURCE_PROVIDER + OCF_RA_VERSION_MAJOR=1 + export OCF_RA_VERSION_MAJOR + OCF_RA_VERSION_MINOR=0 + export OCF_RA_VERSION_MINOR + OCF_ROOT=/usr/lib/ocf + export OCF_ROOT + . /usr/lib/heartbeat/ocf-shellfuncs + HA_D=/etc/ha.d + basename /etc/ha.d/resource.d/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[10556] + : /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_/dev/drbd0 rsc_type=Filesystem provider=heartbeat start device=/dev/drbd0 directory=/cdrom fstype= options= + __OCF_ACTION=rsc_id=Filesystem_/dev/drbd0 + 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 1 ] + [ x1 != x1 ] + [ -z 0 ] + [ xrsc_id=Filesystem_/dev/drbd0 = xmeta-data ] + [ -z Filesystem_/dev/drbd0 ] + shift 4 + ra_setenv device=/dev/drbd0 directory=/cdrom fstype= options= + lastenvar= + echo device=/dev/drbd0 + cut -s -d= -f1 + ifvarname=device + [ -z device ] + setup_OCF_prefix device=/dev/drbd0 + echo device=/dev/drbd0 + cut -d= -f1 + hbvarname=device + echo device=/dev/drbd0 + cut -d= -f2- + hbvarvalue=/dev/drbd0 + ocfvarname=OCF_RESKEY_device + eval OCF_RESKEY_device=$hbvarvalue + OCF_RESKEY_device=/dev/drbd0 + export OCF_RESKEY_device + lastenvar=device=/dev/drbd0 + echo directory=/cdrom + cut -s -d= -f1 + ifvarname=directory + [ -z directory ] + setup_OCF_prefix directory=/cdrom + echo directory=/cdrom + cut -d= -f1 + hbvarname=directory + echo directory=/cdrom + cut -d= -f2- + hbvarvalue=/cdrom + ocfvarname=OCF_RESKEY_directory + eval OCF_RESKEY_directory=$hbvarvalue + OCF_RESKEY_directory=/cdrom + export OCF_RESKEY_directory + lastenvar=directory=/cdrom + echo fstype= + cut -s -d= -f1 + ifvarname=fstype + [ -z fstype ] + setup_OCF_prefix fstype= + echo fstype= + cut -d= -f1 + hbvarname=fstype + echo fstype= + cut -d= -f2- + hbvarvalue= + ocfvarname=OCF_RESKEY_fstype + eval OCF_RESKEY_fstype=$hbvarvalue + OCF_RESKEY_fstype= + export OCF_RESKEY_fstype + lastenvar=fstype= + echo options= + cut -s -d= -f1 + ifvarname=options + [ -z options ] + setup_OCF_prefix options= + echo options= + cut -d= -f1 + hbvarname=options + echo options= + cut -d= -f2- + hbvarvalue= + ocfvarname=OCF_RESKEY_options + eval OCF_RESKEY_options=$hbvarvalue + OCF_RESKEY_options= + export OCF_RESKEY_options + lastenvar=options= + ra_getpathname + basename Filesystem + BASENAME=Filesystem + [ Filesystem = Filesystem ] + RAOCFPATH=/usr/lib/ocf/resource.d/heartbeat/Filesystem + [ ! -x /usr/lib/ocf/resource.d/heartbeat/Filesystem ] + /usr/lib/ocf/resource.d/heartbeat/Filesystem start /usr/lib/ocf/resource.d/heartbeat/Filesystem: 466: Syntax error: Bad substitution + ocf_return_status=2 + log_and_print ERROR: Filesystem Incompliant argument + ha_log ERROR: Filesystem Incompliant argument + [ x = xyes ] + [ -n ] + [ -n ] + hadate + date +%Y/%m/%d_%T + Echo 2007/07/07_10:12:41 ERROR: Filesystem Incompliant argument + echo 2007/07/07_10:12:41 ERROR: Filesystem Incompliant argument 2007/07/07_10:12:41 ERROR: Filesystem Incompliant argument + [ -n /dev/null ] + : appending to /dev/null + hadate + date +%Y/%m/%d_%T + Echo Filesystem[10556]: 2007/07/07_10:12:41 ERROR: Filesystem Incompliant argument + echo Filesystem[10556]: 2007/07/07_10:12:41 ERROR: Filesystem Incompliant argument + echo ERROR: Filesystem Incompliant argument ERROR: Filesystem Incompliant argument + return 2