免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1972 | 回复: 0
打印 上一主题 下一主题

安装集群的solaris的raid1的做法 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-06-24 12:39 |只看该作者 |倒序浏览
这部分是我参考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



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28499/showart_1009966.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP