Operating System - HP-UX
1832534 Members
7853 Online
110043 Solutions
New Discussion

Need to remove a package from arunning cluster

 
SOLVED
Go to solution
Sreer
Valued Contributor

Need to remove a package from arunning cluster

Hello Gurus,

I need to remove a cluster package from a running cluster.

what I planned is as below:

say pkg is mypkg

# cmhaltpkg mypkg
# cmdeleteconf -p mypkg

rm -r /etc/cmcluster/mypkg

any more steps remaining?

My question is:

Do I need to delete/destroy Vgs and related LVS/FS ?

[Hope while halting the pkg its self these export might have happened?]

If you can correct my steps that willbe great !!

THANKS FOR YOUR REPLY.

Rgds
Sree
7 REPLIES 7
Mel Burslan
Honored Contributor
Solution

Re: Need to remove a package from arunning cluster

Even though I have not touched a sg cluster in last 3 years and then some, steps seems to be okay. Although, you are not necessarily obligated to remove /etc/cmcluster/mypkg files/directories. Them staying behind, just in case you need an unexpected recovery need, would be to your advantage.

And yes, cmhaltpkg command would take the lv's and vg's of the service group, off-line. Destroying the VGs and LVs are upto you but if I were you, I would not jump the gun for a reasonable period of time, like 3-6 months. I believe, if no one is looking for that application after 3-6months, it is safe that you are free and clear of it. Then you can remove all traces of the package. This is just my personal opinion.
________________________________
UNIX because I majored in cryptology...
Turgay Cavdar
Honored Contributor

Re: Need to remove a package from arunning cluster

Hi,
Your plan is ok. If you don't need the file systems/logical volumes or volume group anymore then you can destroy the volume group.
Manix
Honored Contributor

Re: Need to remove a package from arunning cluster

Hello Sree !!

If you don`t needs those VG /LV stiff ..you may export the VG itself all the device files will be exported for VGs & LVM , you may keep a map file for your reference if needed.
HP-UX been always lovable - Mani Kalra
Sreer
Valued Contributor

Re: Need to remove a package from arunning cluster

Hi Gurus,

Thanks much for your help.

One querry still remaining.

Do I need to do create ASCII file of cluster and reomeve the PKG entry from it and to apply using cmapplyconf ?

or just cmdeleteconf is enough?

rgds
Sree
Manix
Honored Contributor

Re: Need to remove a package from arunning cluster

I believe the package name is never mentioned in cluster.conf file it`s mentioned only in the
package control file , no changes to cluster conf file in this regard !!
HP-UX been always lovable - Mani Kalra
Turgay Cavdar
Honored Contributor

Re: Need to remove a package from arunning cluster

Hi,
cmdeleteconf is enough...
rariasn
Honored Contributor

Re: Need to remove a package from arunning cluster

Hi Sree:

# vgchange -c n vgname

# cmdeleteconf

and cmgetconf to verify

rgs,