Ken Moffat wrote:
> I've got it working! Unfortunately, I've been through a lot of
> revisions without any obvious change to the results, so I'll need to
> rip the nfs stack out and start again so that I can see which parts
> are needed. Along the way, I had it working with -o,nolock but only
> in r/o mode although I specified r/w, and only for a share mounted
> by root. I was starting to think I might have to go with that and
> use ssh to update my notes.
>
> For the moment, there are four obvious changes in play -
>
> 1. Attached patch for libtirpc - a combination of yours, plus one
> from debian. Use automake. This item, in particular, is of
> uncertain utility at the moment.
The patch is mine without anything from debian, and it works.
> 2. Drop portmap for rpcbind.
Did that.
> 3. Edit /etc/services to allow rpcbind on port 111 udp and tcp.
This is the key! I spent a lot of time debugging and found a message
equivalent to "failure in receiving result" when trying to query
rpcbind. I'm not sure how you figured it out, but it definitely needs
to go into the book.
I haven't tried the server part yet, but the client does work.
> 4. Drop my /etc/hosts.deny. I replaced portmap with rpcbind in
> hosts.allow, but running rpcbind in the foreground gave me a couple
> of scary messages, something like 'unable to set hostname' or maybe
> 'unable to get address'. For the moment, this change is key to
> having it working, but obviously not a good idea. So, I need to
> find what rpcbind should really be called in hosts.allow.
Yes, I do --without-tcp-wrappers myself. There is a note in nfs-utils
about hosts.allow, but we probably need to be more explicit. If I do
use tcp-wrappers, I use 'ALL: ALL' in hosts.allow, but we probably need
to be specific. Do you know which daemons to allow? rpc.statd?
rpcbind? rpc.nfsd? rpc.rquotad? All of them?
> I've also got a fifth change - in ~/.bashrc on my desktops I use
> rpcinfo to check that my server is exporting my notes. That program
> has moved from /usr/sbin to /usr/bin, so I've had to change
> ~/.bashrc.
I moved both rpcinfo and rpcbind to /sbin and libtirpc.so and friends to
/lib. I also have mount.nfs on /sbin. I need to move rpc.statd to
/sbin so /usr can be mounted via nfs. The other rpc programs can be in
/usr/sbin, but they should probably be all together.
> ${DEITY}, I thought last night was late enough ;-)
Me too. Overall to get nfs working we need libtirpc, rpcbind, and
nfs-tools. For nfs4 and rpc security, the book has the other needed
libraries specified. I've touched up the boot scripts too.
-- Bruce
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page