LifeKeeper 5 for Linux 安装
上一篇 /
下一篇 2008-04-18 13:23:53
/ 个人分类:数据库系统平台
2008年4月15日,浙江林学院一卡通数据库平台安装,
硬件
DELL 2950 四核CPU 两颗 内存8G 硬盘146 SAS 15K *4 RAID5 DB1
DELL 2950 四核CPU 两颗 内存8G 硬盘146 SAS 15K *4 RAID5 DB2
软件
REDHAT LINUX AS 4 UPDATE 6
双机软件 LifeKeeper for Linux 5.0
1.Linux 安装
安装步骤(略)
hostname DB1 eth0 172.16.0.1 (心跳)eth1 10.0.0.1
hostname DB2 eth0 172.16.0.2 (心跳)eth1 10.0.0.2
在/etc/hosts 文件中,添加如下内容
172.16.0.1 DB1
172.16.0.2 DB2
10.0.0.12 DB -------VIP
修改/etc/fstab 文件,将 "LABEL=/OracleData" 改成 "/dev/sda5"
2.LifeKeeper 安装
首先安装LifeKeeper Support 光盘
如果是iso,img文件,需要以root用户先将文件挂到系统,使用如下方式:
$mount /de.img.rar /mnt -t iso9660 -o loop
然后直接在/mnt下安装
执行 #sh setup
• 安装程序首先会显示检测到的操作系统版本:
Your system appears to be running Red Hat Enterprise Linux <版本号 >
• 提示是否安装LifeKeeper Distribution Enabling Package for Red Hat软件包时选择“ Y ” :
The LifeKeeper Distribution Enabling Package for Red Hat will now be installed. This package is needed in order for LifeKeeper to run properly.
• 接着提示安装Java运行环境,选择“ Y ” :
You will need to install the Java Runtime Environment v1.4.1 on this system if you wish to administer LifeKeeper using the LifeKeeper GUI. You should ensure that the PATH variable in the /etc/default/LifeKeeper file contains the path to your java binary.
• 在提示是否创建SCSI设备节点时选择“ Y ”
Do you wish to create additional SCSI disk device nodes (/dev/sd*)and SCSI generic device nodes (/dev/sg*)y
• 在提示是否在启动文件中加入optionsscsi_mod max_scsi_luns=255时,选择“ N ”
• 对于提示是否安装IPS软件包时选择“ N ”
• 对于提示是否安装CCISS软件包时选择“ N ”
• 对于提示是否安装HADR时选择“ N ”
• 对于提示是否安装HANFS时选择“ N ”
• 最后是安装许可管理软件包,之后会询问是否在此时安装软件许可,回答“ n ”,
我们将在后面单独安装。
安装LifeKeeper Core Application软件包
#rpm -ivh ./*.rpm
修改 LifeKeeper 配置文件
#vi /etc/default/LifeKeeper
调整LKCHECKINTERVAL值为12
增加
LANG=zh_CN
LC_ALL=zh_CN ;export LC_ALL
LC_MESSAGE=C;export LC_MESSAGE
启动软件
# /opt/LifeKeeper/bin/lkstart
# /opt/LifeKeeper/bin/lkGUIserver start
这两个启动一次,下次自动启动
#/opt/LifeKeeper/bin/lkGUIapp
停止软件
# /opt/LifeKeeper/bin/stop
# /opt/LifeKeeper/bin/lkGUIserver stop
查看软件进程
#ps -ef |grep LifeKeeper
程序启动后进入双机软件配置阶段
使用root登陆,然后连接第二台服务器
1.先创建心跳连接,
2.再创建IP资源
3.再创建数据镜像资源 (必须先umount 备机的需要镜像的分区,镜像同步时间,根据你的数据分区大小,使用复制的网络,可以使用#cat /proc/mdstat查看进度)
4.创建通用应用系统资源(必须先镜像后才能做)
导入论坛
引用链接
收藏
分享给好友
推荐到圈子
管理
举报
TAG: