[opensuse] Need help with NFS
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. On poblano, the My Computer disk information list contains the line: "Remote Share (chipotle:/home)". Same on chipotle, with the substitution of the poblano name. On chipotle, when I click on this line to enter the shared directory, Konqueror shows a blank window with "media:/home" in the Location window. A dialog window appears reading "Permissions denied". I do not know what permissions it means. Doing the same on poblano also produces the blank window, but the dialog window is present for only an instant, and disappears. 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. I believe the servers are working properly. Here is the result of running <rcpinfor -p> on poblano (running it on chiplotle yields a similar result)". ***** # rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 49986 mountd 100005 1 tcp 51660 mountd 100005 2 udp 49986 mountd 100005 2 tcp 51660 mountd 100005 3 udp 49986 mountd 100005 3 tcp 51660 mountd 100024 1 udp 42007 status 100024 1 tcp 45664 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100021 1 udp 42904 nlockmgr 100021 3 udp 42904 nlockmgr 100021 4 udp 42904 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 tcp 49781 nlockmgr 100021 3 tcp 49781 nlockmgr 100021 4 tcp 49781 nlockmgr ***** I interpret this as meaning that the servers are in order. On both machines, the firewall is open for NFS, NFS-Client, and NFS-Server-Service. Both start at boot time. 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)". -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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)
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 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
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
Stan Goodman wrote: <what I asked> Thanks. Sorry, it didn't help me to see what is wrong. All I can suggest is to unmount the NFS filesystems on the clients, then shutdown the NFS servers. Then restart the servers, then remount the filesystems on the client. On both machines, using the command line, and report all output on the command-line and in the logs. Cheers, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On March 6, 2010 08:11:52 am 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.
On poblano, the My Computer disk information list contains the line: "Remote Share (chipotle:/home)". Same on chipotle, with the substitution of the poblano name. On chipotle, when I click on this line to enter the shared directory, Konqueror shows a blank window with "media:/home" in the Location window. A dialog window appears reading "Permissions denied". I do not know what permissions it means. Doing the same on poblano also produces the blank window, but the dialog window is present for only an instant, and disappears.
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.
I believe the servers are working properly. Here is the result of running <rcpinfor -p> on poblano (running it on chiplotle yields a similar result)". ***** # rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 49986 mountd 100005 1 tcp 51660 mountd 100005 2 udp 49986 mountd 100005 2 tcp 51660 mountd 100005 3 udp 49986 mountd 100005 3 tcp 51660 mountd 100024 1 udp 42007 status 100024 1 tcp 45664 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100021 1 udp 42904 nlockmgr 100021 3 udp 42904 nlockmgr 100021 4 udp 42904 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 tcp 49781 nlockmgr 100021 3 tcp 49781 nlockmgr 100021 4 tcp 49781 nlockmgr ***** I interpret this as meaning that the servers are in order.
On both machines, the firewall is open for NFS, NFS-Client, and NFS-Server-Service. Both start at boot time.
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)".
Stan, I have reasonably good results now with using nfs on a gaggle of boxes at home. On each machine I want to be able to export files from, I go to Yast and ensure the Yast2 -NFS Server is installed. I think it will also install the nfs-kernel-server. I make sure the server machine has a fixed IP address so it won't change every time it logs on. Then I go to Konqueror, right click on the folder I want to export, click on properties, then share. Click on configure file sharing, give the root password, then configure the file to share. When you close the config box, there will now be an icon on top of the folder indicating it is shared. The other way of doing this is to go to Yast, click on network services, nfs- server, and then configure which files you wish to export. Don't forget to set them to rw instead of the default ro if you want to be able to write to nfs files. On the client box, I go to YAST, network services, nfs-client and give it the IP address of the server. Then I can select which files to import and where to put them. This works quite well, and I NEVER fuss with the fstab files manually. Ever. It works in KDE3, KDE4 even when I use one of each. -- Robert Smits Email bob@rsmits.ca -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
At 07:52:27 on Tuesday Tuesday 09 March 2010, Bob Smits <bob@rsmits.ca> wrote:
On March 6, 2010 08:11:52 am 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.
On poblano, the My Computer disk information list contains the line: "Remote Share (chipotle:/home)". Same on chipotle, with the substitution of the poblano name. On chipotle, when I click on this line to enter the shared directory, Konqueror shows a blank window with "media:/home" in the Location window. A dialog window appears reading "Permissions denied". I do not know what permissions it means. Doing the same on poblano also produces the blank window, but the dialog window is present for only an instant, and disappears.
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.
I believe the servers are working properly. Here is the result of running <rcpinfor -p> on poblano (running it on chiplotle yields a similar result)". ***** # rpcinfo -p program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 49986 mountd 100005 1 tcp 51660 mountd 100005 2 udp 49986 mountd 100005 2 tcp 51660 mountd 100005 3 udp 49986 mountd 100005 3 tcp 51660 mountd 100024 1 udp 42007 status 100024 1 tcp 45664 status 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100021 1 udp 42904 nlockmgr 100021 3 udp 42904 nlockmgr 100021 4 udp 42904 nlockmgr 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100021 1 tcp 49781 nlockmgr 100021 3 tcp 49781 nlockmgr 100021 4 tcp 49781 nlockmgr ***** I interpret this as meaning that the servers are in order.
On both machines, the firewall is open for NFS, NFS-Client, and NFS-Server-Service. Both start at boot time.
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)".
Stan, I have reasonably good results now with using nfs on a gaggle of boxes at home.
On each machine I want to be able to export files from, I go to Yast and ensure the Yast2 -NFS Server is installed. I think it will also install the nfs-kernel-server.
I make sure the server machine has a fixed IP address so it won't change every time it logs on.
BINGO! Reading your note, I saw that I had already attended to all the points you mention, except this one -- as obvious as it is, it hadn't occured to me. Reserving addresses in the router has made NFS work as it should. Many thanks.
Then I go to Konqueror, right click on the folder I want to export, click on properties, then share. Click on configure file sharing, give the root password, then configure the file to share. When you close the config box, there will now be an icon on top of the folder indicating it is shared.
The other way of doing this is to go to Yast, click on network services, nfs- server, and then configure which files you wish to export. Don't forget to set them to rw instead of the default ro if you want to be able to write to nfs files.
On the client box, I go to YAST, network services, nfs-client and give it the IP address of the server. Then I can select which files to import and where to put them.
This works quite well, and I NEVER fuss with the fstab files manually. Ever.
It works in KDE3, KDE4 even when I use one of each. -- Robert Smits Email bob@rsmits.ca
-- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Stan Goodman さんは書きました:
At 07:52:27 on Tuesday Tuesday 09 March 2010, Bob Smits <bob@rsmits.ca> wrote:
[snip]
On each machine I want to be able to export files from, I go to Yast and ensure the Yast2 -NFS Server is installed. I think it will also install the nfs-kernel-server.
I make sure the server machine has a fixed IP address so it won't change every time it logs on.
BINGO!
Reading your note, I saw that I had already attended to all the points you mention, except this one -- as obvious as it is, it hadn't occured to me. Reserving addresses in the router has made NFS work as it should. Many thanks.
[snip] And in case it is absolutely necessary to use dhcp, assigning a second, static IP to an interface will also work. This can be set up with YAST, I expect. It can also be done manually with ifconfig and it's successors for testing, etc. (A lot of people [still] don't know that an interface can have more than one IP address.) Just saying. == jd It's not reality or how you perceive things that's important -- it's what you're taking for it... - -- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4-svn0 (GNU/Linux) iD8DBQFLlnDhhpL3F+HeDrIRAvxQAJ9zD47H7gdEPbgs4A1KBubM3Fmj2QCghSNX zzzV9O9zlMDpVnZehQeCtno= =DaM8 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Bob Smits
-
Dave Howorth
-
j debert
-
Stan Goodman