Tuesday, July 10, 2012

Solaris: VCS How to update SystemList without bring down service group


Question


I have a service group say sg1 and it has the following system list defined

SystemList = { a = 1, b = 2, c = 3 }
        AutoStartList = { a }

Currently, I am running service group in c. I want to change the system
order like this. a=3, b=2 and c=1 and autostartlist=c.


Can I do this without bringing down the service group?


Answer

haconf -makerw
hagrp -modify SystemList -update c 0 b 1 a 2
hagrp -modify AutoStartList c
haconf -dump -makero

source: http://mailman.eng.auburn.edu/pipermail/veritas-ha/2004-June/008414.html

No comments:

UNIX: How to print column nicely using printf

[user@hostfwnms1-oam tmp]# cat b.sh printf "%-26s %-19s %-8s %-8s %-s %-s\n" HOSTNAME IP PING SNMPWALK 0-ok 1-fail for i in `cat n...