Symptom
When trying to restore a MySQL DB with InnoDB tables in CDP, you receive the following error:
Cause
When initiating a DB restore, the CDP Server will transfer MySQL data (InnoDB tablespace) to the Agent, that will write the data into the cdp-agent's tmp directory (/var/lib/r1soft/tmp). The CDP Agent will also create a temporary instance of MySQL to conduct the restore to. This is where the problem is occurring. The agent is unable to start the temporary instance. Common causes for this failure are security mechanisms such as SELinux and Apparmor.
Resolution
If caused by SELinux, put SELinux in permissive mode while doing the restore. If running Apparmor, run "service apparmor teardown", simply running 'aa-complain' for mysqld and "service apparmor stop" will not resolve the issue. Once a tmp MySQL instance is created, the Connector/J will connect to both instances and migrate the InnoDB database from the tmp instance to the primary instance.
Related Articles
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3 |
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3 |
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3 |
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3 |
Page: Restoring File Permissions (Knowledge Base) Labels: file_restore_3, bare-metal_restore_3, permission_3 |
Page: File Restore Speed (Knowledge Base) Labels: file_restore_3 |
Page: Error - InnoDB Restore Fails to Prepare MySQL Instance (Knowledge Base) Labels: mysql_3, innodb_3, apparmor_3, teardown_3, file_restore_3, troubleshoot_3 |
Page: Error - Restore with Overwrite Files on Drops the Network (Knowledge Base) Labels: file_restore_3, troubleshoot_3 |