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/10/02 20:48]
koudai [管理ノード]
自作クラスタ計算機:nisの基本設定 [2020/10/03 15:04]
koudai [管理ノード]
Line 42: Line 42:
  
 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 70: 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>
 (略) (略)
-passwd:         files systemd nis +passwd:         nis files systemd 
-group:          files systemd nis +group:          nis files systemd 
-shadow:         files nis+shadow:         nis files
 gshadow:        files gshadow:        files
  
-hosts:          files dns nis+hosts:          nis files dns
 (略) (略)
 </file> </file>
Line 88: Line 88:
 $ systemctl restart rpcbind nis  $ systemctl restart rpcbind nis 
 </code> </code>
 +    * 割と時間がかかります。
  
  
Line 97: 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