Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Can't mount nfs share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
gasparov
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2006
Posts: 105

PostPosted: Fri Jun 22, 2012 1:00 pm    Post subject: [SOLVED]Can't mount nfs share Reply with quote

SOLVED post 4

I'm trying to mount a nfs share but i'm getting timeouts, both server and client run gentoo.
from client (192.168.25.8)
Code:

rpcinfo -p server
   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
    100024    1   udp  50789  status
    100024    1   tcp  57845  status
    100005    1   udp  37681  mountd
    100005    1   tcp  41729  mountd
    100005    2   udp  43393  mountd
    100005    2   tcp  57278  mountd
    100005    3   udp  57466  mountd
    100005    3   tcp  47898  mountd
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    4   udp   2049  nfs
    100021    1   udp  45220  nlockmgr
    100021    3   udp  45220  nlockmgr
    100021    4   udp  45220  nlockmgr
    100021    1   tcp  41133  nlockmgr
    100021    3   tcp  41133  nlockmgr
    100021    4   tcp  41133  nlockmgr


from server
Code:
netstat -an|grep LISTEN
tcp        0      0 0.0.0.0:2049            0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:41729           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:41133           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:57845           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN     
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:47898           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:17500           0.0.0.0:*               LISTEN     
tcp        0      0 0.0.0.0:57278           0.0.0.0:*               LISTEN 

cat /etc/hosts.allow
portmap: 192.168.25.8
nfs: 192.168.25.8
mountd: 192.168.25.8
lockd: 192.168.25.8
rquotad: 192.168.25.8
rpcbind: 192.168.25.8


I've many test with different shares but still no luck, anybody with an idea of what could be the problem?

The client is a raspberry arm board but i guess it shouldn't really matter.


Last edited by gasparov on Sun Jun 24, 2012 9:05 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54799
Location: 56N 3W

PostPosted: Fri Jun 22, 2012 5:58 pm    Post subject: Reply with quote

gasparov,

Show us your /etc/exports on the server and the mount command you are using.
What version of NFS are you trying to use?
Is there a firewall in the way.

For testing, put 127.0.0.1 in the exports file, run
Code:
 exportfs -ra
to have the new exports file reread.
Now can you nsfmount on the server an exported filesystem on the server?

mount -t nfs localhost:/... /mnt/floppy say, on the server.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Sat Jun 23, 2012 12:02 am    Post subject: Reply with quote

NeddySeagoon wrote:

mount -t -v nfs localhost:/... /mnt/floppy say, on the server.


added -v
Back to top
View user's profile Send private message
gasparov
Tux's lil' helper
Tux's lil' helper


Joined: 13 Apr 2006
Posts: 105

PostPosted: Sun Jun 24, 2012 9:05 am    Post subject: Reply with quote

Thank you guys i solved it, I tried to mount from localhost and it was working so i used the hostname of the server from the client and worked. Basically I had to use "hostname" instead of "ip"

my exports contain something like this
Code:
/usr/portage 192.168.25.8(rw,nohide,insecure,no_subtree_check,async)


and from the client this command works
Code:
mount -vvv -t nfs serverhostname:/usr/portage /usr/portage


while this doesn't
Code:
mount -vvv -t nfs serverip:/usr/portage /usr/portage


honestly i still have to figure out why since i i use ip everywhere (in exports and in hosts.allow)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum