Sun Cluster Data Service for MySQL Guide for Solaris OS

ProcedureHow to Enable MySQL to run in a Zone Configuration

  1. Become superuser or assume a role that provides solaris.cluster.verb RBAC authorization on one of the nodes in the cluster that will host MySQL.

  2. Create and boot your zone MySQL-zone on all the nodes to host your MySQL data base.

  3. Register the SUNW.gds and SUNW.HAStoragePlus resource type.

    # clresourcetype register  SUNW.gds SUNW.HAStoragePlus
  4. Create a failover resource group.

    # clresourcegroup create \
    -n node1:MySQL-zone,node2:MySQL-zone \ 
  5. Create a resource for the MySQL Disk Storage.

    # clresource create   \
    -g MySQL-failover-resource-group   \
    -t SUNW.HAStoragePlus  \
    -p FilesystemMountPoints=MySQL-instance-mount-points MySQL-has-resource
  6. Create a resource for the MySQL Logical Hostname.

    # clreslogicalhostname   \
    -g MySQL-failover-resource-group  \
    -h MySQL-logical-hostname \
  7. Enable the failover resource group that now includes the MySQL Disk Storage and Logical Hostname resources.

    # clresourcegroup online -M -n current-node MySQL-failover-resource-group