Ken Moffat wrote: > On Wed, Nov 30, 2011 at 01:55:06PM -0600, Bruce Dubbs wrote: >> # mount -t nfs lfs7:/usr/src /mnt/lfs7 >> mount.nfs: mount to NFS server 'lfs7' failed: RPC Error: Program not >> registered >> > > I can't test my server install at the moment (I'm using a different > partition as my 7.0 desktop, doing some other tasks), but when my > client failed to mount, its error was always > 'access denied by server' > > I haven't seen 'Program not registered' for many years. Almost > sounds as if port 111 on the *client* is no longer associated with > sunrpc in its /etc/services.
Like I said, the client mounts from a ubuntu system fine. It mounts from one seerver but not another. That indicates a server problem to me. > Failing that, in my case I have to 'bounce' the server (i.e. stop > and start it - with the reload, which I see I included in the > bootscript). Not yet debugged. > > I'm also specifying the options for this test mount in the client's > /etc/fstab. Have you got vers=3 among your options ? (I know > you're only building for nfs3, but I don't know if that alters the > recent server's default of exporting as v4). I'm not using fstab at the moment. It's not needed when you specify both the source and the mount point. Specifying vers=3 makes no difference. I did find out that /proc/fs/nfs/exports and /var/lib/nfs/xtab are only populated on the server when the mount is made. On the lfs7 server, I do have an entry in /var/lib/nfs/etab with the exported fs. My concern is that rpcinfo gives no entry for nfs which should be port 2049. From best I can tell, there are four config files: /etc/sysconfig/nfs-server /etc/exports /etc/netconfig (for libtirpc) /etc/services They seem right to me. The other thing that is might be is the kernel config. I have: CONFIG_NETWORK_FILESYSTEMS=y CONFIG_NFS_FS=y CONFIG_NFS_V3=y CONFIG_NFS_V3_ACL=y CONFIG_NFS_V4=y # CONFIG_NFS_V4_1 is not set CONFIG_ROOT_NFS=y # CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y # CONFIG_NFS_USE_NEW_IDMAPPER is not set CONFIG_NFSD=y # CONFIG_NFSD_DEPRECATED is not set CONFIG_NFSD_V3=y # CONFIG_NFSD_V3_ACL is not set # CONFIG_NFSD_V4 is not set CONFIG_LOCKD=y CONFIG_LOCKD_V4=y CONFIG_NFS_ACL_SUPPORT=y CONFIG_NFS_COMMON=y CONFIG_SUNRPC=y CONFIG_SUNRPC_GSS=y Checking menuconfig, I don't see anything there that needs to be changed. I guess it's time to explore the source. -- Bruce -- http://linuxfromscratch.org/mailman/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
