Veritas HA安装配置手册
目录
1 安装 Veritas Storage Foundation (2)
1.1 下载软件 (2)
1.2 准备工作 (2)
1.3 安装 SF for RAC (4)
1.4 重新配置 SF for Oracle RAC (7)
2 用 VEA 配置 Disk Group (7)
2.1 安装 VEA (7)
2.2 新建 DG (8)
2.3 创建 Volumes 和 File System (9)
2.4 在另外一个节点上配置 DG (11)
3 安装 oracle 软件,创建数据库 (11)
3 .1 安装 oracle 软件 (11)
3 .2 用 Veritas 的 ODM 代替 Oracle 的 libodm 库 (11)
3.3 手工创建数据库 (12)
4 用 VCM 配置 Veritas HA (12)
4.1 安装 VCM 图形界面,管理 VCS (12)
4. 2 增加服务组 (12)
4. 3 增加资源组 (12)
4.4 在 resource 中设置 link 关系 (15)
4.5 ha 配置文件 (15)
5 HA 监控配置 (15)
5.1 监控 oracle instance (15)
5.2 listener 监控 (17)
6 HA 切换 (17)
6.1 HA 切换日志 (17)
6.2 HA 切换测试 (17)
7 常用命令 (18)
7.1 Veritas DMP (18)
7.2 Veritas VxVM (19)
7.3 Veritas VCS (19)
8 SMTP 报警邮件配置 (20)
9 参考文档
21
1 安装 Veritas Storage Foundation
1.1 下载软件
go.symantec/vcsmc
SF for RAC Release 5.1 on LINUX
对应软件包 VRTS_SF_HA_Solutions_5.1_PR1_RHEL5_SLES10_
Veritas Enterprise Administrator 3.4.15.0 (Linux)
对应软件包 VRTSobgui-3.4.15.0-0.i686.rpm
VCS Cluster Manager Java_Console 5.1 (Linux)
对应软件包 VCS_Cluster_Manager_Java_Console_5.1_for_Linux.rpm
1.2 准备工作
# 软件要求
Software Version
Database Oracle RAC 11g Release 2
Operatingsystem
Red Hat Enterprise Linux 5 (RHEL 5) Update 3 or later
Oracle Enterprise Linux 5.3 (OEL 5.3) or later
SUSE Linux Enterprise Server 10 with SP2 (SLES 10 SP2)
SUSE Linux Enterprise Server 10 with SP3 ( SLES 10 SP3)
# 配置/etc/hosts
在2 台主机/etc/hosts 上增加各自的IP
192.168.0.49 host1
192.168.0.50 host2
# 配置2 个节点root 用户的ssh 信任
# 配NTP
# 准备共享磁盘
存储上的 lun 必须对所有节点可见。
共享存储必须支持SCSI-3 Persistent Reservations (PR ,永久保留功能).
SCSI-3 PR 就是一组SCSI 命令集,用在多个系统访问一个共享存储的时候协调
之用。
安装完 SF 后可用 vxfentsthdw 可做检查。
/opt/VRTS/bin/vxfentsthdw
# cd /opt/VRTS/bin
#./vxfentsthdw
VERITAS vxfentsthdw version 5.1.001.000-RP1 Linux
The utility vxfentsthdw works on the two nodes of the cluster. The utility verifies that the shared storage one intends to use isconfigured to support I/O fencing. It issues a series of vxfenadm commands to setup SCSI-3 registrations on the disk, verifies the registrations on the disk, and removes the registrations from the disk.
******** WARNING ********
THIS UTILITY WILL DESTROY THE DATA ON THE DISK!!
Do you still want to continue : [y/n] (default: n) y
Please respond with (y/n) n
# I/O fencing 策略
对于采用 cluster file system 的 veritas ha 方案,一定要采用共享磁盘做
I/O fencing ;
对于单机的 file system ,在确保有 2 个直连网线和 1 个 bond 的业务网络的情况下,可以不考虑 I/O fencing 的策略。
Make sure that the I/O fencing coordinator disks meet the following requirements:
* For disk-based I/O fencing, you must have three coordinator disks. * The coordinator disks can be raw devices, DMP devices, or iSCSI devices. You must use DMP disk policy for iSCSI-based coordinator disks.
* Each of the coordinator disks must use a physically separate disk or LUN.linux安装oracle数据库(rpm方式安装)
Symantec recommends using the smallest possible LUNs for coordinator disks.
* The coordinator disks must support SCSI-3 persistent reservations. *Symantec recommends using hardware-based mirroring for coordinator disks.
* Coordinator disks must not be used to store data or must not be included in disk groups that store user data.
* Coordinator disks cannot be the special devices that array vendors use. For example, you cannot use EMC gatekeeper devices as coordinator disks. # 配置环境变量
vi /root/.bash_profile
export MANPATH=$MANPATH:/opt/VRTS/man
PATH=$PATH:$HOME/bin
PATH=$PATH:\
/usr/lib/vxvm/bin:/opt/VRTSvcs/bin:\
/opt/VRTS/bin:/opt/VRTSvcs/rac/bin:\
/opt/VRTSob/bin;
export PATH
# 配置 linux I/O 调度策略
Symantec recommends using the Linux 'deadline' I/O scheduler for database workloads. Configure your system to boot with the 'elevator=deadline' argument
to select the 'deadline' scheduler.
查看当前的 IO 调度策略,默认选择 CFQ 做为 I/O 调度器
cat /sys/block/sd*/queue/scheduler
修改调度策略
vi /boot/grub/menu.lst
kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/
改为
kernel /boot/vmlinuz-2.6.18-128.el5 ro root=LABEL=/ elevator=deadline 重启OS ,检查是否修改生效。
# 网络要求
网络要求 1 个走交换机的业务网段, 1 个网线直连的私有网段。
私有网段的网口要用直连网线连接,作为首选心跳,争取可以配 2 条直连网线。业务网络网卡要求 2 张独立网卡做 bond ,可以作为备用心跳线。
每个机器业务网段的 2 个 bond 网口分别上联到 2 个独立的网络交换机上面。
1.3 安装 SF for RAC
# 安装前检查环境
#cd /root/source
# tar xzf VRTS_SF_HA_Solutions_5.1_PR1_RHEL5_SLES10_
# cd
/root/source/dvd1-linux/rhel5_x86_64/storage_foundation_for_oracle_ra
c
# ./installsfrac -precheck host1 host2
无误后可以正常安装
# 安装过程
# cd /root/source/rhel5_x86_64/storage_foundation_for_oracle_rac
# ./installsfrac host1 host2
Do you agree with End User License Agreement (EULA) specified in EULA.pdf file present on media? [y,n,q,?] (y) y
1) Install minimal required Veritas Storage Foundation for Oracle RAC RPMs
2) Install recommended Veritas Storage Foundation for Oracle RAC RPMs
3) Install all Veritas Storage Foundation for Oracle RAC RPMs
4) Display RPMs to be installed for each option
Select the RPMs to be installed on all systems? [1-4,q,?] (2) 3
To comply with the terms of Symantec's End User License Agreement,
you have 60 days to either:
1) Enter a valid license key
2) Enable keyless licensing
How would you like to license the systems? [1-2,q] 1
Checking system licensing
SF Oracle RAC is unlicensed on all systems
Enter a SF Oracle RAC license key: [b,q,?]
XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-P
Storage Foundation for Oracle successfully registered on host1
SF Oracle RAC is unlicensed on all systems
Enter a SF Oracle RAC license key: [b,q,?] b
Would you like to enable the Veritas Volume Replicator? [y,n,q] (n) n Would you like to enable the Global Cluster Option? [y,n,q] (n) n
Registering SF Oracle RAC license
Do you wish to enter additional licenses? [y,n,q,b] (n) n
Veritas Storage Foundation for Oracle RAC Install completed successfully Would you like to configure SF Oracle RAC on host1 host2? [y,n,q] (n) y Veritas Storage Foundation for Oracle RAC 5.1 PR1 Install Program
1) Configure SF Oracle RAC sub-components
2) Prepare to Install Oracle
3) Install Oracle Clusterware/Grid Infrastructure and Database
4) Post Oracle Installation Tasks
5) Exit SF Oracle RAC Configuration
Choose option: [1-5,q] (1) 1
Enter the unique cluster name: [q,?] myha
Enter a unique Cluster ID number between 0-65535: [b,q,?] (0) 0 Discovering NICs on
host1 ................................................
Discovered eth0 eth1 eth2 eth3 bond0 sit0
To use aggregated interfaces for private heartbeat,
enter the name of an aggregated interface.
To use a NIC for private heartbeat, enter a NIC which is not part of an aggregated interface.
Enter the NIC for the first private heartbeat link on host1: [b,q,?] eth1 Are you sure you want to use eth1 for the first private heartbeat link? [y,n,q,b,?] (n) y
Would you like to configure a second private heartbeat link? [y,n,q,b,?] (y) y
Enter the NIC for the second private heartbeat link on host1: [b,q,?] eth3 Are you sure you want to use eth3 for the second private heartbeat link? [y,n,q,b,?] (n) y
Would you like to configure a third private heartbeat link? [y,n,q,b,?] (n) y
Enter the NIC for the third private heartbeat link on host1: [b,q,?] bond0
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论