Operating System - HP-UX
1847535 Members
3433 Online
110265 Solutions
New Discussion

pkg can't switch normally

 
hongjing_zhang
Trusted Contributor

pkg can't switch normally

I configure a cluster,in the test,when I remove primary NIC cable,the pkg's ip can switch to secondary NIC,but when I remove the secondary NIC cable,the pkg doesn't switch to the next node. but when I halt the first node,the pkg can switch to the next node normally.why? could you help me?
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: pkg can't switch normally

Nice configuration files.

There is a log file you want to look at. Every time SG tries to failover a package it logs the attempt.

/etc/cmcluster/pkg_name/pkg_name.log

So that file will tell you what went wrong. You may be able to figure out what went wrong yourself.

pkg_name and pkg_name.log is generic. The name of the log file depends on what you named the package in the SG config files you uploaded.

I didn't read them, because I don't have what I need to solve the issue. Yet.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
hongjing_zhang
Trusted Contributor

Re: pkg can't switch normally

sorry ,I can not get the logfile.
would you tell me which condition can't let pkg switch normally when primary and standby NIC is disconnected.thanks very much
Steven E. Protter
Exalted Contributor

Re: pkg can't switch normally

G.G.krishnamoorthy
Occasional Advisor

Re: pkg can't switch normally

You pkg config file is monitoring the wrong subnet.

Modify SUBNET 10.234.4.0 to SUBNET 10.234.0.0 on both apppkg.conf and dbpkg.conf files.

Also modify the subnet entry in control.sh on both the places. (i.e. apppkg and dbpkg).

You can also verify your subnet using the following command.

cmquerycl -v -n jllk1 â n jllk2 -l net|more.

After modifying , you stimulate, primary and secondary lan failure by removing the cables, pkg should move to the adoptive node.

Whenever you have pkg related issues, refer pkg script log file. In your case,

etc/cmcluster/dbpkg/control.sh.log

That will give a clear picture as what is going on.

Best of luck

- Krish
Krishna
Nguyen Anh Tien
Honored Contributor

Re: pkg can't switch normally

Show me a log file at
/etc/cmcluster/pkgname/appkg.cntl.log
so i will examine what wrong you encounted
HP is simple