Recovering a GBase 8a Node Accidentally Marked as unavailable
GBase 8a, the China-domestically developed MPP analytical database from GBASE, lets you mark a node unavailable when its data is unrecoverable. In that state the cluster stops recording subsequent primary/standby inconsistency events, the node cannot be switched back to normal directly, and node replacement is the only documented path. But what if you simply marked the wrong node by mistake? This…
GBase 8a, a China-developed MPP analytical database, enables marking a node unavailable when its data becomes unrecoverable. In this state, the cluster ceases recording inconsistency events, rendering the node unswitchable. However, if you mistakenly marked the wrong node, this article outlines the manual recovery process for a GBase cluster. Potential causes of unrecoverable faults include physical disk damage, a failed RAID card, or a corrupted filesystem, necessitating RAID or filesystem rebuilding and data wipe.
Before starting, acknowledge the following risks: caught early, the impact is minimal; if data changes during the window, subsequent operations may yield incorrect results or DML errors. If the database was in read-only mode or business workloads (including cron jobs) were halted without DDL or DML running, no impact occurs. Stopping the cluster service is mandatory for the procedure, so weigh the decision carefully.
To execute the procedure, first halt all scheduling and data services. Flush the management-service snapshot twice. Subsequently, stop all management services. Back up all management-service data to prevent data loss. Edit every snapshot under each management service, changing the affected node's nodestate from 3 to 1. Multiple snapshot groups exist; edit all of them. Restart management services, excluding the faulty node, and verify the cluster's health. Finally, restart all scheduling and data services.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to