Operating System - HP-UX
1824976 Members
3490 Online
109678 Solutions
New Discussion юеВ

pkg in halting state how to clear

 
SOLVED
Go to solution
Jonathan Caplette_1
Super Advisor

pkg in halting state how to clear

Hello

I've run into an error while halting a pkg, I had to break my cmhaltpkg command, now my cluster view (cmviewcl) shows the pkg in halting state, how do I clear this out?

# cmviewcl

CLUSTER STATUS
PSA up

NODE STATUS STATE
psa1h01 up running

PACKAGE STATUS STATE AUTO_RUN NODE
HRPRD halting halting disabled psa1h01
CMPRD up running disabled psa1h01
LLPRD up running disabled psa1h01

NODE STATUS STATE
psa1h21 up running
psa2h01 up running

PACKAGE STATUS STATE AUTO_RUN NODE
FSPRD up running disabled psa2h01
PAPRD up running disabled psa2h01

NODE STATUS STATE
psa2h11 up running

PACKAGE STATUS STATE AUTO_RUN NODE
NFSPRD up running disabled psa2h11

UNOWNED_PACKAGES

PACKAGE STATUS STATE AUTO_RUN NODE
NFSLL down halted disabled unowned
RMPRD down halted disabled unowned


thanks
6 REPLIES 6
sujit kumar singh
Honored Contributor

Re: pkg in halting state how to clear

HI

Could you please provide the package control logs for the package on the node that the packcage was running.
Please do attach the same.
regards
sujit
John Bigg
Esteemed Contributor
Solution

Re: pkg in halting state how to clear

If the package is in a halting state, it means that the package halt script is still running so something is probably hung. Look at the package log to see how far it got and work out what the problem is. Worst comes to the worst, us ps to determine the package halt script and kill this. This should cause the package to move to the failed state and you will need to clear things up manually. e.g. remove package IP addresses, deactivate VGs etc. depending on how far you got.
B. Hulst
Trusted Contributor

Re: pkg in halting state how to clear

If you can afford downtime:

# cmhaltcl -f -v
# cmruncl -v


If not, try

# cmrunpkg -n psa1h01 HRPRD

and then try to halt the pkg again..
John Bigg
Esteemed Contributor

Re: pkg in halting state how to clear

> If you can afford downtime:
>
> # cmhaltcl -f -v
> # cmruncl -v
>
>
> If not, try
>
> # cmrunpkg -n psa1h01 HRPRD
>
> and then try to halt the pkg again..

This will not work if the package is stuck in the halting state.
Jonathan Caplette_1
Super Advisor

Re: pkg in halting state how to clear

I solved that problem by killing the hung process of Oracle... After the kill the PKG status went on Halted state and Unowned...

I had to re-enable the pkg to run on my node, and I've been able to manipulate it again...

The problem origin was from a Oracle upgrade, and the oracle script was not update properly...

Thanks for the answer...

Regards
Jonathan
Jonathan Caplette_1
Super Advisor

Re: pkg in halting state how to clear

Solved... Thanks