You are not logged in.

#1 2003-10-15 04:48:00

jlowell
Member
Registered: 2003-08-10
Posts: 270

NFS

I'm trying to set up NFS for my three worstations. I have intalled portmap and nfs-utils and I understand that both services have to be identified in /etc/rc.conf so that /etc/rc.multi can start them at boot. Precisely what kind of entries do I need to make on the DAEMONS= line in /etc/rc.conf, "portmap nfs"? Am I correct in thinking that they are, in fact, to be made there? I know from experience with other distros that  portmap needs to be started first, but what entries to make?

jlowell

Offline

#2 2003-10-15 10:58:26

farphel
Forum Fellow
From: New Hampshire - USA
Registered: 2003-09-18
Posts: 250
Website

Re: NFS

Add "portmap nfslock" to your clients' DAEMONS line.

Add "portmap nfslock nfsd" to your server's DAEMONS line.


Follow the link below, sign up, and accept one promotional offer.  If I can get five suckers (err... friends) to do this, I'll get a free iPod.  Then you too can try to get a free iPod. Thanks! http://www.freeiPods.com/?r=11363142

Offline

#3 2003-10-15 15:41:22

jlowell
Member
Registered: 2003-08-10
Posts: 270

Re: NFS

farfel,

Thanks, farfel, you got me up-and-running!

I searched our forum for what we may have on this matter and was not able to locate anything. I then tried about every combination of daemon names I could think of and in desperation went to the nfs-utils developer's home page and read their manual. The names they use to identify the daemons don't work with Arch, something on the order of "rpc.portmap", "rpc.nfsd", etc. That one surprized me; if they didn't have the answer, who would? Well, it turns out that farfel knew!

Again, thanks.

jlowell

Offline

#4 2003-10-15 16:24:34

Xentac
Forum Fellow
From: Victoria, BC
Registered: 2003-01-17
Posts: 1,797
Website

Re: NFS

If you want to know the names of all the possible daemons on your box check /etc/rc.d.  That's exactly where it runs the daemon scripts from.


I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal

Offline

#5 2003-10-15 16:49:27

jlowell
Member
Registered: 2003-08-10
Posts: 270

Re: NFS

Ok, I've got NFS configured on all three workstations but attempting to do a share between two of them I get the following error:

mount: RPC: Program not registered

I need to register this program? I thought this was free software smile

Everything checks out as far as I can tell, /etc/exports written, daemons running, etc. Can anyone give me any insight into this error?

jlowell

Offline

#6 2003-10-15 19:25:31

neri
Forum Fellow
From: Victoria, Canada
Registered: 2003-05-04
Posts: 553

Re: NFS

Hi,

jlowell wrote:

mount: RPC: Program not registered

I need to register this program? I thought this was free software smile

Hey, now they got you. It's over my dear friend. <eg>

No, the point is that, as far as I got it, you start a program on another box.
It makes sense that this is disabled by default on client and server side.

Arch follows the concept of explicit permition(hardcore germanism), this
means evrything is forbidden (see hosts.deny for details) excepted things
which are permitted. This happens in hosts.allow, which you have to edit.

My looks like this:

portmap:    192.168.0.5, 192.168.0.3, 192.168.0.7
nfsd:        192.168.0.5, 192.168.0.3, 192.168.0.7
nfslock:    192.168.0.5, 192.168.0.3, 192.168.0.7
lockd:        192.168.0.5, 192.168.0.3, 192.168.0.7
rquotad:    192.168.0.5, 192.168.0.3, 192.168.0.7
mountd:        192.168.0.5, 192.168.0.3, 192.168.0.7
statd:        192.168.0.5, 192.168.0.3, 192.168.0.7
mount:        192.168.0.5, 192.168.0.3, 192.168.0.7
umount:        192.168.0.5, 192.168.0.3, 192.168.0.7

Some things might be to much (some calls have changed with tha last
nfs-utils release). But this should work.

bye neri

Offline

#7 2003-10-15 23:42:57

jlowell
Member
Registered: 2003-08-10
Posts: 270

Re: NFS

Hi neri!

Nice to hear from you.

