Chinaunix首页 | 论坛 | 博客
  • 博客访问: 176596
  • 博文数量: 33
  • 博客积分: 1411
  • 博客等级: 上尉
  • 技术积分: 342
  • 用 户 组: 普通用户
  • 注册时间: 2008-09-04 13:04
文章存档

2008年(33)

我的朋友

分类:

2008-09-04 14:09:09

在线添加新VG的步骤:

1 新建vg:(db01[Active NODE]上)
pvcreate /dev/rdsk/c15t1d6
mkdir /dev/vg_ora8
mknod /dev/vg_ora8/group c 64 0x080000
vgcreate -s 16 /dev/vg_ora8 /dev/dsk/c15t1d6
vgdisplay


建lv:
lvcreate -L 2048 -n 2g_data_01 -r N /dev/vg_ora8
lvcreate -L 2048 -n 2g_data_01 -r N /dev/vg_ora8
.......
lvcreate -L 2048 -n 2g_data_99 -r N /dev/vg_ora8
chown oracle:dba /dev/vg_ora8/r*

2 VG同步;
vgexport -p -v -m /tmp/vg_ora08.map /dev/vg_ora8
rcp /tmp/vg_ora8.map sd-db02:/tmp
在db02上:
mkdir /dev/vg_ora8
mknod /dev/vg_ora8/group c 64 0x080000
vgimport -v -m /tmp/vg_ora08.map /dev/vg_ora8
chown oracle:dba /dev/vg_ora8/r*

3 在active Node上:
vgchange -a n /dev/vg_ora8
vgchange -c y /dev/vg_ora8
vgchange -a e /dev/vg_ora8

4 修改cmcluster.ascii pkgconf.ascii 文件:
将vg_ora8加上去:

5 check:
[db01]/etc/cmcluster#cmcheckconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/pkg/pkgconf.ascii

Begin cluster verification...
Note : a NODE_TIMEOUT value of 2000000 was found in line 129. For a
significant portion of installations, a higher setting is more appropriate.
Refer to the comments in the cluster configuration ascii file or Serviceguard
manual for more information on this parameter.
Warning: No additional packages can be added to this cluster.

Verification completed with no errors found.
Use the cmapplyconf command to apply the configuration.

[db01]/etc/cmcluster#cmapplyconf -C /etc/cmcluster/cmclconf.ascii -P /etc/cmcluster/pkg/pkgconf.ascii

Begin cluster verification...
Note : a NODE_TIMEOUT value of 2000000 was found in line 129. For a
significant portion of installations, a higher setting is more appropriate.
Refer to the comments in the cluster configuration ascii file or Serviceguard
manual for more information on this parameter.
Warning: No additional packages can be added to this cluster.
Modifying configuration on node db01
Modifying configuration on node db02

Modify the cluster configuration ([y]/n)? y
Completed the cluster creation.

5 检查配置:
cmgetconf -v
cmviewconf

阅读(1345) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2011-06-18 23:29:10

你好,请问在不停应用时,做过check和apply吗,对双机当前业务有影响吗?