LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Fedora (https://www.linuxquestions.org/questions/fedora-35/)
-   -   NFS mount hangs (https://www.linuxquestions.org/questions/fedora-35/nfs-mount-hangs-509953/)

guarriman 12-13-2006 03:27 AM

NFS mount hangs
 
Hi.

Working with Fedora Core 6 on server and Ubuntu 6.0.6 on client, I want
to mount --via NFS-- a directory on the client from the server.

I try:
mount -o nfsvers=2 myserver:/home/foo /home/user/myserver-foo -o nfsvers=2

But it hangs 120 seconds before mounting it, and it's not very comfortable.

Does anyone know what it's happening?

I stopped iptables on server and with FC2 as client it works ok.

Thank you very much.

homey 12-13-2006 08:23 PM

I don't know about nfsvers=2 but, it could also be that using a name instead of ip address is where the delay comes from.
This is the command I use...
mount -t nfs -o ro 192.168.0.1:/mnt/backup/fedora /mnt/local

kotnik 12-13-2006 08:24 PM

What does (and how fast) rpcinfo -p myserver say?

guarriman 12-14-2006 03:08 AM

PC with Ubuntu -FAST-
Code:

[root@pcfedora]# /usr/sbin/rpcinfo -p myserver
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp    737  status
    100024    1  tcp    740  status
    100011    1  udp    659  rquotad
    100011    2  udp    659  rquotad
    100011    1  tcp    662  rquotad
    100011    2  tcp    662  rquotad
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100003    4  udp  2049  nfs
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100003    4  tcp  2049  nfs
    100021    1  udp  32770  nlockmgr
    100021    3  udp  32770  nlockmgr
    100021    4  udp  32770  nlockmgr
    100021    1  tcp  47939  nlockmgr
    100021    3  tcp  47939  nlockmgr
    100021    4  tcp  47939  nlockmgr
    100005    1  udp    674  mountd
    100005    1  tcp    677  mountd
    100005    2  udp    674  mountd
    100005    2  tcp    677  mountd
    100005    3  udp    674  mountd
    100005    3  tcp    677  mountd

PC with Fedora -FAST TOO-
Code:

root@pcubuntu:~# rpcinfo -p myserver
  program vers proto  port
    100000    2  tcp    111  portmapper
    100000    2  udp    111  portmapper
    100024    1  udp    737  status
    100024    1  tcp    740  status
    100011    1  udp    659  rquotad
    100011    2  udp    659  rquotad
    100011    1  tcp    662  rquotad
    100011    2  tcp    662  rquotad
    100003    2  udp  2049  nfs
    100003    3  udp  2049  nfs
    100003    4  udp  2049  nfs
    100003    2  tcp  2049  nfs
    100003    3  tcp  2049  nfs
    100003    4  tcp  2049  nfs
    100021    1  udp  32770  nlockmgr
    100021    3  udp  32770  nlockmgr
    100021    4  udp  32770  nlockmgr
    100021    1  tcp  47939  nlockmgr
    100021    3  tcp  47939  nlockmgr
    100021    4  tcp  47939  nlockmgr
    100005    1  udp    674  mountd
    100005    1  tcp    677  mountd
    100005    2  udp    674  mountd
    100005    2  tcp    677  mountd
    100005    3  udp    674  mountd
    100005    3  tcp    677  mountd


kotnik 12-14-2006 07:26 PM

Then NFS mount should be as fast...

See if the versions are matching (a wild guess), and take out nfsvers=2 option.


All times are GMT -5. The time now is 06:41 AM.