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.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: