- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Package control script question...
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
03-31-2004 10:35 AM
03-31-2004 10:35 AM
Package control script question...
Im quite new to HPUX and MC/Service Guard, and I hope you guys can explain/help me on questions i got.
On our package control script, there was no SERVICE_NAME[0], SERVICE_CMD[0], and SERVICE_RESTART[0] parameter set. Oracle is included on this package, and was started via script on the "customer_defined_run_cmds" function.
Question:
-are the PIDs generated by the script that runs oracle will be monitored by the cluster package manager? that, if one of these process IDs is gone/killed/failed, will triger failover?
Thanks in advance,
Rad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 10:53 AM
03-31-2004 10:53 AM
Re: Package control script question...
The answer to your question is NO.
Package monitor has no means of keeping track of the PIDs started by the scripts in the customer_defined_run_cmds section.
The usually practise is to have a process monitoring script started as a service.
This script should keep monitoring for the process and if one of the process is missing then it should exit with an error code (say 1).
In this case, package manager will realize the service exited with NON-ZERO value and willhalt the package.
Hope this helps
Sundar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 10:54 AM
03-31-2004 10:54 AM
Re: Package control script question...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 01:51 PM
03-31-2004 01:51 PM
Re: Package control script question...
The pkg monitoring script will monitor the critical Oracle (in this case) process like pmon, smon, etc. When it sees that one of those critical Oracle processes dies, then the package will halt.
Ira
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 11:47 PM
03-31-2004 11:47 PM
Re: Package control script question...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2004 11:48 PM
03-31-2004 11:48 PM
Re: Package control script question...
verify_physical_data_replication # add hook for MetroCluster
activate_volume_group
activate_disk_group
check_and_mount
verify_ha_nfs $1 # add hook for NFS
add_ip_address
get_ownership_dtc
customer_defined_run_cmds
start_services
start_resources
Note that customer_defined_run_cmds is performed before start_services.
One would start Oracle using the ORACLE.sh script with a 'start' option from the customer_defined_run_cmds function, and then call the same script with the 'monitor' option via the SERVICE_CMD parameter, because the SERVICE_CMD is expected to remain persistent. If the command called from SERVICE_CMD definition dies, SG normally fails the package over to the adoptive node.
The HP Enterprise Cluster Master toolkit provides an ORACLE.sh, which after customization for the user's environment, can be called with the following options:
shutdown | halt | start | monitor
The 'monitor' function relies on the MONITOR_PROCESSES defined by the administrator, to determine the PIDs of the processes to monitor. Hence the parameter MONITOR_PROCESSES_PID[$n] in that function.
.SD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 12:02 AM
04-01-2004 12:02 AM
Re: Package control script question...
But ... be sure that is what you want to do. My preference is to keep Oracle Monitoring with Oracle. All too often some DBA does a fat finger (..my favorite ooops..) and drops an instance. Or maybe your listener gets out of sync (hey it happens)...Nothing was really wrong (other than maybe human error), but now you have failed over. And maybe had to stop some other "less important" package on the other node - when all you needed was to restart your instance back on it's original box.
So...if your new to HPUX & MC/SG, make sure you consider all the options, and choose which is best for your situation.
Sometimes....you may not want to take advantage of every whistle & bell. You decide what is best.
Rgrds,
Rita
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 12:33 AM
04-01-2004 12:33 AM
Re: Package control script question...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-01-2004 08:41 AM
04-01-2004 08:41 AM
Re: Package control script question...
I'd like to thank you for all the replies and inputs you gave. That's very helpful to me.
Thanks,
Rad