# Wait NFS server until ready

**URL:** <https://forums.rockylinux.org/t/wait-nfs-server-until-ready/18234>\
**Category:** Rocky Linux Help & Support\
**Created:** [April 22, 2025, 12:58pm UTC](https://forums.rockylinux.org/t/wait-nfs-server-until-ready/18234 "2025-04-22T12:58:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![druizm](https://avatars.discourse-cdn.com/v4/letter/d/3d9bf3/32.png) [@druizm](https://forums.rockylinux.org/u/druizm)\
**Post date:** [April 22, 2025, 12:58pm UTC](https://forums.rockylinux.org/t/wait-nfs-server-until-ready/18234/1 "2025-04-22T12:58:04Z")

</div>

Hello,

I need that all my clients wait until NFS server is ready (sometimes, in some reboots, clients reboot faster than server and, then, NFS mountpoints are not mounted).  
I have reconfigured file /etc/nfsmount.conf in clients, enabling “Retry=10” (in minutes; by default, value is 2). However, running a test shuting down server and rebooting client, it continues waiting only 2 minutes (exaclty: 1m33seconds), so NFS mountpoint is not correctly mounted.

How can I solve it?

Thanks.

---

<div class="post-metadata">

**Author:** ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)\
**Post date:** [April 22, 2025, 1:36pm UTC](https://forums.rockylinux.org/t/wait-nfs-server-until-ready/18234/2 "2025-04-22T13:36:18Z")

</div>

Could _automount_ , i.e. delayed mount suffice?

One could have in `/etc/fstab`:

```auto
server:/share /data/volume nfs defaults,tcp,port=2049,acl,noauto,nofail,x-systemd.automount,x-systemd.idle-timeout=300 0 0

```

and SystemD would do the mount when you try to access `/data/volume`.

Alternatively, with `autofs`:

```auto
$ cat /etc/auto.master.d/local.autofs
/data /etc/auto.master.d/auto.data --timeout=300 browse
$ cat /etc/auto.master.d/auto.data
volume -fstype=nfs,rw,hard,nodev,nosuid,acl,proto=tcp,port=2049 server:/share

```

* * *

Naturally, if the mount is so critical that the system cannot boot without the volume mounted, then these are “too late”.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/rockylinux/original/1X/91b7219eec10e30013422e4df76c1d898711a5d5.svg) [@system](https://forums.rockylinux.org/u/system)\
**Post date:** [June 21, 2025, 1:37pm UTC](https://forums.rockylinux.org/t/wait-nfs-server-until-ready/18234/3 "2025-06-21T13:37:13Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
