On Fri, Aug 29, 2008 at 04:41:47AM +0200, Lars Wilke wrote:
> Package: heartbeat
> Version: 2.1.3-6
> Severity: important
>
> Hi,
>
> I could not get heartbeat to mount NFS shares via a resource entry in
> haresources. After some digging i found out that the shell scripts all
> reference /bin/sh in the shebang and use [^...] in some regular expressions.
> At least on my system that does not work as i use dash as /bin/sh which only
> knows about [!...]. A quick grep found the same problen in the
> following files
>
> /usr/lib/ocf/resource.d/heartbeat/WAS6: -e
> 's%[^0-9][^0-9]*.*$%%'
> /usr/lib/ocf/resource.d/heartbeat/IPsrcaddr: *[^0-9.]*) #got invalid char
> /usr/lib/ocf/resource.d/heartbeat/Filesystem:[^/]*:/*) # An NFS filesystem
> specification...
> /usr/lib/ocf/resource.d/heartbeat/Filesystem://[^/]*/*) # An SMB filesystem
> specification...
> /usr/lib/ocf/resource.d/heartbeat/IPaddr2:
> [0-9a-zA-Z][1379bBdDfF][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z][^0-9a-zA-Z][0-9a-zA-Z][0-9a-zA-Z])
> /usr/lib/ocf/resource.d/heartbeat/o2cb: O2CB_CLUSTER=$(o2cb_ctl -I -t
> cluster -o | sed -ne '/^[^#]/{ s/\([^:]*\):.*$/\1/; p }')
> /usr/lib/ocf/resource.d/heartbeat/Xinetd: *[^0-9]*) #got invalid char
> /usr/lib/ocf/resource.d/heartbeat/Xinetd: *[^\ \ +-]=*)
> /usr/lib/ocf/resource.d/heartbeat/Xinetd: *[^\ \ ][+-]=*)
> /usr/lib/ocf/resource.d/heartbeat/apache: /<Location "?([^ >"]+)/i &&
> ($loc=$1);
> /usr/lib/ocf/resource.d/heartbeat/portblock: *[^0-9]*) #got invalid char
> /usr/lib/ocf/resource.d/heartbeat/WAS: -e 's%[^0-9][^0-9]*.*$%%'
> /usr/lib/ocf/resource.d/heartbeat/WinPopup: *[^0-9.]*) #got invalid char
> /etc/heartbeat/resource.d/WAS: *[^0-9]*)
>
>
> Changing for example the regex in /usr/lib/ocf/resource.d/heartbeat/Filesystem
> fixed my NFS problem.
> So i suggest changing them all to [!...]
Hi,
I think that this is covered by #489607.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]