- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How the package manager works
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
Discussions
Discussions
Forums
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
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
тАО06-20-2007 12:36 AM
тАО06-20-2007 12:36 AM
How the package manager works
It's written in the manual it monitors the package services' PIDs, and it kills the for example when halt scripts time-outs.
How exactly it monitors the PIDs?
Is there som script that kills services, or the package manage deamon does it directly?
Thanks, Yulia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 01:56 AM
тАО06-20-2007 01:56 AM
Re: How the package manager works
The package manager is not a separate process, but runs from cmcld.
If configured, package services are also monitored by the package manager. Package service failures are dealt with by the package manager.
A package service is normally a script which is used to monitor processes of the critical application. If an application process fails (dies), the service (script) exits. The exit of a service triggers to the package manager to deal with the situation - either attempt to restart the service (monitor script or application), or move the package to an adoptive node.
The package service is defined in the package configuration file and operated in the package control script.
The following are sample lines from each:
pkg1.config:#SERVICE_NAME
pkg1.config:#SERVICE_FAIL_FAST_ENABLED
pkg1.config:#SERVICE_HALT_TIMEOUT
pkg1.sh:#SERVICE_NAME[0]="ora_monitor"
pkg1.sh:#SERVICE_CMD[0]="/etc/cmcluster/pkg1/oramon.sh"
pkg1.sh:#SERVICE_RESTART[0]="1"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 02:02 AM
тАО06-20-2007 02:02 AM
Re: How the package manager works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 03:13 AM
тАО06-20-2007 03:13 AM
Re: How the package manager works
Is there some thing about Serviceguard that you don't understand, or are you just interested in the theory of operations?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 03:38 AM
тАО06-20-2007 03:38 AM
Re: How the package manager works
I'm just interested to understand the Serviceguard deeper then just a user.
So, there are two more questions, regarding the package behaviour after the halt/start scripts abnormal exits:
├в ┬в start script returns 1 ├в abnormal exit. Services are killed, and the package is disabled from failing over to other nodes.
What is the state of the package on this node itself?
├в ┬в start scripttimeout
In this scenario, the package is killed and disabled globally. It is not disabled on the current node.
What does it mean disabled globally , but not disabled on the curent node??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 08:42 AM
тАО06-20-2007 08:42 AM
Re: How the package manager works
The status settings can be viewed using either 'cmviewcl -v' or 'cmviewcl -v -p
AUTO_RUN or global switching is a setting that allows the package to move to any node, whereas node-switching sets whether a package is allowed to run on a specific server.
When a package startup fails (returning 1), AUTO_RUN (global switching) is disabled. This prevents the package from failing over to another node. However node-switching is left enabled on the node where the package attempted to start.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-20-2007 10:41 PM
тАО06-20-2007 10:41 PM
Re: How the package manager works
package switching is disabled globally means that package will not switch to other node any any situation .
Generally everytime we start the package we need to change this status by cmmodpkg -e
we can enable/disable package switching in perticular node .In this case it is package swithching disabled on local basis.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 02:43 AM
тАО06-21-2007 02:43 AM
Re: How the package manager works
Does it mean I can run switch package command from this node's machine, but not from another one?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2007 10:30 PM
тАО06-21-2007 10:30 PM
Re: How the package manager works
If package switching is disabled for a node then the package will not move to that perticular node.
If package swithcing is disabled globally then it will not switch at all and it happend at the time of package startup or after you halt the package.
Hope I am clear to explane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-22-2007 03:18 AM
тАО06-22-2007 03:18 AM
Re: How the package manager works
But the local node is still permitted to start the package but corrective maintenance is still necessary to clear the package startup problem - that's why Package_switching is still enabled - to allow you to test again.
After the package is started and stopped successfully, re-enable AUTO_RUN thus:
# cmmodpkg -e