main.cf
hi,
if main.cf file is corrupted on a node how can i restore it?
1-stop vcs on that node then start vcs will restore main.cf from other node in cluster?
2-stop vcs and copy main.cf from other node.
tnx
hastop -local -force or hastop -all -force will stop VCS only on either a single node, or all of them. Services will not be affected.
On startup, VCS will check the state of the services before taking any action, and if they are already running, continue as if nothing has happened.
All haconf does is enable you to change the state of the in-memory configuration from read-only to read-write, and back again, as well as saving that configuration to disk. It won't make any changes to the configuration, nor do you need to, to save it back to disk if there has been any corruption, of the file is missing completely.
But a restart of VCS is not required if that's all you want to do.