You are not logged in.

#1 2013-04-02 17:21:50

DoubleX667
Member
Registered: 2011-09-08
Posts: 15

NFS mount problem

Hi all!

I want to share a directory in my home network over nfs.

The nfs server ist running, on the client 'showmount -e 10.0.0.2' shows me the correct directory

'/media/files 10.0.10.*'

But when I try to mount it, the mount command hangs for ever

'mount -t nfs4 10.0.0.2:/media/files /media/files'

...nothing happens then...no error messages, no mounts...
I tried it from 2 different clients, one an Arch system, the other with Ubuntu...it's the same on both machines.

my /etc/exports:
/media/daten/   10.0.10.*(rw,sync,no_subtree_check)

Has anyone an idea what I did wrong?
Thanks a lot for your help...

Offline

#2 2013-04-02 18:14:50

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,059

Re: NFS mount problem

since it happens in Arch and Ubuntu, are you sure your server is set up correctly with the exports? Are you using the correct IP addresses ?

Check this page and make sure you have set it up correctly.  https://wiki.archlinux.org/index.php/Nfs


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2013-04-02 18:19:57

DoubleX667
Member
Registered: 2011-09-08
Posts: 15

Re: NFS mount problem

I checked it now one more time.

The client IP is 10.0.10.116

In /etc/exports, I have 10.0.10.*

Offline

#4 2013-04-02 18:45:07

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: NFS mount problem

I am not sure that using a wildcard like that is okay here.  I think you need to use something like 10.0.10.1/24, as I have never actually seen a wildcard used like that before, and I am not sure where you got the idea that this was the way to do it.

EDIT:

exports man page wrote:

IP networks
              You can also export directories to all hosts on an IP (sub-) network simultaneously. This is done by specifying an IP address and netmask pair as address/netmask  where  the netmask  can  be specified in dotted-decimal format, or as a contiguous mask length.  For example, either `/255.255.252.0' or `/22' appended to the network base IPv4 address results in identical subnetworks with 10 bits of host. IPv6 addresses must use a contiguous mask length and must not be inside square brackets to avoid confusion with  character-class wildcards. Wildcard characters generally do not work on IP addresses, though they may work by accident when reverse DNS lookups fail.

Last edited by WonderWoofy (2013-04-02 18:47:17)

Offline

#5 2013-04-02 19:53:41

DoubleX667
Member
Registered: 2011-09-08
Posts: 15

Re: NFS mount problem

Ahh, thank's...i changed that and it's working now if im in the same subnet...if client ip is 10.0.0.6

But it's not working if ip is 10.0.10.116

Is it possible to have nfs access from 10.0.10.xx to 10.0.0.xx?

Offline

#6 2013-04-02 20:03:58

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,412

Re: NFS mount problem

You can certainly specify more than one, see the man page... it is full of information that will help you here.

Offline

Board footer

Powered by FluxBB