TASSTA Documentation Center TASSTA Documentation Center More products
Hide table of contents Hide details Search My account

Starting T.Brother


Normally, you do not need to bootstrap T.Brother. Instead, run it normally and join it to the cluster from T.Lion.

Log into the T.Brother server with SSH and take the following steps:

  1. Run the following command to confirm that the T.Brother server is not bootstrapping:
    cat /var/lib/mysql/grastate.dat

    Example output:
    GALERA saved state
    version: 2.1
    safe_to_bootstrap: 0

    If the safe_to_bootstrap value is 0 for the T.Brother server, then you can safely proceed.
  2. Start the MySQL service using the following command after performing bootstrap on T.Lion:
    /etc/init.d/mysql start

    If the command fails, take the steps from Troubleshooting before you continue. Please note that bootstrapping a node that was not the last online or a node with the wrong UID will cause data from the last UUID to be lost.
  3. Check the MySQL status by running the following command:
    service mysql status

    Confirm that MySQL is active and running.
  4. Access MySQL using the following command:
    mysql -u  -p

    If you didn't set a password for MySQL, then simply run the following:
  5. Find out if the node is synced by running the following command:
    SHOW STATUS LIKE 'wsrep_local_state_comment';

    Confirm that the result is "synced". If it isn’t, keep checking until this status is returned. It can take several minutes.
  6. Normally, you don't need to start T.Brother services; they are intended to be system-managed. The tasstad service will start those services only if the T.Brother server s in a MASTER state. Run the following command to see if that is the case:
    cat /usr/local/tassta/db_status

    If the output says the status is MASTER, then the tasstad service is already running.
    If the status is BACKUP, start the tasstad service as described above in the steps for the T.Lion server.
  7. 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:
    keepalived is running
    If the service is not running, start it using the following commands:
    service keepalived stop
    service keepalived start
  8. Verify the status of the communication service by checking the server log of tasstad output.
  9. Exit the SSH session.