You are not logged in.
Pages: 1
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
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
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
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
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
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
Hi,
mount: RPC: Program not registered
I need to register this program? I thought this was free software
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
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
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
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
yes we have a great community that's one of the reasons i LOVE ARCH
______
"Ignorance, the root and the stem of every evil." - Plato
Offline
jlowell: In real life I'm a BOFH (full of RTFMs), consider this forum as my alter ego .
Also check my autofs.tar.bz2 pkg in incoming, it's really helpful (sometimes life-saver) on networks with nfs.
Offline
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
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
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
Offline
Pages: 1