分类:
2008-05-31 16:39:30
3, 对配置文件进行检查:
[hsedb1:/]#cmcheckconf -v -C /etc/cmcluster/cmclconf.ascii
4, 将卷组vg_ops激活,并将配置信息分发到各个节点上去:
[hsedb1:/]#vgchange –a y vg_ops
[hsedb1:/]#cmapplyconf -v -C /etc/cmcluster/cmclconf.ascii
5, 将卷组vg_ops去激活:
[hsedb1:/]#vgchange a n vg_ops
6,启/停双机并设置卷组信息:
[hsedb1:/]#cmruncl
[hsedb1:/]#cmviewcl -v
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
hsedb1 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vg_ops /dev/dsk/c6t0d4 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 1/0/1/1 /0/6/0 lan0
PRIMARY up 1/0/2/1 /0 lan2
NODE STATUS STATE
hsedb2 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vg_ops /dev/dsk/c6t0d4 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 1/0/1/1 /0/6/0 lan0
PRIMARY up 1/0/2/1 /0 lan2
NODE STATUS STATE
hsedb3 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vg_ops /dev/dsk/c6t0d3 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 1/0/1/1 /0/6/0 lan0
PRIMARY up 1/0/2/1 /0 lan2
NODE STATUS STATE
hsedb4 up running
Cluster_Lock_LVM:
VOLUME_GROUP PHYSICAL_VOLUME STATUS
/dev/vg_ops /dev/dsk/c6t0d3 up
Network_Parameters:
INTERFACE STATUS PATH NAME
PRIMARY up 1/0/1/1 /0/6/0 lan0
PRIMARY up 1/0/2/1 /0 lan2
[hsedb1:/]#vgchange -S y -c y vg_ops
[hsedb1:/]#vgchange –a s vg_ops
[hsedb1:/]#remsh hsedb2 /usr/sbin/vgchange –a s vg_ops
[hsedb1:/]#remsh hsedb3 /usr/sbin/vgchange –a s vg_ops
[hsedb1:/]#remsh hsedb4 /usr/sbin/vgchange –a s vg_ops
7,通过在每个节点上vgdisplay –v vg_ops进行查看,可见每个卷组vg_ops卷都为激活状态,且hsedb1为server端,其他三个节点为client端。
8,生成包配置文件:
[hsedb1:/]#mkdir /etc/cmcluster/pkg1
[hsedb1:/]#cmmakepkg –p /etc/cmcluster/pkg1/pkg1.conf