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.
Create and boot your zone MySQL-zone on all the nodes to host your MySQL data base.
Register the SUNW.gds and SUNW.HAStoragePlus resource type.
# clresourcetype register SUNW.gds SUNW.HAStoragePlus |
Create a failover resource group.
# clresourcegroup create \ -n node1:MySQL-zone,node2:MySQL-zone \ 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 |