When trying to bring up failed original primary segment using
gprecoverseg, the original mirror instance (current primary) pg log could report:
PROBE received dbid:xx doesn't match this segments configured dbid xx
Then, from the master host, either
gpstate or
gp_segment_configuration table will show the current mirror as down. From the mirror instance's host, the mirror instance is up and running. But the segment pg log will only show that it's in recovering mode with no other errors. If we wait for a while, we can also see that the latest xlog at the mirror instance will keep updating (from timestamp and
pg_xlogdump output).
This is due to the original mirror (current primary) instance's dbid setting being mismatched with dbid settings from the master node (
gp_segment_configuration table).
Check the dbid setting from the current primary:
1.
cat $segment_data_directory/internal.auto.conf2. connect to the current primary instance with utility mode, then run:
select * from
pg_settings where
name='gp_dbid";This issue may affect all original mirror instances.