- 论坛徽章:
- 0
|
在给出这个例子之前,假设大家都了解VCS基本的东东了。
环境:4个member/node 在这个cluster中。需要移走一个(node2), Solaris.
1。 打开系统文件,防止应用系统failove到即将移走的node.
haconf -makerw
hasys -freeze -persistent node2
2。转移应用系统到其他nodes,并且关闭系统文件,在node2上停止VCS
haconf -dump -makero
hastop -sys node2
3. 移走所有的disk heartbeat configuration 在node2
gabdiskhb -l
gabdiskhb -d devicenaem -s start
gabdiskx -l
gabdiskx -d devicename -s start
vi /etc/gabtab
remove the line: gabdiskhb -a , 在没有重起system之前。
4。 如果iofencing 存在,停掉它
/etc/init.d/vxfen stop
modunload |grep vxfen
modinfo -i fen_id
5. 停掉VCS的通讯模块(GAB,LLT)
gabconfig -U
lltconfig -U
modinfo |grep gab
modunload -i gab_id
modinfo |grep llt
modunload -i llt_id
6. 拔掉Heatbeat cables(呵呵,我最爱干这个)
7. 卸载VCS
/opt/VRTSvcs/uninstallvcs or pkgrm
rm /etc/vxfendg
rm/ etc/vxfentab
rm /etc/llttab
rm /etc/gabtab
rm /etc/llthosts
rm -r /opt/VRTSvcs
rm -r /etc/VRTSvcs
8. 升级service group 和resource 配置。(有很多,这里我只给出几个重要的。其他的,可根据具体你的系统了。)
haconf -makerw
hagrp -modify group_name AutoStartList -delete node2
hagrp -modify group_name SystemList -delete node2
9. 移走system2啦..........
hasystem -delete node2
haconf -dump -makero
10. vi /etc/llsthosts, remove node2
很少写东西,文笔不好,希望和大家多交流! |
|