0

In repmgr, I had register the master server, but at the Standby server, i had cloned the Master backup to Standby data directory sucessfully. But after cloning while starting the Standby server, I got the following error.

    Use of uninitialized value $info{"pgdata"} in -d at /usr/bin/pg_ctlcluster line 354.
Use of uninitialized value $info{"pgdata"} in concatenation (.) or string at /usr/bin/pg_ctlcluster line 355.
Error:  is not accessible or does not exist

Please help in this issue.

Rajiv
  • 582
  • 2
  • 8
  • 18

1 Answers1

0

After some research, I able to solve it. I had to clone the Master backup to the Data directory of the (Default) Standby data Directory (/var/lib/postgresql/9.3/main).

If we need to keep the data directory separate (Apart from Default), It raises the error. If anyone solved by configuring the data directory separately, please help me.

Hamid Pourjam
  • 20,441
  • 9
  • 58
  • 74
Rajiv
  • 582
  • 2
  • 8
  • 18
  • The location of the data directory is specified in `postgresql.conf` –  Mar 30 '15 at 12:36
  • Yes Specified in there. But When Changing 'data_directory' to the other path raise the Error. It only accept the Default one. – Rajiv Mar 30 '15 at 12:46
  • Please help me to solve that, I need the Cluster location to be different data directory not the default one. – Rajiv Mar 30 '15 at 12:50
  • The "cluster location to be different data directory" doesn't make sense. The "cluster" and the "data directory" are the same thing. –  Mar 30 '15 at 12:54