Unix United Professionals
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How to set up a service group in VCS

Go down

How to set up a service group in VCS Empty How to set up a service group in VCS

Post by spanner Tue Apr 15, 2008 4:18 pm

Example SG creation (using Application/IP/NIC Agent):

haconf -makerw
hagrp -add <sgname>
hagrp -modify <sgname> SystemList <node1> 0 <node2> 1
hagrp -modify <sgname> AutoStartList <node1> <node2>
hares -add <appname> Application <sgname>
hares -display <appname>
hares -modify <appname> StartProgram "/path/application &"
hares -modify <appname> StopProgram "/usr/bin/pkill <application>"
hares -modify <appname> User root
hares -modify <appname> MonitorProcesses "/path/application"
hares -modify <appname> CleanProgram "/usr/bin/pkill -9 <application>"
hares -modify <appname> Enabled 1
hares -add <IPname> IP <sgname>
hares -modify <IPname> Device "hme0"
hares -modify <IPname> Adress "10.11.12.13"
hares -modify <IPname> NetMask "255.255.255.128"
hares -modify <appname> Enabled 1
hares -add <NICname> NIC <sgname>
hares -modify <NICname> Device "hme0"
hares -modify <NICname> Enabled 1
hares -link <IPname> <NICname>
hares -link <appname> <IPname>
haconf -dump -makero
hagrp -online <sgname> -sys <node1>

spanner

Posts : 14
Join date : 2008-04-10
Location : Somewhere in Somerset - where there is a lot of mud - and sounds a bit "Horsey"

http://www.linkedin.com/in/sarbpanesar

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum