- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- where to add customized function before any disk o...
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
11-24-2009 05:55 PM
11-24-2009 05:55 PM
Understood it is not recommended to modify standard function "verify_physical_data_replication" of control script. A customized verification function must be executed before any CA disk operation started i.e. first thing of cmrunpkg. Is function verify_physical_data_replication of control script a good place to add it, or elsewhere?
Thank you,
David
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2009 06:11 PM
11-24-2009 06:11 PM
Re: where to add customized function before any disk operation in a package.
I hope the best place to put your customized script should under the pkg.cntl.script,
But Could you please also explaing "what is purpose of "verify_physical_data_replication" script ?
does the script will be checking on some thing the volume group / file system ? if not ,
the purpose of putting the script may be helpless, hence when package cntl.script while take control of the activate/deactivate , mount & unmount the file system in reference to the "package"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-24-2009 06:17 PM
11-24-2009 06:17 PM
Re: where to add customized function before any disk operation in a package.
verify_physical_data_replication is a scripting function inide of package.control.script and believe is first function be executed before disks import.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2009 02:52 AM
11-25-2009 02:52 AM
Re: where to add customized function before any disk operation in a package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2009 08:23 AM
11-25-2009 08:23 AM
SolutionServiceguard 11.18 and above can use a new "modular" package configuration, which enables several new features. One of them is the external_script module, which can run custom scripts as the very first action of package start-up.
The configuration keyword is "external_pre_script".
http://docs.hp.com/en/B3936-90140/ch04s08.html#chdcgiaf
In short:
if you add a line like this in your new-style package configuration:
external_pre_script /some/where/myscript
then three things will happen:
1.) Serviceguard will run "/some/where/myscript start" at the very first step of package startup.
2.) Serviceguard will run "/some/where/myscript stop" as the very last action of package shutdown.
3.) whenever you use the "cmcheckconf" or "cmapplyconf" commands on this package, Serviceguard will run "/some/where/myscript validate". If your scripts returns an error code here, the cmcheckconf/cmapplyconf operation will be aborted.
Your script must be written to accept each of these arguments. If your script has nothing to do e.g. in the package shut-down phase, it should just exit cleanly, without setting an error code (i.e. "exit 0")
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2009 09:37 AM
11-25-2009 09:37 AM
Re: where to add customized function before any disk operation in a package.
As Melvyn said, that "verify_physical_data_replication" is a hook for Metrocluster. Regardless of whether Metrocluster is installed at your site, this function was designed to work without modification. If you have custom activities that you would like to perform before starting the application, use the customer_define_run_cmds function in the legacy package control script. If you need to perform a custom function before the activation of VGs, add it at the top of the control script. Note that customizations are not directly supported by HP.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2009 09:54 AM
11-25-2009 09:54 AM
Re: where to add customized function before any disk operation in a package.
Both sites has XP CA. Each site's cluster has two servers. Packages don't automate failover cross site. The goal is to hook customized script such as sednmail and business related verification before package can be started.