You are not logged in.

#1 2007-07-20 23:24:48

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

NFS on /home

I have successfully mounted an nfs share on /home in the past, it seemed to work fine apart from with firefox, which seems to take about a minuite to start, opera and epiphany also seem to suffer the same fate.  They all work wonderfully once the app is open.

I would really like to get this setup working, i currently do a nasty work around with symlinking everywhere so the .mozilla files end up on the local machine.  not ideal when the whole idea of a nfs /home is so you can have the same bookmarks etc everywhere you go.


Any ideas why? Anyone?

Thanks in advance to the ever great archers

Offline

#2 2007-07-20 23:38:46

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

Some brief Googling I did makes it look like a locking issue. This Red Hat thread is related to your problem.

Offline

#3 2007-07-20 23:46:01

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

thanks for that skymt.  funny that i did some googling and came up with a similar result although it was with openoffice taking ages to start although i haven't got that installed.  Do you think it is a problem with the nfs package in the arch repo's then?

Offline

#4 2007-07-21 00:05:57

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

Are rpc.lockd and rpc.statd running on the server? If not, (assuming you're running Arch on the server) add "nfslock" to the DAEMONS array in /etc/rc.conf. If they are, you may have a firewall issue like the fellow in the Red Hat support thread.

Offline

#5 2007-07-21 10:41:06

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

Sorry the reply took so long, i had to have a sleep in between.

I have checked all the above and i am still have problems both server and client both run arch.  I don't see how it can be a firewall problem, nfs works fine for all other programs i can stream music / movies etc over fine.  Plus i didn't think arch came with any firewall rules defined.  I would need some real help here, iptables is something i have nether grasped in linux.

Many Thanks in advance

Offline

#6 2007-07-21 16:43:10

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

During setup, did you follow the directions on the Arch wiki, or somewhere else?

Also, what's in your /etc/hosts.allow file?

Offline

#7 2007-07-21 19:00:13

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

No i did not follow the arch wiki, basically because i have set up nfs loads of times before on other os.  Here is my hosts.allow which should allow everything on my network range and my /etc/exports and my daemons line from /etc/rc.conf just incase.

#
# /etc/hosts.allow
#

ALL: 192.168.1.: ALLOW

# End of file
# /etc/exports
#
# See exports(5) for a description.

# use exportfs -arv to reread
/data/home      192.168.1.0/255.255.255.0(sync,rw,subtree_check)
DAEMONS=(syslog-ng portmap network netfs nfslock nfsd crond sshd webmin httpd rsyncd samba)

Last edited by gazj (2007-07-21 19:00:33)

Offline

#8 2007-07-21 19:08:53

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

Try adding the "insecure_locks" option to /etc/exports, just to help narrow down your problem.

Offline

#9 2007-07-21 20:03:02

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

That looked really promising, but unfortunately the problem remains, but i am really greatfull of your help so far.  Although if like me your starting to run out of ideas.

Offline

#10 2007-07-21 20:48:49

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

Does your account have the same numeric UID on both systems?

And yeah, I'm running out of ideas. Sorry. My next one would be to try another technology, like Samba or AFS. Although if you've done this with NFS in the past, I don't see why it wouldn't work on Arch.

Offline

#11 2007-07-21 22:26:55

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

yes uid and gid's all match.  I am really stumped on this one, i have not done too much with samba, how do permissions work? would a /home work like this?

Offline

#12 2007-07-21 23:12:06

skymt
Member
Registered: 2006-11-27
Posts: 443

Re: NFS on /home

I've never done anything like this with Samba, but the access controls guide makes it look feasible.

You should also look at OpenAFS, which is more Unix-oriented than Samba and more modern than NFS.

Offline

#13 2007-07-21 23:32:50

gazj
Member
From: /home/gazj -> /uk/cambs
Registered: 2007-02-09
Posts: 681
Website

Re: NFS on /home

Ok thank you, i will definitey look into this (probably tomorrow) and report back here.  Maybe even do a wiki entry if it is successful and one doesn't already exsist.

Many Thanks again

Offline

#14 2007-07-21 23:38:32

ataraxia
Member
From: Pittsburgh
Registered: 2007-05-06
Posts: 1,553

Re: NFS on /home

AFS is a giant undertaking, and requires Kerberos to authenticate yourself to. I think it's overkill for this purpose.

Offline

#15 2007-07-22 21:37:52

RedShift
Member
From: Belgium
Registered: 2004-07-16
Posts: 230

Re: NFS on /home

Make sure nfslock is started on the client too.


:?

Offline

#16 2007-07-24 00:13:30

arew264
Member
From: Friendswood, Texas, US
Registered: 2006-07-01
Posts: 394
Website

Re: NFS on /home

Just out of curiosity, are you using PAM and pam_mount?
If not, you should investigate. It's ideal for this sort of setup.

Offline

Board footer

Powered by FluxBB