2. :My name is yashar esmaildokht
I am Gnu/Linux Sys/net/sec Admin & Oracle
Dba
:my tel 09141100257
( ) : .my resume fa goo gl/oUQopW
: .Linkedin goo gl/Ljb9SF
:website
: .http //unixmen ir
: .http //oraclegeek ir
: .http //webmom ir
:my nick name royafash
20. با کلستر سازی پیادهbeowolf
: است مفروض زیر شرایط با سیستم چهار
Control :node
Hostname: command
: ۱.۱.۱.۱Private IP Address
۱Worker node :
Hostname: work1
: ۱.۱.۱.۲Private IP Address
۲Worker node :
Hostname: work2
: ۱.۱.۱.۳Private IP Address
۳Worker node :
Hostname: work3
: ۱.۱.۱.۴Private IP Address
Create a Cluster User
-- ۹۰۰adduser cluster uid
Create ssh
Log into to control node with ssh
su – cluster
-ssh keygen
- -ssh copy id localhost
exit
mpi
- ۲sudo apt get install mpich
Create a snapshot of the Control Node
22. / فایل داحل درetc/fstabمیکنیم اضافه خط آخر در را زیر موارد
command:/home/cluster /home/cluster nfs
su – cluster
ssh command
exit
nano ~/hosts
: میکنیم اضافه را زیر وعبارات
work1
work2
work3
: زیر دستور وسپس
mkdir ~/bin
------------------------Test the Cluster------------------------
سیستم در کار ادامهcontrol:
apt-get build-dep mpich2
زیر دستور با را دادم بهتون که زیپ فایلextract: کنید
tar xzvf mpich*
cd mpich*
./configure && make
su – cluster
cp /home/regular_user/mpich2-1.4.1/examples/cpi /home/cluster/bin
:::: تست ::::حال
mpiexec -f hosts -iface eth1 -n 12 /home/cluster/bin/cpi
دستور با : نکتهifconfigاینجا در )ما چیست شما شبکه دوایس مسیر کنید نگاهeth1کردیم انتخاب را (
باشه صورت این به خروجی باید
Process 6 of 12 is on work1
Process 2 of 12 is on work3
Process 9 of 12 is on work1
Process 11 of 12 is on work3
Process 0 of 12 is on work1
Process 5 of 12 is on work3
23. Process 8 of 12 is on work3
Process 3 of 12 is on work1
Process 7 of 12 is on work2
Process 10 of 12 is on work2
Process 4 of 12 is on work2
Process 1 of 12 is on work2
pi is approximately 3.1415926544231256, Error is 0.0000000008333325
wall clock time = 0.003485