REDHAT5.1 cluster配置

今天在本地安装测试了下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里访问了:

https://localhost:8084

在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/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10130206/viewspace-1035572/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值