Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: boringuy on July 13, 2010, 02:46:57 PM

Title: nfs write hangs
Post by: boringuy 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?



Title: Re: nfs write hangs
Post by: Jason W on July 13, 2010, 02:50:29 PM
I will look into it.
Title: Re: nfs write hangs
Post by: Jason W 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.

Title: Re: nfs write hangs
Post by: boringuy 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.
Title: Re: nfs write hangs
Post by: Jason W on July 13, 2010, 07:25:44 PM
I see some files that also need to exist, I will upload shortly.
Title: Re: nfs write hangs
Post by: Jason W on July 13, 2010, 08:36:58 PM
Hopefully I fixed it, it is uploaded.
Title: Re: nfs write hangs
Post by: Juanito on July 13, 2010, 11:23:04 PM
Even with the original extension and tc-2.x, things worked OK for me..
Title: Re: nfs write hangs
Post by: Jason W 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. 
Title: Re: nfs write hangs
Post by: boringuy on July 14, 2010, 11:29:13 AM
I just tried the new package but same issue. Thanks.


Andy