Starting T.Lion
Log into the T.Lion server with SSH and take the following steps:
- Check if MySQL started status by running the following command:
service mysql status
Confirm that MySQL is active and running, as in the following screenshot: - If the MySQL service isn't running, start it using the following commands:
/etc/init.d/mysql stop /etc/init.d/mysql start
If the command fails, run the following command to confirm that the T.Lion server is not bootstrapping:cat /var/lib/mysql/grastate.dat
Example output:GALERA saved state version: 2.1 uuid:8bcf4a34-aedb-14e5-bcc3-d3e36277729f seqno:-1 safe_to_bootstrap: 0
If the safe_to_bootstrap value is 0 for the T.Lion server, then you can safely proceed. If the value is 1, it means the instance was not stopped gracefully.
To resolve the consequences of the emergency shutdown, you may have to decide which node needs to be bootstrapped first and on which UUID. If it's OK for T.Lion to be bootstrapped, set safe_to_bootstrap to 1. - Run the following command to start a new cluster:
/etc/init.d/mysql bootstrap
Then verify that the MySQL process has started and check the MySQL cluster status in the MySQL console. - Run the following command to check the status of the tasstad service:
service tasstad status
If the service is running, you can proceed; in this case, the output will look like this:
If the service is not running, start it using the following commands:service tasstad stop service tasstad start
- Run the following command to check the status of the keepalived service:
service keepalived status
If the service is running, you can proceed; in this case, the output will look like this:
If the service is not running, start it using the following commands:service keepalived stop service keepalived start
- Verify the status of the communication service by checking the server log of tasstad output.
- Exit the SSH session.