[opensuse] problem exporting via nfs filesystem with mountpoints.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I have written this entry in /etc/exports: / *(ro,no_root_squash,nohide,no_subtree_check) and a corresponding entry in fstab (same machine): nimrodel.valinor:/ /mnt/nfs nfs ro,noauto 0 0 The nohide option is because I want to export all filesystems mounted on /, according to "man exports". But it does not work: server side: nimrodel:~ # rcnfsserver restart Shutting down kernel based NFS server: nfsd statd mountd idmapd done Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify done nimrodel:~ # client side: nimrodel:~ # rcnfs start ; mount /mnt/nfs ; ls /mnt/nfs/home/ ; umount /mnt/nfs ; rcnfs stop Starting NFS client services: sm-notify idmapd done not_mounted <======= Shutting down NFS client services: done nimrodel:~ # The "ls /mnt/nfs/home/" sees the file "not_mounted" (which I have the custom to create on every mount point), instead of seeing the users directories. The partition holding "/home" is not exported. No partition is exported, only the / partition is exported. Why? The "nohide" means I want to export everything. Why is it not done? Am I reading it wrong? Bug? - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksSny4ACgkQtTMYHG2NR9V4CwCeKSFXofbU9S41Y7Nons0hj6Vi sfoAnA3xwABlLk97JuiXj+cf46r+JxPz =MkYy -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
Hi,
I have written this entry in /etc/exports:
/ *(ro,no_root_squash,nohide,no_subtree_check)
Hi Carlos, I looked up the man page and stumbled over this paragraph: (I don't know the nohide option very well): "The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports." /Per -- Per Jessen, Zürich (0.0°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-11-29 at 20:37 +0100, Per Jessen wrote:
Carlos E. R. wrote:
Hi,
I have written this entry in /etc/exports:
/ *(ro,no_root_squash,nohide,no_subtree_check)
Hi Carlos,
I looked up the man page and stumbled over this paragraph: (I don't know the nohide option very well):
"The nohide option is currently only effective on single host exports. It does not work reliably with netgroup, subnet, or wildcard exports."
Yep, me too. I looked at that one and tried to specify one host, no good. In fact, the solution is simple: / 192.168.1.0/24(ro,no_root_squash,nohide,no_subtree_check) /Reserva/ 192.168.1.0/24(ro,no_root_squash,nohide,no_subtree_check) /biggy/ 192.168.1.0/24(ro,no_root_squash,nohide,no_subtree_check) /Grande/ 192.168.1.0/24(ro,no_root_squash,nohide,no_subtree_check) Ie, we have to specify all exported filesystems. On the client side, it is enough to specify the parent. I think I once did this, but I forgot. The other snag was the firewall... it is easier to configure the server in yast, and tell it to open the firewall. Later, look up the changes in the script: FW_SERVICES_EXT_RPC="mountd nfs nfs_acl nlockmgr portmap status" I had tried "mountd nfs" and it did not work. So... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksS3McACgkQtTMYHG2NR9VYRQCfc2a2AxCsOhcvLBg63Zi/yo2d 6IUAoJIcdzS2+Y74qiDjY2if6lZdyEl1 =5mhj -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 29 November 2009 17:19:50 Carlos E. R. wrote:
Hi,
I have written this entry in /etc/exports:
/ *(ro,no_root_squash,nohide,no_subtree_check)
and a corresponding entry in fstab (same machine):
nimrodel.valinor:/ /mnt/nfs nfs ro,noauto 0 0
The nohide option is because I want to export all filesystems mounted on /, according to "man exports". But it does not work:
server side:
nimrodel:~ # rcnfsserver restart Shutting down kernel based NFS server: nfsd statd mountd idmapd done Starting kernel based NFS server: idmapd mountd statd nfsd sm-notify done nimrodel:~ #
client side:
nimrodel:~ # rcnfs start ; mount /mnt/nfs ; ls /mnt/nfs/home/ ; umount /mnt/nfs ; rcnfs stop
Starting NFS client services: sm-notify idmapd done not_mounted <=======
Shutting down NFS client services: done nimrodel:~ #
The "ls /mnt/nfs/home/" sees the file "not_mounted" (which I have the custom to create on every mount point), instead of seeing the users directories. The partition holding "/home" is not exported. No partition is exported, only the / partition is exported.
Why? The "nohide" means I want to export everything. Why is it not done? Am I reading it wrong? Bug?
-- Cheers, Carlos E. R.
Is the exported file system mounted via nfs on the server machine? I have been told that nfs doesnt allow "recursive mounts". You cant export a nfs-mounted directory. I may be wrong, but my experiments shows that is the case. I tried to build a specific "installation server" (iris) where the installation directory structure was nfs mounted from the central file server (vault). The installation directories on vault mounted perfectly without nfs errors on iris, but were empty. Listing the same directories on vault showed the content i was after. But i couldnt "re-export" them... (Hope my text makes sense) -- /Rikard Johnels
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Sunday, 2009-11-29 at 21:27 +0100, Rikard Johnels wrote:
Is the exported file system mounted via nfs on the server machine? I have been told that nfs doesnt allow "recursive mounts". You cant export a nfs-mounted directory.
No, not the case. Thanks, I posted the solution on another email a minute ago. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAksS3p0ACgkQtTMYHG2NR9XuBgCfa+0ipS4Sy59Gz6C1JoTI//ms LHgAnik+ssBNXy9+tLbI+DGsoL8pansg =rO2J -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (4)
-
Carlos E. R.
-
Carlos E. R.
-
Per Jessen
-
Rikard Johnels