ITPub博客

首页 > IT基础架构 > 网络安全 > 在线添加VG到Service Guard

在线添加VG到Service Guard

原创 网络安全 作者:sonsunny 时间:2008-08-20 13:43:53 0 删除 编辑

在线添加新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

[@more@]建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

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15192459/viewspace-1009208/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-08-25

  • 博文量
    18
  • 访问量
    25406