NFS mounts not being mounted at boot time.

Robert Heller heller at deepsoft.com
Sat Apr 9 20:13:04 UTC 2016


At Sat, 9 Apr 2016 18:35:14 +0200 "Ubuntu user technical support,  not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:

> 
> On Sat, Apr 9, 2016 at 5:41 PM, Robert Heller <heller at deepsoft.com> wrote:
> > At Sat, 9 Apr 2016 17:18:56 +0200 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
> >> On Sat, Apr 9, 2016 at 3:09 AM, Robert Heller <heller at deepsoft.com> wrote:
> >>>
> >>> I am having trouble with a Ubuntu 14.04 system that is not mounting NFS files
> >>> systems at boot time. I have installed nfs-common and have entries in
> >>> /etc/fstab for the mounts. I noticed that Ubuntu does not have a startup
> >>> script to mount NFS disks (the way the RedHat machines I am used to do), since
> >>> it is not possible to mount NFS filesystems when one mounts local system
> >>> filesystems, since the network is not up yet. On all of the RedHat systems
> >>> there is an init script that runs later that mounts NFS file systems (and also
> >>> fires up nfslock if needed). This seems to be missing on Ubuntu (unless I am
> >>> missing something). What am I missing?
> >>
> >> fstab nfs mounts are mounted by mountall, triggered by
> >> "/etc/init/mountall-net.conf".
> >>
> >> Adding _netdev to your nfs fstab mounts might help but it shouldn't.
> >>
> >> Can you mount your nfs fstab mounts manually?
> >
> > Yes. I added 'bootwait' to the options and that cured the problem.
> 
> Good.
> 
> 
> > Ubuntu does not handle NFS file systems at all the way RedHat/CentOS
> > does -- RedHat/CentOS mounts NFS file systems with a separate init
> > script, that is run sometime *after* the network is started.
> 
> Why should it work like RHEL?

It is just it is not what I expected.  I have been using versions of RedHat 
linux since the (old!) 4.5 release back in the 1990s and adding NFS mounts 
'just worked' without playing any special games.

> 
> Whether I'm using RHEL or Ubuntu, I use "_netdev" for fstab nfs mounts.
> 

I've never used the '_netdev' option.  Of course I have not really touched 
RHEL/CentOS 7 (systemd) yet.  All of the RedHat/RHEL/CentOS/Fecora systems I 
have used are all SYSV init systems.

-- 
Robert Heller             -- 978-544-6933
Deepwoods Software        -- Custom Software Services
http://www.deepsoft.com/  -- Linux Administration Services
heller at deepsoft.com       -- Webhosting Services
                                                                                                     




More information about the ubuntu-users mailing list