메뉴 건너뛰기

XEDITION

Linux

9.2.3. Examples of Three-Node and Two-Node Configurations

Refer to the examples that follow for comparison between a three-node and a two-node configuration.

Example 9.1. Three-node Cluster Configuration

<cluster name="mycluster" config_version="3">
   <cman/>
   <clusternodes>
     <clusternode name="node-01.example.com" nodeid="1">
         <fence>
            <method name="APC">
              <device name="apc" port="1"/>
             </method>
         </fence>
     </clusternode>
     <clusternode name="node-02.example.com" nodeid="2">
         <fence>
            <method name="APC">
              <device name="apc" port="2"/>
            </method>
         </fence>
     </clusternode>
     <clusternode name="node-03.example.com" nodeid="3">
         <fence>
            <method name="APC">
              <device name="apc" port="3"/>
            </method>
         </fence>
     </clusternode>
   </clusternodes>
   <fencedevices>
         <fencedevice agent="fence_apc" ipaddr="apc_ip_example" login="login_example" name="apc" passwd="password_example"/>
   </fencedevices>
   <rm>
       <failoverdomains>
           <failoverdomain name="example_pri" nofailback="0" ordered="1" restricted="0">
               <failoverdomainnode name="node-01.example.com" priority="1"/>
               <failoverdomainnode name="node-02.example.com" priority="2"/>
               <failoverdomainnode name="node-03.example.com" priority="3"/>
           </failoverdomain>
       </failoverdomains>
       <resources>
           <ip address="127.143.131.100" monitor_link="yes" sleeptime="10">
              <fs name="web_fs" device="/dev/sdd2" mountpoint="/var/www" fstype="ext3">
                 <apache config_file="conf/httpd.conf" name="example_server" server_root="/etc/httpd" shutdown_wait="0"/>
              </fs>
           </ip>
       </resources>
       <service autostart="0" domain="example_pri" exclusive="0" name="example_apache" recovery="relocate">
           <fs ref="web_fs"/>
           <ip ref="127.143.131.100"/>
           <apache ref="example_server"/>
       </service>
       <service autostart="0" domain="example_pri" exclusive="0" name="example_apache2" recovery="relocate">
           <fs name="web_fs2" device="/dev/sdd3" mountpoint="/var/www" fstype="ext3"/>
           <ip address="127.143.131.101" monitor_link="yes" sleeptime="10"/>
           <apache config_file="conf/httpd.conf" name="example_server2" server_root="/etc/httpd" shutdown_wait="0"/>
       </service>
   </rm>
</cluster>

Example 9.2. Two-node Cluster Configuration

<cluster name="mycluster" config_version="3">
   <cman two_node="1" expected_votes="1"/>
   <clusternodes>
     <clusternode name="node-01.example.com" nodeid="1">
         <fence>
            <method name="APC">
              <device name="apc" port="1"/>
             </method>
         </fence>
     </clusternode>
     <clusternode name="node-02.example.com" nodeid="2">
         <fence>
            <method name="APC">
              <device name="apc" port="2"/>
            </method>
         </fence>
   </clusternodes>
   <fencedevices>
         <fencedevice agent="fence_apc" ipaddr="apc_ip_example" login="login_example" name="apc" passwd="password_example"/>
   </fencedevices>
   <rm>
       <failoverdomains>
           <failoverdomain name="example_pri" nofailback="0" ordered="1" restricted="0">
               <failoverdomainnode name="node-01.example.com" priority="1"/>
               <failoverdomainnode name="node-02.example.com" priority="2"/>
           </failoverdomain>
       </failoverdomains>
       <resources>
           <ip address="127.143.131.100" monitor_link="yes" sleeptime="10">
              <fs name="web_fs" device="/dev/sdd2" mountpoint="/var/www" fstype="ext3">
                 <apache config_file="conf/httpd.conf" name="example_server" server_root="/etc/httpd" shutdown_wait="0"/>
              </fs>
           </ip>
       </resources>
       <service autostart="0" domain="example_pri" exclusive="0" name="example_apache" recovery="relocate">
           <fs ref="web_fs"/>
           <ip ref="127.143.131.100"/>
           <apache ref="example_server"/>
       </service>
       <service autostart="0" domain="example_pri" exclusive="0" name="example_apache2" recovery="relocate">
           <fs name="web_fs2" device="/dev/sdd3" mountpoint="/var/www" fstype="ext3"/>
           <ip address="127.143.131.101" monitor_link="yes" sleeptime="10"/>
           <apache config_file="conf/httpd.conf" name="example_server2" server_root="/etc/httpd" shutdown_wait="0"/>
       </service>
   </rm>
</cluster>
번호 제목 글쓴이 날짜 조회 수
63 [OS/LINUX] Authentication token manipulation error 김병수 2020.03.13 1
62 [OS/LINUX] APACHE METHOD 제한(GET,POST 등) 김병수 2019.11.21 10
61 [OS/LINUX] SSH 로그인 차단 및 허용 설정 김병수 2019.10.04 195
60 [OS/Linux] vsftp, sftp config on CentOS7 김병수 2019.10.04 42
59 [APPS / WebToB] 특정 IP 및 대역 허용/차단 김병수 2019.10.03 323
» [OS/LINUX] CentOS5,6 Cluster.conf 파일 (node 2~3개 구성) 김병수 2019.10.03 27
57 tomcat 사용법 김병수 2019.10.03 64
56 명령어를 이용하여 할 수 있는 것 들 김병수 2019.10.03 20
55 프로세스 관리하는 스크립트 김병수 2019.10.03 215
54 [Ubuntu] Network 설정 김병수 2019.10.03 24
53 [Ubuntu] ufw 방화벽 알아보기 김병수 2019.10.03 118
52 [Linux] SSH 암호 생략하고 접속하기. - ssh-copy-id 김병수 2019.10.03 46
51 [LINUX / NTP] NTP 시간 동기화 방법 김병수 2019.10.03 22
50 [OS / LINUX] 리눅스 시스템 최적화 튜닝 file 김병수 2019.10.03 30
49 [LINUX / Nginx] Nginx error "client intended to send too large body" [SOLVED] 김병수 2019.10.03 132
48 [LINUX / Nginx] nginx 사용에 있어 sysctl 튜닝 김병수 2019.10.03 26
47 [GlusterFS] GlusterFS 관련 자료 김병수 2019.10.03 21
46 [LINUX] Processes 설명 김병수 2019.10.03 29
45 [LINUX / HAproxy] 설치와 설정 김병수 2019.10.03 25
44 [LINUX] 파일 이름이나 폴더가 필요한 패키지 조회하기_YUM 김병수 2019.10.03 28
위로