- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Service guard 11.18 with 11.31 OS
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-26-2008 02:28 PM
04-26-2008 02:28 PM
we are going to install two node cluster with hp-ux 11.31 and service guard 11.18.
We are going to have Prod package on one server and Dev package on another server.
We are going to have two application startup files
How to use external script to start the application. Do we have to copy both startup files in cluster config file?
Thanks
Muthukumar
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2008 03:37 PM
04-26-2008 03:37 PM
Re: Service guard 11.18 with 11.31 OS
You need to create 2 packages so two package control files therefore both nodes have that control files.
Each control file has 2 special function to start or halt external applications.
Please look at page 289 in the following pdf
http://docs.hp.com/en/B3936-90105/B3936-90105.pdf
My advice is you should write 2 start and stop script for each application to use with root account.
Make sure they are properly works. Just test from UX command line
If they works good add these scripts into the related package control files.
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 01:03 AM
04-27-2008 01:03 AM
Re: Service guard 11.18 with 11.31 OS
I think your scenario will be like this:
Prod-package->Node1 (primary)
Prod-package->Node2 (secondary)
Dev-package->Node2 (primary)
Dev-package->Node1 (secondary)
Thanks & Regards
Aashique
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 04:08 PM
04-27-2008 04:08 PM
Re: Service guard 11.18 with 11.31 OS
We are running prod package on node A and Dev package on node B.
we are not using package.cntl file in this
cluster.
we used cmmakepkg to create the config file
cmmakepkg -m sg/failover -m sg/filessytem -m sg/volume_grouo /etc/cmcluster/prod/prod.config
prod.config file all have the information without Database startup/shutdown information
Service guard manual says use external scripts for customer defined function for verion 11.18
(Executes any customer-defined run commands (legacy packages
only; see â Adding Customer Defined Functions to the Package
Control Scriptâ on page 383) or external_scripts (modular
packages only; see page 304).
Did any one used external_scripts start the database , Where we have to keep the external_scripts?
Thanks
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 05:33 PM
04-27-2008 05:33 PM
Re: Service guard 11.18 with 11.31 OS
I always use my scripts stop and start databases or any other application (like tomcat
, oracle ias, weblogic)
You can put start stop scripts into shared directory on diskarray or /etc/cmcluster/
It does not matter where do you want to put.
SG runs start script at the end of the package starting process and runs stop script at the beginning of the package stopping process
Best Regards
Murat
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2008 06:45 PM
04-27-2008 06:45 PM
Re: Service guard 11.18 with 11.31 OS
What application you are using ?
refer to this
http://docs.hp.com/en/B3936-90117/ch06s03.html?btnNext=next%A0%BB
WK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2008 05:02 AM
04-28-2008 05:02 AM
SolutionThe legacy package format requires the creation of both a package configuration file and a package control script.
Within the package control script are 2 functions from which external scripts can be called; customer_defined_run_cmds and customer_defined_halt_cmds.
The newer format for creating packages is the modular method. This requires just the creation of the package configuration file, using extra options to introduce control-specific parameters into the file.
The parameter that calls external script is
external_script
This parameter is described on page 304 of the latest Managing Serviceguard manual at http://docs.hp.com/en/ha.html#Serviceguard -> http://docs.hp.com/en/B3936-90122/B3936-90122.pdf
The external_script parameter is included if the module sg/external is explicitly requested in the cmmakepkg command.
For novices of the modular package creation, we recommend using the following command to create a fully documented package configuration file that includes all modules:
# cmmakepkg -v 2 -n
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-28-2008 06:02 AM
04-28-2008 06:02 AM
Re: Service guard 11.18 with 11.31 OS
Thanks for your help.
we are going to use oracle db (application startup)
my application start script is called start_oracle
I don't think we used sg/external while creating the pakage config file.
do i have to recreate config file or if there is any can we add sg/external using cmmodpkg command?
thanks
Muthu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2008 09:33 AM
05-02-2008 09:33 AM
Re: Service guard 11.18 with 11.31 OS
You can either recreate a new package configuration file and customize it, or use the following command to create a file that contains all of the parameters that are needed for the sg/external module:
# cmmakepkg -v 0 -m sg/external sg_external.config
Then compare the contents of this file to your package configuration file, and transfer in any parameters that are missing to your file and customize them.
Then do a cmapplyconf on the file when the package is not running.