pg_receivewal转到cifs网络共享

时间:2018-02-09 18:57:22

标签: postgresql barman

我正在尝试设置pgbarman服务器来备份postgresql集群。配置为在位于cifs网络共享上的目录中存储数据时,流复制不起作用。根问题似乎与pg_receivewal命令有关。我解除了命令barman正在执行:

$ LANG=C /usr/bin/pg_receivewal --dbname="dbname=replication host=sqlserver.domain.tld port=5432 replication=true user=barman_replication application_name=barman_receive_wal" --verbose --no-loop --no-password --directory=/var/local/backups/Postgresql/Barman/sqlserver-main/streaming --slot=barman_backup --synchronous
pg_receivewal: starting log streaming at 18/DF000000 (timeline 1)
pg_receivewal: could not fsync file "/var/local/backups/Postgresql/Barman/sqlserver-main/streaming": Invalid argument
pg_receivewal: could not open existing write-ahead log file "0000000100000018000000DF.partial": Invalid argument
pg_receivewal: could not fsync file "/var/local/backups/Postgresql/Barman/sqlserver-main/streaming": Invalid argument
pg_receivewal: could not finish writing WAL files: Invalid argument
pg_receivewal: disconnected

运行barman的用户有权读取/写入该目录。我不认为这是一个许可问题。如果我编辑命令并将--directory参数替换为本地目录(/ tmp / test),则错误消失...

谷歌并没有为我提供太多帮助。知道什么是错的吗?

$ pg_receivewal --version
pg_receivewal (PostgreSQL) 10.1

0 个答案:

没有答案