基本情况
节点数:2
一. 停止oracle相关的所有进程, 包括数据库, asm, node application, crs本身.
1.1、关闭所有进程,crs_stop -all
2.2、 关闭crs后台进程, 在操作系统一级中止运行的crs后台进程, 必须在所有节点上运行.
[root@rac1 bin]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
[root@rac2 ~]# /etc/init.d/init.crs stop
Shutting down Oracle Cluster Ready Services (CRS):
Stopping resources.
Successfully stopped CRS resources
Stopping CSSD.
Shutting down CSS daemon.
Shutdown request successfully issued.
Shutdown has begun. The daemons should exit soon.
1.3、验证进程是否全部关闭
[root@rac2 ~]# crs_stat -t
二、修改操作系统的ip设置
2.1、修改 /etc/hosts文件(所有的节点)
[root@rac1 ~]# vim /etc/hosts
127.0.0.1 rac1 localhost.localdomain localhost
172.20.225.91 rac1
172.20.225.92 rac2
10.73.5.91 rac1-priv
10.73.5.92 rac2-priv
172.20.225.81 rac1-vip
172.20.225.82 rac2-vip
[root@rac2 ~]# vim /etc/hosts
127.0.0.1 rac2 localhost.localdomain localhost
172.20.225.91 rac1
172.20.225.92 rac2
10.73.5.91 rac1-priv
10.73.5.92 rac2-priv
172.20.225.81 rac1-vip
172.20.225.82 rac2-vip
2.2、两个节点上分别修改eth0和eth1地址,重启使ip生效
三、修改存储链接
3.1 清除之前的链接(两个节点执行)
1)停止服务
service iscsi stop
2)去除挂载
iscsiadm -m node --op delete
3)重启服务
[root@rac1 ]# service iscsi restart
Stopping iSCSI daemon:
iscsid is stopped [ OK ]
Starting iSCSI daemon: [ OK ]
[ OK ]
Setting up iSCSI targets: iscsiadm: No records found!
[ OK ]
3.2重新链接
1)正确网络技术 iis7站长之家openfiler,请一定要严格按照文档,不要遗漏任何一步。
2)扫描
[root@100-201 ~]# iscsiadm -m discovery -t sendtargets -p 10.73.5.80
172.100.10.100:3260,1 iqn.2006-01.com.openfiler:LUN2
172.100.10.100:3260,1 iqn.2006-01.com.openfiler:LUN1
3)重启服务
service iscsi restart
四、启动crs,设置oracle中ip相关配置
3.1查看服务
[root@rac1 ~]# crs_stat -t