这部分是我参考solaris集群文档和问了一个网友后写的,最后由于现场的原因,没有实施,大家可以参考,如有问题,概不负责^_^
首先在yysrv2上:
1.镜像/ 分区:
(1) #metainit -f d113 1 1 c1t0d0s0
(2) #metainit d123 1 1 c1t1d0s0
(3) #metainit d103 -m d113
(4) #metaroot d103
(5) #lockfs -fa
2.镜像swap分区:
(1) #metainit -f d114 1 1 c1t0d0s1
(2) #metainit d124 1 1 c1t1d0s1
(3) #metainit d104 -m d114
(5)编辑/etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d104 - - swap - no -
3.镜像/s3分区:
(1)
(2) #metainit -f d117 1 1 c1t0d0s3
(3) #metainit d127 1 1 c1t1d0s3
(4) #metainit d107 -m d117
(6)编辑/etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d107 /dev/md/rdsk/d107 /s3 ufs 2 yes -
4.镜像全局名称空间
(1) #metainit -f d115 1 1 c1t0d0s4
(2) #metainit d125 1 1 c1t1d0s4
(3) #metainit d105 -m d115
(4)
(5) 编辑
/global/.devices/node@nodeid 文件系统的/etc/vfstab 文件条目。
用镜像名称替换device to mount 和device to fsck 列中的名称。
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d105 /dev/md/rdsk/105
/global/.devices/node@2 ufs 2 no global
5.重新启动机器
先把资源组做切换测试 保证两台主机上资源都可以ONLINE 没有问题后
你把资源组切换到1号机上 保证在一号机正常运行
scswitch -z -g rgname -h yysrv1
init 6 重起2号机器就行了
把上面的所有分区metattach
note 下面那台机器也按这种做法来处理 不要去停手动停数据库 CLUSTER都是可以管理的
首先在yysrv1上:
1.镜像/ 分区:
(1) #metainit -f d110 1 1 c1t0d0s0
(2) #metainit d120 1 1 c1t1d0s0
(3) #metainit d100 -m d110
(4) #metaroot d100
(5) #lockfs -fa
2.镜像swap分区:
(1) #metainit -f d111 1 1 c1t0d0s1
(2) #metainit d121 1 1 c1t1d0s1
(3) #metainit d101 -m d111
(5)编辑/etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d101 - - swap - no -
3.镜像/s3分区:
(1) #unmount /s3
(2) #metainit -f d116 1 1 c1t0d0s3
(3) #metainit d126 1 1 c1t1d0s3
(4) #metainit d106 -m d116
(5) #metattach d106 d126
(6)编辑/etc/vfstab
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d106 /dev/md/rdsk/d106 /s3 ufs 2 yes -
4.镜像全局名称空间
(1) #metainit -f d112 1 1 c1t0d0s4
(2) #metainit d122 1 1 c1t1d0s4
(3) #metainit d102 -m d112
(4) #metattach d102 d122
(4) 编辑
/global/.devices/node@nodeid 文件系统的/etc/vfstab 文件条目。
用镜像名称替换device to mount 和device to fsck 列中的名称。
#device device mount FS fsck mount mount
#to mount to fsck point type pass at boot options
#
/dev/md/dsk/d102 /dev/md/rdsk/102
/global/.devices/node@1 ufs 2 no global
5.重新启动机器
(1)停止实例 srvctl stop database -d orcl -i orcl1
(2)#scswitch -S -h yysrv1
(3)#shutdown -g0 -y -i6
(4)#metattach d100 d120
(5)#metattach d101 d121
(6)srvctl start database -d orcl -i orcl1
阅读(1496) | 评论(0) | 转发(0) |