VCS : verify if the VERITAS Cluster Server configuration database is open(RW) or closed(RO))
Use the following command to display the current state of the Veritas Cluster Server(VCS) configuration database:
# haclus -display | grep ReadOnly
A result code of 1 indicates the configuration database is in a closed(ReadOnly) state.
A result code of 0 indicates the configuration database is in an open(read/write) state.
Changes are only permitted if the ReadOnly attribute is set to “0”.
To open the configuration(make read/write) run the following command:
# haconf -makerw
Now changes can be made to the /etc/VRTSvcs/conf/config/main.cf configuration file.
To save, and close the configuration(make ReadOnly) run the following command:
# haconf -dump -makero