리눅스

Total 331
Today 0
profile_image
슈퍼아이피
18-04-10 18:25 0개 15회
설치문서
RHCS5 구성 예시

 

# ISO 마운트

 mkdir iso

 mount -t iso9660 -o loop /root/rhel-server-5.11-x86_64-dvd.iso /root/iso

 

 

# yum groupinstall Clustering

# yum groupinstall "Cluster Storage"

 

 

#vi /etc/hosts

192.168.128.51  rhcs01

192.168.128.52  rhcs02

 

##hb

10.10.10.51              rhcs01.cluster

10.10.10.52              rhcs02.cluster

 

클러스터 호스트의 등록은  heartbeat용으로 등록
/etc/cluster/cluster.conf

<?xml version="1.0"?>

<cluster alias="rhcs-cluster" config_version="3" name="rhcs-cluster">

        <fence_daemon post_fail_delay="0" post_join_delay="3"/>

        <clusternodes>

                <clusternode name="rhcs01.cluster" nodeid="1" votes="1">

                        <fence/>

                </clusternode>

                <clusternode name="rhcs02.cluster" nodeid="2" votes="1">

                        <fence/>

                </clusternode>

        </clusternodes>

        <cman expected_votes="1" two_node="1"/>

        <fencedevices/>

        <rm>

                <failoverdomains/>

                <resources/>

        </rm>

</cluster>

 

/usr/sbin/luci_admin init  //패스위드정의

/etc/init.d/luci start


passwd ricci

 

Service ricci start

 

chkconfig cman on

chkconfig rgmanager on

chkconfig modclusterd on

 

service  cman start

service rgmanager start

service modclusterd start

 

system-config-cluster실행하여구성

 

- acpid OFF

chkconfig --level 2345 acpid off

/etc/init.d/acpid stop

 

- 디스크를 GFS2 형식으로 포맷 (포맷은 한 노드에서만 하면 된다.)

# mkfs.gfs2 -j 2 -p lock_dlm -t rhcs-cluster:GFS2FS /dev/volGFS/lvGFS

 

Luci password  초기화

Service luci stop

/usr/sbin/luci_admin password

 

 

#방화벽으로인해서비스가안될있음.

Iptables -F

chkconfig iptables off

 

댓글목록

등록된 댓글이 없습니다.