[ubuntu-jp:2878] 10.04 でのstatd自動起動不可

Tohru MURAKAMI ml-ubuntu @ amago.trout.jp
2010年 8月 11日 (水) 03:18:09 BST


     こんにちは。村上と申します。

     10.04で NFSクライアントを起動させるために autofs nfs-common
    portmap を導入しました。
    
     /etc/auto.master, /etc/auto.misc を設定してマウントを試みたので
    すが、以下のようにrpc.statdが起動していないといわれて失敗します。

───────────────────────────────────
Aug 11 06:34:29 host1 automount[1036]: >> mount.nfs: rpc.statd is not running but is required for remote locking.
Aug 11 06:34:29 host1 automount[1036]: >> mount.nfs: Either use '-o nolock' to keep locks local, or start statd.
Aug 11 06:34:29 host1 automount[1036]: mount(nfs): nfs: mount failure nas:/home/site_exports on /misc/site
───────────────────────────────────

     手動で「start statd」して起動すれば、rpc.statdが起動してnfsマウ
    ントできるのですが、再起動するとrpc.statdが自動的に起動してきませ
    ん。
    
     いろいろと調べたところ、/varを別パーティションにしている場合、
    /varのマウント完了前にrpc.statdを起動しようとして /var/lib/nfs に
    chdir出来ないためにエラーになっているようです。
    
     とりあえず、/etc/init/statd.conf の script の直後に sleep 10 を
    いれることで回避できていますが、正しい対処の方法はあるのでしょうか?

#   バグ報告対象でしょうか?
    
     調査したのは、まずboot.logを調べて

───────────────────────────────────
fsck from util-linux-ng 2.17.2
init: statd main process (613) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (623) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (630) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (636) terminated with status 1^M
init: statd main process ended, respawning^M
root: clean, 49783/244320 files, 198894/975872 blocks
/dev/sda2 was not cleanly unmounted, check forced.
init: statd main process (645) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (652) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (658) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (669) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (675) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (681) terminated with status 1^M
init: statd main process ended, respawning^M
init: statd main process (687) terminated with status 1^M
init: statd respawning too fast, stopped^M
───────────────────────────────────

     とあることを見つけ、さらに調査したところ rpc.statdの起動のところ
    でデバッグログを出すように/etc/init/statd.conf を修正し

	statd: Could not chdir: No such file or directory

     といったエラーが出ていることを確認しました。

 -------------
 村上 亨(ムラカミ トオル)




ubuntu-jp メーリングリストの案内