CentOS 5 で NFS デーモンのプロセス数を変えるには

VMWare で動かしている CentOS 上で NFS を起動しているが、たまに Mac から接続するときくらいしか使わない。 一般的にどの OS も NFS は起動スクリプトで 8 個のプロセス(インスタンス)を起動する。こんなにいらないので減らすことにした。 /etc/sysconfig/nfs の RPCNFSDCOUNT でスタート時のプロセス数を設定できる。とりあえず半分にしてみる。 /etc/sysconfig/nfs # Number of nfs server processes to be started. # The default is 8. RPCNFSDCOUNT=4 反映 # service nfs restart # ps -ef | grep nfs root 2422 7 0 16:43 ? 00:00:00 \[nfsd4\] root 2423 1 0 16:43 ? 00:00:00 \[nfsd\] root 2424 1 0 16:43 ? 00:00:00 \[nfsd\] root 2425 1 0 16:43 ? 00:00:00 \[nfsd\] root 2426 1 0 16:43 ? 00:00:00 \[nfsd\] ということで減りました。

2009年1月6日 · Toshimitsu Takahashi

Solaris での NFS サーバの設定

NFS サーバを有効化する。 # svcadm enable network/nfs/server /etc/dfs/dfstab に共有設定を追記する。 # Place share(1M) commands here for automatic execution # on entering init state 3. # Issue the command ‘svcadm enable network/nfs/server’ to # run the NFS daemon processes and the share commands, after adding # the very first entry to this file. # share [-F fstype] [ -o options] [-d “”] [resource] # .e.g, # share -F nfs -o rw=engineering -d “home dirs” /export/home2 share -F nfs -o rw -d “backup” /backup/test ...

2007年7月5日 · Toshimitsu Takahashi