Atomic Host - NFS Mount on Boot

General support questions
Post Reply
jbhardman
Posts: 2
Joined: 2018/09/19 16:33:49

Atomic Host - NFS Mount on Boot

Post by jbhardman » 2018/09/19 16:39:26

Hopefully it's ok to post Atomic Host questions here. I couldn't find a specific Atomic Host board.

I'm trying to mount an NFS share on boot. I put the correct parameters into my fstab file. It mounts perfect when I issue "mount -a". But, it does not mount on boot. The network is not ready yet at the time it tries, so it fails. Log file says this:
Sep 19 10:16:42 judge.hardman.local systemd[1]: Reached target Remote File Systems (Pre).
Sep 19 10:16:42 judge.hardman.local systemd[1]: Starting Remote File Systems (Pre).
Sep 19 10:16:42 judge.hardman.local systemd[1]: Mounting /mnt/rivera/files...
Sep 19 10:16:42 judge.hardman.local systemd[1]: Starting Availability of block devices...
Sep 19 10:16:42 judge.hardman.local systemd[1]: Started Notify NFS peers of a restart.
Sep 19 10:16:42 judge.hardman.local systemd[1]: Started Enable periodic update of entitlement certificates..
Sep 19 10:16:42 judge.hardman.local systemd[1]: Started Availability of block devices.
Sep 19 10:16:42 judge.hardman.local mount[950]: mount.nfs: Failed to resolve server rivera: Name or service not known
Sep 19 10:16:42 judge.hardman.local mount[950]: mount.nfs: Operation already in progress
Sep 19 10:16:42 judge.hardman.local systemd[1]: mnt-rivera-files.mount mount process exited, code=exited status=32
Sep 19 10:16:42 judge.hardman.local systemd[1]: Failed to mount /mnt/rivera/files.
Sep 19 10:16:42 judge.hardman.local systemd[1]: Dependency failed for Remote File Systems.
Sep 19 10:16:42 judge.hardman.local systemd[1]: Job remote-fs.target/start failed with result 'dependency'.
Sep 19 10:16:42 judge.hardman.local systemd[1]: Unit mnt-rivera-files.mount entered failed state.
It doesn't seem like Atomic Host is using standard automount because I don't have that service. It's just unique enough that I can't figure out exactly what to do about this. How do I get my mount to wait until my network is up and connected?

hunter86_bg
Posts: 2019
Joined: 2015/02/17 15:14:33
Location: Bulgaria
Contact:

Re: Atomic Host - NFS Mount on Boot

Post by hunter86_bg » 2018/09/19 18:50:21

As this is Atomic , it could be different.
Try to set your fstab entry like this:

Code: Select all

NFShost1:/export /mnt/destination nfs4 defaults,x-systemd.automount 0 0 
Of course, don't forget to verify the entry with the ' mount /mnt/destination' or the plain 'mount -a'.

jbhardman
Posts: 2
Joined: 2018/09/19 16:33:49

Re: Atomic Host - NFS Mount on Boot

Post by jbhardman » 2018/09/19 22:24:49

Perfect! Thanks so much. I had tried a few different variations with auto mount options and no combinations were working. All set now.

Post Reply