Tuesday, August 21, 2007

VCS: Add/Remove Node From Cluster

Removing VCS Host:
  • Remove system from /etc/llthosts. Rename /etc/rc2.d scripts.
  • hastop -local
  • From another node in cluster run the hagrp -modify commands. Once node no longer exists in service groups, you can finally remove it with hasys.
hagrp -modify casper SystemList -delete denitdb03
hasys -delete denitdb03

Adding VCS Host:

  • Be sure to update /etc/llthosts with the correct ID, in this case 3.
  • Use the main.cmd to get the syntax correct for an additional system.
hagrp -modify ClusterService SystemList -add denitdb07 3
hagrp -modify ClusterService AutoStartList -add denitdb07
hares -modify mnic Device ce0 "10.101.155.58" ce1 "10.101.155.58" -sys denitdb07
hares -modify mnic RouteOptions "default 10.101.155.1 0" -sys denitdb07
hagrp -modify casper SystemList -add denitdb07
hagrp -modify casper SystemList -add denitdb07 3
hagrp -modify kanaint2 SystemList -add denitdb07 3
hagrp -modify kronos SystemList -add denitdb07 3
hagrp -modify livechat SystemList -add denitdb07 3
hagrp -modify seraph SystemList -add denitdb07 3
hagrp -modify shade SystemList -add denitdb07 3
haconf -dump -makero
hacf -verify .

No comments: