°Ô½Ã¹° 51°Ç
   
[redhat5.11] rhcs ¿¹Á¦ (vip + FS + vsftp +ha lvm)
±Û¾´ÀÌ : theko ³¯Â¥ : 2016-04-16 (Åä) 17:45 Á¶È¸ : 1975
[root@billdb1 ~]# cat /etc/cluster/cluster.conf
<?xml version="1.0"?>
<cluster config_version="22" name="bill_clu">
        <fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="billdb1-hb" nodeid="1" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="fence01"/>
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="billdb2-hb" nodeid="2" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="fence02"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="3" two_node="0" quorum_dev_poll="32000" broadcast="yes"/>
        <fencedevices>
                <fencedevice agent="fence_ipmilan" delay="15" ipaddr="192.168.12.43" login="USERID" name="fence01" passwd="***"/>
                <fencedevice agent="fence_ipmilan" ipaddr="192.168.12.44" login="USERID" name="fence02" passwd="***"/>
        </fencedevices>
        <rm>
                <failoverdomains>
                        <failoverdomain name="FD_bill" nofailback="1" ordered="1">
                                <failoverdomainnode name="billdb1-hb" priority="1"/>
                                <failoverdomainnode name="billdb2-hb" priority="2"/>
                        </failoverdomain>
                </failoverdomains>

                <resources>
                        <ip address="172.17.142.113" sleeptime="10"/>
                        <lvm lv_name="" name="lvm_vg01" self_fence="1" vg_name="vg01"/>
                        <lvm lv_name="" name="lvm_vg03" self_fence="1" vg_name="vg03"/>
                        <lvm lv_name="" name="lvm_vg04" self_fence="1" vg_name="vg04"/>
                        <lvm lv_name="" name="lvm_vg05" self_fence="1" vg_name="vg05"/>
                        <fs device="/dev/vg01/lvol1" fsid="3311" fstype="ext3" mountpoint="/oracle" name="fs_oracle" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg01/lvol2" fsid="3312" fstype="ext3" mountpoint="/arch" name="fs_arch" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg01/lvol3" fsid="3313" fstype="ext3" mountpoint="/oradata01" name="fs_oradata01" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg01/lvol4" fsid="3314" fstype="ext3" mountpoint="/usrdata01" name="fs_usrdata01" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg01/lvol5" fsid="3315" fstype="ext3" mountpoint="/usrdata13" name="fs_usrdata13" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg03/lvol1" fsid="3316" fstype="ext3" mountpoint="/usrdata02" name="fs_usrdata02" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg03/lvol2" fsid="3317" fstype="ext3" mountpoint="/usrdata03" name="fs_usrdata03" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg03/lvol3" fsid="3318" fstype="ext3" mountpoint="/usrdata04" name="fs_usrdata04" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg03/lvol4" fsid="3319" fstype="ext3" mountpoint="/usrdata05" name="fs_usrdata05" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg04/lvol1" fsid="3320" fstype="ext3" mountpoint="/usrdata06" name="fs_usrdata06" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg04/lvol2" fsid="3321" fstype="ext3" mountpoint="/usrdata07" name="fs_usrdata07" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg04/lvol3" fsid="3322" fstype="ext3" mountpoint="/usrdata08" name="fs_usrdata08" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg04/lvol4" fsid="3323" fstype="ext3" mountpoint="/usrdata09" name="fs_usrdata09" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg05/lvol1" fsid="3324" fstype="ext3" mountpoint="/usrdata10" name="fs_usrdata10" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg05/lvol2" fsid="3325" fstype="ext3" mountpoint="/usrdata11" name="fs_usrdata11" self_fence="on" force_unmount="on"/>
                        <fs device="/dev/vg05/lvol3" fsid="3326" fstype="ext3" mountpoint="/usrdata12" name="fs_usrdata12" self_fence="on" force_unmount="on"/>
                        <script file="/etc/init.d/vsftpd" name="script_vsftpd"/>
                </resources>
                <service autostart="1" domain="FD_bill" name="svc_bill" recovery="relocate">
                        <ip ref="172.17.142.113"/>
                        <lvm ref="lvm_vg01"/>
                        <lvm ref="lvm_vg03"/>
                        <lvm ref="lvm_vg04"/>
                        <lvm ref="lvm_vg05"/>
                        <fs ref="fs_oracle"/>
                        <fs ref="fs_arch"/>
                        <fs ref="fs_oradata01"/>
                        <fs ref="fs_usrdata01"/>
                        <fs ref="fs_usrdata02"/>
                        <fs ref="fs_usrdata03"/>
                        <fs ref="fs_usrdata04"/>
                        <fs ref="fs_usrdata05"/>
                        <fs ref="fs_usrdata06"/>
                        <fs ref="fs_usrdata07"/>
                        <fs ref="fs_usrdata08"/>
                        <fs ref="fs_usrdata09"/>
                        <fs ref="fs_usrdata10"/>
                        <fs ref="fs_usrdata11"/>
                        <fs ref="fs_usrdata12"/>
                        <fs ref="fs_usrdata13"/>
                        <script ref="script_vsftpd"/>
                </service>
        </rm>
        <quorumd interval="10" label="billqdisk" tko="3" votes="1"/>
        <totem token="35000"/>
</cluster>

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com