WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: nfs write hangs  (Read 3465 times)

Offline boringuy

  • Newbie
  • *
  • Posts: 3
nfs write hangs
« on: July 13, 2010, 02:46:57 PM »
I just started trying TinyCore (actually MicroCore) on a VirtualBox machine.

A show stopper I got is when I try to write to a nfs mounted directory, it just hangs there.
I can see the file getting created on the server with 0 size.
dmesg shows "server whaterver not responding, still trying"

After that, umount also hangs.

I can read from the nfs mounted directory no problem.

The nfs server is an opensolaris server. I don't have any problem with other linux machines (real or virtual) like gentoo and ubuntu.

Here is how I mount it
/usr/local/etc/init.d/nfs-client start
mount whatever://export/home /mnt/nfs

When starting the nfs client, it says "/var/lib/nfs/sm: directory not found", don't know if it's a problem but I tried both the latest 2.x and 3.x and it's the same result.

Any idea?




Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs write hangs
« Reply #1 on: July 13, 2010, 02:50:29 PM »
I will look into it.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs write hangs
« Reply #2 on: July 13, 2010, 03:05:12 PM »
I added the creation of that directory to the startup script, I can't test it right now but see if that fixes it.


Offline boringuy

  • Newbie
  • *
  • Posts: 3
Re: nfs write hangs
« Reply #3 on: July 13, 2010, 03:59:59 PM »
Thanks for the quick response, Jason.

It also complains about the "/var/lib/nfs/sm.bak" directory missing.

However, I created those directories before starting nfs-client but it doesn't help.

Here is more information:

I can 'echo "1" > test' on the nfs mounted directory and it created a file with "1" in it.
If I copy a file (e.g. gcc_lib.tcz (92k)), then it hangs.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs write hangs
« Reply #4 on: July 13, 2010, 07:25:44 PM »
I see some files that also need to exist, I will upload shortly.

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs write hangs
« Reply #5 on: July 13, 2010, 08:36:58 PM »
Hopefully I fixed it, it is uploaded.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: nfs write hangs
« Reply #6 on: July 13, 2010, 11:23:04 PM »
Even with the original extension and tc-2.x, things worked OK for me..

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: nfs write hangs
« Reply #7 on: July 13, 2010, 11:55:36 PM »
It has for me too with a TC nfs server, but perhaps a Solaris or other nfs server depends on some more of the nfs locking stuff to be correct, mainly the /var/lib/nfs/{sm,sm.bak} directories being present, and also the files /var/lib/nfs/{etab,rmtab,xtab} being there and writable. 

Offline boringuy

  • Newbie
  • *
  • Posts: 3
Re: nfs write hangs
« Reply #8 on: July 14, 2010, 11:29:13 AM »
I just tried the new package but same issue. Thanks.


Andy