お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2009-07-10 20:20:11

torisan
メンバ
登録日: 2008-05-12

nfs-kernel-serverで起動時にエラー発生

nfs-kernel-serverを入れてNFSサーバーとして使用を開始したところ、電源ONからの起動に異常に時間がかかり、
下記のようなエラーメッセージが出るようになりました

Jul 10 19:32:20 asti kernel: [   23.688844] RPC: Registered udp transport module.
Jul 10 19:32:20 asti kernel: [   23.688846] RPC: Registered tcp transport module.
Jul 10 19:32:20 asti kernel: [   23.805308] Installing knfsd (copyright (C) 1996 [email protected]).
Jul 10 19:32:50 asti kernel: [   54.104007] rpcbind: server localhost not responding, timed out
Jul 10 19:32:50 asti kernel: [   54.104021] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:33:20 asti kernel: [   84.104507] rpcbind: server localhost not responding, timed out
Jul 10 19:33:20 asti kernel: [   84.104520] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:33:50 asti kernel: [  114.104007] rpcbind: server localhost not responding, timed out
Jul 10 19:33:50 asti kernel: [  114.104019] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:34:20 asti kernel: [  144.104007] rpcbind: server localhost not responding, timed out
Jul 10 19:34:20 asti kernel: [  144.104016] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:34:50 asti kernel: [  174.104008] rpcbind: server localhost not responding, timed out
Jul 10 19:34:50 asti kernel: [  174.104023] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:34:50 asti kernel: [  174.104072] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directo
ry
Jul 10 19:34:50 asti kernel: [  174.122383] NFSD: starting 90-second grace period
Jul 10 19:34:50 asti kernel: [  174.122426] nfsd: last server has exited, flushing export cache
Jul 10 19:35:20 asti kernel: [  204.120007] rpcbind: server localhost not responding, timed out
Jul 10 19:35:20 asti kernel: [  204.120016] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:35:37 asti portmap: Removing stale lockfile for pid 2313
Jul 10 19:35:50 asti kernel: [  234.120007] rpcbind: server localhost not responding, timed out
Jul 10 19:35:50 asti kernel: [  234.120021] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:36:20 asti kernel: [  264.120007] rpcbind: server localhost not responding, timed out
Jul 10 19:36:20 asti kernel: [  264.120016] RPC: failed to contact local rpcbind server (errno 5).
Jul 10 19:36:21 asti kernel: [  265.360458] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Jul 10 19:36:21 asti kernel: [  265.360460] Bluetooth: BNEP filters: protocol multicast
Jul 10 19:36:21 asti kernel: [  265.412000] Bridge firewalling registered
Jul 10 19:36:23 asti kernel: [  266.330769] ppdev: user-space parallel port driver
Jul 10 19:36:27 asti kernel: [  270.472686] r8169: eth0: link up
Jul 10 19:36:27 asti kernel: [  270.472691] r8169: eth0: link up

NFSサービスを起動時に開始しないようにするとこの問題は発生しません。
とりあえず、起動時にはNFSを停止しておいて、起動後に手動でサービスを開始することで回避していまが、
自動で起動したいのでお知恵を拝借したく投稿致しました。
回避策をご存じの方がいらっしゃいましたらご教示ください

オフライン

 

#2 2009-07-10 21:23:32

n_saito
メンバ
登録日: 2009-06-23

Re: nfs-kernel-serverで起動時にエラー発生

portmapは起動してますか?

端末で
ps ax|grep 'por[t]map'
で起動していないようであれば
sudo /etc/init.d/portmap start
として起動してみてください。

# 依存関係上インストールされているはずと仮定しています。

その後、再度 ps コマンドで状況を調べ直して起動していれば
sudo /etc/init.d/nfs-kernel-server start
でNFSサーバを起動してみてください。
portmapが起動していなかったら、またnfs周りで同様のエラーが出ていたら、同様にログをさらすと良いと思います。

pormapが起動しているなどがある場合は他の部分でportmapへの接続が制限されている可能性があると思います。
何か変更したということがないか、調査してみてください。

オフライン

 

Board footer

Powered by FluxBB