- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- SG pkg control script for prod. on primary node an...
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
09-30-2006 06:02 AM
09-30-2006 06:02 AM
SG pkg control script for prod. on primary node and dev. on failover node
1. Can anybody please provide me any considerations or threads about how to create the control script for such environment? The script will shutdown the development on the failover node before production failover, and start the dev when the prod. is switched back.
2. should I create 2 packages, one of prod, and another for dev? or just script all steps in one pkg control file. what are these advantages or disadvantages?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2006 09:02 AM
09-30-2006 09:02 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
You can't have one package easily control things on 2 machines. That is really not the way SG was designed.
You should have your PROD package set up to run on the primary node by default and the DEVE package to run on the secondary node.
Now in the PROD package control script you can build in logic so that if the package is starting up on the secondary node, then it shuts down DEVE before starting up PROD.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 06:27 AM
10-02-2006 06:27 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
My questions which method is better?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 06:40 AM
10-02-2006 06:40 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
I'm still new with SG, but i am running a two node cluster. I created two packages one to run on production with one application. and another package on our other production server with yet another application. So I'm sure you can do ether one but I pick to create 2 packages.
Just my $0.02
sp,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2006 09:42 AM
10-02-2006 09:42 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
Having 1 package per machine is better. That way if you need to change either the PROD or the DEVE package, then you can make the change without worrying about how it might effect the other instance.
I don't think you would want to make a change to DEVE, and discover that you accidentally changed PROD instead. I think that could be a risk if you have only 1 package.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 02:30 AM
10-09-2006 02:30 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 02:53 AM
10-09-2006 02:53 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-09-2006 05:36 AM
10-09-2006 05:36 AM
Re: SG pkg control script for prod. on primary node and dev. on failover node
One way we do this is....at the start of the production control script we put this entry:
/usr/sbin/cmhaltpkg -n $(/usr/bin/uname -n) dev-pkg-name
What this line does is says...if on THIS server (uname -n) the dev-pkg-name is running...shut it down. If it's not running, it will ignore the line and continue...
Now...we keep our Dev pkgs with very limited failover, they can only fail to one other server...and that is the final failover node (it's the 3rd node in line for prod-failover) for production too...So production would always win in the end.
On that point about restarting the Dev pkg when the Prod pkg is back up...We NEVER enable failing back. They can fail forward, but putting packages back is strictly done MANUALLY. Otherwise, you would quickly lose control.
Just how we do it,
Rgrds,
Rita