[Solved] NFS client not mounting NFS mount at boot

Kernels & Hardware, configuring network, installing services

[Solved] NFS client not mounting NFS mount at boot

Postby milomak » 2010-08-22 20:00

I have an NFS mount that is in my NFS client's fstab file
Code: Select all
192.168.1.102:/mnt/mythtv                               /mnt/mythtv     nfs             defaults        0 0


sudo mount -a will mount it after i have booted the system.

However, at boot it is not mounted. An extract of /var/log/boot shows
Code: Select all
Sun Aug 22 15:45:34 2010: Setting kernel variables ...error: "net.ipv6.bindv6only" is an unknown key
Sun Aug 22 15:45:34 2010: ^[[31mfailed.^[[39;49m
Sun Aug 22 15:45:34 2010: Setting up resolvconf...done.
Sun Aug 22 15:45:34 2010: Setting up networking....
Sun Aug 22 15:45:34 2010: Configuring network interfaces...Internet Systems Consortium DHCP Client 4.1.1-P1
Sun Aug 22 15:45:34 2010: Copyright 2004-2010 Internet Systems Consortium.
Sun Aug 22 15:45:34 2010: All rights reserved.
Sun Aug 22 15:45:34 2010: For info, please visit https://www.isc.org/software/dhcp/
Sun Aug 22 15:45:34 2010:
Sun Aug 22 15:45:34 2010: Listening on LPF/eth0/00:24:8c:52:dc:60
Sun Aug 22 15:45:34 2010: Sending on   LPF/eth0/00:24:8c:52:dc:60
Sun Aug 22 15:45:34 2010: Sending on   Socket/fallback
Sun Aug 22 15:45:37 2010: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
Sun Aug 22 15:45:37 2010: DHCPOFFER from 192.168.1.1
Sun Aug 22 15:45:37 2010: DHCPREQUEST on eth0 to 255.255.255.255 port 67
Sun Aug 22 15:45:37 2010: DHCPACK from 192.168.1.1
Sun Aug 22 15:45:38 2010: bound to 192.168.1.100 -- renewal in 38648 seconds.
Sun Aug 22 15:45:38 2010: if-up.d/mountnfs[eth0]: lock /var/run/network/mountnfs exist, not mounting ... failed!
Sun Aug 22 15:45:38 2010: done.
Sun Aug 22 15:45:38 2010: Starting portmap daemon....
Sun Aug 22 15:45:38 2010: Starting NFS common utilities: statd.
Sun Aug 22 15:45:38 2010: Cleaning up temporary files....



My /etc/network/interfaces looks like
Code: Select all
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

#auto eth1
#iface eth1 inet dhcp

iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
network 10.0.0.2
broadcast 10.0.0.255


What am I missing?
Last edited by milomak on 2010-10-02 19:37, edited 1 time in total.
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 1998
Joined: 2009-06-09 22:20

Re: NFS client not mounting NFS mount at boot

Postby milomak » 2010-09-12 15:11

So I have another Debian Sid computer that seems to load the NFS partition correctly. It uses the exact same fstab as the one that doesn't.

NFS not mounted properly
Code: Select all
# dpkg -l | grep nfs
ii  libnfsidmap2                                                          0.23-2                                  An nfs idmapping library
ii  nfs-common                                                            1:1.2.2-4                               NFS support files common to client and server

Code: Select all
# dpkg -l | grep network
ii  ceni                                                                  2.10                                    Curses interface to /etc/network/interfaces
ii  fping                                                                 2.4b2-to-ipv6-16.1                      sends ICMP ECHO_REQUEST packets to network hosts
ii  gnome-nettool                                                         2.30.0-1                                network information tool for GNOME
ii  ifupdown                                                              0.6.10                                  high level tools to configure network interfaces
ii  iproute                                                               20100519-3                              networking and traffic control tools
ii  iputils-ping                                                          3:20100418-2                            Tools to test the reachability of network hosts
ii  kdenetwork                                                            4:4.4.5-1                               networking applications from the official KDE 4 release
ii  kdenetwork-filesharing                                                4:4.4.5-1                               network filesharing configuration module
ii  knetworkconf                                                          4:4.4.5-2                               network configuration tool
ii  libnm-glib0                                                           0.7.2-2                                 network management framework (GLib shared library)
ii  libnm-glib2                                                           0.8.1-2+b1                              network management framework (GLib shared library)
ii  libnm-util1                                                           0.8.1-2+b1                              network management framework (shared library)
ii  libqt4-network                                                        4:4.6.3-2                               Qt 4 network module
ii  libqtscript4-network                                                  0.1.0-3                                 Qt Script bindings for the Qt 4 Network library
ii  libsmokeqtnetwork4-3                                                  4:4.4.5-2                               Qt Network Smoke library
ii  libsolidcontrol4                                                      4:4.4.5-3                               library for Solid based network management
ii  libsolidcontrolifaces4                                                4:4.4.5-3                               library for Solid based network interface management
ii  net-tools                                                             1.60-23                                 The NET-3 networking toolkit
ii  netbase                                                               4.42                                    Basic TCP/IP networking system
ii  traceroute                                                            1:2.0.15-1                              Traces the route taken by packets over an IPv4/IPv6 network


NFS working properly
Code: Select all
$ dpkg -l | grep nfs
ii  libnfsidmap2                             0.23-2                         An nfs idmapping library
ii  nfs-common                               1:1.2.2-4                      NFS support files common to client and server

Code: Select all
$ dpkg -l | grep network
ii  gnome-nettool                            2.30.0-1                       network information tool for GNOME
ii  ifupdown                                 0.6.10                         high level tools to configure network interfaces
ii  iproute                                  20100519-3                     networking and traffic control tools
ii  iputils-ping                             3:20100418-2                   Tools to test the reachability of network hosts
ii  libnm-glib2                              0.8.1-2+b1                     network management framework (GLib shared library)
ii  libnm-util1                              0.8.1-2+b1                     network management framework (shared library)
ii  libqt4-network                           4:4.6.3-1                      Qt 4 network module
ii  net-tools                                1.60-23                        The NET-3 networking toolkit
ii  netbase                                  4.42                           Basic TCP/IP networking system
ii  traceroute                               1:2.0.15-1                     Traces the route taken by packets over an IPv4/IPv6 network


I'll trim down and update what I can and see what happens
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 1998
Joined: 2009-06-09 22:20

Re: NFS client not mounting NFS mount at boot

Postby smallchange » 2010-09-12 16:10

Debian has a great packaging system but there is more to running a *nix system than installing packages. What is happening here is that in Debian when a network interface is brought up it runs the scripts in /etc/network/if-up.d, one of which is mountnfs. This script uses a directory "/var/run/network/mountnfs" to know if it is bringing up the last interface so that it mounts the network file systems only once. If your system boot fails in a particular way that directory may be left existing and you will get this behavior. Remove that directory and it will work as it should.
smallchange
 
Posts: 1740
Joined: 2009-05-04 15:56

Re: NFS client not mounting NFS mount at boot

Postby milomak » 2010-10-02 19:36

yep you are right. that directory was the cause of the issue.

probably a leftover remnant from an earlier package (the computer that was having problems was built much earlier than the one where there was no problem). or a system crash that didn't remove it.

strangely i see this was previously discussed - viewtopic.php?f=5&t=45135

I am embarrassed by my search skills
Desktop: iMac Late-2015 27" 5K Retina (17,1 - 3.3GHz) - MacOS and Windows 10 (Bootcamp)/ Sid (External SSD)
Laptop: Lenovo ideapad Y700 [nVidia Optimus] (64-bit) - Sid, Win10, Solus
Kodi Box: AMD Athlon 5150 APU w/Radeon HD 8400 - Sid
milomak
 
Posts: 1998
Joined: 2009-06-09 22:20


Return to System configuration

Who is online

Users browsing this forum: No registered users and 13 guests

fashionable