You are not logged in.

#1 2012-09-23 11:34:40

artturi
Member
Registered: 2010-04-10
Posts: 10

nfs server off & nfs share automounted by systemd -> problems

Hello,

I've had a nas (synology) with nfs shares I used to automount via systemd via this fstab line :

server_ip:/volume1/homes/me/Documents /home/me/Documents  nfs         user,hard,nolock,noauto,comment=systemd.automount,nofail

I thought this automounting would permit to start my arch while the nas if offline, provided I don't try to access /home/me/Documents
But no, it doesn't work well :
* Thunar won't start (more exactly, it will start only when the mount is done)
* 'ls ~'  waits infinitely and does not show anything

I realise this is probably a classic nfs issue but I've had not found the right query to get the solution.

Would you have any idea to solve this problem ?

Regards
Mikael

Last edited by jasonwryan (2012-09-24 07:02:34)

Offline

#2 2012-09-23 13:52:25

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: nfs server off & nfs share automounted by systemd -> problems

Pretty sure you need x-systemd.automount there:
https://wiki.archlinux.org/index.php/Systemd#Automount

Offline

#3 2012-09-23 14:40:36

artturi
Member
Registered: 2010-04-10
Posts: 10

Re: nfs server off & nfs share automounted by systemd -> problems

Thanks, but I changed my fstab according to this while keeping my nas offline : still the same problem.

systemctl :

home-mikael-Documents.automount                                    loaded active running       home-mikael-Documents.automount
home-mikael-Documents.mount                                        loaded active mounted       /home/mikael/Documents

Regards
Mikael

Offline

#4 2012-09-23 14:42:42

moetunes
Member
From: A comfortable couch
Registered: 2010-10-09
Posts: 1,033

Re: nfs server off & nfs share automounted by systemd -> problems

Try adding intr to your fstab line.
See 4.3.1 here.


You're just jealous because the voices only talk to me.

Offline

#5 2012-09-23 15:15:44

artturi
Member
Registered: 2010-04-10
Posts: 10

Re: nfs server off & nfs share automounted by systemd -> problems

Thanks again, but still nothing better.

Regards,
Mikael

Offline

#6 2012-09-24 06:57:03

artturi
Member
Registered: 2010-04-10
Posts: 10

Re: nfs server off & nfs share automounted by systemd -> problems

I issued this command :

$ cat /proc/mounts

...
systemd-1 /home/mikael/Documents autofs rw,relatime,fd=16,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
...

And after running the following command, things got better (ls works, thunar starts) :
# systemctl stop home-mikael-Documents.automount

Seems like systemd is not compatible with my goals.

Regards,
Mikael

Offline

#7 2012-09-24 07:03:48

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

Re: nfs server off & nfs share automounted by systemd -> problems

Please do not prepend [Closed] to your threads; if it is solved, use that term. Closed means that the thread can no longer be posted in.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB