数据库RAC添加新节点的操作步骤(门户数据库PDSDB)
- 格式:docx
- 大小:1.56 MB
- 文档页数:26
数据库RAC添加新节点的操作步骤
安装pdsrac的新节点
1.在两个节点分别安装vnc
wget /dist/vnc-4.0-x86_linux.tar.gz
tar -xzvf vnc-4.0-x86_linux.tar.gz
./vncinstall /usr/local/bin
mkdir -p /usr/local/vnc/classes
cp java/* /usr/local/vnc/classes
vncserver
2.添加网卡
参数说明:
DEVICE=物理设备名
IPADDR=IP地址
NETMASK=掩码值
NETWORK=网络地址
BROADCAST=广播地址
GATEWAY=网关地址
ONBOOT=[yes|no](引导时是否激活设备)
USERCTL=[yes|no](非root用户是否可以控制该设备)
BOOTPROTO=[none|static|bootp|dhcp](引导时不使用协议|静态分配|BOOTP协议|DHCP协议)
HWADDR = 你的MAC地址
在/etc/sysconfig/network-scripts/下创建虚拟网卡bond0的配置文件ifcfg-bond0
cd /etc/sysconfig/network-scripts/
vi ifcfg-bond1
DEVICE=bond1
BOOTPROTO=none
BORADCAST=192.168.220.255
IPADDR=192.168.220.12
NETMASK=255.255.255.0
NETWORK=192.168.220.0
ONBOOT=yes
TYPE=Ethernet
分别修改原来网卡配置文件的信息,删除其中的IP 地址、子网掩码等信息
vi ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes USERCTL=yes
vi ifcfg-eth1
DEVICE=eth1
ONBOOT=yes
BOOTPROTO=none
MASTER=bond0
SLAVE=yes
USERCTL=yes
vi ifcfg-eth2
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth2
HWADDR=00:24:E8:56:4E:88
ONBOOT=yes
BOOTPROTO=none
MASTER=bond1
SLAVE=yes
USERCTL=yes
HOTPLUG=no
vi ifcfg-eth3
# Broadcom Corporation NetXtreme II BCM5708 Gigabit Ethernet
DEVICE=eth3
HWADDR=00:24:E8:56:4E:8A
ONBOOT=yes
MASTER=bond1
USERCTL=yes
SLAVE=yes
BOOTPROTO=none
HOTPLUG=no
3.配置驱动模块参数:/etc/modprobe.conf
alias bond0 bonding
options bond0 miimon=100 mode=1
alias eth0 bnx2x
alias eth1 bnx2x
alias bond1 bonding
options bond1 miimon=100 mode=1
alias eth2 bnx2x
alias eth3 bnx2x
aliasscsi_hostadaptercciss
aliasusb-controller uhci-hcd
alias usb-controller1 ehci-hcd alias scsi_hostadapter1 qla2xxx
optionshangcheck-timer hangcheck_tick=30 hangcheck_margin=180
说明:
(1)、miimon是链路监测的时间间隔单位是毫秒,miimon=100的意思就是,每100毫秒检测网卡和交换机之间是否连通,如不通则使用另外的链路。
(2)、mode=0 表示负载均衡方式,两块网卡都工作,需要交换机作支持
mode=1 表示冗余方式,网卡只有一个工作,一个出问题启用另外的
mode=6 表示负载均衡方式,两块网卡都工作,不需要交换机作支持
设置开机绑定
[root@BJ-FT-1F-120-12 etc]# cat /etc/rc.local
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
/usr/sbin/ntpdate &
/sbin/modprobehangcheck_timer
/usr/local/sbin/oraraw.sh
service network restart
ifenslave bond eth2 eth3
modprobehangcheck-timer hangcheck_tick=30 hangcheck_margin=180
重启网络
service network restart
cat /proc/net/bonding/bond0
cat /proc/net/bonding/bond1
4.创建用户
groupadd -g 200 dba
groupadd -g 201 oinstall
useradd -u 300 -g oinstall -G dba -d /home/oracle -s /bin/bash -m oracle
vi /home/oracle/.bash_profile
export ORACLE_BASE=/apps/oracle
export ORACLE_HOME=$ORACLE_BASE/product/10.2.0
export CRS_HOME=$ORACLE_BASE/crs
export
PATH=$CRS_HOME/bin:$ORACLE_HOME/jdk/bin:/usr/kerberos/bin:/usr/local/bin:/bin:$PATH:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:$ORACLE_HOME/bin export ORACLE_OWNER=oracle
export LD_LIBRARY_PATH=:$ORACLE_HOME/Slib
export NLS_LANG=American_america.zhs16gbk
export ORACLE_TERM=xterm
export AGENT_HOME=$ORACLE_BASE/agent10g
aliasmsh='cd $ORACLE_BASE/admin/msh'
export ORACLE_SID=pdsdb1
5.修改hosts
vi /etc/hosts
192.168.120.11 BJ-FT-1F-120-11
192.168.120.12 BJ-FT-1F-120-12
192.168.120.13 BJ-FT-1F-120-13
192.168.120.14 BJ-FT-1F-120-14
192.168.120.21 ftpds_vip1
192.168.120.22 ftpds_vip2
192.168.120.23 ftpds_vip3
192.168.120.24 ftpds_vip4
192.168.220.21 ftpds_priv1
192.168.220.22 ftpds_priv2
192.168.220.23 ftpds_priv3
192.168.220.24 ftpds_priv4
6.配置信任关系
[oracle@BJ-FT-1F-120-12 ~]$
mkdir ~/.ssh
chmod 755 ~/.ssh
/usr/bin/ssh-keygen -t rsa
/usr/bin/ssh-keygen -t dsa
[root@BJ-FT-1F-120-11 ~]#
cp /home/oracle/.ssh/authorized_keys rac1.authorized_keys
scp rac1.authorized_keys shexiang@192.168.106.10:/192.168.120.12/root/home/oracle
[root@BJ-FT-1F-120-12 ~]#
chownoracle:dba rac1.authorized_keys
[oracle@BJ-FT-1F-120-12 ~]$
mv rac1.authorized_keys .ssh/
cd .ssh/
mv rac1.authorized_keys authorized_keys