REDHAT5.1 cluster配置

qqmengxue發表於2010-07-26

今天在本地安裝測試了下REDHAT5的cluster配置,感覺還是蠻不錯的,

[@more@]

在安裝之前需要安裝以下依賴包:

apr-1.2.7-11.el5_3.1.x86_64.rpm
apr-util-1.2.7-7.el5_3.2.x86_64.rpm
cman-2.0.115-1.el5.x86_64.rpm
gfs2-utils-0.1.62-1.el5.x86_64.rpm
gmp-4.1.4-10.el5.x86_64.rpm
httpd-2.2.3-31.el5.x86_64.rpm
kernel-xen-2.6.18-164.el5.x86_64.rpm
lm_sensors-2.10.7-4.el5.x86_64.rpm
net-snmp-5.3.2.2-7.el5.x86_64.rpm
oddjob-0.27-9.el5.x86_64.rpm
oddjob-libs-0.27-9.el5.x86_64.rpm
openais-0.80.6-8.el5.x86_64.rpm
perl-Net-Telnet-3.03-5.noarch.rpm
perl-XML-LibXML-1.58-5.x86_64.rpm
perl-XML-LibXML-Common-0.13-8.2.2.x86_64.rpm
perl-XML-NamespaceSupport-1.09-1.2.1.noarch.rpm
perl-XML-SAX-0.14-5.noarch.rpm
pexpect-2.3-1.el5.noarch.rpm
php-5.1.6-23.2.el5_3.x86_64.rpm
php-cli-5.1.6-23.2.el5_3.x86_64.rpm
php-common-5.1.6-23.2.el5_3.x86_64.rpm
postgresql-libs-8.1.11-1.el5_1.1.x86_64.rpm
python-imaging-1.1.5-5.el5.x86_64.rpm
tix-8.4.0-11.fc6.x86_64.rpm
tkinter-2.4.3-27.el5.x86_64.rpm
tog-pegasus-2.7.2-1.el5.x86_64.rpm

安裝完以後再重新安裝以下包:

Cluster_Administration-as-IN-5.2-1.noarch.rpm
Cluster_Administration-bn-IN-5.2-1.noarch.rpm
Cluster_Administration-de-DE-5.2-1.noarch.rpm
Cluster_Administration-en-US-5.2-1.noarch.rpm
Cluster_Administration-es-ES-5.2-1.noarch.rpm
Cluster_Administration-fr-FR-5.2-1.noarch.rpm
Cluster_Administration-gu-IN-5.2-1.noarch.rpm
Cluster_Administration-hi-IN-5.2-1.noarch.rpm
Cluster_Administration-it-IT-5.2-1.noarch.rpm
Cluster_Administration-ja-JP-5.2-1.noarch.rpm
Cluster_Administration-kn-IN-5.2-1.noarch.rpm
Cluster_Administration-ko-KR-5.2-1.noarch.rpm
Cluster_Administration-ml-IN-5.2-1.noarch.rpm
Cluster_Administration-mr-IN-5.2-1.noarch.rpm
Cluster_Administration-or-IN-5.2-1.noarch.rpm
Cluster_Administration-pa-IN-5.2-1.noarch.rpm
Cluster_Administration-pt-BR-5.2-1.noarch.rpm
Cluster_Administration-ru-RU-5.2-1.noarch.rpm
Cluster_Administration-si-LK-5.2-1.noarch.rpm
Cluster_Administration-ta-IN-5.2-1.noarch.rpm
Cluster_Administration-te-IN-5.2-1.noarch.rpm
Cluster_Administration-zh-CN-5.2-1.noarch.rpm
Cluster_Administration-zh-TW-5.2-1.noarch.rpm
cluster-cim-0.12.1-2.el5.x86_64.rpm
cluster-snmp-0.12.1-2.el5.x86_64.rpm
ipvsadm-1.24-10.x86_64.rpm
luci-0.12.2-6.el5.x86_64.rpm
modcluster-0.12.1-2.el5.x86_64.rpm
piranha-0.8.4-13.el5.x86_64.rpm
rgmanager-2.0.52-1.el5.x86_64.rpm
ricci-0.12.2-6.el5.x86_64.rpm
system-config-cluster-1.0.57-1.5.noarch.rpm

以下為CLUSTERSTROAGE:

./ClusterStorage/cmirror-1.1.39-2.el5.x86_64.rpm
../ClusterStorage/gfs-utils-0.1.20-1.el5.x86_64.rpm
../ClusterStorage/Global_File_System-as-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-bn-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-de-DE-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-en-US-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-es-ES-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-fr-FR-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-gu-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-hi-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-it-IT-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-ja-JP-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-kn-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-ko-KR-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-ml-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-mr-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-or-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-pa-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-pt-BR-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-ru-RU-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-si-LK-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-ta-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-te-IN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-zh-CN-5.2-1.noarch.rpm
../ClusterStorage/Global_File_System-zh-TW-5.2-1.noarch.rpm
../ClusterStorage/gnbd-1.1.7-1.el5.x86_64.rpm
../ClusterStorage/isns-utils-0.91-0.1.el5.x86_64.rpm
../ClusterStorage/kmod-cmirror-0.1.22-1.el5.x86_64.rpm
../ClusterStorage/kmod-cmirror-xen-0.1.22-1.el5.x86_64.rpm
../ClusterStorage/kmod-gfs-0.1.34-2.el5.x86_64.rpm
../ClusterStorage/kmod-gfs-xen-0.1.34-2.el5.x86_64.rpm
../ClusterStorage/kmod-gnbd-0.1.5-2.el5.x86_64.rpm
../ClusterStorage/kmod-gnbd-xen-0.1.5-2.el5.x86_64.rpm
../ClusterStorage/lvm2-cluster-2.02.46-8.el5.x86_64.rpm
../ClusterStorage/perl-Config-General-2.40-1.el5.noarch.rpm
../ClusterStorage/scsi-target-utils-0.0-5.20080917snap.el5.x86_64.rpm

安裝好以上包後就可以啟動ricci:

SERVICE RICCI START

初始化LUCI:

luci_admin init

關閉防火牆,停掉SLINUX

service iptables stop

chkconfig iptables off

VI /etc/selinux/config

DISABLE

分別啟動以下服務:

service gfs start

service cman start

service luci start

service clvmd start

service cmirror start

service rgmanager start

啟動完成後,就可以在IE裡訪問了:

在cluster欄下選擇CREATE NEW CLUSTER

寫上cluster name和對應的IP+password後submit

再每個節點裡新增一個:

# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
DEVICE=eth0:1
BOOTPROTO=static
DHCPCLASS=
HWADDR=00:16:36:30:F5:27
IPADDR=10.11.11.122
NETMASK=255.255.0.0
ONBOOT=no

內容一樣

分別再剛剛建立的CLUSTER裡面新增對應的服務後就可OK的使用啦。

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10130206/viewspace-1035572/,如需轉載,請註明出處,否則將追究法律責任。

相關文章