Skip to content

Ошибка очистки WAL, если каталог архивов WAL является symlink #376

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
triwada opened this issue Apr 28, 2021 · 4 comments
Labels
Milestone

Comments

@triwada
Copy link

triwada commented Apr 28, 2021

На одном серверов используется для хранения бэкапов разделы, подключенные по iscsi (в этом случае есть ограничение, что на них можно сделать ФС только до 16ТБ).
Как вариант попробовали вынести каталог архивов WAL на другой раздел, сделав на него symlink. Архивирование работает, но вот с удалением старых WAL проблема, т.к. pg_probackup не может обработать файла symlink

$ pg_probackup delete -B /pgdump/backup/ --instance dummy --wal --log-level-console=INFO
WARNING: Skip "/pgdump/backup/wal/dummy": unexpected file format
INFO: There are no backups to merge by retention policy
INFO: There are no backups to delete by retention policy
INFO: There is no WAL to purge by retention policy

$ ls -lh /pgdump/backup/wal/
итого 82M
lrwxrwxrwx 1 postgres postgres 27 апр 14 22:47 dummy -> /pgdump2/backup/wal/dummy

Как можно решить?

@gsmolk
Copy link
Contributor

gsmolk commented Apr 28, 2021

Хм, похоже на баг.
А если перенести симлинк уровнем выше на /pgdump/backup/wal

@gsmolk
Copy link
Contributor

gsmolk commented Apr 28, 2021

Пофиксил

@triwada
Copy link
Author

triwada commented Apr 28, 2021

А если перенести симлинк уровнем выше на /pgdump/backup/wal

Это помогло

@triwada triwada closed this as completed Apr 28, 2021
@triwada
Copy link
Author

triwada commented Apr 28, 2021

Спасибо

@gsmolk gsmolk added this to the 2.4.16 milestone Apr 28, 2021
@gsmolk gsmolk modified the milestones: 2.4.17, 2.5.2 Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants