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/03/01 20:16]
koudai [管理ノード]
自作クラスタ計算機:nisの基本設定 [2020/03/01 21:44]
koudai
Line 3: Line 3:
   * プライベートLAN内でコンピュータの設定を共有するシステムをNetwork Information Service (NIS) と呼ぶ   * プライベートLAN内でコンピュータの設定を共有するシステムをNetwork Information Service (NIS) と呼ぶ
   * 複数人でクラスタ計算機を使用するとき、それぞれの計算ノードに各自のアカウントを一つずつ作成するのは非常に手間であるので、このシステムを使う   * 複数人でクラスタ計算機を使用するとき、それぞれの計算ノードに各自のアカウントを一つずつ作成するのは非常に手間であるので、このシステムを使う
 +  * 共有する設定を管理するサーバをNISサーバと呼び、今回は管理ノードをその役割に当てる
  
  
Line 12: Line 13:
 sudo apt install nis sudo apt install nis
 </code> </code>
-    * 途中でNISドメイン名というものを聞かれるが、これのNISのループに所属する指定するのに使用する +    * 途中でNISドメイン名というものを聞かれので kanri.nis などとす。 
-    * そういうわけFQDNドメインとはまったく別物+    * NISドメイン名設定を共有するコンピュータグループの名前のことであり、FQDNにおけるドメイン名とはまったく別物である 
 +    * NISドメイン名は /etc/defaultdomain に保存されるで、変更したくなったらこのファイを編集すればよい 
 +  - /etc/hosts.allow にを編集してNISサバとライベートLAN上のコンピュータの両方からの管理ノードへのアクセスを許可する(127.0.0.1は自分自身を指すIPアドレス)<code> 
 +$ sudo vi /etc/hosts.allow 
 +</code><file - hosts.allow> 
 +rpcbind : 127.0.0.1 192.168.0.0/24 
 +</file> 
 +  - /etc/defalut/nis 管理ノードをNISサーバとすることを指定する<code> 
 +$ sudo vi /etc/defalut/nis 
 +</code><file - nis> 
 +NISSERVER=master 
 +</file> 
 +  - /etc/yp.conf にNISサーバIPアドレスまたはホスト名を指定する<code> 
 +$ sudo vi /etc/yp.conf 
 +</code><file - yp.conf> 
 +ypserver 192.168.0.1 
 +</file> 
 +  - /etc/ypserv.securenets の最終行をプライベートLANのネットマスクとIPアドレス変更する<code> 
 +$ sudo vi /etc/ypserv.securenets 
 +</code><file - ypserv.securenets> 
 +(略) 
 +# This line gives access to everybody. PLEASE ADJUST! 
 +255.255.255.0 192.168.0.0 
 +</file> 
 +  - NISデータベースを更新する<code> 
 +$ sudo /usr/lib/yp/ypinit -m 
 + 
 +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 
 +the names for the other hosts, one per line.  When you are done with the 
 +list, type a <control D>. 
 +        next host to add:  kanri 
 +        next host to add:  # Ctrl + D キー 
 +The current list of NIS servers looks like this: 
 + 
 +kanri 
 + 
 +Is this correct?  [y/n: y]  y 
 +We need a few minutes to build the databases... 
 +(以下略) 
 +</code> 
 +    * 途中NISサーバホストを聞かれるの入力す 
 +  - NISを再起動する<code> 
 +$ sudo systemctl restart nis 
 +</code> 
 + 
 + 
 ===== 計算ノード ===== ===== 計算ノード =====
  
Line 21: Line 69:
  
   * http://meme.biology.tohoku.ac.jp/klabo-wiki/index.php?%B7%D7%BB%BB%B5%A1%2FNIS   * http://meme.biology.tohoku.ac.jp/klabo-wiki/index.php?%B7%D7%BB%BB%B5%A1%2FNIS
 +  * http://masahir0y.blogspot.com/2012/12/nis.html
  
自作クラスタ計算機/nisの基本設定.txt · Last modified: 2024/01/20 17:32 by koudai