手动搭建HPC(高性能计算)



<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强> <强> <强>

<强>

<强>

<强> 1。 <强> HPC <强>

系统使用高性能网络互连,比如那些来自或的网络互连。基本的网络拓扑和组织可以使用一个简单的

<强> <强> <强>

<强>


,,,HPC



<强> <强> <强>

mkdir - p/root/rootUser

mkdir - p/home/

mkdir - p/home/hpc (hpc)

Setp1。exp

# !/bin/bash

,

rm - fr/root/. ssh

,

/usr/bin/expect<& lt; EOF

setforce_conservative 0,,设置为1 toforce保守模式即使

,,,,,,,,,,,,,,,,,,,,,;#脚本不是运行conservativelyoriginally

如果{\ $ force_conservative} {

,,设置send_slow {1。1}

,,proc发送{忽略参数}{

,,,,,,,,,,,睡眠1。

,,,,,,,,,,,exp_send - s - arg \ $

,,}

}

,

settimeout 1

spawnssh-keygen - t dsa match_max100000

expect-exact”输入文件中保存的关键(/root/. ssh/id_dsa): "

发送——" \ r "

expect-exact”输入密码(空没有密码):”

发送——" \ r "

expect-exact“再次输入相同的密码:”

发送——" \ r "

expecteof

EOF

,

cd/root/. ssh

catid_dsa。酒吧在祝辞authorized_keys

chmod 600 authorized_keys

,

步骤2。exp

# !/bin/bash

,

if ($ # - ne 1)

然后

{

,,回声的用法:步骤1。exp root_password '

,,退出

}

fi;

,

ROOTPASSWD=1美元

,

rm - fr/root/. ssh/known_hosts

,

#为((节点=1;node<=10;节点+ +))

美元nodein(猫hostfile)

/usr/bin/expect<& lt; EOF

,

#设置达到迫使保守模式即使

setforce_conservative 0,,

,,,,,,,,,,,,,,,,,,,,,;#脚本不是运行conservativelyoriginally

如果{\ $ force_conservative} {

,,设置send_slow {1。1}

,,proc发送{忽略参数}{

,,,,,,,,,,,睡眠1。

,,,,,,,,,,,exp_send - s - arg \ $

,,}

}

,

,

settimeout 1

生成ssh ${节点}主机名

match_max100000

expect-exact“你确定你要继续连接(是/否)?"

发送——“是的\ r "

expect-exact " ${节点}' s密码:"

发送——“$ {ROOTPASSWD} \ r "

expecteof

EOF

;

,

步骤3。exp

# !/bin/bash

,

if ($ # - ne 1)

然后

{

,,回声的用法:将发髻。exp root_password的;

,,退出1;

}

fi;

,

ROOTPASSWORD=1美元

,

#为((节点=1;node<=10;节点+ +))

美元nodein(猫hostfile)

/usr/bin/expect<& lt; EOF

,

setforce_conservative 0,,设置为1 toforce保守模式即使

,,,,,,,,,,,,,,,,,,,,,;#脚本不是运行conservativelyoriginally

如果{\ $ force_conservative} {

,,设置send_slow {1。1}

,,proc发送{忽略参数}{

,,,,,,,,,,,睡眠1。

,,,,,,,,,,,exp_send - s - arg \ $

,,}}

,

,

settimeout 1

产卵scp-rp/root/.ssh ${节点}:/根

match_max100000

expect-exact”root@ ${节点}' s密码:"

发送——“$ {ROOTPASSWORD} \ r "

expecteof

EOF

做,,,,,

,,null

手动搭建HPC(高性能计算)