Enabling MySQL to Run in a Global Zone Configuration
Determine whether you need to install MySQL in a failover,
scalable, or multiple-master configuration and follow the appropriate
procedure:
How to Enable MySQL for a Failover Resource
-
On one of the nodes in the cluster that will host MySQL,
become an administrator that provides solaris.cluster.admin
authorization.
-
Register the SUNW.gds and
SUNW.HAStoragePlus resource type.
# clresourcetype register SUNW.gds SUNW.HAStoragePlus
-
Create a failover resource group.
# clresourcegroup create MySQL-failover-resource-group
-
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
-
Create a resource for the MySQL logical hostname.
# clreslogicalhostname \
-g MySQL-failover-resource-group \
-h MySQL-logical-hostname \
MySQL-lh-resource
-
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
How to Enable MySQL to Run in a Scalable
Configuration
-
On one of the nodes in the cluster that will host MySQL,
become an administrator that provides solaris.cluster.admin
authorization.
-
Register the SUNW.gds resource type.
# clresourcetype register SUNW.gds
-
Create a failover resource group.
# clresource create SharedAddress-failover-resource-group
-
Create the shared address resource.
# clressharedaddress create \
-g SharedAddress-failover-resource-group \
-h MySQL-logical-hostname \
MySQL-lh-resource
-
Enable the failover resource
group that now includes the shared address resources.
# clresourcegroup online -M -n current-node MySQL-failover-resource-group
-
Create a resource group to run on at minimum two nodes.
# clresourcegroup create -p Maximum_primaries=2 \
-p desired_primaries=2 MySQL-scalable-resource-group
How to Enable MySQL to Run in a Multiple-Master
Configuration
-
Become an administrator that provides
solaris.cluster.admin authorization.
-
On one of the nodes in the cluster that will host MySQL,
register the SUNW.gds resource type.
# clresourcetype register SUNW.gds
-
Create a resource group to run on at least two nodes.
# clresourcegroup create -p Maximum_primaries=2 \
-p desired_primaries=2 MySQL-scalable-resource-group