[linux-lvm] vgcfgbackup: backup of several VGs into one file fails

Hauke Laging mailinglisten at hauke-laging.de
Sat Jun 19 11:45:32 UTC 2004


Hello,

I just tried to make a backup of all my VGs into one file using the 
following command:

vgcfgbackup -d -f lvm--2004-06-19
  : open failed: No such file or directory
  Volume group "storage" successfully backed up.
  : open failed: No such file or directory
  Volume group "linux" successfully backed up.

Unfortunately after that the file lvm--2004-06-19 contains information 
about the VG "linux" only.

strace shows this:
[...]
rename("./.lvm_server_12035_1954474236", "lvm--2004-06-19.tmp") = 0
rename("lvm--2004-06-19.tmp", "lvm--2004-06-19") = 0
[...]
rename("./.lvm_server_12035_348633387", "lvm--2004-06-19.tmp") = 0
rename("lvm--2004-06-19.tmp", "lvm--2004-06-19") = 0
[...]

It seems to me that both VG backups are written to the same file by writing 
them to a temporary file and then renaming this. Of course, by this all 
former backups are overwritten as the file is overwritten every time.

The ": open failed: No such file or directory" message is probably caused 
by this:
stat64("lvm--2004-06-19.tmp", 0xbfffc9a0) = -1 ENOENT (No such file or 
directory)
open("", O_RDONLY|O_LARGEFILE)          = -1 ENOENT (No such file or 
directory)
These two lines immediately follow the "rename" lines.

Do I misunderstand anything? The man page does not look too complicated...


vgcfgbackup --version
  LVM version:     2.00.15 (2004-04-19)
  Library version: 1.00.09-ioctl (2004-03-31)
  Driver version:  4.1.0


Best regards,

Hauke Laging



More information about the linux-lvm mailing list