1832791 Members
2909 Online
110045 Solutions
New Discussion

delete a pkg in MC

 
SOLVED
Go to solution
Rambo_1
Regular Advisor

delete a pkg in MC

Hi
There are two pkgs in My MC/SG , I want to delete a pkg in MC/SG now, the pkg name is pkg-1. The question is that should I re-cmapplyconf the cmcluster.ascii to all of nodes after I cmdeleteconf -p pkg-1 ?

Thanks
6 REPLIES 6

Re: delete a pkg in MC

Yes, because presumably you have removed some of the VOLUME GROUPs listed at the end of the cmcluster.ascii file - you presumably want to remove these volumes from cluster control?

HTH

Duncan

I am an HPE Employee
Accept or Kudo
Kent Ostby
Honored Contributor

Re: delete a pkg in MC

The ITRC document UMCSGKBRC00007090 goes over the detailed steps for you to remove a package.

Here's a link:

http://www2.itrc.hp.com/service/cki/search.do?category=c0&mode=id&searchString=UMCSGKBRC00007090&searchCrit=allwords&docType=EngineerNotes&search.x=21&search.y=5
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Geoff Wild
Honored Contributor
Solution

Re: delete a pkg in MC

You don't have to re-apply the cmcluster.ascii file after deleting a package.


From http://docs.hp.com/hpux/onlinedocs/B3936-90073/B3936-90073.html


"Deleting a Package from a Running Cluster

You can delete a package from all cluster nodes by using the cmdeleteconf command. The command can only be executed when the package is not running; the cluster may be up. The command removes the package information from the binary configuration file on all the nodes in the cluster.

The following example halts package mypkg and removes the package configuration from the cluster:

# cmhaltpkg mypkg
# cmdeleteconf -p mypkg
The command prompts for a verification before deleting the files unless you use the -f option. The directory /etc/cmcluster/mypkg is not deleted by this command. "

Rgds...Geoff

PS: the vg's at the end of a cmcluster.ascii are only used for documentation...

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Rita C Workman
Honored Contributor

Re: delete a pkg in MC

When you remove the pkg it will remove the the package information from the binary configuration file as well.
You ascii file is not affected by this...BUT...what it does mean is that now your ascii file and your binary configuration file are out of 'sync'.

So, although you can do this while things are up and running...you will want to recreate your ascii file clean from your binary configuration file at some point. And to be really certain things still look good eventually you will want to run a cmcheckconf...

Just my 2 cents,
Rita
Rambo_1
Regular Advisor

Re: delete a pkg in MC

Thanks for your replies
There is a vg01 in the pkg-1, should I vgexport the vg01 on both of hosts after I delete the pkg-1 ?

BR
Geoff Wild
Honored Contributor

Re: delete a pkg in MC

Yes - vgexport /dev/vg01 on both nodes for clean up.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.