Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS - Directory disappears
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Jux
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 103
Location: Austria

PostPosted: Sun Mar 07, 2004 10:59 am    Post subject: NFS - Directory disappears Reply with quote

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
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Sun Mar 07, 2004 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jux
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 103
Location: Austria

PostPosted: Sun Mar 07, 2004 7:23 pm    Post subject: Reply with quote

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??!?!?!
:cry: helpless :cry:

Bye, Jux
Back to top
View user's profile Send private message
bombcar
Guru
Guru


Joined: 08 Apr 2003
Posts: 453
Location: Wisconsin

PostPosted: Sun Mar 07, 2004 10:51 pm    Post subject: Reply with quote

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
Code:
exportfs -ra
can be usefull, too.
Back to top
View user's profile Send private message
Jux
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 103
Location: Austria

PostPosted: Mon Mar 08, 2004 8:41 pm    Post subject: Reply with quote

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 ... :cry: Absolutly illogical - can't understand it.

Greetings

Jux
Back to top
View user's profile Send private message
quirx
n00b
n00b


Joined: 27 Jul 2003
Posts: 14

PostPosted: Thu Mar 11, 2004 10:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jux
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jan 2004
Posts: 103
Location: Austria

PostPosted: Sat Mar 27, 2004 4:02 pm    Post subject: Reply with quote

Great - I love you !!!! 8O

:P :P :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum