Operating System - HP-UX
1832984 Members
2616 Online
110048 Solutions
New Discussion

Re: Set Package order for shutdown

 
SOLVED
Go to solution
John Kelly_3
Regular Advisor

Set Package order for shutdown

What is the simplest way of implementing a specific order for packages to shut down in.
I would like to use cmhaltcl -f but this shuts down packages in the wrong order leaving some with hung nfs mounts.
Although starting up doesn't cause so much of an issue, it would also be preferable for the packages to start in a specified order.
I am using SG 11.17 with LVM VGs. on HP 11.23 ia64.
6 REPLIES 6
Ivan Krastev
Honored Contributor
Solution

Re: Set Package order for shutdown

See kb doc UMCSGKBRC00008166 - Dependent Pkgs: Can the order of package startup be controlled?


regards,
ivan
John Kelly_3
Regular Advisor

Re: Set Package order for shutdown

OK so this functionality isn't supported. Since I don't really want to change anything except when shutting down the whole cluster, I don't believe there is any SG configuration item I can change that will give this minimal change to the environment. E.g.
Any failover of the main package would not warrant a shutdown of the dependent packages as they will pick up NFS again when it restarts.
Perhaps I will just put in an alias for cmhaltcl -f that shuts the packages down in the required order and then runs /usr/sbin/cmhaltcl.
Safarali
Valued Contributor

Re: Set Package order for shutdown

Hi Jhon are you using NFS tool kit with yoru serviceguard

Regards
Safar
John Kelly_3
Regular Advisor

Re: Set Package order for shutdown

The main package exports /usr/sap/trans from hanfs.sh. The 'dependent' packages rely on OS level automount with a 60 second timeout to mount it. I can't see any benefit from bringing the mount of this exported filesystem under package control.
Sajjad Sahir
Honored Contributor

Re: Set Package order for shutdown

Dear John
U have to shutdown the packages one by one
this is more polite way, please don't shutdown the cluster forcefully it is not good
cmhaltpkg -v -n nodename packagename
then if any volume group is part of the cluster deactivate it then shutdown the cluster.
only u have to deactivate the volume group which is the part of u cluster
understand service guard has the control up to u logical volume.
John Kelly_3
Regular Advisor

Re: Set Package order for shutdown

Package order is unsuppported other than Dependencies in later versions. This is more complexity that I was looking for. I just wanted a simple means of ordering the start and stop of packages when using cmhaltcl -f
Rather than complicating the start / stop script functions with waits and conditionals, I will simply add a root alias for cmhaltcl -f so that the packages are shutdown in the correct order.