Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

NOTE: CentOS Enterprise Linux is built from the Red Hat Enterprise Linux source code. Other than logo and name changes CentOS Enterprise Linux is compatible with the equivalent Red Hat version. This document applies equally to both Red Hat and CentOS Enterprise Linux.

Chapter 8. Initial LVS Configuration

After installing Red Hat Enterprise Linux, you must take some basic steps to set up both the LVS routers and the real servers in the LVS cluster. This chapter covers these initial steps in detail.

Note Note
 

The LVS router node that becomes the active node once the cluster is started is also referred to as the primary node. When configuring an LVS cluster, use the Piranha Configuration Tool on the primary node.

8.1. Configuring Services on the LVS Routers

The Red Hat Enterprise Linux installation program installs all of the components needed to set up an LVS cluster, but the appropriate services must be activated before configuring the cluster. For both LVS routers, set the appropriate services to start at boot time. There are three primary tools available for setting services to activate at boot time under Red Hat Enterprise Linux: the command line program chkconfig, the ncurses-based program ntsysv, and the graphical Services Configuration Tool. All of these tools require root access.

Tip Tip
 

To attain root access, open a shell prompt and type the following command followed by the root password:

su -

On the LVS routers, there are three services which need to be set to activate at boot time:

  • The piranha-gui service (primary node only)

  • The pulse service

  • The sshd service

If you are clustering multi-port services or using firewall marks, you must also enable the iptables service.

It is best to set these services to activate in both runlevel 3 and runlevel 5. To accomplish this using chkconfig, type the following command for each service:

/sbin/chkconfig --level 35 daemon on

In the above command, replace daemon with the name of the service you are activating. To get a list of services on the system as well as what runlevel they are set to activate on, issue the following command:

/sbin/chkconfig --list
Warning Warning
 

Turning any of the above services on using chkconfig does not actually start the daemon. To do this use the /sbin/service command. See Section 8.3 Starting the Piranha Configuration Tool Service for an example of how to use the /sbin/service command.

For more information on runlevels and configuring services with ntsysv and the Services Configuration Tool, refer to the chapter titled "Controlling Access to Services" in the Red Hat Enterprise Linux System Administration Guide.

 
 
  Published under the terms of the GNU General Public License Design by Interspire