As you can see I'm having some real fun getting NFS up-and-running. Your tutorial on Arch's "hardcore germanism" is appreciated; I've gotten past the "mount: RPC: Program not registered" problem. That said, the next error appears:

mount: RPC: Program/version number mismatch; low version = 3, high version = 3

Googling I see that there are some possible /etc/fstab solutions that are said to work and one mount command line option solution, specifically mount -o nfsv2 , but trying that one, the option is not recognized. The fstab solutions were written for a Solaris environment and well may have no more meaning to us than the option did.

I'm stuck. Apparently it's going to be necessary to somehow force the acceptance of version 2, but how? From searching the forum it would seem that very few people using Arch also use NFS, either that or there's a very large group of Arch users that do use NFS that have entirely escaped these problems. Any thoughts?

jlowell

Offline

#8 2003-10-16 00:59:33

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: NFS

Open /etc/conf.d/nfsd on the server and change this line :
MOUNTD_OPTS="--no-nfs-version 1 --no-nfs-version 2"
to
MOUNTD_OPTS="--nfs-version 2"

or 3 (which I suggest, as long as you have it enabled on kernel config on all boxes).

Offline

#9 2003-10-16 03:36:54

jlowell
Member
Registered: 2003-08-10
Posts: 270

Re: NFS

zen_guerrilla,

It's been more than once that I've gotten top notch help from you over the last several weeks. Looks like you did it again. I'm typing this at Arch1, having just come from Arch2 where I just successfully mounted and ran a little colorsample script that's resident in Arch1's home directory. Enormously helpful.

I really must say, I've consistently gotten the answers I've needed on this forum to solve any number of problems I've had trying to get Arch into the shape I''ve wanted it in for this network. At every turn there have been knowledgable people providing really first class help. No RTFM, just solid, courteous help. That says a lot of good things about Arch Linux.

Many thanks, zen_guerrilla. Thanks also to farfel, Xentac, and neri.

jlowell

Offline

#10 2003-10-16 10:28:09

nifan
Member
Registered: 2003-04-10
Posts: 102

Re: NFS

yes we have a great community tongue that's one of the reasons i LOVE ARCH big_smile


______
"Ignorance, the root and the stem of every evil." - Plato

Offline

#11 2003-10-16 11:07:28

zen_guerrilla
Member
From: Greece
Registered: 2002-12-22
Posts: 259

Re: NFS

jlowell: In real life I'm a BOFH (full of RTFMs), consider this forum as my alter ego big_smile.
Also check my autofs.tar.bz2 pkg in incoming, it's really helpful (sometimes life-saver) on networks with nfs.

Offline

#12 2006-09-25 14:57:48

dninja
Member
From: Sheffield, UK
Registered: 2006-04-29
Posts: 374
Website

Re: NFS

zen_guerrilla wrote:

Open /etc/conf.d/nfsd on the server and change this line :
MOUNTD_OPTS="--no-nfs-version 1 --no-nfs-version 2"
to
MOUNTD_OPTS="--nfs-version 2"

or 3 (which I suggest, as long as you have it enabled on kernel config on all boxes).

Having just had this problem I'm curious why, by default, arch can't mount shares from other arch boxes, even from itself.

Can anyone tell me why?

Offline

#13 2007-01-15 09:54:37

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: NFS

how do I setup /etc/fstab so my shares get automatically mounted on boot?
I set up something like that:

1.2.3.4:/bla   /bla   nfs   auto,ro   0   0

But when I restart the machine, the share is not mounted, I have to manually do it:

mount /bla

So whats wrong?
Here is my DAEMONS entry from /etc/rc.conf:
DAEMONS=(syslog-ng network portmap nfslock @sshd @httpd @mysqld @svnserve @crond @postfix)


digiKam developer - www.digikam.org

Offline

#14 2007-01-15 10:03:19

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

Re: NFS

fstab is processed before your network is available, so mount can't find the shared volumes. Remove 'auto' from the nfs fstab entries, and add 'netfs' to your DAEMONS array, after 'nfslock'.

Offline

#15 2007-01-15 10:05:03

TheGrudge
Member
Registered: 2006-06-15
Posts: 206
Website

Re: NFS

ah ok, thanks! Works perfectly!


digiKam developer - www.digikam.org

Offline

Board footer

Powered by FluxBB