[Techtalk] Slow booting since installing NFS daemons

Anne Wainwright anotheranne at fables.co.za
Mon Jan 19 18:07:49 UTC 2009


Joana, hi,

Thanks for your input. See below for resolution of the problem

On Mon, 12 Jan 2009 21:53:40 +0000
Joana wrote:

|> Hi,
|> 
|> When the NFS server daemon has a request, it first looks at the
|> current list of exports, /etc/exports and then it looks up the
|> client's ip to find its host name. This requires a reverse DNS lookup.
|> So if you don't have a DNS server on your network, check /etc/hosts.
|> 
|> The host is then checked against the list of exports. If NFS can't
|> find the host name, the acess will be deny to the client and an entry
|> is added on /var/log/messages, "request from unknown host".

Not the problem, we have a long wait getting loaded up on boot with no other network machines connected. However, I did look in /var/log/messages and found

-----------------------
NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 recovery directory
NFSD: Starting 90 second grace period
rpcbind: server localhost not responding, timed out
RPC: failed to contact local rpcbind server (errno 5)
.... repeat 2 previous lines
locked_up: makesock failed, error=-5
.... repeat 2 lines again
nfsd: last server has exited, flushing export cache
.... repeat 2 lines again
-----------------------

I did a google on "rpcbind: server localhost not responding" and checked the ubuntu hit.

I needed to edit my etc/network/interfaces file and added in the loopback line which was commented out. How or why I do not know, but as always I was not the first with this problem.

A reboot and we were up at the login in seconds like never before!

Thanks to all the help.

bestest
Anne

|> 
|> Also you could try using the soft-mounted NFS filesystem when
|> mounting, so if the server fails, a soft-mounted NFS filesystem will
|> fail rather than hang. You also can set the timeo option to set a
|> timeout interval.
|> 
|> Here is an example:
|> 
|> # mount -o soft,timeo=300 server_name:/home /nfs/home
|> 
|> I hope this help.
|> 
|> 
|> Best regards,
|> Joana Botto
|> 
|> 
|> On Sun, Jan 11, 2009 at 10:52 PM, Anne Wainwright
|> <anotheranne at fables.co.za> wrote:
|> > Gayathri, hi
|> >
|> > one comment below.
|> >
|> > On Mon, 5 Jan 2009 21:56:13 -0600
|> > Gayathri wrote:
|> >
|> > |> On Mon, Jan 5, 2009 at 1:50 PM, Anne Wainwright <anotheranne at fables.co.za>wrote:
|> > |>
|> > |> >
|> > |> > So the only thing is why does this not happen automagically on boot, .... I
|> > |> > look into some logs....
|> > |> >
|> > |> > In /var/log/kern.log and /messages I find stuff:
|> > |> >
|> > |> > kernel {big number] rpcbind: server localhost not responding, timed out
|> > |> > kernel {bigger number] RPC: failed to contact local rpcbind server (errno
|> > |> > 5).
|> > |> >
|> > |> > in fact a series of these errors until it gives up
|> > |> >
|> > |> > This is not serious now as this is only for temporary connection and we can
|> > |> > start it manually, but would like to fix it if possible.
|> > |> >
|> > |> > thanks
|> > |> > Anne
|> > |> >
|> > |>
|> > |> Excellent progress Anne!
|> > |>
|> > |> It has been a while I have debian-ed so I asked @IRC if anyone remembers off
|> > |> their memory and here are some suggestions:
|> > |>
|> > |> - use /etc/init.d/service
|> > |> - rcconf or,
|> > |> - update-rc.d
|> > |>
|> > |> Was able to find this how to after a bit of googling:
|> > |> http://www.cyberciti.biz/tips/how-to-controlling-access-to-linux-services.html
|> >
|> > not able to connect to that URL directly. have to go to the cyberciti.biz and then search for "how-to-controlling-access-to-linux-services.html" and then from the link provided which is exactly that same url you can get to the thing. Shows sysvconfig utility.
|> >
|> > Anne
|> >
|> >
|> > |>
|> > |> Cheers,
|> >
|> >
|> > --
|> > so much to do, so little time :(
|> > _______________________________________________
|> > Techtalk mailing list
|> > Techtalk at linuxchix.org
|> > http://mailman.linuxchix.org/mailman/listinfo/techtalk
|> >


-- 
so much to do, so little time :(


More information about the Techtalk mailing list