codehaus


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[kolla] How to recover MariaDB if there's a controller failed to boot?


Thank you Jeffery! This is also a useful information for us, too.

Jeffrey Zhang <zhang.lei.fly+os-discuss at gmail.com> æ?¼ 2020å¹´11æ??18æ?¥ é?±ä¸?
ä¸?å??2:49寫é??ï¼?

> A simple handy way it
>
> 0. stop all mariadb containers
> 1. choose the last stopped node ( data may be loss if you choose a wrong
> node, but mostly, it doesn't matter)
> 2. change the /var/lib/docker/volumes/mariadb/_data/grastate.dat,
> safe_to_bootstrap: 1
> 3. change the /etc/kolla/mariadb/galera.cnf add
> ```
> [mysqld]
> wsrep_new_cluster=1
> ```
> 4. start the mariadb, and wait for it to become available.
> 5. start mariadb on other nodes
> 6. revert configuration on 3) and restart the first mariadb
>
> On Tue, Nov 17, 2020 at 3:42 AM RadosÅ?aw Piliszek <
> radoslaw.piliszek at gmail.com> wrote:
>
>> On Mon, Nov 16, 2020 at 11:33 AM Eddie Yen <missile0407 at gmail.com> wrote:
>> >
>> > Hi yoctozepto, thanks your advice.
>> >
>> > Perhaps need to do maraidb_recovery again once the failure node back
>> online to prevent brain split issue.
>> > But we'll try it if we met the same case again in the future!
>>
>> I would simply eradicate the container and volume on it and then redeploy.
>> Less hassle, satisfaction guaranteed.
>>
>> -yoctozepto
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20201118/168705a2/attachment.html>