- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: auto control of packages on node reboot
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 01:53 AM
04-09-2002 01:53 AM
auto control of packages on node reboot
I want to cron an auto reboot of some of my systems in the cluster. However I would like the current pkgs run on the node to halt when the shutdown starts then re-run on the same node when it comes back into the cluster and registers itself.
so far ive already started on my own script.
do i carry on with it, or can i achieve this some other (easier) way?
As you can see i only want the pks to come down after 7pm. Just in case 1 node isnt running a pkg and i want to reboot it in the day and i cant put "cmhaltpkg (pkgname)" in the /sbin/rc2.d/K001pkg_halt link.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 03:09 AM
04-09-2002 03:09 AM
Re: auto control of packages on node reboot
You can control the pakages from an other node of your cluster. For example, if you want to reboot node A, running pkgA.
From node B at reboot time :
cmhaltpkg pkgA
cmhaltnode nodeA
remsh nodeA /usr/sbin/shutdown ....
then wait for node A to be back (using a loop with a ping nodeA -n 1 for example)
then when it is ok
cmrunpkg -n nodeA pkgA
Regards,
Fr??d??ric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2002 05:07 AM
04-09-2002 05:07 AM
Re: auto control of packages on node reboot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 11:37 AM
05-01-2002 11:37 AM
Re: auto control of packages on node reboot
The way I would recommend doing this is to disable the package from starting on every node except the one you are going to reboot.
cmmodpkg -d -n
When the server shuts down it will halt the package on itself. The package switch parameter (or auto run as they now call it) will still be enabled, but the only server allowed to run it will be the one that is stopping. Therefore as soon as the server is available again the package will restart on that node.
Then enable the package to run on all the other nodes again.
This will ensure the package is down for the shortest time possible, if thats important.
BTW are you the Mark I met at Grahams christmas party?
Chris Garman
PSL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2002 11:57 AM
05-01-2002 11:57 AM
Re: auto control of packages on node reboot
First, I know it's your decision, but why cron a reboot? I have boxes that have been up for months and still don't need a reboot (until I get around to loaded a few patches maybe). But like I said that's your call.
To the real question....
Yes you can do the cmmodpkg -d
Now for the halting of the package....
...in your package control script there is a section for defined_run_commands and defined_halt_commands. On ours (running Oracle) we put the line to run our Oracle_start_script and Oracle_stop_script respectively. Now when you bring down the system it will shutdown the packages via your /sbin/init.d/rc* instructions, this will cause your shutdown to hang for a bit while it does this...but it should bring the package down...and then when the system restarts the /sbin/init.d/rc.* will start it all (and pkg) back up.
Now if you run a cmhaltpkg
So....how's this for a quick sum up...
If your pkg control script has the auto_start and auto_stop set up in this script...then just disable package failover (cmmodpkg -d ...) and reboot the box...
At least (so far) this has worked for me..
Rgrds,
Rit