OESF Portables Forum
Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: wario on June 29, 2004, 11:11:24 am
-
when i mount an nfs share like this:
$ mount /mnt/foo
it returns successfully after exactly 5 minutes consistently. I suspect this corresponds to a timeout or two
/etc/fstab defines:
foo:/home /mnt/foo nfs defaults,nosuid,noauto
i believe the problem is client related because two nfs servers (linux, bsd) both take 5 minutes to mount on the z but cross-mount instantly.
server logs indicate only client de/authentication, nothing unexpected.
is there client logging that i am unaware of?
other ideas?
thanks.
-
supply -nolock or install portmapper.
-
thanks Mickey.
adding "nolock" to the mount options in fstab does the trick.
-
is that all it is! damn... I've been living with this forever...
but even after a mount -- an ls takes forever.
check: http://zaurus.spy.org/screenshots/scottyelich/pdaXrom/jpg/ (http://zaurus.spy.org/screenshots/scottyelich/pdaXrom/jpg/)
the "df" images... I normally would mount -o soft -t nfs blah &
and then wait... wait... and wait... :-/
so, now... -o soft,nolock .. thanks!
Scott
-
I'm mounting from a NetBSD host and had to add nfsvers=2 to my mounts in order to
get throuput to more than about 50 KB/sec:
server:/zaurus /mnt nfs noauto,hard,intr,nolock,async,nfsvers=2 0 0
Himchen
-
the "df" images... I normally would mount -o soft -t nfs blah &
and then wait... wait... and wait... :-/
so, now... -o soft,nolock .. thanks!
Scott
-o soft ?
It's far better to use -o hard,intr.
From the man page for the mount command:
hard The program accessing a file on a NFS mounted file
system will hang when the server crashes. The pro╜
cess cannot be interrupted or killed unless you
also specify intr. When the NFS server is back
online the program will continue undisturbed from
where it was. This is probably what you want.
soft This option allows the kernel to time out if the
nfs server is not responding for some time. The
time can be specified with timeo=time. This option
might be useful if your nfs server sometimes
doesn't respond or will be rebooted while some pro╜
cess tries to get a file from the server. Usually
it just causes lots of trouble.