View previous topic :: View next topic |
Author |
Message |
Raniz l33t


Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Fri Jan 30, 2004 3:31 pm Post subject: exportfs takes long time to finish |
|
|
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 |
|
 |
jondkent Apprentice


Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Jan 30, 2004 4:13 pm Post subject: |
|
|
why are you using the -r switch which reexport all directories, seem unnecessary ? |
|
Back to top |
|
 |
Raniz l33t


Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Fri Jan 30, 2004 4:15 pm Post subject: |
|
|
That's what the rc-script uses... |
|
Back to top |
|
 |
jondkent Apprentice


Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Jan 30, 2004 4:27 pm Post subject: |
|
|
Try running exportfs -a instead from the command line. I assume statd is running OK? |
|
Back to top |
|
 |
jondkent Apprentice


Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Jan 30, 2004 4:28 pm Post subject: |
|
|
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 |
|
 |
Raniz l33t


Joined: 13 Sep 2003 Posts: 967 Location: Varberg, Sweden
|
Posted: Fri Jan 30, 2004 7:22 pm Post subject: Re: exportfs takes long time to finish |
|
|
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 |
|
 |
jondkent Apprentice


Joined: 26 Jul 2002 Posts: 289 Location: London
|
Posted: Fri Jan 30, 2004 8:49 pm Post subject: |
|
|
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 |
|
 |
|