Operating System - HP-UX
1834651 Members
2317 Online
110069 Solutions
New Discussion

Re: when to run cmmakepkg during patch installation

 
kumardev
Occasional Advisor

when to run cmmakepkg during patch installation

Hi ,
I am about to install a service guard patch in one of my MCSG, which mentions that there is a need to create the control script(cmmakepkg), can you please tell me as to when to do that , the steps that I have prepared are as:
1)Move the pkg from the primary node to the HA node.
2)halt the Service guard on the primary node node.
3)patch the primary node, reboot it if required.
4) Start the service guard on teh primary server.
5)failback the pkg to the primary node.

Can can you please tell me as to when to run the cmmakepkg in the above mention steps?

Regards
Kumardev
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: when to run cmmakepkg during patch installation

Shalom,

You can run cmmakepkg before or after step 2.

I would try for before.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
kumardev
Occasional Advisor

Re: when to run cmmakepkg during patch installation

Thanks for the reply,

But in the HP docs it says that we have to recreate the control script after the installation of the patch, but befor or after step 2 we still havnt installed the patches..:-(

appreciate your help on this.

Regards
dev
Michael Steele_2
Honored Contributor

Re: when to run cmmakepkg during patch installation

Here's what I been using for years and taken from the MC/SG II class.

a) all your LVM work is done and you've vgexported and ftp'd from the pri to the failover.

mkdir /etc/cmcluster/package_name
cd /etc/cmcluster/package_name
cmmakepkg -p package_name.conf (* note conf ext *)

vi package_name.conf
fill in data fields like:
PACKAGE_NAME
NODE_NAME
RUN_SCRIPT ${PWD}package_name.cntl (* see below *)
HALT_SCRIPT ${PWD}package_name.cntl (* see below *)

cmmakepkg -s package_name.cntl (* note ext. *)
vi /etc/cmcluster/package_name.cntl
fill in data fields like
VG[0]
LV[0]
IP[0]
etc.

Addin customer defined start commands like
oracle.sh start

Addin customer defined stop commands like
oracle.sh stop

chcheckconf -P package_name.conf
cmapplyconf -P package_name.conf
vgchange -c y vg??
vgchange -a n vg??
cmmodpkg -e package_name
cmrunpkg -n node package_name
cmviewcl

NOTE: This is 80% of it. Better to take the class, or, draft everything out on paper before applying in a test environment.
Support Fatherhood - Stop Family Law
kumardev
Occasional Advisor

Re: when to run cmmakepkg during patch installation

Thks for the replies, just one more thing

1)if the package(1) is running on the primary node(A) can i run the cmmakepkg for pkg 1 on the HA(node B) which is in the same cluster, if not what impact it can cause on the system.
2) if the package is running on the primary node(A) can i run the cmmakepkg on the HA(node B) which is in the same cluster, if not what impact it can cause on the system.

the only reason why I am asking is to know the best time to recreate the control script by using cmmakepkg after patch installation

Regards
dev
Ganesan R
Honored Contributor

Re: when to run cmmakepkg during patch installation

Hi Kumardev,

>>>1)if the package(1) is running on the primary node(A) can i run the cmmakepkg for pkg 1 on the HA(node B) which is in the same cluster, if not what impact it can cause on the system.<<<

cmmakepkg will just create the template of pkg config file or pkg control script. Once you made all the changes on both config file and control script, you need to halt the package and apply configuration using cmcheckconf and cmapplyconf commands.
Best wishes,

Ganesh.
likid0
Honored Contributor

Re: when to run cmmakepkg during patch installation

What patch are you installing ??

is it PHSS_38860 for 11.18 ?


Windows?, no thanks
kumardev
Occasional Advisor

Re: when to run cmmakepkg during patch installation

Hi Danial,
Actually we are about to install patches on the servers as part of our annual patch activity provided by HP. Now out of the all the patches some of the patches are service guard and the questions that i m asking here is specifically related to patch PHSS_36898.

Regards
Kumar
Michael Steele_2
Honored Contributor

Re: when to run cmmakepkg during patch installation

http://www11.itrc.hp.com/service/patch/patchDetail.do?patchid=PHSS_36898&sel={hpux:11.11,}&BC=main|search|#Special%20Installation%20Instructions:

Are you running vxvm?
Do you have PHSS_35302 installed?
Support Fatherhood - Stop Family Law
kumardev
Occasional Advisor

Re: when to run cmmakepkg during patch installation

Hi Michael,
yes we are using VxVM
--------------
#swlist -l bundle|grep -i vxvm
Base-VXVM B.03.50.5 Base VERITAS Volume Manager Bundle 3.5 for HP-UX
--------------
#swlist -l patch PHSS_35302
# Initializing...
# Contacting target "xphx001"...
ERROR: Software "PHSS_35302" was not found on host.
-------------
we dont have the patch PHSS_35302 istalled
Regards
Kumar