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


Groups > linux.debian.user > #167809

Re: Timing issue with fstab NFS mounts

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: Timing issue with fstab NFS mounts
Date 2016-05-13 13:30 +0200
Message-ID <ryjs6-2gO-17@gated-at.bofh.it> (permalink)
References <ryg1d-7nz-29@gated-at.bofh.it> <ryhqi-uZ-5@gated-at.bofh.it> <ryiZ3-1D7-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, May 13, 2016 at 06:57:10AM -0400, Steve Matzura wrote:
> On Fri, 13 May 2016 05:12:56 -0400, you wrote:
> 
> >The options field in fstab should include "_netdev" for devices
> >which cannot be mounted until networking is stable.
> 
> I have never heard of that option. I'll try it and report back. Now,
> what about the lines for the binds that immediately follow the network
> device? Do the binds still operate even if the network device isn't
> online yet? In other words, does the mounting of devices processing
> stop until the line in fstab with _netdev in its options field is
> processed, then the binds run? If so, then this is the answer to a
> humble man's prayer. I've been wrestling with this literally for
> months.

fstab is always evaluated in the order you write it, from top to
bottom. However, not all mount commands are equivalent. The
usual call shortly after system boot is:

mount -a -t nonfs,nfs4,smbfs,cifs,ncp,ncpfs,coda,ocfs2,gfs,gfs2,ceph -O no_netdev

which says: mount everything except filesystems which are known to
be dependent on networks, and also avoid filesystems which are marked
as _netdev.

In this case, you want to mark all your bind mounts as _netdev
as well.

-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Timing issue with fstab NFS mounts Steve Matzura <sm@noisynotes.com> - 2016-05-13 09:50 +0200
  Re: Timing issue with fstab NFS mounts Dan Ritter <dsr@randomstring.org> - 2016-05-13 11:20 +0200
    Re: Timing issue with fstab NFS mounts Steve Matzura <sm@noisynotes.com> - 2016-05-13 13:00 +0200
      Re: Timing issue with fstab NFS mounts Dan Ritter <dsr@randomstring.org> - 2016-05-13 13:30 +0200
        Re: Timing issue with fstab NFS mounts David Wright <deblis@lionunicorn.co.uk> - 2016-05-13 16:10 +0200
  Re: Timing issue with fstab NFS mounts David Witbrodt <dawitbro@sbcglobal.net> - 2016-05-13 16:10 +0200

csiph-web