When we delete a package from the cluster, that application will no longer be under the control of Serviceguard. I think that is obvious. I hope it's obvious that to perform this task, the package must be DOWN. There is no need to shut down the entire cluster. The actual process is relatively straightforward so I will go through the process straight away: 27.6.1 Halt the package ( cmhaltpkg ) root@hpeos002[] # cmhaltpkg -v oracle1 Halting package oracle1. cmhaltpkg : Successfully halted package oracle1. cmhaltpkg : Completed successfully on all packages specified. root@hpeos002[] # 27.6.2 Remove the package definition from the binary cluster configuration file ( cmdeleteconf ) root@hpeos002[] # cmdeleteconf -v -p oracle1 Modify the package configuration ([y]/n)? y Completed the package deletion. root@hpeos002[] # 27.6.3 Ensure that the package was removed successfully (syslog.log) Here's an extract from my /var/adm/syslog/syslog.log file after deleting the oracle1 package: Aug 10 07:36:27 hpeos002 CM-CMD[10468]: cmdeleteconf -v -p oracle1 Aug 10 07:36:30 hpeos002 cmclconfd[10470]: Updated file /etc/cmcluster/cmclconfig.tmp for node hpeos002 (length = 32960). Aug 10 07:36:31 hpeos002 cmclconfd[10470]: Updated file /etc/cmcluster/cmclconfig.tmp for node hpeos002 (length = 0). Aug 10 07:36:31 hpeos002 cmcld: Online Config - Successfully deleted package oracle1 with id 24322. Aug 10 07:36:31 hpeos002 cmclconfd[3618]: Updated file /etc/cmcluster/cmclconfig for node hpeos002 (length = 13704). Aug 10 07:36:32 hpeos002 cmclconfd[10470]: Deleted package configuration for package oracle1. (2-0-0-1-0-0-0-0-0-0-0-0) 27.6.4 Review remaining cluster activity (cmviewcl) The reason I am reviewing remaining cluster activity is to ensure that I didn't accidentally remove the wrong package. I want to ensure that all my other packages are intact and functioning as normal: root@hpeos002[] # cmviewcl CLUSTER STATUS McBond up NODE STATUS STATE hpeos001 up running PACKAGE STATUS STATE AUTO_RUN NODE clockwatch up running enabled hpeos001 NODE STATUS STATE hpeos002 up running hpeos003 up running root@hpeos002[] # The package configuration files are still located in the directory /etc/cmcluster/oracle1 , so if you wish to add the package back into the cluster at a later date, the old configuration files can make a basis for your new configuration. I suppose that if the application were to run outside of the control of Serviceguard, we would ensure that all application files were still intact and consider not sharing files between multiple nodes. Otherwise, that's it. |