Red Hat Training

A Red Hat training course is available for Red Hat Enterprise Linux

2장. LVS 초기 설정

Red Hat Enterprise Linux를 설치한 후에, LVS 라우터 및 실제 서버를 설정하기 위해 기본적인 설정 단계를 따르셔야 합니다. 다음 부분에서는 초기 설정 단계에 대해 자세히 설명합니다.

참고

LVS를 시작하여 활성화 노드가된 LVS 라우터 노드를 주 노드라고 합니다. LVS를 설정할 때 주 노드에서 Piranha Configuration Tool를 사용합니다.

2.1. LVS 라우터 상의 설정 서비스

Red Hat Enterprise Linux 설치 프로그램으로 LVS 설정에 필요한 모든 요소를 설치할 수 있지만, LVS를 설정하기 전에 필요한 서비스를 활성화시켜야 합니다. LVS 라우터에 필요한 부팅시 시작할 서비스를 설정합니다. Red Hat Enterprise Linux에서 부팅시 활성화할 세 개의 서비스 설정 도구가 있습니다: 명령행 프로그램 chkconfig, ncurses 기반 프로그램 ntsysv, 그래픽 Services Configuration Tool. 이러한 도구를 사용하시려면 root 액세스가 필요합니다.

참고

root 액세스를 얻으려면 쉘 프롬프트를 열고 su - 명령 뒤에 root 암호를 입력합니다. 예:
$ su - root password
LVS 라우터에서 부팅시 활성화되도록 설정해야 할 세 가지의 서비스가 있습니다:
  • piranha-gui 서비스 (주 노드에서만)
  • pulse 서비스
  • sshd 서비스
다중 포트 서비스를 클러스터링하거나 또는 방화벽 표시 기능을 사용할 경우, iptables 서비스를 활성화해야 합니다.
이러한 서비스가 런레벨 3과 5에서 활성화되도록 설정하는 것이 좋습니다. 이를 위해 chkconfig를 사용하며 각각의 서비스에 대해 다음과 같은 명령을 입력합니다:
/sbin/chkconfig --level 35 daemon on
위의 명령에서, daemon을 활성화하려는 서비스의 이름으로 대체합니다. 시스템 상의 서비스 목록을 얻고, 어떤 런레벨에서 활성화되도록 설정되었는지를 알려면 다음과 같은 명령을 실행합니다:
/sbin/chkconfig --list

주의

Turning any of the above services on using chkconfig does not actually start the daemon. To do this use the /sbin/service command. See 2.3절. “Piranha Configuration Tool 서비스 시작 ” 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.