ML115でPCクラスタ Systems: HP ML115 G1 OS: Debian GNU/Linux 4.0 AMD64 目的:rshを用いたOpenMPIによる並列計算機構築 サーバホスト、計算ホスト共に以下を1〜6までやる 1. OSインストール ・Debianインストール netinstディスクから、ベースシステムのみをインストールした ・/etc/apt/source.list からCDをはずす ・必要ならやる ・Wake on LAN 設定) ・SSHインストール) ・ユーザアカウント作成) 2. IPアドレス設定 /etc/network/interfaces を編集。 例) iface eth0 inet static address 192.168.0.2 network 192.168.0.0 netmask 255.255.255.0 broadcast 192.168.0.255 gateway 192.168.0.1 auto eth0 設定後、ネットワーク再起動 /etc/init.d/networking restart 3. コンパイラインストール # apt-get install gcc g77 make libc6-dev 4. rshインストール # apt-get install rsh-server /etc/hosts.equiv に全ホストを追加 ※もしrootでやもやるなら /root/.rhosts にホストを追加 # echo rsh > /etc/securetty 5. OpenMPIインストール # apt-get install openmpi-bin openmpi-dev 6. NFS設定 ユーザローカルディレクトリと、 OpenMPIの設定ディレクトリ(/etc/openmpi)をNFSで共有する ・サーバホストの場合 # apt-get install nfs-kernel-server /etc/exports を編集 ・計算ホストの場合 /etc/fstab を編集 7. OpenMPIの設定(サーバホストのみ) /etc/openmpi/openmpi-default-hostfile に計算に用いるホスト名を記述 /etc/openmpi/openmpi-mca-params.conf に、rshを使う設定を記述 # echo "pls_rsh_agent=rsh" >> /etc/openmpi/openmpi-mca-params.conf 8. 実行 $ mpiexec -n 8 ./hoge ※もし実行後↓と言われたら OpenIB on host tux was unable to find any HCAs. Another transport will be used instead, although this may result in lower performance. # echo "btl=^openib" >> /etc/openmpi/openmpi-mca-params.conf