The answer turned out to be simple: open mpi authenticated via ssh and then opened up tcp/ip sockets between the nodes. The firewalls on the compute nodes were set up to on
Edit: It should be pointed out that the fileserver's firewall allowed arbitrary connections, so that was why an mpi program run on it would behave differently than just running on the compute nodes.
实际上,这种状况说明ssh连接成功,但是mpi的连接失败,原因在于新安装的yellowdog linux的防火墙默认把tcp连接禁止了,这样mpi就无法成功。解决方法就是:
查看防火墙状态:service iptables status
暂时关闭防火墙:service iptables stop.
或者启动时禁止其启动:chkconfig --level 2345 iptables off
评论