Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to restore Openstack mysql database and to sync the database?

Hello, I was running Openstack Newton on Ubuntu 16.04. Database is crashed because of some reason, I have mysql dump file now. I restored the mysql dump, but not able to sync mysql db. After restoring I tried to sync db using below commands for all services.

su -s /bin/sh -c "keystone-manage db_sync" keystone

su -s /bin/sh -c "glance-manage db_sync" glance

And same kind of commands for all other services. But I'm getting the error like

sh: 1: keystone-manage: not found

sh: 1: glance-manage: not found

What are the steps to restore, sync and to start all the services.

Please someone help me!!