User Tools

Site Tools


自作クラスタ計算機:nisの基本設定

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
自作クラスタ計算機:nisの基本設定 [2020/08/18 08:42]
koudai [概要]
自作クラスタ計算機:nisの基本設定 [2020/10/03 15:04]
koudai [管理ノード]
Line 2: Line 2:
  
   * プライベートLAN内でコンピュータの設定(ユーザー情報など)を共有するシステムをNetwork Information Service (NIS) と呼びます   * プライベートLAN内でコンピュータの設定(ユーザー情報など)を共有するシステムをNetwork Information Service (NIS) と呼びます
-  * 複数人でクラスタ計算機を使用するとき、それぞれの計算ノードに各自のアカウントを一つずつ作成するのは非常に手間であるので、このシステムを使+  * 複数人でクラスタ計算機を使用するとき、それぞれの計算ノードに各自のアカウントを一つずつ作成するのは非常に手間であるので、このシステムを使います
   * 共有する設定を管理するサーバをNISサーバと呼び、今回は管理ノードをその役割に当てます   * 共有する設定を管理するサーバをNISサーバと呼び、今回は管理ノードをその役割に当てます
  
Line 35: Line 35:
 </file> </file>
     * これによりプライベートネットワークからのみNISサーバへの接続を許可します     * これによりプライベートネットワークからのみNISサーバへの接続を許可します
 +  - NISを再起動します<code>
 +$ sudo systemctl restart rpcbind nis 
 +</code>
   - NISデータベースを更新する<code>   - NISデータベースを更新する<code>
 $ sudo /usr/lib/yp/ypinit -m $ sudo /usr/lib/yp/ypinit -m
  
 At this point, we have to construct a list of the hosts which will run NIS At this point, we have to construct a list of the hosts which will run NIS
-servers.  dlp.srv.world is in the list of NIS server hosts.  Please continue to add+servers.  kanri is in the list of NIS server hosts.  Please continue to add
 the names for the other hosts, one per line.  When you are done with the the names for the other hosts, one per line.  When you are done with the
 list, type a <control D>. list, type a <control D>.
Line 52: Line 55:
 (以下略) (以下略)
 </code> </code>
-  - NISを再起動します(いらない?)<code> +
-$ sudo systemctl restart nis +
-</code>+
  
  
Line 69: Line 70:
 domain kanri.nis server 192.168.0.1 domain kanri.nis server 192.168.0.1
 </file> </file>
-  - /etc/nsswitch.conf に、/etc/ にある passwd, group, shadow, hosts はNISサーバのものを使用するように指定する(OSのバージョンによって微妙に変わってくるが、それぞれの項目の先頭に nis 付け加えるだけでオーケー)<code>+  - /etc/nsswitch.conf に、/etc/ にある passwd, group, shadow, hosts はNISサーバのものを使用するように指定する(OSのバージョンによって微妙に変わってくるが、それぞれの項目の先頭に nis 付け加えるだけでオーケー)<code>
 $ sudo vi /etc/nsswitch.conf $ sudo vi /etc/nsswitch.conf
 </code><file - nsswitch.conf> </code><file - nsswitch.conf>
Line 85: Line 86:
     * グループの管理は管理ノードのみで行いたいため、gshadow(グループのパスワードが暗号化されて入っているファイル)は共有しません     * グループの管理は管理ノードのみで行いたいため、gshadow(グループのパスワードが暗号化されて入っているファイル)は共有しません
   - NISを再起動します<code>   - NISを再起動します<code>
-sudo systemctl restart nis+$ systemctl restart rpcbind nis 
 </code> </code>
 +    * 割と時間がかかります。
  
  
Line 96: Line 98:
 $ sudo make -C /var/yp $ sudo make -C /var/yp
 </code> </code>
-    * **NISサーバの共有する情報を変更したときは、その都度 make -C /var/yp を実行する必要があります**+    * **NISサーバの共有する情報を変更したとき(つまりユーザーの追加したり、ホストファイルを編集したりしたとき)は、その都度 make -C /var/yp を実行する必要があります**
   - 新しいユーザで計算ノードにログインできるか確認します<code>   - 新しいユーザで計算ノードにログインできるか確認します<code>
 $ ssh sugimoto@keisan11 $ ssh sugimoto@keisan11
自作クラスタ計算機/nisの基本設定.txt · Last modified: 2024/01/20 17:32 by koudai