1. without tablespaces:
→ works fine. Creates all subdirectories.
2. tablespace test1 in postgresql data directory but withput being specified in the recovery command:
→ not working, data directory empty
error message:
unable to prepare 'test1' tablespace (destination '/var/lib/pgsql/data/tablespaces/test1'): mkdir execution failed
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/barman/backup.py", line 433, in recover
cmd.create_dir_if_not_exists(location)
File "/usr/lib64/python2.6/site-packages/barman/fs.py", line 79, in create_dir_if_not_exists
raise FsOperationFailed('mkdir execution failed')
FsOperationFailed: mkdir execution failed
3. tablespace test1 in postgresql data directory with being specified in the recovery command:
a) barman recover --remote-ssh-command "ssh postgres@REMOTEHOST" main BACKUPID /var/lib/pgsql/data --tablespace test1:/var/lib/pgsql/data/tablespaces/test1
→ not working, data directory empty
error message:
unable to prepare 'test1' tablespace (destination '/var/lib/pgsql/data/tablespaces/test1'): mkdir execution failed
Traceback (most recent call last):
File "/usr/lib64/python2.6/site-packages/barman/backup.py", line 433, in recover
cmd.create_dir_if_not_exists(location)
File "/usr/lib64/python2.6/site-packages/barman/fs.py", line 79, in create_dir_if_not_exists
raise FsOperationFailed('mkdir execution failed')
FsOperationFailed: mkdir execution failed
b) barman recover --tablespace test1:/var/lib/pgsql/data/tablespaces/ --remote-ssh-command "ssh postgres@REMOTEHOST" main BACKUPID /var/lib/pgsql/data
→ data directory created and tablespace (empty) directory but no symlink in pg_tblspc , data directly in pg_tblc
message:
Destination directory: /var/lib/pgsql/data
24646, test1, /var/lib/pgsql/data/tablespaces/
4. Tablespace "test3" not in postgres home data directory, but in a separate directory with being specified in the recovery command:
→ data directory created and tablespace (empty) directory but no symlink in pg_tblspc , data directly in pg_tblc
message:
barman recover --tablespace test3:/data/tablespaces/test3 --remote-ssh-command "ssh postgres@REMOTEHOST" main BACKUPID /var/lib/pgsql/data
Starting remote restore for server main using backup BACKUPID
Destination directory: /var/lib/pgsql/data
unable to prepare 'test3' tablespace (destination '/data/tablespaces/test3'): mkdir execution failed
Its a bit disappointing. I'm posting now the 5th message about the problem I got and didn't receive any response of the forum admins or developers. I really would like to use the tool especially with the new incremental backup in 1.4.0, but I couldn't fix my issues with remote recovery of tablespaces. It seems the problem is not only accurring when tablespaces are put in postgres home directory. The recovery command can't put symlinks in teh pg_tblspc but rather puts all data there.
--
--
You received this message because you are subscribed to the "Barman for PostgreSQL" group.
To post to this group, send email to pgba...@googlegroups.com
To unsubscribe from this group, send email to
pgbarman+u...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/pgbarman?hl=en?hl=en-GB
---
You received this message because you are subscribed to the Google Groups "Barman, Backup and Recovery Manager for PostgreSQL" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pgbarman+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Giulio Calacoci - 2ndQuadrant Italia PostgreSQL Training, Services and Support giulio....@2ndQuadrant.it | www.2ndQuadrant.it
Hi Gaby,this is at least a documentation bug. Either we specify this better in the documentation or we enable the transparent creation of subdirectories.Any suggestions? I see no issues whatsoever with permitting to create subdirectories, but I'd like to hear your opinion as well.Cheers,Gabriele
--
Gabriele Bartolini - 2ndQuadrant Italia - Managing Director
PostgreSQL Training, Services and Support
gabriele.bartolini@2ndQuadrant.it | www.2ndQuadrant.it