1831919 Members
3401 Online
110031 Solutions
New Discussion

MC/SG Cluster

 
kholikt
Super Advisor

MC/SG Cluster

I have one cluster running oracle database. However, I need to do some maintenance to change some oracle parameter. If I stop the cluster package I won't be able to see those clustered aware file system. I do not want the cluster to failover. I remember that I can some how create a debug file so that the cluster will not failover. Any idea?

abc
10 REPLIES 10
Bharat Katkar
Honored Contributor

Re: MC/SG Cluster

If you want the VG that are active in cluster to be available after cluster is put down then:
1. Before you halt the cluster execute:
# vgchange -c n
2. Halt the cluster
3. # vgchange -a y
Mount the filesystems.

Again while adding this VG's back then:

1. vgchange -a y
2. vghange -c y
3. vgchange -a n

Then start the Cluster.

It should work.

Hope that is what you are looking for.

Regards,
You need to know a lot to actually know how little you know

Re: MC/SG Cluster

Hi
you can halt the package
and start mount the filesystems in exclusive mode.

Example :
#cmhaltpkg -v
#vgchange -a e
then mount the filesystem.

After that you can proceed for the S/W level changes.

Hope this may help you.
With Regards
Prasanta
RAC_1
Honored Contributor

Re: MC/SG Cluster

you can disable package switching as follows.
cmmodpkg -dv "package_name"

Then you can stop the package. Do vgchange -a e vgxx on cluster aware vgs and mount. then do changes, unmount and deactivate the vgs. vgchange -a n vgxx

then start pkg-cmrunpkg, enable package switching-cmmodpkg -ev "package_name"
There is no substitute to HARDWORK
kholikt
Super Advisor

Re: MC/SG Cluster

I remember we can touch .debug file to some directory then the cluster will be in debug mode.
abc
Bharat Katkar
Honored Contributor

Re: MC/SG Cluster

sorry ..ignore my post ... i thought you are bringing down the cluster...

RAC pointed you correctly.

Regards,
You need to know a lot to actually know how little you know
Hanwant Verma_1
Regular Advisor

Re: MC/SG Cluster

Check the following docs

Testing Cluster Halt and Reconfiguration

http://docs.hp.com/en/B5158-90001/ch06s02.html

Hanwant
Gary L. Paveza, Jr.
Trusted Contributor

Re: MC/SG Cluster

I believe you're talking about the situation that happens when you have an oracle database and a service in the package that monitors the database. If the database goes down, then the package fails. Here is the modification to the oracle script. Once this script is running as the service (monitor parameter), all you need to do is touch /var/tmp/${ORACLE_SID}_MAINT to temporarily turn off monitoring. Remove the file to resume.

"Edited to comply with ITRC Guidelines, post of purchaseable scripts not allowed"
Frank de Vries
Respected Contributor

Re: MC/SG Cluster

I did not see this point confirmed which in fact was your question.

When you touch the debug file in /etc/cmcluster
it will restrain the Mc/Cluster from starting up after a boot.

You can at any moment of course halt a
particular package or de-tach a particular node from a cluster without it to failover.
(This could be handy if you want some part
of the cluster to stay active or accessible)

You can also stop the whole cluster,
and do the vgchange bits to get our
mounted volumes back online.

But you have many technical examples on this from other forum-members.

I just thought it proper to put the debug
technique in perspective.

Hope this helps,
regards,



Look before you leap
unixdaddy
Trusted Contributor

Re: MC/SG Cluster

The debug flag is available if you use the serviceguard-developer-toolbox.tar which contains the serviceguard-toolbox-template.tar which allows you to setup serviceguard package using a general template (like the Master toolkits). The configuration file states:-

"###############################################################################
# TKIT_MAINTENANCE_FLAG:
# Maintenance flag indicates if the maintenance mode feature of toolkit is
# enabled or disbaled. This flag may be set to either "yes" or "no". When set
# to "yes", monitor script checks for the existence of the file, "haapp.debug"
# in the package directory. If the file, "haapp.debug" exists and
# TKIT_MAINTENANCE_FLAG is set to "yes", then application monitoring is
# suspended, and the application maintenance can be performed without first
# halting the package. To resume application monitoring after maintenance,
# manually remove the file, haapp.debug from the package directory.
# The default setting for this variable in the toolkit template is "yes.
#
# Note: if Maintenance flag is set to "no" then the above feature would not be
# available and toolkit cannot be brought into maintenance mode.
#
# For e.g., TKIT_MAINTENANCE_FLAG=yes
###############################################################################

TKIT_MAINTENANCE_FLAG=yes"

or as an alternative you can use the following link will allow you to do the same:-

How to keep package file systems mounted after a package halt DocId: UXSGKBQA00000030 Updated: 1/24/02 6:31:00 AM
unixdaddy
Trusted Contributor

Re: MC/SG Cluster

BTW your points to questions ratio is very low - 284 out of 780.