Archive | July 2013

Building a CentOS 6.4 cluster

Base installation idea/instructions of the cluster: http://catsysadminblog.blogspot.com/2011/04/building-rhel-6centos-6-ha-cluster-for.html

After installing CentOS in each of the VMs with network adapters, install webmin: http://www.tecmint.com/install-webmin-web-based-system-administration-tool-for-rhel-centos-fedora/

To autostart webmin as a level 3 (normal run level) service:

chkconfig –level 3 webmin on

Note that chkconfig will only configure the service, not actually start it.  To start it before the next reboot:

service webmin start

And update /etc/sysconfig/iptables to allow port 10000 (same syntax as port 22 allow.)

Install ntp – clients will point to each vm in the cluster: http://www.rackspace.com/knowledge_center/article/using-ntp-to-sync-time

Get loginless ssh going: http://www.tecmint.com/ssh-passwordless-login-using-ssh-keygen-in-5-easy-steps/.  You may need to reset SELinux.  On the target, do a “restorecon -R -v /root/.ssh” – see http://blog.firedaemon.com/2011/07/27/passwordless-root-ssh-public-key-authentication-on-centos-6/

Then install DRBD.  Contrary to the DBRD website, this isn’t in CentOS’ extra repository.  Use El Repo’s repository instead: http://elrepo.org/tiki/tiki-index.php.  Info on DBRD here: http://www.drbd.org/.  You’ll need both drbd84-utils and kmod-drbd84.

Shorewall install on a Hyper-V Centos 6.4

Installation of redundant Shorewall firewalls w/ PPTP: (minimal instructions in reverse order, just for fun)

Need to comment out binaddr in radiusclient.conf: https://bugzilla.redhat.com/show_bug.cgi?format=multiple&id=906912

Need to “alias” radiusclient-ng to radiusclient: cd /etc/; ln -s /etc/radiusclient-ng radiusclient

Link to RADIUS client install: http://safesrv.net/setup-pptp-and-freeradius-on-centos-5/

Link to install instructions for PPTP server: https://www.digitalocean.com/community/articles/how-to-setup-your-own-vpn-with-pptp

but better instructions at: http://www.gaggl.com/2012/06/installing-poptop-pppd-vpn-serveron-centos-6/

Link to install instructions for Shorewall on Centos via RPM: http://lawrenceinfinity.blogspot.com/2012/02/shorewall-install-in-centos-server-1.html

Link to install Keepalived: http://manidba.wordpress.com/2011/11/10/keepalived-install-setup-and-usage/

Link to install Wemin: http://www.webmin.com/rpm.html

Link to setting default route in CentOS (DEFROUTE=no on local interfaces): http://xmodulo.com/2012/03/how-to-set-default-route-in-linux.html

Configuring a network adapter for CenOS under Hyper-V: http://blog.nlitee.com/virtualization/hyper-v/centos-6-on-hyper-v-network-adapter-doesnt-work/

Note: for V 3.4 of Integration Services, use RPM under RHEL63