Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Delay NFS mount

158 views
Skip to first unread message

Steven Borrelli

unread,
Feb 21, 2017, 8:32:40 AM2/21/17
to
I run FreeBSD on multiple servers and do backups over NFS. This works great, but of course mounting the NFS doesn't work at startup on my DNS server until BIND is loaded.

Anyone know of a flag for rc.conf or any way I can delay the NFS mount so it will wait for BIND to load? I know I can make it work with /etc/hosts, but I like to avoid that whenever possible.

Lowell Gilbert

unread,
Feb 21, 2017, 10:57:47 AM2/21/17
to
Have you tried the "late" keyword in the fstab(5) entries?

--
Lowell Gilbert, embedded/networking software engineer
http://be-well.ilk.org/~lowell/

Christian Weisgerber

unread,
Feb 21, 2017, 11:30:07 AM2/21/17
to
On 2017-02-21, Steven Borrelli <delbo...@googlemail.com> wrote:

> I run FreeBSD on multiple servers and do backups over NFS. This works great, but of course mounting the NFS doesn't work at startup on my DNS server until BIND is loaded.
>
> Anyone know of a flag for rc.conf or any way I can delay the NFS mount so it will wait for BIND to load?

You can set the "bg" flag in the mount options. From mount_nfs(8):

bg If an initial attempt to contact the server fails, fork
off a child to keep trying the mount in the background.
Useful for fstab(5), where the file system mount is not
critical to multiuser operation.

--
Christian "naddy" Weisgerber na...@mips.inka.de

Bob Eager

unread,
Feb 21, 2017, 1:59:39 PM2/21/17
to
On Tue, 21 Feb 2017 10:57:45 -0500, Lowell Gilbert wrote:

> Steven Borrelli <delbo...@googlemail.com> writes:
>
>> I run FreeBSD on multiple servers and do backups over NFS. This works
>> great, but of course mounting the NFS doesn't work at startup on my DNS
>> server until BIND is loaded.
>>
>> Anyone know of a flag for rc.conf or any way I can delay the NFS mount
>> so it will wait for BIND to load? I know I can make it work with
>> /etc/hosts, but I like to avoid that whenever possible.
>
> Have you tried the "late" keyword in the fstab(5) entries?

I had this problem, and 'late' turned out to be 'not quite late enough' -
some of the time.

'bg' did it for me.



--
Using UNIX since v6 (1975)...

Use the BIG mirror service in the UK:
http://www.mirrorservice.org

Louis Epstein

unread,
Feb 25, 2017, 11:57:41 PM2/25/17
to
So this would go in the "Options" column of /etc/fstab along with
things like rw?

(I have 6 NFS slices set to mount on a server that has far less
storage than another machine to which I can send backups of its files,
and bootups wait a long time on trying to get NFS mounts before it
gives up)

-=-=-
The World Trade Center towers MUST rise again,
at least as tall as before...or terror has triumphed.

Bob Eager

unread,
Feb 26, 2017, 5:00:37 AM2/26/17
to
On Sun, 26 Feb 2017 04:57:40 +0000, Louis Epstein wrote:

>> You can set the "bg" flag in the mount options. From mount_nfs(8):
>>
>> bg If an initial attempt to contact the server fails, fork
>> off a child to keep trying the mount in the background.
>> Useful for fstab(5), where the file system mount is not
>> critical to multiuser operation.
>>
>>
> So this would go in the "Options" column of /etc/fstab along with things
> like rw?

Yes. As in: rw,bg

Mike Sanders

unread,
Feb 26, 2017, 7:50:14 AM2/26/17
to
Bob Eager <news...@eager.cx> wrote:

> I had this problem, and 'late' turned out to be 'not quite late enough' -
> some of the time.
>
> 'bg' did it for me.

Handy info!

--
later on,
Mike

http://busybox.hypermart.net
0 new messages