[Linux-HA] Mounting Samba file shares with Linux-HA

Horms horms at verge.net.au
Wed Oct 19 20:16:45 MDT 2005


On Wed, Oct 19, 2005 at 01:42:48PM +0200, Christof Amelunxen wrote:
> Hi,
> 
> > 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. 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.

I don't have any problem with including this as long as it doesn't break
anything. And it doesn't appear to.
> 
> 
> --- 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" ]
>    then
>      case $1 in
> -      -*|[^/]*:/*)     ;;
> +      -*|[^/]*:/*|//[^/]*/*)   ;;
>        *)               $BLOCKDEV --flushbufs $1;;
>      esac
>    fi
> @@ -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"
>           usage
> @@ -189,7 +191,7 @@
> 
>         if
>           case $FSTYPE in
> -           ext3|reiserfs|xfs|jfs|vfat|fat|nfs) false;;
> +           ext3|reiserfs|xfs|jfs|vfat|fat|nfs|smbfs)   false;;
>             *)                          true;;
>           esac
>          then
> 

-- 
Horms



More information about the Linux-HA mailing list