Your mount does not work because yor network/nfs is not up at the time
/etc/fstab is evaluated.

Also NOTE: you mount external /var/snd to local /var/snd which is
definitely bad idea. Both locations exist and are used.

Traditionally mounting network storage can be solved by autofs. You could
also use systemd to do that these days.

If you choose autofs as solution - realize - it is a service, so it needs
to be installed, configured and added to systemd or init (depending on the
age of your system).

With autofs, stuff gets mounted when you access the directory/data you want
mounted

Best, Tomas


On Sat, Jun 26, 2021, 20:43 Michael Barnes <barnmich...@gmail.com> wrote:

> I have two CentOS7 machines which need to share a folder. I have the export
> stuff set up on the primary and fstab configured on the second computer.
>
> rd1:/var/snd         /var/snd      nfs     _netdev,defaults,auto   0 0
>
> If I do a "mount -a", everything works fine. However, if I restart the
> second computer, the share does not mount. I have to manually run "mount
> -a" to get it to mount.
>
> What do I need to fix to get it to automatically mount on reboot?
>
> Thanks,
> Michael
>

Reply via email to