NFS4 is handled different to nfs3, pls. take it as given.
I have got my knowledge from a German computer magazine, when I had the same problem.
This is (don't let me lie...) 2 years or more ago.
You can use any new directory you want, but in debian (K)ubuntu, /srv is already existing.
I used this /srv to work with different file server directories including nfs4.
The difference to nfs3 is, that when you mount ip://srv/nfs4
, you mount all subdirectories in a run on your client.
That makes it much easier for clients. One mount only!
But for export the directories on the server, you MUST bind
the main dir (/srv/nfs4) and the subdirs (/srv/nfs4/exportmediaA & B) before export.
If you export real directories, your mounted directories are empty, like Dudumomo has told us here before.
So, pls, try again with my detailed example or use the nfs wiki.
It works, if you follow strict.
Notice: Your /etc/exports file must not have old nfs and nfs4 entries mixed.
(Can you send me your /etc/exports file here?). And could you change to 192.168.0.0/16 for test, pls?
In Kubuntu you need to run some programs, also for client only. So, better anyway, install nfs-kernel-server on Kubuntu.
When this server is running, all programs (like portmap, rpc.bind and rpc.mountd) are started automatically.
And: you can mount the nfs shares on Kubuntu with
- Code: Select all
mount -t nfs4 192.168.2.ip://srv/nfs4 /where/ever/you/want
-Linuxfluesterer (I love KDE ...)