I cannot mount nfs shares from osx when using the new kernel

Bug #1509666 reported by Nick Sillito
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I am running ubuntu server 64 bit 14.04 on my home server.
The server shares some directories using NFS v4

I have some apple macs (MBAs) that use the automount to mount the shared nfs directory. Previously, this had worked fine.
My file /etc/auto_nfs contains the single line:
/../Volumes/share -fstype=nfs,noresvport nfs://serv2_local:/export/share

I updated to kernel 3.13.0-66 and the OSX machines would no long mount the NFS shares (see message below from /var/log/messages.log on the Mac):

Oct 24 14:34:35 beethoven automountd[655]: NFS server serv2_local not responding

Please see the list of modules loaded:
Oct 24 14:26:36 serv2 kernel: [ 36.402674] Modules linked in: quota_v2 quota_tree nfsd auth_rpcgss nfs_acl nfs lockd sunrpc fscache dm_crypt rc_dvbsky(OX) xt_tcpudp xt_recent iptable_filter ip_tables x_tables snd_hda_codec_realtek dvbsky_m88rs6000(OX) snd_hda_intel snd_hda_codec kvm_amd snd_hwdep smipcie(OX) dvb_core(OX) kvm snd_pcm rc_core(OX) snd_page_alloc snd_timer snd soundcore serio_raw i2c_piix4 edac_core edac_mce_amd k10temp shpchp mac_hid parport_pc ppdev lp parport pata_acpi hid_generic usbhid radeon hid i2c_algo_bit ttm drm_kms_helper pata_atiixp ahci libahci atl1c drm wmi

My other linux clients were able to mount the NFS share without difficulty. I have rolled the server back to the previous kernel (3.13.0-65-generic) and NFS works fine with the Macs. (Note that the problem exists with both my Macs, running OSX 10.10.5 and 10.11.1)
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k3.13.0-66-generic.
AplayDevices: Error: [Errno 2] No such file or directory
ApportVersion: 2.14.1-0ubuntu3.16
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/controlC0', '/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/pcmC0D2c', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info: Error: [Errno 2] No such file or directory
Card0.Amixer.values: Error: [Errno 2] No such file or directory
DistroRelease: Ubuntu 14.04
HibernationDevice: RESUME=UUID=f0e7e97e-cfde-42f5-a6a8-33d670d4f6ad
InstallationDate: Installed on 2015-07-25 (91 days ago)
InstallationMedia: Ubuntu-Server 14.04 LTS "Trusty Tahr" - Release amd64 (20140416.2)
IwConfig:
 lo no wireless extensions.

 p5p1 no wireless extensions.
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
Package: linux (not installed)
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.13.0-66-generic root=UUID=cba0a062-b757-496a-a056-c284b18f961b ro nomodset
ProcVersionSignature: Ubuntu 3.13.0-66.108-generic 3.13.11-ckt27
RelatedPackageVersions:
 linux-restricted-modules-3.13.0-66-generic N/A
 linux-backports-modules-3.13.0-66-generic N/A
 linux-firmware 1.127.15
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty
Uname: Linux 3.13.0-66-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 10/02/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.30
dmi.board.asset.tag: BC5FF4ED68C6
dmi.board.name: 960GM-VGS3 FX
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.30:bd10/02/2013:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn960GM-VGS3FX:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 1509666

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: trusty
Revision history for this message
Nick Sillito (nick-sillitos) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
Nick Sillito (nick-sillitos) wrote : BootDmesg.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : Lspci.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : Lsusb.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : PciMultimedia.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : ProcEnviron.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : ProcModules.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : UdevDb.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : UdevLog.txt

apport information

Revision history for this message
Nick Sillito (nick-sillitos) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
penalvch (penalvch)
tags: added: bios-outdated-1.40
Changed in linux (Ubuntu):
importance: Undecided → Low
status: Confirmed → Incomplete
Revision history for this message
Nick Sillito (nick-sillitos) wrote :

Thanks for taking the time to look at this, and sorry to have missed that my BIOS was out of date. I have now flashed the new version and running the commands as you propose gives the following output:

nick@serv2:~$ sudo dmidecode -s bios-version && sudo dmidecode -s bios-release-date
[sudo] password for nick:
P1.40
07/23/2015

Also, I confirm that updating the BIOS has not solved the problem.

