{"id":2627,"date":"2013-11-04T16:10:16","date_gmt":"2013-11-04T08:10:16","guid":{"rendered":"http:\/\/rmohan.com\/?p=2627"},"modified":"2013-11-04T22:12:29","modified_gmt":"2013-11-04T14:12:29","slug":"redhat-cluster","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=2627","title":{"rendered":"Redhat cluster for Apache"},"content":{"rendered":"<p># Do not remove the following line, or various programs<br \/>\n# that require network functionality will fail.<br \/>\n127.0.0.1               localhost.localdomain localhost<br \/>\n::1             localhost6.localdomain6 localhost6<br \/>\n192.168.1.60 cluster1.rmohan.com cluster1<br \/>\n192.168.1.61 cluster2.rmohan.com cluster2<br \/>\n192.168.1.62 cluster3.rmohan.com cluster3<br \/>\n192.168.1.50 storage.rmohan.com  storage<\/p>\n<p>\/etc\/init.d\/iptables stop<br \/>\n iptables-save > \/etc\/sysconfig\/iptables<\/p>\n<p>SELINUX=disabled<\/p>\n<p>yum update<\/p>\n<p>yum install ricci<br \/>\nyum groupinstall Clustering<\/p>\n<p>yum install -y iscsi-initiator-utils<\/p>\n<p>yum install -y httpd*<\/p>\n<p>cluster1:  yum install luci<br \/>\n\t   chkconfig luci on<br \/>\n\t   chkconfig &#8211;list luci<br \/>\n\t   service luci start<\/p>\n<p>\t  chkconfig ricci on<br \/>\n\t  chkconfig &#8211;list ricci<br \/>\n\t   service ricci start <\/p>\n<p>\t  chkconfig iscsi on<br \/>\n\t  service iscsi start<br \/>\n\t chkconfig &#8211;level 345 httpd on<br \/>\n  \t service httpd start<\/p>\n<p>\/usr\/sbin\/luci_admin init<br \/>\n\t  service luci restart<br \/>\n\t   chkconfig luci on<br \/>\n\thttps:\/\/192.168.1.60:8084<br \/>\n          admin<br \/>\n\t   admin123<\/p>\n<p>iscsiadm -m discovery -t sendtargets -p storage.rmohan.com<\/p>\n<p>iscsiadm &#8211; mode discovery &#8211; type sendtargets &#8211; portal storage.rmohan.com<\/p>\n<p>iscsiadm &#8211;mode discovery &#8211;type sendtargets &#8211;portal storage.rmohan.com<\/p>\n<p>\tchkconfig iscsi on<br \/>\n \tservice iscsi start<\/p>\n<p>[root@storage ~]# cat \/etc\/initiators.deny<\/p>\n<p># PLEASE DO NOT MODIFY THIS CONFIGURATION FILE!<br \/>\n#       This configuration file was autogenerated<br \/>\n#       by Openfiler. Any manual changes will be overwritten<br \/>\n#       Generated at: Sat Sep 22 23:19:38 SGT 2012<\/p>\n<p>#iqn.2006-01.com.openfiler:tsn.34ee3fce49f8 ALL<\/p>\n<p>#iqn.2006-01.com.openfiler:tsn.218fac7efc66 ALL<br \/>\nfilesystem ALL<\/p>\n<p># End of Openfiler configuration<\/p>\n<p> \/etc\/init.d\/iscsi restart<\/p>\n<p>cluster1<\/p>\n<p>fdisk \/dev\/sdb<br \/>\npartprobe \/dev\/sdb<br \/>\nmkfs.ext3 \/dev\/sdb1<br \/>\nmount \/dev\/sdb1 \/var\/www\/html\/<\/p>\n<p>[root@cluster1 ~]# cat \/etc\/fstab<br \/>\n\/dev\/VolGroup00\/LogVol00 \/                       ext3    defaults        1 1<br \/>\nLABEL=\/boot             \/boot                   ext3    defaults        1 2<br \/>\ntmpfs                   \/dev\/shm                tmpfs   defaults        0 0<br \/>\ndevpts                  \/dev\/pts                devpts  gid=5,mode=620  0 0<br \/>\nsysfs                   \/sys                    sysfs   defaults        0 0<br \/>\nproc                    \/proc                   proc    defaults        0 0<br \/>\n\/dev\/VolGroup00\/LogVol01 swap                    swap    defaults        0 0<br \/>\n\/dev\/sdb1                \/var\/www\/html           ext3    defaults        1 1<\/p>\n<p>cluster2  yum install -y ricci httpd* <\/p>\n<p>\t  yum groupinstall Clustering<\/p>\n<p>\t  service ricci start<\/p>\n<p>\t   chkconfig ricci on<\/p>\n<p>\t   chkconfig iscsi on<\/p>\n<p>\t   service iscsi start<\/p>\n<p>\t iscsiadm -m discovery -t sendtargets -p storage.rmohan.com<\/p>\n<p>\t service iscsi restart<\/p>\n<p>\tmount \/dev\/sdb1 \/var\/www\/html\/<\/p>\n<p>\tadd in fstab <\/p>\n<p> \t\/dev\/sdb1               \/var\/www\/html\/          ext3    defaults        1 2<\/p>\n<p>cluster3<br \/>\n         yum install -y ricci httpd*<\/p>\n<p>        yum groupinstall Clustering<\/p>\n<p>        service ricci start<\/p>\n<p>        chkconfig ricci on<\/p>\n<p>        iscsiadm -m discovery -t sendtargets -p storage.rmohan.com<\/p>\n<p>      service iscsi restart<\/p>\n<p>\tmount \/dev\/sdb1 \/var\/www\/html\/<\/p>\n<p>\t\/dev\/sdb1               \/var\/www\/html\/          ext3    defaults        1 2<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 192.168.1.60 cluster1.rmohan.com cluster1 192.168.1.61 cluster2.rmohan.com cluster2 192.168.1.62 cluster3.rmohan.com cluster3 192.168.1.50 storage.rmohan.com storage<\/p>\n<p>\/etc\/init.d\/iptables stop iptables-save > \/etc\/sysconfig\/iptables<\/p>\n<p>SELINUX=disabled<\/p>\n<p>yum update<\/p>\n<p>yum install ricci yum groupinstall Clustering<\/p>\n<p>yum install -y iscsi-initiator-utils<\/p>\n<p>yum install [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2627"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2627"}],"version-history":[{"count":2,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2627\/revisions"}],"predecessor-version":[{"id":2629,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/2627\/revisions\/2629"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2627"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2627"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2627"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}