From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Laukamp Subject: Re: [User Question] How to create a backup of an LVM based maschine without wasting space Date: Sat, 13 Oct 2012 12:28:18 +0200 Message-ID: <50794242.3020407@laukamp.me> References: <5077BE30.5010209@laukamp.me> <20121012084221.GC14822@stefanha-thinkpad.redhat.com> <5077DB9F.6050809@laukamp.me> <5077E03E.2040507@laukamp.me> <5077EDEB.6050703@laukamp.me> <5077F600.7080809@laukamp.me> <50785DEE.6060204@laukamp.me> <50786EEC.2030507@laukamp.me> <5078841A.6040706@laukamp.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Stefan Hajnoczi , kvm@vger.kernel.org To: Javier Guerra Giraldez Return-path: Received: from mailer0.lippux.de ([5.9.218.245]:54006 "EHLO mailer0.lippux.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751433Ab2JMK20 (ORCPT ); Sat, 13 Oct 2012 06:28:26 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Am 12.10.2012 23:53, schrieb Javier Guerra Giraldez: > On Fri, Oct 12, 2012 at 3:56 PM, Lukas Laukamp wrote: >> I think that it must be possible to create an image with a size like the >> used space + a few hundret MB with metadata or something like that. > the 'best' way to do it is 'from within' the VM > > the typical workaround is to mount/fsck a LVM snapshot (don't skip the > fsck, or at least a journal replay) > > beyond that, there are a few utilities for specific filesystems: > PartImage [1], dump/restore [2], and i'm sure some others. I don't > know how would these behave with unclean images, which is what you get > if you pull the image under the VM's feet. > > > [1] http://www.partimage.org/Main_Page > [2] http://dump.sourceforge.net/ > > So when I boot the VM with for example a live debian system, what would be the best method to backup the complete disk /dev/vda with only the data which is on it over a secure network connection to a destination in the network. Best Regards