Cluster Installation Part 1: Installation of a masternode and setup of the netboot environment
EXERCISE DESCRIPTION:
The aim of this exercise is to install and configure the services needed to setup an unattended installation of a cluster.
The task
Each group of students is expected to configure the masternode, install missing packages and remove unwanted ones, configure the required services, and finally install the computing node.
The same cluster will be used for the second part of the lab (installation and configuration of a queue system based on maui + torque).
1st step: Remove unneeded services
[root@master ~]# chkconfig --list | grep `runlevel | awk '{print $2}'`:on
abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off
certmonger 0:off 1:off 2:off 3:on 4:on 5:on 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off
kdump 0:off 1:off 2:off 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mcelogd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@master ~]# service cups stop
Stopping cups: [ OK ]
[root@master ~]# chkconfig --del cups
[root@master ~]# service kdump stop
Stopping kdump: [ OK ]
[root@master ~]# chkconfig --del kdump
[root@master ~]# chkconfig --list | grep `runlevel | awk '{print $2}'`:on
abrt-ccpp 0:off 1:off 2:off 3:on 4:off 5:on 6:off
abrtd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
auditd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
blk-availability 0:off 1:on 2:on 3:on 4:on 5:on 6:off
certmonger 0:off 1:off 2:off 3:on 4:on 5:on 6:off
cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off
crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off
haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off
ip6tables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
irqbalance 0:off 1:off 2:off 3:on 4:on 5:on 6:off
lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off
mcelogd 0:off 1:off 2:off 3:on 4:off 5:on 6:off
mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off
messagebus 0:off 1:off 2:on 3:on 4:on 5:on 6:off
netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off
network 0:off 1:off 2:on 3:on 4:on 5:on 6:off
nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off
portreserve 0:off 1:off 2:on 3:on 4:on 5:on 6:off
postfix 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcbind 0:off 1:off 2:on 3:on 4:on 5:on 6:off
rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
rsyslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
sysstat 0:off 1:on 2:on 3:on 4:on 5:on 6:off
udev-post 0:off 1:on 2:on 3:on 4:on 5:on 6:off
vsftpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
2nd step: Configure the private network
[root@master ~]# more /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
#HWADDR=B4:B5:2F:AF:4D:BD
#TYPE=Ethernet
#UUID=12197d2c-34a7-42b3-ae04-cdfb00e7ef25
#ONBOOT=no
#NM_CONTROLLED=yes
#BOOTPROTO=dhcp
IPADDR=192.168.17.11
BROADCAST=192.168.17.255
NETMASK=255.255.255.0
GATEWAY=192.168.17.1
BOOTPROTO=static
ONBOOT=yes
[root@master ~]# ifup eth0
[root@master network-scripts]# iptables -n -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT icmp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain FORWARD (policy ACCEPT)
target prot opt source destination
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
3rd step: Setup the local package repository and install required packages
Cek CentOS yang digunakan master node :
[root@master ~]# cat /etc/redhat-release
CentOS release 6.4 (Final)
Jadi, master menggunaan DVD CentOS 6.4 x86_64. Copy isi DVD ini ke folder /distro
Insert DVD to Master Node DVD Driver. Mount DVD as :
[root@master /]# mount /dev/cdrom /mnt
mount: block device /dev/sr0 is write-protected, mounting read-only
Make folder /distro
# mkdir /distro
Copy all DVD from /mnt to /distro
# mc
[root@master distro]# ln -s CentOS-6.4-x86_64 centos
[root@master distro]# ls
centos images RPM-GPG-KEY-CentOS-6
CentOS_BuildTag isolinux RPM-GPG-KEY-CentOS-Debug-6
EFI Packages RPM-GPG-KEY-CentOS-Security-6
EULA RELEASE-NOTES-en-US.html RPM-GPG-KEY-CentOS-Testing-6
GPL repodata TRANS.TBL
[root@master ~]# cd /etc/yum.repos.d/
[root@master yum.repos.d]# ls -l
total 16
-rw-r--r--. 1 root root 1926 Feb 25 2013 CentOS-Base.repo
-rw-r--r--. 1 root root 638 Feb 25 2013 CentOS-Debuginfo.repo
-rw-r--r--. 1 root root 630 Feb 25 2013 CentOS-Media.repo
-rw-r--r--. 1 root root 3664 Feb 25 2013 CentOS-Vault.repo
[root@master yum.repos.d]# rename "repo" "repo.disabled" ./*.repo
[root@master yum.repos.d]# ls -l
total 16
-rw-r--r--. 1 root root 1926 Feb 25 2013 CentOS-Base.repo.disabled
-rw-r--r--. 1 root root 638 Feb 25 2013 CentOS-Debuginfo.repo.disabled
-rw-r--r--. 1 root root 630 Feb 25 2013 CentOS-Media.repo.disabled
-rw-r--r--. 1 root root 3664 Feb 25 2013 CentOS-Vault.repo.disabled
[root@master yum.repos.d]# cp -a ./CentOS-Media.repo.disabled ./local.repo
[root@master yum.repos.d]# ls -l
total 20
-rw-r--r--. 1 root root 1926 Feb 25 2013 CentOS-Base.repo.disabled
-rw-r--r--. 1 root root 638 Feb 25 2013 CentOS-Debuginfo.repo.disabled
-rw-r--r--. 1 root root 630 Feb 25 2013 CentOS-Media.repo.disabled
-rw-r--r--. 1 root root 3664 Feb 25 2013 CentOS-Vault.repo.disabled
-rw-r--r--. 1 root root 630 Feb 25 2013 local.repo
[root@master yum.repos.d]# more ./local.repo
# CentOS-Media.repo
#
# This repo can be used with mounted DVD media, verify the mount point for
# CentOS-6. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c6-media [command]
[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Setelah diedit sesuai langkah ke 3
[root@master yum.repos.d]# more ./local.repo
[base]
name=CentOS-$releasever - Local
baseurl=file:///distro/centos/
gpgcheck=0
enabled=1
No comments:
Post a Comment