Operating System - HP-UX
1753963 Members
7503 Online
108811 Solutions
New Discussion юеВ

Re: APA Service Guard Question

 
SOLVED
Go to solution
likid0
Honored Contributor

APA Service Guard Question

Hi,

I'm using SG11.18,APAX,HP-UX11.23,With Fail-Over groups.

Everything works great, but when I wan't to change the configurarion, of lan monitor I need to reboot the server, for example:

I needed to change the failover lan card, it's going to be lan5 instead on lan1.

I edit /etc/rc.config.d/hp_apaportconf and ad lan5

HP_APAPORT_INTERFACE_NAME[1]=lan5
HP_APAPORT_CONFIG_MODE[1]=LAN_MONITOR

then when I try to restart lm and APA I get:

# /sbin/init.d/hplm stop (03-01 13:06)
ERROR: Unable to delete the Failover-group lan901
because it is acquired by MC/SG cluster.
ERROR: Unable to delete the Failover-group lan900
because it is acquired by MC/SG cluster.
Exiting: Error deleting configuration. The binary file contains
only those Fail-over groups that are still left configured
/sbin/init.d/hplm stopped.

I have SG stoped:

# cmviewcl

CLUSTER STATUS
clus_sigle up

NODE STATUS STATE
sdp2 up running
sdss up running

MULTI_NODE_PACKAGES

PACKAGE STATUS STATE AUTO_RUN SYSTEM
crs down halted enabled no
inst down halted enabled no

I found the only way to go round this is rebooting the server so APA/LM get's the new configuration.

There has to be a way to do it without having to stop SG and the server nope?

Thnx
Windows?, no thanks
3 REPLIES 3
Turgay Cavdar
Honored Contributor

Re: APA Service Guard Question

Hi Daniel,
Can you change your config after stopping serviceguard(without rebooting the server)?

Have you got a special requirement for using APA in failover config? Service guard also give failover capabilities without using APA.
likid0
Honored Contributor

Re: APA Service Guard Question

Nope, I need to reboot the server.

I'm using APA because is has Oracle Rac running
Windows?, no thanks
Turgay Cavdar
Honored Contributor
Solution

Re: APA Service Guard Question

I have also some clusters with APA with Link aggregate. It makes me wonder also, if i need to change APA config, what is the method then...


/sbin/init.d/hplm stop command calls "/usr/sbin/landeleteconf". And landeleteconf checks cluster config file for the interface, if the interface is used by serviceguard it gives the message: "ERROR: Unable to delete the Failover-group lan900 because it is acquired by MC/SG cluster."


The only thing i can find in the documents is, but it doent tell how to do changes to APA in a serviceguard envioenment:
Configuring HP Serviceguard
HP recommends that you configure HP Serviceguard after configuring HP APA. You can then
use the link aggregates or failover groups in your HP Serviceguard configuration. See the HP
Serviceguard documentation for more information.

http://docs.hp.com/en/J4240-90049/APA-Admin-Guide.pdf in document



I found a way to not to get "ERROR: Unable to delete the Failover-group lan900 because it is acquired by MC/SG cluster." message. This is by commenting /etc/inetd.conf for serviceguard daemons. It works in my test environment but possibly it is not a supported way:

0-)Stop serviceguard
cmhaltcl -f

1-) Add # to sg daemons
vi /etc/inetd.conf
#hacl-cfg dgram udp6 wait root /usr/lbin/cmclconfd cmclconfd -p
#hacl-cfg stream tcp6 nowait root /usr/lbin/cmclconfd cmclconfd -c

inetd -c

2-)Stop APA
/sbin/init.d/hplm stop
/sbin/init.d/hpapa stop

3-)Remove # from /etc/inetd.conf
hacl-cfg dgram udp6 wait root /usr/lbin/cmclconfd cmclconfd -p
hacl-cfg stream tcp6 nowait root /usr/lbin/cmclconfd cmclconfd -c

inetd -c

4-)mv old apa config

mv /etc/lanmon/lanconfig.ascii /etc/lanmon/lanconfig.ascii.old

5-)Start APA
/sbin/init.d/hpapa start
/sbin/init.d/hplm start

6-)Edit you apa config file
lanqueryconf -s
vi /etc/lanmon/lanconfig.ascii

7-)lancheckconf

8-)lanapplyconf

9-)cmruncl -v


One more thing you can use serviceguard network card failover features without using APA by adding the interface to oracle RAC (i assume you use oracle RAC) with "oifcfg setif " command.