[Linux-HA] Mounting Samba file shares with Linux-HA
xun.sun.cn at gmail.com
Wed Oct 19 21:37:35 MDT 2005
On 10/19/05, Christof Amelunxen <ca at ordix.de> wrote:
> > Shane Swartz wrote:
> > > Has anyone ever controlled the mounting of Samba file shares within
> > > Linux-HA? In our case the Samba server is external to the HA systems,
> > > but we want to have the HA systems mount a Samba file share correctly
> > > and to be able to manage that mounting during failovers. What is the
> > > syntax to use in the haresources file for Linux-HA version 1.2.3?
> > I'm not sure how you're planning on mounting it. I think the cifs fs
> > could be mounted through the Filesystem resource.
> > Otherwise, I don't know.
> The Filesystem resource script currently doesnt work for smbfs
> filesystems. I made the following changes to Filesystem.in to get it
> running. I dont know if it is worth to be included in the source as I
> suppose smbfs is not used very often.
I think it is worth to merge your patch into CVS, since it addresses
real world (even though rare) issue, and it's simple. This will happen
if I don't change my mind after testing it, and the big bosses don't
>It depends on smbfs being the only
> file system with "//" style device names. I am not sure if this is
> distinct enough in practice, too.
> --- Filesystem.in 2005-08-26 21:35:18.000000000 +0200
> +++ Filesystem.in.new 2005-10-19 11:25:38.259903408 +0200
> @@ -113,7 +113,7 @@
> [ "$BLOCKDEV" != "" -a -x "$BLOCKDEV" ]
> case $1 in
> - -*|[^/]*:/*) ;;
> + -*|[^/]*:/*|//[^/]*/*) ;;
> *) $BLOCKDEV --flushbufs $1;;
> @@ -134,6 +134,8 @@
> [^/]*:/*) # An NFS filesystem specification...
> + //[^/]*/*) # An SMB filesystem specification...
> + ;;
> *) if [ ! -b "$DEVICE" -a "$operation" != stop ]; then
> ha_log "ERROR: Couldn't find device $DEVICE. Expected /dev/???
> to exist"
> @@ -189,7 +191,7 @@
> case $FSTYPE in
> - ext3|reiserfs|xfs|jfs|vfat|fat|nfs) false;;
> + ext3|reiserfs|xfs|jfs|vfat|fat|nfs|smbfs) false;;
> *) true;;
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> See also: http://linux-ha.org/ReportingProblems
Thanks & regards
More information about the Linux-HA