Posts

Showing posts from July, 2015

Corosync Pacemaker Haproxy Cluster

        Corosync Pacemaker Haproxy Cluster Document. I have using RHEL6.4 64 Bit Machines IP 192.168.0.100  Name Node1.example.com IP 192.168.0.101  Name Node2.example.com IP 192.168.0.200 (Virtual IP) 1. installing require Packages both Node ( Node1 & Node2 ) # yum install haproxy corosync pacemaker openssh-clients http* -y # wget -c http://download.opensuse.org/repositories/network:/ha-clustering:/Stable/CentOS_CentOS-6/x86_64/crmsh-2.1-1.6.x86_64.rpm # wget -c http://pkgs.repoforge.org/pssh/pssh-2.0-1.el6.rf.noarch.rpm # rpm -ivh pssh-2.0-1.el6.rf.noarch.rpm # yum  install crmsh-2.1-1.6.x86_64.rpm 2. Configure host file both Node ( Node1 & Node2 ) # vim /etc/hosts ( NODE1 Machine) 192.168.0.100  Node1.example.com  Node1 192.168.0.101  Node2.example.com  Node2 # vim /etc/hosts  ( NODE2 Machine ) 192.168.0.100  Node1.example.com  Node1 192.168.0.101  Node2.example.com  Node2 3. Configure httpd for testing  both Node ( Node1 & Node2 ) # vim /etc/httpd/conf/httpd.conf (

Multiple Mysql Instances On Same Machine

                Multiple Mysql Instances On Same Machine I am using RHEL5.8 64 Bit Machine and Using mysql (mysql-5.0.77-4.el5_6.6) We Need 2 Instances in Same Machine. [root@localhost ~]# yum install mysql* -y [root@localhost ~]# rpm -qa | grep -i mysql php-mysql-5.1.6-32.el5 perl-DBD-MySQL-3.0007-2.el5 mysql-5.0.77-4.el5_6.6 mysql-server-5.0.77-4.el5_6.6 [root@localhost ~]# /etc/init.d/mysqld restart [root@localhost ~]# mysqladmin password "Password" [root@localhost ~]# mysql -u root -p Enter password: Welcome to the MySQL monitor.  Commands end with ; or \g. Your MySQL connection id is 15 Server version: 5.0.77 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> exit [root@localhost ~]# netstat  -tulnp | grep mysql tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN      8284/mysqld [root@localhost ~]# cp /etc/init.d/mysqld /etc/init.d/mysqld3307 [root@localhost ~]# ll /etc/init