Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
exportfs takes long time to finish
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: Fri Jan 30, 2004 3:31 pm    Post subject: exportfs takes long time to finish Reply with quote

When I run exportfs -r it takes about four minutes to complete. This causes the rc-script for nfs to terminate and error out.

Though, if I run exportfs -r; /etc/init.d/nfs restart a couple of times, it will eventually succeed.

What could cause this?

My exports look like this:
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/usr/portage *(rw,sync,no_root_squash)
/mnt/primary *(ro,sync)
/mnt/secondary *(ro,sync)
Back to top
View user's profile Send private message
jondkent
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Jan 30, 2004 4:13 pm    Post subject: Reply with quote

why are you using the -r switch which reexport all directories, seem unnecessary ?
Back to top
View user's profile Send private message
Raniz
l33t
l33t


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

PostPosted: Fri Jan 30, 2004 4:15 pm    Post subject: Reply with quote

That's what the rc-script uses...
Back to top
View user's profile Send private message
jondkent
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Jan 30, 2004 4:27 pm    Post subject: Reply with quote

Try running exportfs -a instead from the command line. I assume statd is running OK?
Back to top
View user's profile Send private message
jondkent
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Jan 30, 2004 4:28 pm    Post subject: Reply with quote

Other option is to remove all of the options temporaryily so that you only have the directory in the /etc/exports file and try running the init script again. Maybe something in /etc/exports that is causing the prob
Back to top
View user's profile Send private message
Raniz
l33t
l33t


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

PostPosted: Fri Jan 30, 2004 7:22 pm    Post subject: Re: exportfs takes long time to finish Reply with quote

Raniz wrote:
My exports look like this:
Code:
# /etc/exports: NFS file systems being exported.  See exports(5).
/usr/portage *(rw,sync,no_root_squash)
/mnt/primary *(ro,sync)
/mnt/secondary *(ro,sync)

What could be wrong there?

exportfs -a executes in no time.. But does this suffice?
Back to top
View user's profile Send private message
jondkent
Apprentice
Apprentice


Joined: 26 Jul 2002
Posts: 289
Location: London

PostPosted: Fri Jan 30, 2004 8:49 pm    Post subject: Reply with quote

Hi,

exportfs -a should be fine for an init script as this exports all entries in /etc/exports. The -r switch only makes some sense within the restart section of the init script, but even then I'd prefer to use -ua to unexport then -a to re-export to be completely clean.

I can't see anything wrong with you options in your exports file, and as exportfs -a is working fine I'd stick with that.

Jon
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