Jelle de Jong
2019-Aug-01 10:56 UTC
[Libguestfs] guestmount mounts gets corrupted somehow? [iscsi lvm guestmount windows filesystem rsync]
Hello everybody, I been trying to debug a problem for a month now and can use some insights and advice. This is the setup, I got two linux ha storage node providing iscsi disk, the disks is mounted on two linux kvm host and one backup server. The iscsi disk has lvm on it, the logical volume groups are visible on all servers. On the backup server I have the following running: # guestmount --version guestmount 1.40.2 # guestmount --ro -a /dev/lvm1-vol/sr8-disk1a -a /dev/lvm1-vol/sr8-disk2 -a /dev/lvm1-vol/sr8-disk3 -a /dev/lvm1-vol/sr8-disk4 -a /dev/lvm1-vol/sr8-disk5 -a /dev/lvm1-vol/sr8-disk6 -m /dev/sdb2 /mnt/sr8-sdb2 # rsync --archive --delete --partial --progress --recursive --no-links --no-devices --quiet /mnt/sr8-sdb2/ /srv/storage/backups/libvirt-filesystems/sr8-sdb2 This used to go fine for many years (we helped with the development of deduplication ntfs support). Now one of our windows vms has six logical volumes and grow to more then 5TB of space. The backup started to get corrupted. My initial thought was that the lvm snapshot sizes was to small and was getting invalided. I started using guestmount --ro -a straight on the logical volumes and the same behaviour is happening. What I can see is this: I do an ls -hal /mnt/sr8-sdb2/ after the guest mounts and everything looks good and I can access the files. Then after a while the whole content of /mnt/sr8-sdb2/ is changed and show the content of an linux drive!! and the rsync commands fails and stops. I can unmount /mnt/sr8-sdb2/ remount it and the data is there again.... Help debugging please? Are there other option I should use? --live? Kind regards, Jelle de Jong
Richard W.M. Jones
2019-Aug-01 11:33 UTC
Re: [Libguestfs] guestmount mounts gets corrupted somehow? [iscsi lvm guestmount windows filesystem rsync]
On Thu, Aug 01, 2019 at 12:56:53PM +0200, Jelle de Jong wrote:> # guestmount --ro -a /dev/lvm1-vol/sr8-disk1a -a > /dev/lvm1-vol/sr8-disk2 -a /dev/lvm1-vol/sr8-disk3 -a > /dev/lvm1-vol/sr8-disk4 -a /dev/lvm1-vol/sr8-disk5 -a > /dev/lvm1-vol/sr8-disk6 -m /dev/sdb2 /mnt/sr8-sdb2Are these point in time snapshots of the disks?> The backup started to get corrupted. My initial thought was that the > lvm snapshot sizes was to small and was getting invalided.It's not really clear what you mean by "get corrupted". Do you mean that rsync fails in some way? The backup works but is later found to be broken? What's the actual error message?> Help debugging please?You should use guestmount -v -x to enable extra debugging. See also: http://libguestfs.org/guestfs-faq.1.html#can-i-use-guestfish---ro-as-a-way-to-backup-my-virtual-machines Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Apparently Analagous Threads
- [Gluster-devel] gfid and volume-id extended attributes lost
- [Gluster-devel] gfid and volume-id extended attributes lost
- [Gluster-devel] gfid and volume-id extended attributes lost
- [Gluster-devel] gfid and volume-id extended attributes lost
- [Gluster-devel] gfid and volume-id extended attributes lost