Enabling MySQL
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
ORCL.mysql
and SUNW.HAStoragePlus resource types.
# clresourcetype register ORCL.mysql 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
ORCL.mysql
resource type.
# clresourcetype register ORCL.mysql
-
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
-
On one of the nodes in the cluster that will host MySQL,
become an administrator that provides solaris.cluster.admin
authorization.
-
Register the
ORCL.mysql
resource type.
# clresourcetype register ORCL.mysql
-
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