Results 1 to 14 of 14
  1. #1
    Join Date
    Aug 2007
    Posts
    193

    NFS mount problem

    I have 2 servers connected through a private network.. I wanted to remotely mount a folder on one of the servers. However when i do it gives me permission error..

    On the server
    1. Iptables are stopped
    2. Exportfs shows the result fine
    3. entry in hosts.allow and /etc/hosts is made
    4. NFS is running fine

    On the client:
    1. NFS shows some error

    service nfs restart
    Shutting down NFS mountd: [FAILED]
    Shutting down NFS daemon: [FAILED]
    Shutting down NFS services: [FAILED]
    Starting NFS services: [ OK ]
    Starting NFS quotas: Cannot register service: RPC: Unable to receive; errno = Connection refused
    rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).
    [FAILED]
    2. Have done the entry is hosts.allow
    3. Stopped iptables
    4. when i mount i get this error
    mount -v 10.252.5.34:/mtest mtest
    mount: no type was given - I'll assume nfs because of the colon
    mount: trying 10.252.5.34 prog 100003 vers 3 prot tcp port 2049
    mount: trying 10.252.5.34 prog 100005 vers 3 prot udp port 901
    mount: 10.252.5.34:/mtest failed, reason given by server: Permission denied
    However i read somewhere that NFS should be running on server and not necessary on client. But this error

    Kindly help

  2. #2

    Cool

    Just start portmap before starting nfs. Try the following command.

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    /etc/init.d/portmap restart
    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  3. #3
    Join Date
    Aug 2007
    Posts
    193
    portmap on server is working but on the client server it gives an error..
    rpc.rquotad: unable to register (RQUOTAPROG, RQUOTAVERS, udp).

  4. #4
    Join Date
    May 2001
    Location
    HK
    Posts
    3,076

    Smile

    i think is portmap issue, client PC would need portmap running

    What does rpcinfo -p show?

    You might want to check your system log, it might show more info

    What's your /etc/exports look like?
    Last edited by YUPAPA; 07-04-2009 at 01:05 PM.

  5. #5
    Join Date
    Aug 2007
    Posts
    193
    The permission error is resolved now.. The error now i am getting is

    tail -f /var/log/messages
    Jul 4 15:02:02 server portmap[28466]: cannot bind udp: Address already in use


    and on mount i get input/output error..

    The above messages are on the client server..

  6. #6
    Join Date
    Jul 2009
    Location
    SLASH ROOT
    Posts
    26
    Try stopping "portsentry" service on the server.

    /etc/init.d/portsentry stop

    ----------------------------
    Sr. Systems Engineer
    WHRSS
    We grow by helping you grow.

  7. #7
    Join Date
    Aug 2007
    Posts
    193
    but the problem is on the client machine..

  8. #8
    Join Date
    Jul 2009
    Location
    SLASH ROOT
    Posts
    26
    Hello,

    Could you check a few things for me and paste the results here(on the client).
    ---------------------------
    1. rpcinfo -p
    2. cat /proc/filesystems
    3. ps aux | grep nfs
    4. ps aux | grep port*
    5. netstat -a | grep nfs
    6. df -h
    ---------------------------
    I could comment further if I could see these details.

    ----------------------------
    Sr. Systems Engineer
    WHRSS
    We grow by helping you grow.

  9. #9
    Join Date
    Aug 2007
    Posts
    193
    rpcinfo -p
    rpcinfo: can't contact portmapper: rpcinfo: RPC: Unable to receive; errno = Connection reset by peer
    cat /proc/filesystems
    nodev sysfs
    nodev rootfs
    nodev bdev
    nodev proc
    nodev cpuset
    nodev binfmt_misc
    nodev debugfs
    nodev securityfs
    nodev sockfs
    nodev usbfs
    nodev pipefs
    nodev futexfs
    nodev tmpfs
    nodev inotifyfs
    nodev eventpollfs
    nodev devpts
    ext2
    nodev ramfs
    nodev hugetlbfs
    iso9660
    nodev mqueue
    ext3
    nodev rpc_pipefs
    nodev autofs
    nodev nfsd
    hfsplus
    nodev nfs
    nodev nfs4
    ps aux | grep nfs
    root 9003 0.0 0.0 61148 720 pts/1 R+ 14:34 0:00 grep nfs
    ps aux | grep port*
    root 3869 0.0 0.0 3812 316 ? Ss Jul01 0:00 /usr/sbin/portsentry -tcp
    root 9097 0.0 0.0 61152 804 pts/1 S+ 14:34 0:00 grep port*
    netstat -a | grep nfs
    Blank
    df -h
    Have quite a lot of disk free

  10. #10
    Join Date
    Jul 2009
    Location
    SLASH ROOT
    Posts
    26
    Hello,

    You can see that the NFS service is not running on the client machine.
    --------------------------
    ps aux | grep nfs
    root 9003 0.0 0.0 61148 720 pts/1 R+ 14:34 0:00 grep nfs

    netstat -a | grep nfs
    Blank
    --------------------------

    Also portmap is not running.
    --------------------------
    ps aux | grep port*

    root 3869 0.0 0.0 3812 316 ? Ss Jul01 0:00 /usr/sbin/portsentry -tcp
    root 9097 0.0 0.0 61152 804 pts/1 S+ 14:34 0:00 grep port*
    --------------------------

    This is why you cannot mount the NFS shares. You have to get them started first. Check the logs if they show anything that could pin-point the cause.

    ----------------------------
    Sr. Systems Engineer
    WHRSS
    We grow by helping you grow.

  11. #11
    Join Date
    May 2009
    Location
    SLASH ROOT
    Posts
    853

  12. #12
    Join Date
    Aug 2007
    Posts
    193
    this is the error when i use this command
    service nfs restart
    Jul 10 09:43:26 server nfsd[25078]: nfssvc: Setting version failed: errno 16 (Device or resource busy)
    Jul 10 09:44:01 server kernel: portmap: server localhost not responding, timed out
    Jul 10 09:44:01 server kernel: RPC: failed to contact portmap (errno -5).

  13. #13
    Quote Originally Posted by howsthat View Post
    I have 2 servers connected through a private network.. I wanted to remotely mount a folder on one of the servers. However when i do it gives me permission error..

    On the server
    1. Iptables are stopped
    2. Exportfs shows the result fine
    3. entry in hosts.allow and /etc/hosts is made
    4. NFS is running fine

    On the client:
    1. NFS shows some error

    2. Have done the entry is hosts.allow
    3. Stopped iptables
    4. when i mount i get this error
    However i read somewhere that NFS should be running on server and not necessary on client. But this error

    Kindly help
    I think you have a problem with the links. The server must be repaired.

  14. #14
    Join Date
    Apr 2008
    Location
    India
    Posts
    227
    Hi,

    Just restart your server, your problem will be resolved....
    =============
    Map007

    Linux Blog

Similar Threads

  1. Mount Problem ?
    By Gkhn in forum Dedicated Server
    Replies: 10
    Last Post: 05-04-2006, 06:18 PM
  2. lvm mount problem.. Help me pls.
    By Eser in forum Hosting Security and Technology
    Replies: 6
    Last Post: 01-31-2006, 02:10 AM
  3. securing /tmp mount problem
    By uberslacker in forum Hosting Security and Technology
    Replies: 12
    Last Post: 01-23-2006, 05:12 PM
  4. Mount problem
    By Im_Goodspeed in forum Hosting Security and Technology
    Replies: 4
    Last Post: 08-22-2005, 12:14 PM
  5. Mount symblic problem...
    By acctman in forum Hosting Security and Technology
    Replies: 10
    Last Post: 06-16-2005, 09:27 AM

Posting Permissions

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