While configuring Greenplum Disaster Recovery (GPDR) using the gpdr configure backup command, the operation may fail with an error indicating that the pgbackrest binary cannot be found.
exit status; bash: pgbackrest: command not found
It could be due to below reasons:
- pgbackrest is not installed on all Greenplum hosts
- pgbackrest is installed, but not in the gpadmin user’s PATH
- archive_command references pgbackrest without an absolute path
1. Verify GPDR Package Installation on all Hosts
Ensure that the GPDR package has been installed on every host in the Greenplum cluster, including all segment hosts.
If the package was installed only on the master host, install it on the remaining hosts by following the official installation procedure.
Reference: Installing, Upgrading, and Uninstalling VMware Greenplum Disaster Recovery
2. Verify pgbackrest binary exists on all hosts
gpssh -f all_hosts_file "ls -l /usr/local/gpdr/bin/pgbackrest"
3. As documented in Step 5 of Installing, Upgrading, and Uninstalling VMware Greenplum Disaster Recovery, the GPDR binary directory must be added to the gpadmin user’s shell environment on every host.
echo $PATH
# For example, if you installed to the default location, update the .bashrc shell initialization script for the gpadmin user:
gpssh -e -v -f gphostfile "echo 'source /usr/local/gpdr/gpdr_path.sh' >> ~/.bashrc"