User Tools

Site Tools


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

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
自作クラスタ計算機:slurm_v25の基本設定 [2026/07/09 03:26] – [認証鍵の設置] koudai自作クラスタ計算機:slurm_v25の基本設定 [2026/07/11 04:15] (current) – [管理] koudai
Line 250: Line 250:
 </code>  </code> 
  
-/ホームディレクトリはNFSで共有されているはずなので、各計算ノードで鍵を設置し、権限設定をします。+各計算ノードで鍵を設置権限設定をします。 
 +(/etc/exports で /home に no_root_squash オプションが入っていることを確認してください)
  
 <code> <code>
-$ sudo mv /tmp/slurm.key /etc/slurm/slurm.key+$ sudo cp slurm.key /etc/slurm/slurm.key
 $ sudo chown slurm:slurm /etc/slurm/slurm.key $ sudo chown slurm:slurm /etc/slurm/slurm.key
 $ sudo chmod 600 /etc/slurm/slurm.key $ sudo chmod 600 /etc/slurm/slurm.key
 </code> </code>
  
 +NFSでno_root_squashを使いたくない場合は、いったん鍵をscpで各計算ノードの/tmpディレクトリに送り込んで、そこから/etc/slurm/にコピーする方法もあります。
  
  
Line 275: Line 276:
 [Service] [Service]
 ExecStart= ExecStart=
-ExecStart=/usr/sbin/slurmd --systemd --conf-server head+ExecStart=/usr/sbin/slurmd --systemd --conf-server 192.168.0.1
 </file> </file>
  
Line 315: Line 316:
 <code> <code>
 $ sudo scontrol reconfigure $ sudo scontrol reconfigure
-$ sudo scontrol update NodeName=node[11-30] State=RESUME   # 計算ノードに設定が反映されない場合+</code> 
 + 
 +ノードの停止と再開(OSのアップデートなど、ノードでなにか作業するときはノードを一旦停止させてください) 
 +<code> 
 +$ sudo scontrol update nodename=node[11-30] state=drain    # 停止 
 +$ sudo scontrol update nodename=node[11-30] state=resume   # 再開
 </code> </code>
  
自作クラスタ計算機/slurm_v25の基本設定.1783535207.txt.gz · Last modified: 2026/07/09 03:26 by koudai