Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1016781

Bug#964388: 'replicated server' entries with CIFS don't work

From Sam Morris <sam@robots.org.uk>
Newsgroups linux.debian.bugs.dist
Subject Bug#964388: 'replicated server' entries with CIFS don't work
Date 2020-07-06 17:50 +0200
Message-ID <ApBxv-5XU-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Source: autofs
Version: 5.1.6-2
Severity: normal

I'm trying to make DFS-replicated CIFS file shares available. In
auto.master I have:

    /dfs    file:/etc/auto.dfs   browse

and in auto.dfs I have:

   /dfs/HD    -fstype=cifs,sec=krb5i,cruid=$UID,multiuser    ://server1.domain.example/HD ://server2.domain.example/HD

but autofs interprets the entire server list as a single location:

    Jul 06 16:31:14 kernel: CIFS: Attempting to mount //server1.domain.example/HD ://server2.domain.example/HD
    Jul 06 16:31:14 kernel: CIFS VFS:  BAD_NETWORK_NAME: \\server1.domain.example\HD :
    Jul 06 16:31:14 kernel: CIFS VFS: cifs_mount failed w/return code = -2

autofs(5) states:

    A mount location can specify multiple hosts for a location,
    portentially with a different export path for the same file system.
    Historically these different locations  are  read- only and provide
    the same replicated file system.

and gives the example of:

    Multiple replicated hosts, different (potentially) paths:
    <path> host1:/path/pathA host2:/path/pathB

which I think is the closest matching syntax. But I guess to automount,
CIFS shares don't have a host element, and the server name is given as
the first element to the path, which maybe means that this syntax is
only available for NFS entries...

-- System Information:
Debian Release: 10.4
  APT prefers stable-updates
  APT policy: (535, 'stable-updates'), (535, 'stable'), (520, 'testing'), (510, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 4.19.0-8-686-pae (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#964388: 'replicated server' entries with CIFS don't work Sam Morris <sam@robots.org.uk> - 2020-07-06 17:50 +0200

csiph-web