Difference between revisions of "Basic Node Setup"

From DHVLab

Line 1: Line 1:
 +
[[Category:oVirt Engine Cluster]]
 
== Initial Setup ==
 
== Initial Setup ==
 
'''follow the following instructions on each node of the Ovirt Engine Cluster servers:'''<br/>
 
'''follow the following instructions on each node of the Ovirt Engine Cluster servers:'''<br/>

Revision as of 12:46, 8 September 2016

Initial Setup

follow the following instructions on each node of the Ovirt Engine Cluster servers:
Install CentOS 7.2

Partitioning

Partitioning ovirt engine cluster.png
The disk named virt is going to host the VM image of the VM that contains the OVirt Engine. This device is passed directly to the ovirt-engine KVM.
The sync disk is used for different configuration files that are shared between the cluster nodes. Examples are the configuration of the openVPN cluster resource.

Add repositories

#add epel repository 
sudo yum install epel-release


#add bacula repository for backups
cat << EOT >> /etc/yum.repos.d/bacula.repo
[epel-bacula7]
name=Bacula
baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-$releasever/$basearch/
enabled=1
skip_if_unavailable=1
gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula7/RPM-GPG-KEY-slaanesh
gpgcheck=1

[epel-bacula7-source]
name=Bacula - Source
baseurl=http://repos.fedorapeople.org/repos/slaanesh/bacula7/epel-$releasever/SRPMS
enabled=0
skip_if_unavailable=1
gpgkey=http://repos.fedorapeople.org/repos/slaanesh/bacula7/RPM-GPG-KEY-slaanesh
gpgcheck=1
EOT

Software Installation

Download and execute script that installs required packages

wget -O - https://github.com/linuskohl/DHVLab/raw/master/scripts/ovirt-engine-cluster/install_packages.sh | bash

Network Settings

Create the following setup using the network configuration files.

Networking schema cluster.png


General settings

#disable the NetworkManager and switch to manual configuration
systemctl stop Networkmanager
systemctl disable NetworkManager
systemctl mask NetworkManager
chkconfig network on

#disable firewalld for switching to iptables
systemctl stop firewalld
systemctl disable firewalld
systemctl mask firewalld

#disable SELinux
nano -w /etc/selinux/config
#change line SELINUX=enabled to disabled
#write with ctrl+o and ctrl+x

#configure NTP client
cat << EOT >> /etc/ntp.conf
server your.ntp.server1
server your.ntp.server2
interface ignore wildcard
interface listen 127.0.0.1
interface listen ::1
EOT

#add cron job
echo "30 * * * * root /usr/sbin/ntpd -q -u ntp:ntp" >> /etc/cron.d/ntpd
systemctl start ntpd
systemctl enable ntpd

#setup resolve.conf
cat << EOT > /etc/resolv.conf
search YOUR_DOMAIN
nameserver YOUR_PRIMARY_NS
nameserver YOUR_SECONDARY_NS
nameserver 8.8.8.8
EOT

#setup hosts configuration file
wget -O ./hosts_file https://raw.githubusercontent.com/linuskohl/DHVLab/master/configfiles/ovirt-engine-cluster/etc/hosts
#adapt using nano
nano -w ./hosts_file
#overwrite hosts file
sudo mv ./hosts_file /etc/hosts

Continue with setting up the cluster and resources
Cluster Setup