Managing provisioning for MySQL databases
This topic explains how to provision MySQL databases.
Provisioning a MySQL instance
Use the following procedure to provision an instance of a MySQL server:
- Download the customization file that you will need:
- Log in to the Manager through the back end.
- From the Attachments page, download customization.zip to your Manager host under /app/clarity/dmanager/var.
- Restart the dmanager service.
- Copy the default configuration file and add the MySQL user:
- Log in to the Agent through the back end.
- Restart the dagent service.
Go to /app/clarity/dagent/etc/custom/ and enter the following command to copy the configuration file:
scp -r /app/clarity/dagent/etc/custom/mysql.conf.defaults /app/clarity/dagent/etc/
Soft link the media by entering the following command:
ln -snf /mnt/media/mysql_media/ /app/clarity/mysql_media
Add the MySQL user by entering the following command:
useradd mysql
- Restart the dagent service.
- Specify the MySQL instance that you want to install:
- Log in to the Manager through the GUI.
- From the Attachments page, download mysql_provision_instance.zip and import it to the Manager in the Action Repository.
- In the Action Repository, select the mysql_provision_instance menu.
- Run the mysql_provision_instance action.
- On the next page, select default.xml in the Template field.
On the next page, complete the following fields:
Field What to enter Version Version of the MySQL server that you want to install (5.1.59, 5.5.16, or 5.5.20) Architecture Either x86_64 or ia32 Port TCP port on which the instance will run Instance Id (Optional) Unique identifier (per host) for the instance - Select the appropriate candidate (Agent) from the candidates list for provisioning the MySQL instance.
- Approve the application to provision the instance:
- Rescan the host and look for the MySQL instance in the Pending Approval > Applications section.
- Select the appropriate instance and click Approve Selected to approve.
Adding a MySQL instance
- Choose an appropriate node from the object tree and then choose Add MySQL Instance from the Provision menu.
- On the Run Action page, select a Template and then click Next.
- On the Custom Fields page, provide the following information:
- Step through the remainder of the Run Action wizard
- Review your selection
Version MySQL version to be installed Architecture Available architectures:
- ia32
- amd64Instance Id (Optional) Instance unique identifier per host If this field is left blank, the instance ID defaults to the largest instance ID present, plus 1 (or 1 if no other instances are present)
Port TCP port to which the instance will bind - Click Execute Job.
- When the job is complete, the newly created MySQL instance will appear in Pending Approval > Applications. Approve it and the instance appears in the object tree.
- Select a MySQL instance object from the tree to view its properties, or to start/stop, upgrade, or remove the instance.
Starting or stopping a MySQL instance
- Select the MySQL instance that you want to start or stop.
- Under the Management menu, choose Start MySQL Instance or Stop MySQL Instance.
- Step through the Run Action wizard (no input is required).
- Review your selection for the instance.
- Click Execute Job to start or stop the instance.
Upgrading a MySQL instance
- Select the MySQL instance that you want to upgrade.
- Under the Provision menu, choose Upgrade MySQL Instance.
- Step through the Run Action wizard, making sure to select a Template.
- On the Custom Fields page, specify the MySQL version to upgrade the instance to.
- Review your selection for the instance.
- Click Execute Job to upgrade the instance.
Removing a MySQL Instance
To remove an instance, choose Remove MySQL Instance from the Provision menu on the instance object page. Step through the Run Action wizard (no input is required), review, then click Execute Job.
- Select the MySQL instance that you want to remove.
- Under the Provision menu, choose Remove MySQL Instance.
- Step through the Run Action wizard (no input is required).
- Review your selection for the instance.
- Click Execute Job to remove the instance.
Comments
Log in or register to comment.