Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 10. Restore the Database
Restore the MariaDB database tables on one node. Galera will replicate the database to other nodes automatically.
Procedure
Execute the following to restore the database tables. Ensure the
openstack_database.sql
file name includes the appropriate timestamp.mysql -u root < openstack_database.sql mysql -u root < grants.sql
[root@overcloud-controller-0]# mysql -u root < openstack_database.sql [root@overcloud-controller-0]# mysql -u root < grants.sql
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Execute
clustercheck
on the current node./bin/clustercheck
[root@overcloud-controller-0]# /bin/clustercheck
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Test
clustercheck
viaxinetd.d
:curl overcloud-controller-0.example.com:9200 curl overcloud-controller-1.example.com:9200 curl overcloud-controller-2.example.com:9200
curl overcloud-controller-0.example.com:9200 curl overcloud-controller-1.example.com:9200 curl overcloud-controller-2.example.com:9200
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Finally, remove the
iptables
rule from each node to restore access to database.iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP iptables -D INPUT -d 192.168.1.10 -p tcp --dport 3306 -j DROP
[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 Copied! Toggle word wrap Toggle overflow
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.