Redhat 5.8 x64 RHCS Oracle 10gR2 HA实践配置,通过Openfiler实现iscsi共享存储。通过VMware ESXi5 虚拟fence实现fence功能。结
配置说明:
1. 通过Openfiler实现iscsi共享存储
2. 通过VMware ESXi5 虚拟fence实现fence功能。
3. 结合RedHat 5.8 vmware-fence-soap实现RHCS fence设备功能。
4. 本文原创建搭建RHCS实验环境测试RHCS Oracle HA功能。
一、准备基础环境
1. 网络环境准备
node1,node2节点
# cat /etc/hosts
192.168.14.100 node1
192.168.14.110 node2
2. 配置YUM安装源
(1) 挂载光盘ISO
# mount /dev/cdrom /mnt
(2) 配置YUM客户端
说明: 通过本地光盘做为yum安装源。
# vi /etc/yum.repos.d/rhel-debuginfo-bak.repo
[rhel-debuginfo]
name=Red Hat Enterprise Linux $releasever - $basearch - Debug
baseurl=ftp://ftp.redhat.com/pub/redhat/linux/enterprise/$releasever/en/os/$basearch/Debuginfo/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Server]
name=Server
baseurl=file:///mnt/Server
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[VT]
name=VT
baseurl=file:///mnt/VT
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[Cluster]
name=Cluster
baseurl=file:///mnt/Cluster
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
[ClusterStorage]
name=ClusterStorage
baseurl=file:///mnt/ClusterStorage
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
(3) openfiler iscsi存储配置
具体配置略,,共划分两块lun,一块10G配置GFS,一块1G配置表决盘。
(4) 挂载存储
rpm -ivh iscsi-initiator-utils-6.2.0.872-13.el5.x86_64.rpm
chkconfig iscsi --level 35 on
chkconfig iscsid --level 35 on
service iscsi start
# iscsiadm -m discovery -t st -p 192.168.14.162
# iscsiadm -m node -T iqn.2006-01.com.openfiler:tsn.b2bd5bb312a7 -p 192.168.14.162 -l