Sun Cluster Data Service for MySQL Guide for Solaris OS

ProcedureHow to Enable MySQL to run in a Global 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. Register the SUNW.gds and SUNW.HAStoragePlus resource type.

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

    # clresourcegroup create MySQL-failover-resource-group
  4. 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
  5. Create a resource for the MySQL Logical Hostname.

    # clreslogicalhostname \
    -g MySQL-failover-resource-group \
    -h MySQL-logical-hostname \
  6. 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