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
ReadOnly 1
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

Ramdev

Ramdev

I have started unixadminschool.com ( aka gurkulindia.com) in 2009 as my own personal reference blog, and later sometime i have realized that my leanings might be helpful for other unixadmins if I manage my knowledge-base in more user friendly format. And the result is today's' unixadminschool.com. You can connect me at - https://www.linkedin.com/in/unixadminschool/

5 Responses

  1. Siva says:

    Hi,

    What is the purpose of Freeze and Unfreeze the Service Group.?

    Regards,
    Siva

    • Ramdev Ramdev says:

      siva, freezing will place the service group in a state in which it is active, but not monitored, not able to change state, and not able to fail over to another system. Freezing is useful for performing maintenance tasks on service groups.

      • Ramesh Kommineni says:

        Today i have attended interview and the question is:
        1. in a two node cluster if i execute #hastart command,it’s starting vcs in another node also.what process is going in background?

        2.how to find number of ports of HBA

        Please reply, Thanks in advance

  2. SaravananS says:

    How can we unmonitor the service group in VCS?

  1. September 24, 2015

    […] Read – VCS for Beginners – verify if the VERITAS Cluster Server configuration database is open(RW) or closed(RO)) […]

What is in your mind, about this post ? Leave a Reply

Close
  Our next learning article is ready, subscribe it in your email

What is your Learning Goal for Next Six Months ? Talk to us