You are not logged in.

#1 2014-03-06 02:01:59

thenuw1
Member
Registered: 2014-03-06
Posts: 6

Mounting NFS at boot.

I have searched for the solution to the problem I am having and have found no help, hopefully the masters of ARCH will help me.

I am unable to mount my NFS share at boot, but once I am able to ssh into the system I can perform a sudo mount -a and it mounts perfectly fine. when I review journalctl -b i see the following errors:

Mar 05 19:32:42 mars systemd[1]: storage-data.mount mount process exited, code=exited statu
Mar 05 19:32:42 mars systemd[1]: Failed to mount /storage/data.
Mar 05 19:32:42 mars systemd[1]: Dependency failed for Remote File Systems.
Mar 05 19:32:42 mars systemd[1]: Unit storage-data.mount entered failed state.

thanks in advance for the help.

Offline

#2 2014-03-06 02:08:55

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: Mounting NFS at boot.

Please sue code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Why is it failing?

sudo systemctl status storage-data.mount

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-03-06 02:36:28

thenuw1
Member
Registered: 2014-03-06
Posts: 6

Re: Mounting NFS at boot.

Sorry new to any forum, i guess i should have read the rules: here is the output:

storage-data.mount - /storage/data
   Loaded: loaded (/etc/fstab)
   Active: failed (Result: exit-code) since Sat 2014-03-15 00:54:00 CDT; 41s ago
    Where: /storage/data
     What: milkyway:/storage/data
  Process: 107 ExecMount=/bin/mount milkyway:/storage/data /storage/data -t nfs4 -o rsize=8192,wsize=8192,timeo=14,intr,_netdev (code=exited, status=32)

Mar 15 00:54:00 mars mount[107]: mount.nfs4: mount system call failed
Mar 15 00:54:00 mars systemd[1]: storage-data.mount mount process exited, code=exited status=32
Mar 15 00:54:00 mars systemd[1]: Failed to mount /storage/data.
Mar 15 00:54:00 mars systemd[1]: Unit storage-data.mount entered failed state.
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.

Last edited by thenuw1 (2014-03-15 05:55:17)

Offline

#4 2014-03-15 05:56:23

thenuw1
Member
Registered: 2014-03-06
Posts: 6

Re: Mounting NFS at boot.

Anyone have any ideas on this one?

Offline

#5 2014-03-15 07:00:09

Hspasta
Member
Registered: 2011-12-24
Posts: 189
Website

Re: Mounting NFS at boot.

My guess would be that it doesn't have network connection when it tries on boot.

Offline

#6 2014-03-15 18:03:15

BluMongoose
Member
From: 'Murica
Registered: 2012-04-24
Posts: 49

Re: Mounting NFS at boot.

I had the same issue and from the reading I did, Hspasta is correct. The options to add to the nfs line are

...noauto,x-systemd.automount...

The latter option will mount the share on first access.


"Think for yourself and question authority." -T. Leary

Offline

#7 2014-03-19 02:44:48

thenuw1
Member
Registered: 2014-03-06
Posts: 6

Re: Mounting NFS at boot.

Thank you both, that has been a thorn in my side, adding the below code did the trick.

noauto,x-systemd.automount

Offline

Board footer

Powered by FluxBB