Operating System - HP-UX
1837035 Members
2440 Online
110111 Solutions
New Discussion

Re: removing a service from service guard

 
SOLVED
Go to solution
lawrenzo
Trusted Contributor

removing a service from service guard

Hi all,

I dont have much experience with service gaurd and was looking for some assistance ....

does anyone have the procedure for removing an application / service from the configuration.

basically we have a server that is no longer on the network that was part of the cluster.

Many Thanks

Chris.
hello
4 REPLIES 4
Murat SULUHAN
Honored Contributor

Re: removing a service from service guard

Hi Lawrenzo

cmdelete conf command helps you

cmdeleteconf - Delete either the cluster or the package configuration


Please look at man page

Best Regards
Murat
Murat Suluhan
Ivan Krastev
Honored Contributor

Re: removing a service from service guard

Hi Lawrenzo,

See KB doc UXSGKBAN00000114 : How to remove a server from a ServiceGuard cluster


regards,
ivan
whiteknight
Honored Contributor
Solution

Re: removing a service from service guard


hi Chris,

This process can be performed on a running cluster if ServiceGuard A.10.10 or
later is the current version running. If older than version A.10.10, the
cluster will need to be halted before performing the cmapplyconf step.

1) Halt the package
# cmhaltpkg


2) For clusters running ServiceGuard version 10.10 and newer perform:

# cmdeleteconf -p

For ServiceGuard version older than 10.10:

Halt the cluster
# cmhaltcl

Re-apply the cluster and package configuration files WITHOUT listing the
package configuration file that will not be included in the new cluster.

# cmapplyconf -C -P ...

3) Release the resources used in the package for other uses:
- strings /etc/lvmtab > lvmtab.out
- vgexport the package volume groups on each server that could
activate them.
- On one server, pvcreate the disks that were in the Volume
Group(s) - to make them available to other VGs. See lvmtab.out
- rmdir mount points for file systems on each adoptive server.
- remove reference to relocatable IP/alias from hostname service files.
- remove the package directory from every server designated to operate it.

Sample process (version 10.10 and later):

# cmviewcl

CLUSTER STATUS
eon_ion up

NODE STATUS STATE
eon up running

PACKAGE STATUS STATE AUTO_RUN NODE
aclk up running enabled eon

NODE STATUS STATE
ion down halted

UNOWNED_PACKAGES

PACKAGE STATUS STATE AUTO_RUN NODE
remove.me down halted enabled unowned

# cmdeleteconf -f -p remove.me
Completed the package deletion.

# cmviewcl

CLUSTER STATUS
eon_ion up

NODE STATUS STATE
eon up running

PACKAGE STATUS STATE AUTO_RUN NODE
aclk up running enabled eon

NODE STATUS STATE
ion down halted

WK
please assign points
Problem never ends, you must know how to fix it
lawrenzo
Trusted Contributor

Re: removing a service from service guard

thanks guys for the input,

I will test etc however where can I find:

How to remove a server from a ServiceGuard cluster: KB doc UXSGKBAN00000114

cheers

Chris.
hello