Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 22
Like Tree1Likes

Thread: Linux: NFS4 client unable to mount share

  1. #11
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    NFS server
    Code:
    [root@nfs3 ~]# service portmap status
    portmap (pid 4848) is running...
    [root@nfs3 ~]# service nfs status
    rpc.mountd (pid 4820) is running...
    nfsd (pid 4817 4816 4815 4814 4813 4812 4811 4810) is running...
    rpc.rquotad (pid 4805) is running...
    [root@nfs3 ~]#
    Client:
    Code:
    [root@static ~]# service portmap status
    portmap (pid 3723) is running...
    Showmount output:
    Code:
    [root@static ~]# showmount -e 192.168.0.81
    Export list for 192.168.0.81:
    /home/webuser/images 192.168.0.0/24
    Rpcinfooutput:
    Code:
    [root@static ~]# rpcinfo -p 192.168.0.81
    rpcinfo: can't contact portmapper: RPC: Remote system error - Connection timed out
    NFS server iptables:
    Code:
    [root@nfs3 images]# service iptables status
    Firewall is stopped.
    TCPdump output:
    Code:
    [root@static ~]# tcpdump -n -s0 host 192.168.0.81
    tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
    listening on eth0, link-type EN10MB (Ethernet), capture size 65535 bytes
    Both client and server NIC speed is 1000Mbps.

  2. #12
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    Also I don't mix nfs3 and nfs4... nfs3 it's only a hostname but it's only running nfs4 service.

    I tried to telnet from client to port 2049 it was successfull... so port is no issue...
    Last edited by t0kneneng; 5th May 2011 at 07:07 PM.

  3. #13
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    anyone?...

  4. #14
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    bump.... need badly help...

  5. #15
    raj
    raj is offline
    Senior Member raj's Avatar
    Join Date
    Jun 2005
    Location
    Hyderabad
    Posts
    550
    Thanks
    55
    Thanked 39 Times in 36 Posts
    Rep Power
    12

    Default

    rpcinfo -p 192.168.0.81 is not providing correct output. Make sure portmap service is running on both client and server and no firewall (including /etc/hosts.deny or /etc/hosts.allow) blocking access to portmap.
    Raj
    Linux rulz.
    I have never turned back in my life ; I shall not do so today.. haha

  6. #16
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    Quote Originally Posted by raj View Post
    rpcinfo -p 192.168.0.81 is not providing correct output. Make sure portmap service is running on both client and server and no firewall (including /etc/hosts.deny or /etc/hosts.allow) blocking access to portmap.
    Today I just setup another machine... just to make sure I have fresh NFS server. stop both client and server iptables. I've also change ip of server...

    Check both client portmap is running...

    on client I tried again.

    [root@static ~]# rpcinfo -p 192.168.0.200
    rpcinfo: can't contact portmapper: RPC: Remote system error - Connection timed out

    same issue... I've google for solution apply it same issue no lock... I tried to telnet from client to port 2049 and 111 it's working fine I can telnet.

    Now banging my head on the wall could not think anymore what was causing the problem...

  7. #17
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    Ok finally mount my client on nfs4 server with some testing I make...

    mount -t nfs4 -o hard,intr,proto=udp,port=2049,acregmin=24,acregmax =240,acdirmin=240,acdirmax=240,rsize=32768,wsize=3 2768,intr 192.168.0.200:/ /home/webuser/uploads

    when I set proto=tcp client can mount on nfs server but on udp there is no problem...

    how can I mount on tcp protocol?

  8. #18
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    ok I think I'm having issue with 2049:tcp port client is not connecting on this port, how can I change nfs server port?

  9. #19
    Member
    Join Date
    Jun 2011
    Location
    India, Bangalore
    Posts
    31
    Thanks
    0
    Thanked 9 Times in 9 Posts
    Rep Power
    0

    Default

    Hey you know what, as far as I can see, you are not working in a production environment. Am I right?

    To determine if the issue is happening because of the firewall or not, use the following command on the NFS server and the try to mount the share on the client. See if that works:

    PHP Code:
    iptables -
    Now, if this works, that means you have to take a deeper look at your iptables script.

    Check the open ports on the server by issuing any of the following commands:
    PHP Code:
    lsof ---P
    nmap localhost 
    As far as I have seen from your post, you have not mentioned configuration in the /etc/sysconfig/nfs file. Make sure you have un-commented the following lines:
    PHP Code:
    RQUOTAD_PORT=875
    LOCKD_TCPPORT
    =32803
    LOCKD_UDPPORT
    =32769
    MOUNTD_PORT
    =892
    STATD_PORT
    =662
    STATD_OUTGOING_PORT
    =2020 
    After that, you have open the same ports (tcp and udp both) using the /etc/sysconfig/iptables file or your custom iptables script, whatever you are using.

    This should work without any hiccup.

    Please do post if you get success, if not, I'm always glad to help you out!
    t0kneneng likes this.

  10. The Following User Says Thank You to xoroot For This Useful Post:

    t0kneneng (11th April 2012)

  11. #20
    Senior Member t0kneneng's Avatar
    Join Date
    Jul 2008
    Posts
    132
    Thanks
    10
    Thanked 1 Time in 1 Post
    Rep Power
    5

    Default

    Quote Originally Posted by xoroot View Post
    Hey you know what, as far as I can see, you are not working in a production environment. Am I right?

    To determine if the issue is happening because of the firewall or not, use the following command on the NFS server and the try to mount the share on the client. See if that works:

    PHP Code:
    iptables -
    Now, if this works, that means you have to take a deeper look at your iptables script.

    Check the open ports on the server by issuing any of the following commands:
    PHP Code:
    lsof ---P
    nmap localhost 

    As far as I have seen from your post, you have not mentioned configuration in the /etc/sysconfig/nfs file. Make sure you have un-commented the following lines:
    PHP Code:
    RQUOTAD_PORT=875
    LOCKD_TCPPORT
    =32803
    LOCKD_UDPPORT
    =32769
    MOUNTD_PORT
    =892
    STATD_PORT
    =662
    STATD_OUTGOING_PORT
    =2020 
    After that, you have open the same ports (tcp and udp both) using the /etc/sysconfig/iptables file or your custom iptables script, whatever you are using.

    This should work without any hiccup.

    Please do post if you get success, if not, I'm always glad to help you out!
    Thanks for your response, your right /etc/sysconfig/nfs is not yet uncommented. I havent test it all my nfs server is on production right now do I need to restart nfs server to apply the new config?

Page 2 of 3 FirstFirst 1 2 3 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Can't mount NFS4 share
    By scott8035 in forum CentOS / RHEL / Fedora
    Replies: 2
    Last Post: 30th November 2011, 11:14 PM
  2. Linux Mount CIFS shares that contain spaces in their share name
    By stanners in forum Computer Networking and Internet/broadband
    Replies: 1
    Last Post: 12th March 2009, 08:16 PM
  3. Automatic Mount of Windows Share
    By bayvista in forum Networking, Firewalls and Security
    Replies: 0
    Last Post: 21st February 2008, 11:07 AM
  4. Kernel panic:unable to mount root fs
    By ajay.talk in forum Linux software
    Replies: 0
    Last Post: 22nd October 2007, 06:22 PM
  5. Linux Shell script to mount remote windows share
    By angelus_kit in forum Shell scripting
    Replies: 2
    Last Post: 6th September 2007, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41