Document TypeㅣTechnical Information
CategoryㅣInterface/Integration
Applicable Product Versionsㅣ6FS06, 6FS07, 6FS07PS, 7FS02, 7FS02PS
Document NumberㅣTIITI011
Overview
To enhance cluster availability and support ease of management, the Tibero Cluster Manager (hereafter cm) normal shutdown script is registered as a service in the OS, so that when the OS shuts down, this script is executed.
Through this, proper cm shutdown is induced and related instances proceed quickly, enabling faster TPR recovery.
Method
1. Confirm creation of cm_auto_down script
This script is created in the TB_HOME's scripts path when applying patch 230932.
CautionApply the patch through technical support provided by Tmax Tibero.
2. Modify the content under Set Default Parameters here
(Example: TB_HOME, TB_SID, CM_SID, DB_NAME)
3. Grant execute permission to cm_auto_down file using sudo chmod +x
4. Move the script to /etc/init.d/
5. Execute the following as root user in /etc/init.d/ (Linux)
5.1. systemctl daemon-reload
5.2. systemctl enable cm_auto_down
5.3. systemctl start cm_auto_down
6. Run tbcm corresponding to TB_HOME and CM_SID
Run one tbcm corresponding to TB_HOME and CM_SID specified in the above script.
7. System Reboot
After confirming tbcm normal startup, reboot the system using shutdown -r now or similar command.
8. Check logs for proper shutdown
After reboot, check the cm logs for the presence of the following logs indicating proper shutdown.
- MSG RECEIVED: SHUTDOWN
- START shutdown process... etc.
If the above logs are not found, execute the following command as root user in /etc/init.d/ and check for errors.
service cm_auto_down
CautionWhen modifying the above script, enter values without any spaces.Example of correct usage CM_SID=cm0 Incorrect usage CM_SID= cm0After testing is complete, disable the service using the following commands as root user in /etc/init.d/ directory.systemctl status cm_auto_downsystemctl stop cm_auto_downsystemctl disable cm_auto_down