Jump to content

NFS during boot, Sloooow


Technonoid
 Share

Recommended Posts

Is it normal for the NFS services to take 20 plus seconds and

NFS mountd to also take another 15 plus seconds during boot ?

 

Just curious mainly. I currently have to shutdown and boot daily. Cause I don't have a UPS on this puter yet, power outages and lightning is bad this time of year. And I have been hit once this year already. Can't aford another one ya know.

 

Tech

Link to comment
Share on other sites

Like ranger says, this could be a sign of poor resolution.

My nfs takes .... well no time at all.

I take it were talking abouty the server, not the client?

 

Are you granting your exports by name or IP???

 

Try just replacing the name in the /etc/exports with the IP instead. You can refresh the export list with exportfs -ra

 

 

Heres mine exported to the local class 'C' RFC network.

[root@shuttle proc]# more /etc/exports

/home 172.16.122.0/255.255.255.0(insecure,no_root_squash,rw)

 

Anyway, this isn't ideal but at least you know where the problem is ...

Link to comment
Share on other sites

In fact, my export looks like this:

/shared_directory   192.168.1.4(rw,no_root_squash)   192.168.1.7(rw,no_root_squash)

 

I have always liked doing networking stuff the static way. In windblows, it seemed to always boot faster when you do. So I have carried over the static ip networking to linux. Good idea or not ?

Link to comment
Share on other sites

Actually I've been lazy.

You'll notice Im doing a broadcast, like yeah Ive 253 PC's

I didn't specify I just did a whole class C.

 

Not the best way.

 

Despite what I did I don't think its the best way but it works :-)

 

When I get time I'm going to try LDAP but I havn't bothered getting DHCP and NIS working properly yet!!

 

Yours should work ... try adding the natmask but ...

 

Did you try external access without the firewall ???

could be your nfs port ???

Link to comment
Share on other sites

Have you tried restarting the service from the command line to see where it hangs??

You can switch on debugging

Also you can force it to run in forgeground (-F) i think :-)

 

Another point, if your firewalled you can force it to use a specific port instead of it randomlly requesting one.

 

 

(p.s. I'm a big fan of using proper UNIX stuff instread of kludged Windows stuff like samba, not I don't think sabma is great, its just that two linux or unix machines sharing files by CIFS is a horrid thought !!!

 

Sabma is great but its a compatibility with M$ utility. :-)

Link to comment
Share on other sites

(p.s. I'm a big fan of using proper UNIX stuff instread of kludged Windows stuff like samba, not I don't think sabma is great, its just that two linux or unix machines sharing files by CIFS is a horrid thought !!!  

 

You said it. :D

 

I didn't get a chance to play around with nfs yet. I should tonight though, we'll see what happens.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...