auto.net does not handle mutliple mount points from a remote

Bug #1084178 reported by Van Stokes, Jr.
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autofs (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

When using auto.net and mounting multiple remote exports, only one mount works and autofs steps onto the other mounts.
The problem appears in /proc/mounts (see details in walk-thru below)

**** HOSTA *****
NFS Host (i.e. hosta):
$ uname -a
Linux hosta 2.6.18-274.3.1.el5 #1 SMP Fri Aug 26 18:49:02 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/exports
/opt/logisoft hostb(rw,insecure,sync,nohide,fsid=0,no_root_squash)
/home hostb(rw,insecure,sync,nohide,fsid=0,no_root_squash)

**** HOSTB *****
AutoFS Host (i.e. hostb):
$ uname -a
Linux hostb 3.2.0-33-generic #52-Ubuntu SMP Thu Oct 18 16:29:15 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

$ df
hosta:/opt/logisoft 816146560 179367200 594652800 24% /net/hosta/opt/logisoft
hosta:/home 816146560 179367200 594652800 24% /net/hosta/home

$ cd /net/hosta/home
$ ls -l
drwxrwxrwx 43 91 91 12288 Nov 20 13:03 eci
drwxrwxrwx 43 91 91 4096 May 28 2012 oti
drwxrwxrwx 5 91 91 4096 Jul 20 2011 shared

$ cd /net/hosta/opt/logisoft
$ ls -1
drwxrwxrwx 43 91 91 12288 Nov 20 13:03 eci
drwxrwxrwx 43 91 91 4096 May 28 2012 oti
drwxrwxrwx 5 91 91 4096 Jul 20 2011 shared
*** (Note that the listing is the same! This is not correct!) ***

*********** PROBLEM VISIBLE HERE ********************
$ cat /proc/mounts
hosta:/home/ /net/hosta/opt/logisoft nfs rw,nosuid,nodev,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.27.101.66,mountvers=3,mountport=960,mountproto=udp,local_lock=none,addr=172.27.101.66 0 0
hosta:/home/ /net/hosta/home nfs rw,nosuid,nodev,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.27.101.66,mountvers=3,mountport=960,mountproto=udp,local_lock=none,addr=172.27.101.66 0 0

$ umount /net/hosta/home
$ df
hosta:/opt/logisoft 816146560 179367200 594652800 24% /net/hosta/opt/logisoft

$ umount /net/hosta/opt/logisoft
/net/hosta/opt/logisoft was not found in /proc/mounts
/net/hosta/opt/logisoft was not found in /proc/mounts

*********** PROBLEM VISIBLE HERE ********************
$ cat /proc/mounts
hosta:/home/ /net/hosta/opt/logisoft nfs rw,nosuid,nodev,relatime,vers=3,rsize=32768,wsize=32768,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.27.101.66,mountvers=3,mountport=960,mountproto=udp,local_lock=none,addr=172.27.101.66 0 0
---
ApportVersion: 2.0.1-0ubuntu15
Architecture: amd64
DistroRelease: Ubuntu 12.04
InstallationMedia: Ubuntu-Server 11.04 "Natty Narwhal" - Release amd64 (20110426)
MarkForUpload: True
Package: autofs 5.0.6-0ubuntu5
PackageArchitecture: amd64
ProcVersionSignature: Ubuntu 3.2.0-33.52-generic 3.2.31
Tags: precise
Uname: Linux 3.2.0-33-generic x86_64
UpgradeStatus: Upgraded to precise on 2012-07-16 (136 days ago)
UserGroups:

information type: Private Security → Public
Revision history for this message
Robie Basak (racb) wrote :

Thank you for your report.

Please can you run "apport-collect 1084178" on the affected machine (hostb in your example) which will automatically attach relevant information such as version numbers to this bug?

Also, please attach all relevant configuration files, such as /etc/autofs.master and /etc/fstab.

Once done, please change the bug status back to New.

Thanks!

Changed in autofs (Ubuntu):
status: New → Incomplete
Revision history for this message
Van Stokes, Jr. (vstokes) wrote : Dependencies.txt

apport information

tags: added: apport-collected precise
description: updated
Revision history for this message
Van Stokes, Jr. (vstokes) wrote : ProcEnviron.txt

apport information

Revision history for this message
Van Stokes, Jr. (vstokes) wrote :

Attached a file containing the following:
host HPMIA /etc/exports (server)
host mysql02 /etc/auto.master, /etc/auto.net (client, autofs)

Revision history for this message
Van Stokes, Jr. (vstokes) wrote :

Ignore previous post, wrong host HPMIA. Should be logilive.
Corrected file attached containing configuration files.

Robie Basak (racb)
Changed in autofs (Ubuntu):
status: Incomplete → New
Robie Basak (racb)
Changed in autofs (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Managed to reproduce this on raring.

Changed in autofs (Ubuntu):
status: New → Confirmed
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This turns out to not be a bug, but a misconfiguration.

Your /etc/exports specifies 'fsid=0' for both exports. You don't have to specify an fsid, but if you do, it takes the place of the default uuid which nfsd would use to identify the filesystems. In other words, you told the server that both are the same.

Changed in autofs (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.