View previous topic :: View next topic |
Author |
Message |
Jux Tux's lil' helper
Joined: 09 Jan 2004 Posts: 103 Location: Austria
|
Posted: Sun Mar 07, 2004 10:59 am Post subject: NFS - Directory disappears |
|
|
Hi there !
Strange problem here: my nfs-dir(client) disappears for standardusers.
At boot time a nfs-share from my server is mounted to /shared/ .
A few minutes everthing seems to be fine - but then ... when i try to enter the directory as user this happens:
Code: | cd /shared
bash: cd: /shared: Input/output error |
Code: | file /shared
/shared: Can't stat `/shared' (Input/output error)
|
When I am trying the same as root everthing's going to be fine - also for the non-root-user.
Code: |
gandalf linux # cd /shared/
gandalf shared # ls
ablage files games linux windows
gandalf shared #
|
After a few minutes the problem is exactly the same.
/etc/fstab (client) Code: |
10.0.0.1:/shared /shared nfs soft,intr,rsize=8192,wsize=8192 0 0 |
/etc/exports (server) Code: |
/shared *(sync,rw,anongid=100,anonuid=1000,all_squash) |
Both are gentoo-machines with kernel 2.6.
I am sure, this is a client problem, cause the same happened when the server was setup with SuSE two weeks ago. Just the exports-file is the same on this server.
Some ideas ... ??
Thank you
Jux |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Sun Mar 07, 2004 3:49 pm Post subject: |
|
|
Try setting it to "hard" instead of soft. That might help intermittent network issues.
Also, "tcp" can help, too, but slows you down a bit. |
|
Back to top |
|
|
Jux Tux's lil' helper
Joined: 09 Jan 2004 Posts: 103 Location: Austria
|
Posted: Sun Mar 07, 2004 7:23 pm Post subject: |
|
|
Hi
Thank you for answering my questions.
The option "hard" didn't solve the problem - when I'm trying "tcp" I get the following error message: Code: | nfs server reported service unavailable: Address already in use
|
when I remount the shared dir. Can this be coherent with my problem?
Quote: | ...might help intermittent network issues... |
Do you think my network connection is broken sometimes? It had worked for a long time before all the trouble began.
Could a broken slack joint cause this? Maybe ACPI disables some devices or something??!?!?!
helpless
Bye, Jux |
|
Back to top |
|
|
bombcar Guru
Joined: 08 Apr 2003 Posts: 453 Location: Wisconsin
|
Posted: Sun Mar 07, 2004 10:51 pm Post subject: |
|
|
What options did you use to compile NFS in the kernel?
I'm using: Code: | CONFIG_NFS_FS=m
CONFIG_NFS_V3=y
CONFIG_NFS_V4=y
CONFIG_NFS_DIRECTIO=y
CONFIG_NFSD=m
CONFIG_NFSD_V3=y
CONFIG_NFSD_V4=y
CONFIG_NFSD_TCP=y
|
Maybe the problem is in there somewhere.
Also can be usefull, too. |
|
Back to top |
|
|
Jux Tux's lil' helper
Joined: 09 Jan 2004 Posts: 103 Location: Austria
|
Posted: Mon Mar 08, 2004 8:41 pm Post subject: |
|
|
That didn't work. I've built a new kernel on each machine (but without nfs4-support) - same problem. Another fstab-option I've tried was "nolock" , to exclude lockingprobs.
This is very frustrating ... Absolutly illogical - can't understand it.
Greetings
Jux |
|
Back to top |
|
|
quirx n00b
Joined: 27 Jul 2003 Posts: 14
|
Posted: Thu Mar 11, 2004 10:31 pm Post subject: |
|
|
hi,
i had the same problems as you described.
Enabling "Default Linux Capabilities " under "Security Options"
in the kernel config solved the issue for me. |
|
Back to top |
|
|
Jux Tux's lil' helper
Joined: 09 Jan 2004 Posts: 103 Location: Austria
|
Posted: Sat Mar 27, 2004 4:02 pm Post subject: |
|
|
Great - I love you !!!!
|
|
Back to top |
|
|
|