Hi,
I'm trying to set up a solution to take backups of kvm disk images by mounting a snapshot of it via nbd like this:
qemu-nbd --snapshot --read-only --connect /dev/nbd${nbd_num} --nocache $disk_file
I then mount it and rsync the content stored on the disk.
However, I have sometimes an input/output error. For example:
rsync: readlink_stat("/mnt/snapshots/kvmWeb03Staging/var/lib/postgresql/9.1/main/postmaster.pid") failed: Input/output error (5)
ls -l of the directory lists the file like this:
-????????? ? ? ? ? ? postmaster.pid
I'm trying to identify the source of this problem. This could be due to qemu-nbd's snapshots, but I'd like to hear your opinion too.
thanks!
Raph