Now I switched from OpenSUSE 10 to 11.2 on the client side and aren’t able to mount my nfs shares. With SuSe 10.0 I didn’t have any problems.
The /etc/exports: /raid/home_nas1 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check)
/raid/soundandmore 192.168.0.24/31(rw,no_root_squash,sync,anonuid=99,anongid=99,no_subtree_check)
On the client side I’m able to see the shares:
*showmount -e nas1
Export list for nas1:
/raid/home_nas1 192.168.0.24/31
/raid/soundandmore 192.168.0.24/31
*
The client adress: inet addr:192.168.0.27
I’m using nfs-3: mount -t nfs nas1:/raid/soundandmore /mnt
mount.nfs: access denied by server while mounting nas1:/raid/soundandmore
I am reading back- and forward through your post trying to find what you didn’t. No success until now, but one thing I found a bit strange (though I do not think it is realy wrong).
192.168.0.24/31 for a subnet. Why the 24? One normaly puts there zeros (0) for the last 31 bits (bitmask). Like 192.168.0.0/31 (and 192.168.128.0/31 for the next subnet in the 192.168.0.0/32 network). I do not say that that is the error, but it makes reading/interpretation not easier.
I know, that’s a little bit strange, but the front-end of my NAS (Thecus) doesn’t accept an address range out of the range, which is used in the local network.
Thecus is using a linux system, which looks a little bit strange to me. If I’m editing /etc/export, I don’t know how to make the changes active. There is no export command. And if I reboot the system the changes are lost.
But with this exports-file, it was working with an old SuSE version.
IMHO when you change something in /etc/exports, you do a
exportfs -a
to make it active (see man exportfs). and of course at a reboot the same is done automaticaly. I never heard about a file exports-file.
But in any case, when the client askes the server and the server answers with what is has (as you showed in your first post), one should think that mounting is possible.
That subnet spec is really weird. 192.168.0.24/31 actually means only the addresses 192.168.0.24 and 192.168.0.25. Since the first is the network address, and the last a broadcast address, this is a useless subnet. And everything else on the 192.168.0.0/24 subnet is out of range.
More likely it should be 192.168.0.0/24.
Did you actually read that off the Thecus or did you set it up that way in the web interface.
Sorry, to be not clear enough. I know how to use the exportfs command, but the linux on the Thecus NAS server doesn’t have it.
Yes, I 'm nearly sure, that I used nfs-3 at my old installation.
It’s really strange, because “showmount” gives me the export list.
But your comment gives me the idea to check the nfs-version on the server again.
mount -t nfs4 nas1:/raid/soundandmore /mnt
mount.nfs4: Protocol not supported mount -t nfs nas1:/raid/soundandmore /mnt
mount.nfs: access denied by server while mounting nas1:/raid/soundandmore
On the server side I tried to find out the version of the nfs deamon, but I didn’t find anything in the log files.
So I tried to find something under /proc, but my linux know how is to less. Is 2049 the port for nfs? Can I use the port with the mount command?