Posts

Showing posts from September, 2018

Squid Proxy Server with Clustering using Corosync, Pacemaker and PCS

Aim:  Set up a squid proxy server in clustered environment using pacemaker, corosync and PCS. You can use this for other cluster setups like Httpd also. Requirements: Get two servers with similar OS and configs. My setup is on CentOS 7.4 minimal install Squid on node1 - xx.xx.xx.80 Squid on node2 - xx.xx.xx.137 Cluster IP1 : xx.xx.xx.89 Cluster IP2 : xx.xx.xx.142 Steps 1 to 9 to be run on all cluster servers - node1, node2 1) Install the corosync, pacemaker and pcs # yum install -y corosync pcs pacemaker 2) Disable selinux nano /etc/sysconfig/selinux and change it to disabledas below SELINUX=disabled 3) Add required firewall rules to permit all required connections. firewall-cmd --permanent --zone=internal --change-interface=ifcfg-ens160 //change the nic in to public to internal zone firewall-cmd --zone=internal --add-service=ssh --permanent firewall-cmd --zone=internal --add-service=http --permanent firewall-cmd --zone=internal --add-service=https ...

P2V Utility & Import with OVM 3.4 ISO

Image
Aim:   With the below steps you can import a physical machine to a virtual machine hosted in Oracle VM. Requirements:   Physical host going to hold the imported VM with P2V utility required to have enough RAM and CPU for the hosted application on machine to be imported  Physical host going to hold the imported VM with P2V utility required to have same and above free disk space available as the imported machine  Keep enough backup of the data on physical host to be imported   Steps:   Insert installation disk of OVM 3.4 (any subversion is ok to go) in the concerned machine and boot it from CD Once boots up, enter “p2v” at the boot prompt   When prompted for IP configuration add the guest machine (to be created) IP configuration. It should be same IP address as physical server that is to be imported (from this IP http server will start) Select the disks to be imported Enter new VM name and CPU, RAM details  A secure ...