此内容没有您所选择的语言版本。

Chapter 10. Restore the Database


Restore the MariaDB database tables on one node. Galera will replicate the database to other nodes automatically.

Procedure

  1. Execute the following to restore the database tables. Ensure the openstack_database.sql file name includes the appropriate timestamp.

    [root@overcloud-controller-0]# mysql -u root < openstack_database.sql
    [root@overcloud-controller-0]# mysql -u root < grants.sql
    Copy to Clipboard Toggle word wrap
  2. Execute clustercheck on the current node.

    [root@overcloud-controller-0]# /bin/clustercheck
    Copy to Clipboard Toggle word wrap
  3. Test clustercheck via xinetd.d:

    curl overcloud-controller-0.example.com:9200
    curl overcloud-controller-1.example.com:9200
    curl overcloud-controller-2.example.com:9200
    Copy to Clipboard Toggle word wrap
  4. Finally, remove the iptables rule from each node to restore access to database.

    [root@overcloud-controller-0]# iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP
    [root@overcloud-controller-1]# iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP
    [root@overcloud-controller-2]# iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP
    Copy to Clipboard Toggle word wrap

If there are any OpenStack services in pcs status that have a failed status due to problems connecting to database during the restore procedure, run pcs resource cleanup <name> to recover those services.

Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。 了解我们当前的更新.

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

Theme

© 2026 Red Hat
返回顶部