切换双机互备:
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
重启动小机命令:shutdown -Fr
相关资料:
切换应用包步骤
root身份登录物理IP(133.128.4.5 对应浮动IP133.128.4.7)
检查集群运行情况:cmviewcl
停止应用包 pkg2 : cmhaltpkg pkg2
在sxcncwg1节点上运行pkg2 :cmrunpkg –n sxcncwg1 pkg2
更换自动切换状态为自动:cmmodpkg –e pkg2
切换数据库包步骤
root身份登录物理IP(如:133.128.4.4 对应浮动IP133.128.4.6)
检查集群运行情况:cmviewcl
停止集群: cmhaltcl –f –v
在sxcncwg2节点上运行两个包: cmruncl –f –v –n sxcncwg2
当 sxcncwg1 节点准备好时,将sxcncwg1 加入集群: cmrunnode –v sxcncwg1
切换回集群正常状况步骤
检查集群运行情况:cmviewcl
停止集群:cmhaltcl –f –v
运行集群:cmruncl –f –v
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
下面是以启动tsioms1 为例,系统重启动后要做如下操作:
tsioms1#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 down failed
tsioms2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled tsioms2
pkg2 up running enabled tsioms2
tsioms1#[/]cmrunnode -v tsioms1
cmrunnode: Validating network configuration...
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
cmrunnode: Network validation complete
cmrunnode: Validating cluster lock disk .... Done
Waiting for nodes to join ..... done
Cluster successfully formed.
Check the syslog files on all nodes in the cluster to verify that no warnings occurred during startup.
tsioms1#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 up running
tsioms2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled tsioms2
pkg2 up running enabled tsioms2
tsioms1#[/]cmhaltpkg -v pkg1
tsioms1#[/]cmmodpkg -e pkg1
cmmodpkg: Completed successfully on all packages specified
tsioms1#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 starting starting enabled tsioms1
NODE STATUS STATE
tsioms2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg2 up running enabled tsioms2
tsioms1#[/]cmrunpkg -n tsioms1 pkg1
Package pkg1 is already running on node tsioms1
cmrunpkg: All specified packages are running
tsioms1#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled tsioms1
NODE STATUS STATE
tsioms2 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg2 up running enabled tsioms2
注意:
1)每做一步都要对照看下,是不是和上面显示的状态一致。尤其是运行cmviewcl 命令后的状态一定要对才能进行别的步骤。
2)如果是重启动tsioms1,安装上面的步骤做好后,还要把普元的应用程序重启动一次。
3)如果是启动tsioms2系统,就将上面对应包pkg1换成pkg2, tsioms1换成tsioms2就可以了。
tsioms1#[/]cmrunpkg -n tsioms1 pkg1
Running package pkg1 on node tsioms1
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
下面是以启动tsioms2 为例,系统重启动后要做如下操作
tsioms2#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled tsioms1
pkg2 up running enabled tsioms1
NODE STATUS STATE
tsioms2 down failed
tsioms2#[/] cmrunnode -v tsioms2
cmrunnode: Validating network configuration...
Gathering network information
Beginning network probing (this may take a while)
Completed network probing
cmrunnode: Network validation complete
cmrunnode: Validating cluster lock disk .... Done
Waiting for nodes to join ..... done
Cluster successfully formed.
Check the syslog files on all nodes in the cluster to verify that no warnings occurred during startup.
tsioms2#[/]cmviewcl
CLUSTER STATUS
cluster1 up
NODE STATUS STATE
tsioms1 up running
PACKAGE STATUS STATE AUTO_RUN NODE
pkg1 up running enabled tsioms1
pkg2 up running enabled tsioms1
NODE STATUS STATE
tsioms2 up running
tsioms2#[/]cmhaltpkg -v pkg2
{{---注意一下。2上不行,就在1上试一下。
tsioms2#[/]cmhaltpkg -v pkg2
}}
tsioms2#[/]cmviewcl
tsioms2#[/]cmrunpkg -n tsioms2 pkg2
tsioms2#[/]cmmodpkg -e pkg2
tsioms2#[/]cmviewcl