If a host is nonoperational, for example, due to hardware failure, recover the segments onto a spare set of hardware resources. If mirroring is enabled, you can recover a segment from its mirror onto an alternate host using gprecoverseg
. For example:
Where the format of <recover_config_file>
is:
For example, to recover to a different host than the failed host without additional filespaces configured (besides the default pg_system filespace):
The gp_segment_configuration and pg_filespace_entry system catalog tables can help determine your current segment configuration so you can plan your mirror recovery configuration. For example, run the following query:
The new recovery segment host must be pre-installed with the Greenplum Database software and configured exactly as the existing segment hosts.
Parent topic: Recovering From Segment Failures
Content feedback and comments