- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Making changes to package scripts
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
04-13-2001 06:08 AM
04-13-2001 06:08 AM
From what we can tell, the consultants used the standard template for creating our single package. In the control script, the customer_defined_run_cmd section contains the follwing lines:
/etc/cmcluster/prodora1.pkg/prodora1.check
test_return 51
In the customer_defined_halt_cmd section, the following lines:
su - oracle -c "/etc/cmcluster/prodora1.pkg/prodora1.stop"
test_return 52
My question is this: Can we make modifications to the shell scripts prodora1.stop and prodora1.check (and scripts called from these scripts) without recreating the package (cmhaltpkg, cmcheckconf, cmapplconf, etc.)?
There are some concerns from members of our staff, that any changes requires a complete rebuild of the package. If so, why would you use shell scripts in the first place?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 07:42 AM
04-13-2001 07:42 AM
Re: Making changes to package scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 08:37 AM
04-13-2001 08:37 AM
Re: Making changes to package scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 09:23 AM
04-13-2001 09:23 AM
SolutionIn practice, however, it may be a good idea to test the package start/stop on all nodes using cm* commands. FYI, we have a simple script for moving packages you may find helpful:
#!/usr/bin/ksh
# $1 = packagename
# $2 = nodename
date
cmhaltpkg $1
cmrunpkg -n $2 $1
date
cmmodpkg -e $1
exit
If you are going to be supporting an MCSG environment, I would highly recommend attending the MCSG training. In 13 years with HP it is the best class I've ever attended, and I'd say it is essential for supporting an MCSG cluster.
Hope this helps...
Best regards,
Mike Taylor
HP Corvallis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2001 11:10 AM
04-13-2001 11:10 AM
Re: Making changes to package scripts
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2001 01:23 PM
04-20-2001 01:23 PM
Re: Making changes to package scripts
If the desired script alterations do not require modifications to
the package configuration file, then it is possible to alter
the package control script while the package is running because
the script is only accessed when the package is started or
stopped.
If the alteration includes the addition of resources such as LVM
volume groups and/or logical volumes or relocatable IPs, they
should be activated (and mounted) manually, so that the updated
control script will be able to (umount and) deactivate them when
the package is halted.
If the updated script no longer references certain resources,
manually deactivate them so as not to hinder the script from
completing when the package is eventually halted.
Altering the package script file name or adding / removing
/ modifying package SERVICEs generally requires a new
cmapplyconf with the package down.
The cmcheckconf and cmapplyconf commands read the package
configuration file (not the package control script). cmapplyconf
loads the package configuration file variable declarations into
the cluster binary cmclconfig.
The variables in the package configuration file that reference
the package control script are:
RUN_SCRIPT
HALT_SCRIPT (usually the same as RUN_SCRIPT)
SERVICE_NAME
SERVICE_FAIL_FAST_ENABLED YES/NO
SERVICE_HALT_TIMEOUT
SUBNET
NOTE: the SUBNET reference is validated during cmcheckconf
and cmapplyconf activities. If legitimate, it is listed as a
monitored resource in the cluster binary. It is not necessary to have
a matching reference in the package control script. Likewise, it is
possible to have no SUBNET reference in the package configuration
file, but list SUBNET/Relocatable IP pairs in the package control
script.
A word to the wise - complex modifications to the package control
script should be tested immediately!
Don't forget to copy the altered form of the script to the adoptive
nodes.