Koozali.org: home of the SME Server

NFS mounts very slow

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
NFS mounts very slow
« on: October 19, 2004, 11:01:19 AM »
Hi!

I'm using my NetWare 6.5 server also as NFS server for my SME 6.01. When mounting NFS shares from my SME, the mount process lasts over 15 minutes. When I try the same from an old Suse box or other Unix systems (the latter tested only once), the mount process is finished within 1-2 seconds.

I remember, that I once installed a contrib (but which one??), that speeded up the process for my SME, but since I installed a new SME, I cannot get the speed anymore.

BTW: After mounting the transfer speed is normal.

My NetWare server is capable of using NFS 2 and 3.

The nfs log from my NetWare server says:

19.10.2004 10.28.00 : Info    : 192.168.194.5 mounted /data/web using Mount version 3.

Damian

NFS mounts very slow
« Reply #1 on: November 07, 2004, 04:11:28 PM »
Hi Stefan,

Try mounting the share udp only. I have to do this to mount my SME 6.0 from my SuSE 9.1 laptop. The relevant line in the SuSE /etc/fstab:

 192.168.xx.xx:/home/e-smith/files/ibays  /share  nfs   rw,noauto,user,udp 0 0

This forces udp when tcp is known not to be available. I know it's not the same issue but it's worth a try.

Damian

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
NFS mounts very slow
« Reply #2 on: November 09, 2004, 08:53:43 PM »
Quote from: "Damian"

Try mounting the share udp only.


That did not work (better). I tried some other options in the fstab file like "tcp,nfsvers=3,hard,wsize=4096,rsize=4096 "
and variants of this and also your "udp", but mounting is always slow.
But it seems, that it could be something on the NetWare side, since a Debian (VDR) box is also slow when mounting from the NetWare server.

hm, I will investigate some more time in that.

Thanks anyway

Stefan

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
NFS mounts very slow
« Reply #3 on: November 09, 2004, 09:40:27 PM »
I have tried to mount two SME server together and the mount process also here takes forever. It could be something with the NFS settings from what I read several places via google search - I haven't found the magic parameter though...

Offline hmuhammad

  • ***
  • 65
  • +0/-0
NFS mounts very slow
« Reply #4 on: December 04, 2004, 01:03:47 AM »
Based on what I read here...
   http://www.linuxquestions.org/questions/history/255654

...I started portmap on the client (also a SME server) and used these parms in /etc/fstab ...

192.168.1.20:/server2backup /mnt/backup nfs rw,noauto,user,udp,hard,intr,sync 0 0

...time to mount went from infinity to infinitesimal

CAVEAT

...still testing post mounting behaviour.

Hasan
...............

arrowsmith

NFS mounts very slow
« Reply #5 on: December 09, 2004, 02:23:23 AM »
I had the same problem before, i think i fixed it by either low level formatting the hdd or just made the fstab back to original, rebooted , then re-wrote the mount with slightly different parms.
check man mount to see the options.

Offline stefan24

  • *****
  • 483
  • +0/-0
    • www.sme-server.de
NFS mounts very slow
« Reply #6 on: November 02, 2005, 03:40:52 PM »
Finally, I found the solution:

just use the parameter "nolock" when mounting the NFS volumes.

No more 10-15 minutes to wait for completion of the mount process, but 1 second!

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
NFS mounts very slow
« Reply #7 on: November 02, 2005, 05:02:31 PM »
Quote from: "stefan24"
Finally, I found the solution:

just use the parameter "nolock" when mounting the NFS volumes.


I'd call that a workaround rather than a solution. It's quite possible some application you use might expect locking to work. Does your NFS server not provide a locking daemon?