HPC Clustering quickstart for Centos 6.8 and Clones
- 詳細內容
- 分類: Cluster
- 發佈: 2017-12-05, 週二 07:51
- 作者 Super User
- 點擊數: 28812
HPC Clustering quickstart for Centos 6.8 and Clones
master 10.0.0.1
node 10.0.0.100~199
yum -y update
yum -y install wget
vi /etc/hosts
10.0.0.1 master
10.0.0.100 node0000
~
10.0.0.199 node0199
/etc/init.d/iptables stop
chkconfig --levels 2345 iptables off
chkconfig --levels 2345 ip6tables off
chkconfig --levels 2345 nfs on
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
yum -y repolist
yum -y install yum-priorities
vi /etc/yum.repos.d/epel.repo
[epel]
priority=10
yum -y check-update
yum -y install autoconf automake openssl-devel elfutils-libelf-devel zlib-static nasm libtool uuid-devel rsync httpd
yum -y install perl-DBI perl-IO-Interface perl-Unix-Syslog perl-Net-ARP perl-CGI perl-Time-HiRes
mkdir /root/perceus
cd /root/perceus
wget http://perceus.org/Perceus/rpms/el65/perceus-1.9.5.el6-2782.x86_64.rpm
wget http://perceus.org/Perceus/rpms/el65/perceus-cgi-1.9.5.el6-2782.x86_64.rpm
wget http://perceus.org/Perceus/rpms/el65/perceus-debuginfo-1.9.5.el6-2782.x86_64.rpm
wget http://perceus.org/Perceus/rpms/el65/perceus-provisiond-1.9.5.el6-2782.x86_64.rpm
rpm -ivh *.rpm
cd /root
vi /etc/perceus/perceus.conf
master network device = eth0
vnfs transfer master = 10.0.0.1
vi /etc/perceus/defaults.conf
Node Name = node####
Vnfs Name = centos-6-1.x86_64
First Node = 1
perceus init
Do you wish to have Perceus do a complete system initialization (yes/no)? yes
What IP address should the node boot address range start at?
(192.168.10.192)> 10.0.0.100
What IP address should the node boot address range end at?
(192.168.10.254)> 10.0.0.199
What domain name should be appended to the DNS records for each entry in DNS?
This won't require you to specify the domain for DNS lookups, but it prevents
conflicts from other non-local hostnames.
(smc-multimedia.com)>
What device should the booting node direct its console output to? Typically
this would be set to 'tty0' unless you are monitoring your nodes over the
serial port. A typical serial port option might be 'ttyS0,115200'.
note: This is a global option which will affect all booting nodes.
(tty0)>
Creating Perceus ssh keys
Generating public/private dsa key pair.
Your identification has been saved in /root/.ssh/perceus.
Your public key has been saved in /root/.ssh/perceus.pub.
The key fingerprint is:
0e:08:4d:47:6b:2e:9c:5e:0a:b6:5a:e5:b4:92:31:ef Email住址會使用灌水程式保護機制。你需要啟動Javascript才能觀看它
The key's randomart image is:
+--[ DSA 1024]----+
| ..o |
| o . . |
| . . o |
| o = |
| = B + S |
| . % = o |
| = * . |
| o o |
|. E |
+-----------------+
Created Perceus ssh host keys
Created Perceus ssh rsa host keys
Created Perceus ssh dsa host keys
Perceus is now ready to begin provisioning your cluster!
(/etc/perceus/dnsmasq.conf)
/etc/init.d/perceus restart
chkconfig --levels 2345 perceus on
wget http://perceus.org/Perceus/vnfs/centos-6-1.x86_64.vnfs
perceus vnfs import centos-6-1.x86_64.vnfs
perceus node add 00:30:48:9e:71:30
(/etc/perceus/ethers)
perceus node set vnfs centos-6-1.x86_64 node0001
You could also add the capsule to the default VNFS assignment in /etc/perceus/defaults.conf.
Powering on nodes connected to the Perceus master network will now provision them with the assigned VNFS capsule. If you need to alter the VNFS capsule, mount it with:
# perceus vnfs mount <capsule>
Chroot to the mounted directory and make changes, or use 'yum --installroot' or 'rpm --root' flags to install binaries. When finished finalize changes and recompress the VNFS capsule:
# perceus vnfs umount <capsule>
perceus vnfs mount centos-6-1.x86_64
yum --installroot /mnt/centos-6-1.x86_64 -y install yum
chroot /mnt/centos-6-1.x86_64
yum -y update
yum -y groupinstall "Desktop" "Desktop Platform" "X Window System" "Fonts" "General Purpose Desktop"
chkconfig --levels 2345 iptables off
chkconfig --levels 2345 ip6tables off
chkconfig --levels 2345 exim off
chkconfig --levels 2345 firstboot off
yum -y install infiniband-diags perftest qperf opensm
chkconfig --levels 2345 rdma on
exit
perceus vnfs umount centos-6-1.x86_64