1835626 Members
3454 Online
110081 Solutions
New Discussion

cmdeleteconf

 
Filippo De Nardis
New Member

cmdeleteconf

a command #cmdeleteconf is be accidentally launched on a node of a cluster and it seems that the cluster is not configured now. It's possible to recover the configuration? THZ and excuse me for the english.
5 REPLIES 5
Todd McDaniel_1
Honored Contributor

Re: cmdeleteconf

cmdeleteconf - Delete either the cluster or the package configuration


I see one saving grace...cmgetconf.


from the man page.


To generate the cluster ASCII configuration file for clusterA, and
store the information in clusterA.config, do the following:

cmgetconf -c clusterA clusterA.config

To generate the package ASCII configuration file for pkg1, and store
the information in pkg1.config, do the following:

cmgetconf -p pkg1 pkg1.config
Unix, the other white meat.
Ashwani Kashyap
Honored Contributor

Re: cmdeleteconf

cmdeleteconf onlty deletes entry from the bin file and not from the ascii files .
So all your ascii fiels should still be there on all your nodes .

Just reapply them using cmapplyconf and bring up your cluster .
Geoff Wild
Honored Contributor

Re: cmdeleteconf

Just reapply with cmapplyconf

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.
Victor Fridyev
Honored Contributor

Re: cmdeleteconf

Hi,
AFAIK, cmdeleteconf removes only /etc/cmcluster/cmclconfig file. Try to restore it from a backup, otherwise you'll have to do the following:
In order to restore cluster one have to find the ascii file, which was created by cmqyerycl command (usually in /etc/cmcluster) and a list of the cluster packages. If the ascii file can't be found, it might be easily recreated by the command
cmquerycl -C /etc/cmcluster cluster.ascii -n node1 -n node2 -n node 3 etc.

The cluster.ascii file should be edited in order to change cluster name and max number of packages.

List of packages, if it's not found, can be created without big problems. It looks like this:
/etc/cmcluster/PACKAGE1DIR/PKG1NAME.conf
/etc/cmcluster/PACKAGE2DIR/PKG2NAME.conf
etc.


HTH
Entities are not to be multiplied beyond necessity - RTFM
Sridhar Bhaskarla
Honored Contributor

Re: cmdeleteconf

Hi,

It should have prompted you to respond to actually delete the configuration.

You can simply reapply the configuration.

#for the cluster - replace cmclconfig.ascii with whatever the name you gave for the cluster configuration

cmapplyconf -C /etc/cmcluster/cmclconfig.ascii

#For each of the packages. Replace pkg.conf with your package configuration file.

cmapplyconf -P /etc/cmcluster//pkg.conf

-Sri
You may be disappointed if you fail, but you are doomed if you don't try