0

After a reboot of my Ubuntu server, the nfs shares and not accessible. I have to do sudo /etc/init.d/nfs-kernel-server restart and then clients can mount the nfs shares just fine. The service is started at boot, and I've tried adding this line to rc.local but I still have to actually log in and run the command manually before clients can connect. I only have to do this once after the server boots up, and then it works fine from then on.

Any idea why it is requiring this manual restart?

James
  • 819
  • 4
  • 10

2 Answers2

0

Check the permissions on the start up script.

Chris Nava
  • 1,147
  • 1
  • 7
  • 9
  • The environment or $PATH might be different when the script is run during startup vs. when you run it by hand causing different results. – mtinberg Jun 29 '11 at 18:24
  • The startup script is the one provided by the Ubuntu apt repo, just fyi. @Chris - the perms are the same as all other start scripts: 755 owned by root.root. – James Jun 29 '11 at 19:52
  • @mtinberg - that would make sense. Any idea what part of the environment could be affecting it? – James Jun 29 '11 at 19:54
  • I would expect that the script does work or it would be broken for everybody so it must be something different about your local setup. – mtinberg Jun 29 '11 at 20:14
0

I figured it out. It is apparently a problem with name resolution. I was using dns names in my export definitions. When I changed the dns names to ip addresses, then it works find after a restart. I would rather use the names, but I guess I'll live with using ip addresses for now since I don't expect them to change any time soon.

James
  • 819
  • 4
  • 10