gptext-recover does recover the failed segments and gives the following error:
[INFO]:-Execute GPText cluster recover.
[INFO]:-Check zookeeper cluster state ...
[WARNING]:-On host: gpdb-gptext-1, node directory: /data/primary/solr2, missing: , logs, solr.in.sh,
[WARNING]:-On host: gpdb-gptext-1, node directory: /data/primary/solr1, missing: , logs, solr.in.sh,
[WARNING]:-Skip recover inconsistant nodes.
[WARNING]:-The data directories are in inconsistent state, some data directories have been manually
[WARNING]:-Please provide log file: /home/gpadmin/gpAdminLogs/gptext-recover_20200207.log to support
[INFO]:-Start down solr instances ...
[INFO]:- Host Solr Dir
[INFO]:- gpdb-gptext-1 /data/primary/solr1
[INFO]:-Start command execute success, checking whether instances are working ...
[WARNING]:-Some of GPText's nodes may not started!
[WARNING]:-Check their's solr-*-console.log and solr.log under GPText {node directory}/logs/.
[WARNING]:-Please run 'gptext-recover -r/--index_replicas' to recover indexes' replicas after
[ERROR]:-Error recovering GPText cluster: Start instances failed.
This issue is cause by a hardware failure.
To recover the server please follow the steps listed below:
/usr/local/greenplum-solr /usr/local/greenplum-text-<version> e.g. /usr/local/greenplum-text-3.3.15. Make sure the base directory of the Solr instances is created sucesfully:
Run gptext-state -D from master to get the node dictory This is usually in the same directory as the primary of mirrors e.g. /data/primary6. Check the state of the indexes on the cluster:
gptext-state -D7. If any of the indexes are in a RED state, restart the gptext cluster, to try an get it back into a YELLOW state:
gptext-stop gptext-start8. If or when all indexes are in a YELLOW or GREEN state, run a force gptext recovery, the
-f force option will create a new node if the original node is unrecoverable. Therefore as the old node was wiped, it will create a new node in its place on the new server. gptext-recovery -f if any of the indexes are in RED state.
gptext-recover -f9. When the recovery is finished, confirm that all indexes are in a GREEN state:
gptext-state -D