- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Package Maintenance Mode
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
Forums
Discussions
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
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-02-2004 08:40 PM
03-02-2004 08:40 PM
How do we start a cluster package in maintenance mode? What is the relevance of this?? What is the OB2SGENABLED parameter used for?
One of our customer was asking me this and I dont have any further info about the same ...!!!
Pl. help.
Thanks,
Karthik S S
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 08:47 PM
03-02-2004 08:47 PM
SolutionAs to package Maintenance Mode, this is a method of having your package startup script test for the existence of a file, and if the file exists, then it just loops around sleeping, or skips the application startup.
This means that you have your vg/lv/fs activated and mounted to allow you to do any maintenance, without the application actually running.
If the file is not there, the package starts as normal.
This is covered in a course that may be available, namely the Serviceguard II (3 day advanced) course from HP Customer Education.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 08:48 PM
03-02-2004 08:48 PM
Re: Package Maintenance Mode
I would hash out the custome_defined_run_cmds. This way only the disk get mounted and the ip-address is activated. I do not know the OB2SGENABELED parameter. Is it a new parameter?
HTH,
Gideon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 09:17 PM
03-02-2004 09:17 PM
Re: Package Maintenance Mode
Does the SG Toolkit scripts contain a option for starting the package in maintenance mode?? If so do I have to pass any switches to the cmrunpkg command or just create a file by name debug under the package directory?
Thanks,
Karthik S S
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 09:17 PM
03-02-2004 09:17 PM
Re: Package Maintenance Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 09:39 PM
03-02-2004 09:39 PM
Re: Package Maintenance Mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2004 09:44 PM
03-02-2004 09:44 PM
Re: Package Maintenance Mode
while true
do
if
[ -f /etc/cmcluster/pkgA/maint_flag ]
then
while [ -f /etc/cmcluster/pkgA/maint_flag ]
do
sleep 10
done
else
start_my_application
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 05:51 AM
03-04-2004 05:51 AM
Re: Package Maintenance Mode
If the cmcld is running in the node, why not just activate the vg in exclusive mode ,mount the logical volumes manually and add the IP address using cmmodnet ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2004 06:00 AM
03-04-2004 06:00 AM
Re: Package Maintenance Mode
There is nothing called package maintenance mode by default with serviceguard. However, I implement a 'lockfile' mechanism on my servers. If the file exists, then the application won't start. A simple chronology is as follows. My scripts have start|stop|monitor cases. I define functions like appstart, appstop and appmon inside the script.
1. Start
Check for /etc/cmcluster/
2. Stop
Doesn't care for this lock file for most of my requirements. Simply runs appstop.
3. Monitor:
This is an important piece. If the lock file is there, then it will skip the monitoring part of the processes. If the lock file is not there, then it will see if all the processes|required packages are up or not and start them. It also keeps a counter for each operation. If the counter exceed beyond a certain value, then the script will abort. Without this counter, monitor may end up restarting the applicaiton numerous times.
If I have to do maintenance, I simply touch /etc/cmcluster/
-Sri