HP-UX 在线添加VG到Service Guard

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值