Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Loosing NFS connection
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
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Tue Dec 21, 2004 12:42 pm    Post subject: Loosing NFS connection Reply with quote

I'm running a local server with a number of directories that I share via NFS.
Though, after a couple of minutes all my shares stop working and I have to remount them.

What could be causing this?
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Tue Dec 21, 2004 1:09 pm    Post subject: Reply with quote

You will have to post more details, like your logger messages and stuff.
_________________
gentoo.ro
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Tue Dec 21, 2004 1:17 pm    Post subject: Reply with quote

Where can I find my logs?
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Tue Dec 21, 2004 1:21 pm    Post subject: Reply with quote

Don't know if the output from nfsstat can help:
Code:
Server rpc stats:
calls      badcalls   badauth    badclnt    xdrcall
125613     843291     0          843291     0
Server nfs v2:
null       getattr    setattr    root       lookup     readlink
0       0% 9008    7% 6495    5% 0       0% 8004    6% 2       0%
read       wrcache    write      create     remove     rename
1066    0% 0       0% 53396  42% 1160    0% 57      0% 0       0%
link       symlink    mkdir      rmdir      readdir    fsstat
0       0% 0       0% 132     0% 0       0% 397     0% 45896  36%

Server nfs v3:
null       getattr    setattr    lookup     access     readlink
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
read       write      create     mkdir      symlink    mknod
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
fsstat     fsinfo     pathconf   commit
0       0% 0       0% 0       0% 0       0%

Client rpc stats:
calls      retrans    authrefrsh
0          0          0
Client nfs v2:
null       getattr    setattr    root       lookup     readlink
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
read       wrcache    write      create     remove     rename
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
link       symlink    mkdir      rmdir      readdir    fsstat
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%

Client nfs v3:
null       getattr    setattr    lookup     access     readlink
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
read       write      create     mkdir      symlink    mknod
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
fsstat     fsinfo     pathconf   commit
0       0% 0       0% 0       0% 0       0%
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Tue Dec 21, 2004 2:05 pm    Post subject: Reply with quote

Raniz wrote:
Where can I find my logs?


/var/log/messages or /var/log/everything/current .
_________________
gentoo.ro
Back to top
View user's profile Send private message
gymer
n00b
n00b


Joined: 10 Jun 2004
Posts: 28
Location: Denmark

PostPosted: Tue Dec 21, 2004 3:53 pm    Post subject: Reply with quote

Try using nfs v3 instead of v2
_________________
/gymer
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Tue Dec 21, 2004 5:07 pm    Post subject: Reply with quote

Here's the most recent about nfs in /var/log/messages:
Code:
Dec 21 18:02:38 Megatron nfs_statfs: statfs error = 5
Dec 21 18:02:40 Megatron nfs_statfs: statfs error = 5
Dec 21 18:02:42 Megatron nfs_statfs: statfs error = 5


How do I change to V3?
Back to top
View user's profile Send private message
mayday147
l33t
l33t


Joined: 22 Mar 2004
Posts: 825
Location: Bucharest, Romania

PostPosted: Tue Dec 21, 2004 6:13 pm    Post subject: Reply with quote

Raniz wrote:
How do I change to V3?


From the kernel , I guess.
_________________
gentoo.ro
Back to top
View user's profile Send private message
gymer
n00b
n00b


Joined: 10 Jun 2004
Posts: 28
Location: Denmark

PostPosted: Tue Dec 21, 2004 6:15 pm    Post subject: Reply with quote

make sure your kernels are compiled with v3 support.

Then mount them with v3 see man mount

or put them in your fstab like
Code:

defaults,rsize=8192,wsize=8192,hard,vers=3,lock


thats how i mount mine
_________________
/gymer
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Tue Dec 21, 2004 11:35 pm    Post subject: Reply with quote

V3 changed nothing... But I found some more messages in my log:
Code:
Dec 22 01:33:59 Megatron RPC: garbage, exit EIO
Dec 22 01:33:59 Megatron nfs_statfs: statfs error = 5
Dec 22 01:34:01 Megatron RPC: garbage, exit EIO
Dec 22 01:34:01 Megatron nfs_statfs: statfs error = 5
Dec 22 01:34:03 Megatron RPC: garbage, exit EIO
Dec 22 01:34:03 Megatron nfs_statfs: statfs error = 5
Back to top
View user's profile Send private message
endu
n00b
n00b


Joined: 03 Jul 2003
Posts: 18
Location: CH

PostPosted: Thu Dec 30, 2004 9:18 pm    Post subject: Reply with quote

i have a simillar issue with NFS
i have a fileserver and i mount a share with MP3s to listen to them. after 1-30 minutes i see in dmesg of the client multiple of the following entries
Code:
RPC: garbage, exit EIO
RPC: garbage, exit EIO
RPC: garbage, exit EIO
RPC: garbage, exit EIO

and the connection gets lost. i have to remount it. on the server, i didn't notice anything special in the logs.
i'm using the kernel linux-2.6.9-gentoo-r13 on the client and linux-2.6.8-gentoo-r10 on the server side.
the share is mounted like this:
Code:
lush:/mnt/disks/5 on /mnt/disks/5 type nfs (rw,noatime,rsize=8192,wsize=8192,hard,vers=3,nolock,addr=192.168.1.6)


does someone has a hint to find out the cause of this?
Back to top
View user's profile Send private message
Raniz
l33t
l33t


Joined: 13 Sep 2003
Posts: 967
Location: Varberg, Sweden

PostPosted: Thu Dec 30, 2004 10:18 pm    Post subject: Reply with quote

I don't know what solved it... But it's gone now...

Could be the upgrade of nfs-utils.
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