K.S. Bhaskar on 13 Jun 2010 15:02:17 -0700 |
Background: I am setting up computers for the Computer Merit Badge at our 2010 boy scout science camp, and am struggling with NFS. (I am sure I will be struggling with NIS shortly.) I would like to set up one PC as an NIS server serving /home via NFS to the other PCs, so that a scout can login to any PC and use it. I also hope to be able to set up a second server as a backup and unison the home directories via cron after each class. But first I am trying to set up NFS. Current problem: Following the instructions at https://help.ubuntu.com/community/SettingUpNFSHowTo I have the following configuration on the server: bhaskar@turing:~$ ls -l /export total 4 drwxr-xr-x 57 root root 4096 2010-06-12 21:34 home bhaskar@turing:~$ cat /etc/mtab | grep export /home /export/home none rw,bind 0 0 bhaskar@turing:~$ cat /etc/default/nfs-kernel-server # Number of servers to start up RPCNFSDCOUNT=8 # Runtime priority of server (see nice(1)) RPCNFSDPRIORITY=0 # Options for rpc.mountd. # If you have a port-based firewall, you might want to set up # a fixed port here using the --port option. For more information, # see rpc.mountd(8) or http://wiki.debian.org/?SecuringNFS RPCMOUNTDOPTS=--manage-gids # Do you want to start the svcgssd daemon? It is only required for Kerberos # exports. Valid alternatives are "yes" and "no"; the default is "no". NEED_SVCGSSD=no # Options for rpc.svcgssd. RPCSVCGSSDOPTS= bhaskar@turing:~$ cat /etc/default/nfs-common # If you do not set values for the NEED_ options, they will be attempted # autodetected; this should be sufficient for most people. Valid alternatives # for the NEED_ options are "yes" and "no". # Do you want to start the statd daemon? It is not needed for NFSv4. NEED_STATD= # Options for rpc.statd. # Should rpc.statd listen on a specific port? This is especially useful # when you have a port-based firewall. To use a fixed port, set this # this variable to a statd argument like: "--port 4000 --outgoing-port 4001". # For more information, see rpc.statd(8) or http://wiki.debian.org/?SecuringNFS STATDOPTS= # Do you want to start the idmapd daemon? It is only needed for NFSv4. NEED_IDMAPD=yes # Do you want to start the gssd daemon? It is required for Kerberos mounts. NEED_GSSD=no bhaskar@turing:~$ tail -2 /etc/exports /export *.*.*.*(rw,fsid=0,insecure,no_wdelay,no_subtree_check) /export/home *.*.*.*(rw,nohide,insecure,no_wdelay,no_subtree_check) bhaskar@turing:~$ bhaskar@turing:~$ ps -eF|grep -E \(port\)\|\(nfs\) root 600 2 0 0 0 1 16:57 ? 00:00:00 [nfsiod] daemon 633 1 0 473 592 1 16:57 ? 00:00:00 portmap root 2253 2 0 0 0 0 17:36 ? 00:00:00 [nfsd4] root 2254 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2255 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2256 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2257 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2258 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2259 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2260 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] root 2261 2 0 0 0 1 17:36 ? 00:00:00 [nfsd] bhaskar 2345 1324 0 831 872 1 17:55 pts/0 00:00:00 grep --color=auto -E (port)|(nfs) bhaskar@turing:~$ But, when I attempt a manual mount on a client machine, it fails: bhaskar@newell:~$ ping -c1 turing.local PING turing.local (192.168.42.102) 56(84) bytes of data. 64 bytes from turing.local (192.168.42.102): icmp_seq=1 ttl=64 time=0.719 ms --- turing.local ping statistics --- 1 packets transmitted, 1 received, 0% packet loss, time 0ms rtt min/avg/max/mdev = 0.719/0.719/0.719/0.000 ms bhaskar@newell:~$ sudo mount -t nfs turing.local:/export/home /tmp/home mount: wrong fs type, bad option, bad superblock on turing.local:/export/home, missing codepage or helper program, or other error (for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program) In some cases useful info is found in syslog - try dmesg | tail or so bhaskar@newell:~$ dmesg|tail -3 [11673.204777] RPC: Registered udp transport module. [11673.204783] RPC: Registered tcp transport module. [11716.827541] lo: Disabled Privacy Extensions bhaskar@newell:~$ Assistance in troubleshooting would be greatly appreciated. Thank you very much. Regards -- Bhaskar -- Windows does to computers what smoking does to humans ___________________________________________________________________________ Philadelphia Linux Users Group -- http://www.phillylinux.org Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug
|
|