Go to main content

Oracle® Solaris Cluster Data Service for MySQL Guide

Exit Print View

Updated: June 2017
 
 

How to Remove an HA for MySQL Resource From an HA Zone

  1. Become an administrator that provides solaris.cluster.modify and solaris.cluster.admin authorizations.
  2. Disable and remove the resource that is used by the HA for MySQL data service.
    # clresource disable resource
    # clresource delete resource
  3. Log in as the root role to the HA Zone's console.
  4. Unregister HA for MySQL from the SMF service.
    # /opt/SUNWscmys/util/ha_mysql_smf_remove -f filename
    –f

    Specifies the configuration file name.

    filename

    The name of the configuration file that you used to register HA for MySQL with the SMF service.


    Note -  If you no longer have the configuration file that you used to register HA for MySQL with the SMF service, create a replacement configuration file:
    1. Make a copy of the default file, /opt/SUNWscmys/util/ha_mysql_config.

    2. Set the ZONE and RS parameters with the values that are used by the data service.

    3. Run the ha_mysql_smf_remove command and use the –f option to specify this configuration file.


  5. Disconnect from the HA Zone's console.