- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: MC/ServiceGuard and application start/stop scr...
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
тАО12-06-2002 02:01 PM
тАО12-06-2002 02:01 PM
MC/ServiceGuard and application start/stop scripts
In summary, the scripts work fine when ServiceGuard is NOT running and don't work when it is. Same exact scripts in both instances.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 02:08 PM
тАО12-06-2002 02:08 PM
Re: MC/ServiceGuard and application start/stop scripts
You will find more details in /etc/cmcluster/your_package_name/your_package_name.ctl.log
The above file name is dependent on your package name.
When you are halting the cluster, make sure you do a tail -f of the file and see the progress. You will get good clues from there.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 02:12 PM
тАО12-06-2002 02:12 PM
Re: MC/ServiceGuard and application start/stop scripts
THe log file should be in /etc/cmcluster/
Also look for any errors in syslog.log file .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-06-2002 02:18 PM
тАО12-06-2002 02:18 PM
Re: MC/ServiceGuard and application start/stop scripts
Remember that you don't have a "real" environment when the MC/SG script runs the start/stop scripts. You need to make sure the scripts source whatever env vars you need to run them. Set up all the needed env vars in a file and source that first thing in the start/stop scripts.
I suspect that some var(s) are not being set when MC/SG runs the stop script.
Rgds,
Jeff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 06:36 AM
тАО12-09-2002 06:36 AM
Re: MC/ServiceGuard and application start/stop scripts
I am sourcing in the environment variables at the beginning of the start/stop script. In the package.cntl.log file I get a message that the shutdown is executing which translates to a proshut command for the progress database. That is where it hangs.
I don't get any helpful information from the log. Basically what's happening is that the progress database shutdown script will not shut the database down properly when ServiceGuard is running. These scripts work fine when MCSG is not running. I am currently looking into any environmental issues that could be causing this. Thanks,
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 08:27 AM
тАО12-09-2002 08:27 AM
Re: MC/ServiceGuard and application start/stop scripts
Where does MCSG get it's environment variables?
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 08:29 AM
тАО12-09-2002 08:29 AM
Re: MC/ServiceGuard and application start/stop scripts
Dave
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 08:36 AM
тАО12-09-2002 08:36 AM
Re: MC/ServiceGuard and application start/stop scripts
If so, use this user to control your start and stop procedure.
In your case it will translate to line like this in package.cntl for stop user defined apps:
su - proguser -c ". .profile; proshut > /log/proshut.log 2>&1" &
This approach we use for oracle and it's working like a charm :)
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 08:39 AM
тАО12-09-2002 08:39 AM
Re: MC/ServiceGuard and application start/stop scripts
add wait right after that line.
'&' in this case is not needed.
This will wait for DB to be down before continue and umount lvols.
Hope this helps,
0leg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-09-2002 08:44 AM
тАО12-09-2002 08:44 AM
Re: MC/ServiceGuard and application start/stop scripts
In order to get the package to shutdown, we need to kill off the stop script process and run the proshut manually.
Let me know if you have any other ideas. Do you know where MCSG gets it's environment variables?
Dave