gpaddmirror fails with MirroringFailure failure
search cancel

gpaddmirror fails with MirroringFailure failure

book

Article ID: 296424

calendar_today

Updated On:

Products

VMware Tanzu Greenplum

Issue/Introduction

After using the gpaddmirror command to add a mirror into the cluster, the following error message is encountered. 
20190417:20:36:04:107981 gpaddmirrors:segment01p:gpadmin-[WARNING]:-Failed to inform primary segment of updated mirroring state. Segment: segment02p:/data/d1/primary/gpseg0:content=0:dbid=2:mode=r:status=u: REASON: Conversion failed. stdout:"" stderr:"failure: Error: MirroringFailure failure: Error: MirroringFailure " 20190417:20:36:04:107981 gpaddmirrors:segment01p:gpadmin-[WARNING]:-Failed to inform primary segment of updated mirroring state. Segment: 


Environment

Product Version: 5.15

Resolution

The issue may be caused by the /etc/hosts file. 
127.0.0.1  segment02p localhost.localdomain localhost4 localhost4.localdomain4
::1     localhost localhost.localdomain localhost6 localhost6.localdomain6

192.168.65.21    segment01p
192.168.65.22    segment02p
192.168.65.23    segment03p

A loopback entry for each host may resolve as `localhost`.
Remove the loopback entry and try again.