At 13:33:49 on Monday Monday 08 March 2010, Dave Howorth <dhoworth@mrc-lmb.cam.ac.uk> wrote:
Stan Goodman wrote:
I have installed NFS on two machines (called "poblano" and "chipotle"), each with both a server and a client. Both machines run oS v11.1 with KDE3.
<snip>
Sorry, I don't use KDE so none of that means anything to me. What are the command-line outputs from:
nfsstat cat /etc/mtab grep nfs /var/log/YaST2/y2log grep nfs /var/log/messages
(just recent messages from the latter two)
# nfsstat Server rpc stats: calls badcalls badauth badclnt xdrcall 0 0 0 0 0 Client rpc stats: calls retrans authrefrsh 0 0 0 # cat /etc/mtab /dev/sdb6 / ext3 rw,acl,user_xattr 0 0 /proc /proc proc rw 0 0 sysfs /sys sysfs rw 0 0 debugfs /sys/kernel/debug debugfs rw 0 0 udev /dev tmpfs rw 0 0 devpts /dev/pts devpts rw,mode=0620,gid=5 0 0 /dev/sdb7 /home ext3 rw 0 0 fusectl /sys/fs/fuse/connections fusectl rw 0 0 securityfs /sys/kernel/security securityfs rw 0 0 nfsd /proc/fs/nfsd nfsd rw 0 0 none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0 /proc /var/lib/ntp/proc proc ro 0 0 # grep nfs /var/log/YaST2/y2log 2010-03-06 17:57:48 <1> poblano(10236) [agent-system] SystemAgent.cc(Execute):1104 mkdir /nfs/chipotle/home 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Nfs.ycp:321 fstab: [$["file":"swap", "freq":0, "mntops":"defaults", "passno":0, "spec":"/dev/disk/by-id/ata-HDS728080PLA380_PFDB37ELRUB49E-part5", "vfstype":"swap"], $["file":"swap", "freq":0, "mntops":"defaults", "passno":0, "spec":"/dev/disk/by-id/ata-Hitachi_HDP725025GLA380_GEK264RS01U4JA-part5", "vfstype":"swap"], $["file":"/", "freq":1, "mntops":"acl,user_xattr", "passno":1, "spec":"/dev/disk/by-id/ata-Hitachi_HDP725025GLA380_GEK264RS01U4JA-part6", "vfstype":"ext3"], $["file":"/home", "freq":1, "mntops":"defaults", "passno":2, "spec":"/dev/disk/by-id/ata-Hitachi_HDP725025GLA380_GEK264RS01U4JA-part7", "vfstype":"ext3"], $["file":"/proc", "freq":0, "mntops":"defaults", "passno":0, "spec":"proc", "vfstype":"proc"], $["file":"/sys", "freq":0, "mntops":"noauto", "passno":0, "spec":"sysfs", "vfstype":"sysfs"], $["file":"/sys/kernel/debug", "freq":0, "mntops":"noauto", "passno":0, "spec":"debugfs", "vfstype":"debugfs"], $["file":"/proc/bus/usb", "freq":0, "mntops":"noauto", "passno":0, "spec":"usbfs", "vfstype":"usbfs"], $["file":"/dev/pts", "freq":0, "mntops":"mode=0620,gid=5", "passno":0, "spec":"devpts", "vfstype":"devpts"], $["file":"/media/floppy", "freq":0, "mntops":"noauto,users,sync", "passno":0, "spec":"/dev/fd0", "vfstype":"auto"], $["file":"/proc/bus/usb", "freq":0, "mntops":"devgid=1000,devmode=664", "passno":0, "spec":"none", "vfstype":"usbfs"], $["file":"/nfs/chipotle/home", "freq":0, "mntops":"rw,nosuid,rsize=8192,wsize=8192", "passno":0, "spec":"chipotle:/home", "vfstype":"nfs"]] 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:403 Enabling service nfs 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:82 Service nfsboot does not exist. 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:468 Stopping service nfs 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:287 Running service initscript nfs stop 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:426 Starting service nfs 2010-03-06 17:57:48 <1> poblano(10236) [YCP] Service.ycp:287 Running service initscript nfs start 2010-03-06 17:58:03 <1> poblano(10236) [YCP] clients/nfs.ycp:281 NFS module finished 2010-03-06 17:58:03 <1> poblano(10236) [YCP] clients/nfs.ycp:282 ---------------------------------------- 2010-03-06 22:40:29 <1> poblano(12813) [zypp++] DiskUsageCounter.cc(detectMountPoints):171 Discard mount point : nfsd /proc/fs/nfsd nfsd rw 0 0 2010-03-06 22:43:09 <1> poblano(9862) [YCP] clients/nfs.ycp:281 NFS module finished 2010-03-06 22:43:09 <1> poblano(9862) [YCP] clients/nfs.ycp:282 ---------------------------------------- # grep nfs /var/log/messages Mar 8 03:22:28 poblano rpc.statd[2862]: statd running as root. chown /var/lib/nfs/sm to choose different user Mar 8 03:22:28 poblano kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Mar 8 03:22:29 poblano kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Mar 8 03:51:44 poblano kernel: nfsd: last server has exited, flushing export cache Mar 8 09:36:42 poblano rpc.statd[2878]: statd running as root. chown /var/lib/nfs/sm to choose different user Mar 8 09:36:42 poblano kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Mar 8 09:36:44 poblano kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory Mar 8 11:14:58 poblano kernel: nfsd: last server has exited, flushing export cache Mar 8 16:30:11 poblano rpc.statd[2899]: statd running as root. chown /var/lib/nfs/sm to choose different user Mar 8 16:30:12 poblano kernel: Installing knfsd (copyright (C) 1996 okir@monad.swb.de). Mar 8 16:30:13 poblano kernel: NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
When I close the window Yast > Network Services > NFS Client in poblano, there is an error message: "Unable to mount the NFS entries from /etc/fstab". The NFS line in fstab is"chipotle /home /nfs/chipotle/home nfs rw,nosuid,rsize=8192,wsize=8192 0 0". This does not happen on chipotle, which contains exactly the same line in fstab except of the name substitution.
That line is in error. You need to have the correct format - man 5 nfs - the example shows the format:
server:/usr/local/pub /pub nfs rsize=32768,wsize=32768,timeo=14,intr
Note the colon. Read the manpage for options, yours are probably fine.
In poblano, the client configuration points to the chipotle server, /home, /nfs/chipotle/home mounting point, nfs type, with options rw,nosuid,rsize=8192,wsize=8192. NFSv4 is disabled. Same for the other machine, except that the mounting point is /nfs/poblano/home.
On both machines, /etc/exports contains only a single line: "/home 192.168.1.0/24(rw,root_squash,sync,subtree_check,nohide)".
Check the manpage about the subtree_check option, you probably don't want it. Why have you enabled nohide?
Cheers, Dave
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org