From mboxrd@z Thu Jan 1 00:00:00 1970 From: shu ming Subject: Re: More work on Livebackup for qemu/qemu-kvm Date: Thu, 15 Sep 2011 14:10:41 +0800 Message-ID: <4E7196E1.4090805@linux.vnet.ibm.com> References: <4DC9F85D.9030800@sundar.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Jes Sorensen , Anthony Liguori , Badari Pulavarty , Stefan Hajnoczi , "kvm@vger.kernel.org" To: Jagane Sundar Return-path: Received: from e23smtp05.au.ibm.com ([202.81.31.147]:33632 "EHLO e23smtp05.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754401Ab1IOGLg (ORCPT ); Thu, 15 Sep 2011 02:11:36 -0400 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp05.au.ibm.com (8.14.4/8.13.1) with ESMTP id p8F64iJ0028426 for ; Thu, 15 Sep 2011 16:04:44 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p8F69gwD1470480 for ; Thu, 15 Sep 2011 16:09:42 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p8F6BSJ1025213 for ; Thu, 15 Sep 2011 16:11:29 +1000 In-Reply-To: <4DC9F85D.9030800@sundar.org> Sender: kvm-owner@vger.kernel.org List-ID: Jagane, we are testing and reviewing the livebackup workspace from git://github.com/jagane/qemu-livebackup.git Several questions are coming from us. 1) It seems that the workspace has not been updated for a while. Is there any new update for this project? 2) It looks like that the support is hightly bounded with qcow2 image format. Is there any plan to support other formats? Like raw, qed streaming? 3) Can we add some checksum method to check if the backup image is correct in the process of image transfering? For example, a checksum is made before the snapshot is transfered and then is compared with the checksum of the backup image after the backup is done. Jagane Sundar: > Hello All, > > I have made more progress on the proposed Livebackup feature > for qemu and qemu-kvm. > > Based on Jes' feedback, I have switched over to using command > line parameters instead of specific named files. So, a typical > command line looks like this: > > # ./x86_64-softmmu/qemu-system-x86_64 -drive \ > file=/dev/kvm_vol_group/kvm_root_part,boot=on,if=virtio,livebackup=on \ > -drive file=/dev/kvm_vol_group/kvm_disk1,if=virtio,livebackup=on \ > -m 512 -net nic,model=virtio,macaddr=52:54:00:00:00:01 \ > -net tap,ifname=tap0,script=no,downscript=no \ > -vnc 0.0.0.0:1000 -usb -usbdevice tablet \ > -livebackup_dir /root/kvm/livebackup -livebackup_port 7900 > > Note the new option livebackup=on in the drive parameters, and > the two new parameters -livebackup_dir and -livebackup_port > > Here's my strategy for rigorous testing of this new code: > I have created two virtual disks in LVM logical volumes, and > added code in qemu livebackup to create a LVM snapshot as > soon as livebackup_client connects to qemu and creates a > livebackup snapshot. Then I binary compare the livebackup > backed up version of the virtual disk image with the > LVM snapshot that was created by using 'cmp'. > The backup images are a bit for bit match! > > As always, all information is available at: > > http://wiki.qemu.org/Features/Livebackup > > I have also sent in my application to make a presentation at > the qemu forum 2011. > > In the meantime, I invite feedback on livebackup. > Specifically, I am interested in scrutiny of my testing > methodology. > > Also, I plan to add encryption (probably SSL) to the > livebackup TCP connection, and some form of authentication. > > Any thoughts, feedback? > > Thanks, > Jagane > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html