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.
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.