在线添加新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*
vgchange -a n /dev/vg_ora8
vgchange -c y /dev/vg_ora8
vgchange -a e /dev/vg_ora8
4 修改cmcluster.ascii pkgconf.ascii 文件:
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