If I understand your question correctly, you are asking for how the bug manifests itself? If so, I have the following two files set up on my MAC to allow me to automount the share:

beethoven:etc nick$ cat auto_master
#
# Automounter master map
#
+auto_master # Use directory service
/net -hosts -nobrowse,hidefromfinder,nosuid
/home auto_home -nobrowse,hidefromfinder
/Network/Servers -fstab
/- -static
/- auto_nfs -nobrowse,nosuid

and

beethoven:etc nick$ cat auto_nfs
/../Volumes/share -fstype=nfs,noresvport nfs://serv2_local:/export/share

Note for completeness, serv2_local is defined in my /etc/hosts file:
beethoven:etc nick$ cat /etc/hosts
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost
192.168.2.4 serv2_local

(and that I have a good connection to it:
beethoven:etc nick$ ping serv2_local
PING serv2_local (192.168.2.4): 56 data bytes
64 bytes from 192.168.2.4: icmp_seq=0 ttl=64 time=4.572 ms

The use of /../Volumes/share is a trick to make OSX automount in the /Volumes directory. I have tested using /mnt/share and get the same error.

serv2_local is also correctly exporting the nfs shares:
beethoven:etc nick$ showmount -e serv2_local
Exports list on serv2_local:
/export/pvr 192.168.2.0/24
/export/share 192.168.2.0/24
/export/home 192.168.2.0/24
/export 192.168.2.0/24

(note that the MAC I am using has IP address 192.168.2.42 so it should be able to access the export)

When I try to access the shared directory, I get the following:
beethoven:Volumes nick$ cd /Volumes
beethoven:Volumes nick$ ls -lh
total 10
lrwxr-xr-x 1 root admin 1B 24 Oct 17:13 Macintosh HD -> /
dr-xr-xr-x 2 root wheel 1B 24 Oct 17:13 share
beethoven:Volumes nick$ cd share
-bash: cd: share: No such file or directory

If I boot the Ubuntu server with the pervious kernel version, I am able to access the NFS share normally.

Thanks for taking your time to look at this -- let me know if you need more information.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Nick Sillito, could you please test the latest upstream kernel available from the very top line at the top of the page from http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D (the release names are irrelevant for testing, and please do not test the daily folder)? Install instructions are available at https://wiki.ubuntu.com/Kernel/MainlineBuilds . This will allow additional upstream developers to examine the issue.

If the latest kernel did not allow you to test to the issue (ex. you couldn't boot into the OS) please make a comment in your report about this, and continue to test the next most recent kernel version until you can test to the issue. Once you've tested the upstream kernel, please comment on which kernel version specifically you tested. If this issue is fixed in the mainline kernel, please add the following tags by clicking on the yellow circle with a black pencil icon, next to the word Tags, located at the bottom of the report description:
kernel-fixed-upstream
kernel-fixed-upstream-X.Y-rcZ

Where X, Y, and Z are numbers corresponding to the kernel version.

If the mainline kernel does not fix the issue, please add the following tags:
kernel-bug-exists-upstream
kernel-bug-exists-upstream-X.Y-rcZ

Please note, an error to install the kernel does not fit the criteria of kernel-bug-exists-upstream.

Once testing of the latest upstream kernel is complete, please mark this report's Status as Confirmed. Please let us know your results.

Thank you for your understanding.

tags: added: latest-bios-1.40
removed: bios-outdated-1.40
tags: added: regression-update
Changed in linux (Ubuntu):
importance: Low → Medium
status: Confirmed → Incomplete
Revision history for this message
Nick Sillito (nick-sillitos) wrote :

Running with the latest kernel 4.3.0-040300rc6-generic, the problem is fixed.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
tags: added: kernel-fixed-upstream
tags: added: kernel-fixed-upstream-4.3.rc6
Revision history for this message
Luis Henriques (henrix) wrote : subscribe

subscribe

Revision history for this message
Luis Henriques (henrix) wrote : Bug already fixed in -proposed kernel

This bug seems to be a duplicate of bug #1508510. The fix has been
uploaded and is already available in -proposed (3.13.0-67.109). You
can test it by enabling -proposed [1] or by directly downloading the
relevant *.deb from [2].

[1] https://wiki.ubuntu.com/Testing/EnableProposed
[2] https://launchpad.net/~canonical-kernel-team/+archive/ubuntu/ppa/+build/8173897

 subscribe
 duplicate 1508510

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.