All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Bellembois <thomas.bellembois@gmail.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] LVM snapshot - "dd" file size
Date: Thu, 17 Apr 2008 14:44:43 +0200	[thread overview]
Message-ID: <4807463B.2070508@gmail.com> (raw)
In-Reply-To: <003e01c8a009$fa453ad0$0132a8c0@denie>

Nice tip ! It works fine !
Thanks a lot.

Ragards,

Thomas

Denie Andriessen wrote:
> A compressed dd can still be quite large, as there still might contain
> non zero values..
>
> if you compress the image, a possible way to make the resulting files
> smaller is to:
>
> - do a: 'dd if=/dev/zero of=/dummyfile' on the filesystem first (you
> might want to use 'bs' and 'count' parameters)
> - if you topped off the disk, delete the all zero dummyfile.
>
> The zipped result might be smaller. (both with dd and with tar..)
>
> Regards,
> Denie
>
> ----- Original Message ----- From: <dave@frop.net>
> To: "LVM general discussion and development" <linux-lvm@redhat.com>
> Sent: Wednesday, April 16, 2008 11:04 PM
> Subject: Re: [linux-lvm] LVM snapshot - "dd" file size
>
>
>> this has nothing to do with LVM.
>>
>> dd knows nothing about files, it just copies the entire device (or
>> file or whatever).
>>
>> tar will work, if you use the right command line switches. Search
>> around on the web for pointers on how to use it.
>>
>> Another intermediate way would be to compress the image you get with dd.
>>
>> On Wed, Apr 16, 2008 at 04:59:05PM +0200, Thomas Bellembois wrote:
>>> Hi!
>>>
>>> I am using LVM partitions on a Debian Xen system.
>>> I use LVM snapshots to clone and backup my virtual machines.
>>>
>>> I have noticed that the ISO file created with the "dd" command it much
>>> bigger that the partition used space (actually 4.7GB for the ISO -
>>> 500MB
>>> used space). No problem if I mount the LVM snapshot and "tar" all of
>>> the
>>> data.
>>>
>>> I have googled the question and read that "dd" also copy "not used
>>> space".
>>> Why is the ISO file so big ? Is the "tar" method less safe ?
>>> Is there a better solution ?
>>>
>>> Thanks for your answers.
>>>
>>> Regards,
>>>
>>> Thomas
>>>
>>>
>>>
>>> _______________________________________________
>>> linux-lvm mailing list
>>> linux-lvm@redhat.com
>>> https://www.redhat.com/mailman/listinfo/linux-lvm
>>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>> _______________________________________________
>> linux-lvm mailing list
>> linux-lvm@redhat.com
>> https://www.redhat.com/mailman/listinfo/linux-lvm
>> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

      reply	other threads:[~2008-04-17 12:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-16 14:59 [linux-lvm] LVM snapshot - "dd" file size Thomas Bellembois
2008-04-16 21:04 ` dave
2008-04-16 21:36   ` Denie Andriessen
2008-04-17 12:44     ` Thomas Bellembois [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4807463B.2070508@gmail.com \
    --to=thomas.bellembois@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.