【正文】
G_SWITCHING_ENABLED YESNET_SWITCHING_ENABLED YESNODE_FAIL_FAST_ENABLED NO 編輯informix包控制文件/etc/cmcluster/informix/vi /etc/cmcluster/informix/ 修改如下參數(shù)VGCHANGE=vgchange a e q n DefaultVG[0]=vg02VG[1]=vg03LV[0]=/dev/vg03/lvol20。 FS[0]=/train。 FS_MOUNT_OPT[0]=o rwFS_UMOUNT_COUNT=1IP[0]=SUBNET[0]=SERVICE_NAME[0]=service1SERVICE_CMD[0]=/etc/cmcluster/informix/SERVICE_RESTART[0]=function customer_defined_run_cmds{ ADD customer defined run mands.: do nothing instruction, because a function must contain some mand./informix/informix start /train/train starttest_return 51}function customer_defined_halt_cmds{ ADD customer defined halt mands.: do nothing instruction, because a function must contain some mand./train/train stop/informix/informix stoptest_return 52} 拷貝配置文件到其它節(jié)點(diǎn)上rcp CRCT2:/etc/cmcluster/informix/rcp CRCT2:/etc/cmcluster/informix/rcp CRCT2:/etc/cmcluster/informix/ 執(zhí)行配置檢查cmcheckconf v C /etc/cmcluster/ P /etc/cmcluster/informix/ cmapplyconf v C /etc/cmcluster/ P /etc/cmcluster/informix/ 啟動(dòng)雙機(jī)cmruncl v 查看雙機(jī)信息cmviewclonstat查看informix的當(dāng)前狀態(tài) 查看雙機(jī)啟動(dòng)和關(guān)閉時(shí)包的log文件tail /etc/cmcluster/informix/ MC/SG的切換測(cè)試當(dāng)informix包在CRCT1上運(yùn)行時(shí),手工將系統(tǒng)shutdownshutdown h y 0然后到CRCT2上查看雙機(jī)的狀態(tài)cmviewcl查看informix包時(shí)候已經(jīng)被CRCT2接管。執(zhí)行操作前后,在CRCT1和CRCT2上分別運(yùn)行cmviewcl來(lái)查看此時(shí)的狀態(tài),查看包的切換情況。執(zhí)行操作前后,在CRCT1和CRCT2上分別運(yùn)行cmviewcl來(lái)查看此時(shí)的狀態(tài),查看包的切換情。