You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to clone my primary to my standby using repmgr. repmgr finished cloning without an error, but postgresql refused to start. I noticed that the cloned database was "cut in half".
First my storage layout:
[user@myhost1 user]$ ls -la /opt/mytool/
insgesamt 8
drwxrwxr-x 2 user group 4096 18. Okt 13:29 .
drwxr-xr-x. 5 root root 4096 5. Feb 2024 ..
lrwxrwxrwx 1 user group 22 19. Sep 13:11 database -> /media/database/database
lrwxrwxrwx 1 user group 30 27. Mär 2024 database-backup -> /media/backup/database-backup/
I am running postgresql, barman and repmgr in a very restricted, but powerful environment. So the local HDD is very small, just enough for the operating system. Everything else is stored on network storages, which are mounted under /media/... . Users have to use symbolic links to "add" the storage to the right place.
First repmgr wrote everything to /media/database/database. Since the clone took "very long" to copy 600 GB of data, I did not watched the process.
But at the end we had this situation:
Some data was written to /media/database/database
Then someone removed the symbolic link and readded the database folder.
This database folder contained the rest of PGDATA
I tried it several times, the clone was always "cut in half".
Versions:
postgres (PostgreSQL) 16.1
3.10.0 Barman by EnterpriseDB (www.enterprisedb.com)
repmgr 5.4.1
As a workaround I changed "data_directory" in the repmgr settings to the real path e.g. /media/database/database . This prevented repmgr from cut my PGDATA in 2 parts.
The text was updated successfully, but these errors were encountered:
I tried to clone my primary to my standby using repmgr. repmgr finished cloning without an error, but postgresql refused to start. I noticed that the cloned database was "cut in half".
First my storage layout:
I am running postgresql, barman and repmgr in a very restricted, but powerful environment. So the local HDD is very small, just enough for the operating system. Everything else is stored on network storages, which are mounted under /media/... . Users have to use symbolic links to "add" the storage to the right place.
First repmgr wrote everything to /media/database/database. Since the clone took "very long" to copy 600 GB of data, I did not watched the process.
But at the end we had this situation:
I tried it several times, the clone was always "cut in half".
Versions:
My configuration of barman can be found here:
EnterpriseDB/barman#1027
repmgr.conf (identical file for all servers, except the hostnames and node_id are different)
The clone was done using this command line:
As a workaround I changed "data_directory" in the repmgr settings to the real path e.g. /media/database/database . This prevented repmgr from cut my PGDATA in 2 parts.
The text was updated successfully, but these errors were encountered: