linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: Stuart D Gathman <stuart@bmsi.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Sparse LVs, --virtualsize equal to --size
Date: Thu, 24 Jan 2013 13:35:56 -0500	[thread overview]
Message-ID: <51017F0C.20100@bmsi.com> (raw)
In-Reply-To: <20130124180834.GA3122@agk-dp.fab.redhat.com>

Long ago, Nostradamus foresaw that on 01/24/2013 01:08 PM, Alasdair G
Kergon would write:
> If you've got the capacity to test, create one that's quite a bit
> larger and see how much space it actually uses up when full, then use
> that size in future.  There's a header, and then the blocks are written
> sequentially with an index block inserted ahead of each group of
> data blocks.
>
> Or try out thin LVs available in recent LVM releases/kernels for
> an alternative 'sparse' approach.
He doesn't actually want sparse, he wants "instant zero" via copy on
write.  This is useful for virtual machines by preventing information
leaks between customers.   Currently, you can create a "template" LV,
and have a snapshot for each VM.  Since you (almost) never write to the
template, you don't run into the performance issue.   He proposed a new
type of LV that is a normal LV plus a small bitmap (1 bit per chunk)
that tracks which chunks have been written to.  When a chunk is written
to, the remainder of that chunk is set to zero.  Reads from unwritten
chunks always return zeroes.

  reply	other threads:[~2013-01-24 18:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-24 15:53 [linux-lvm] Sparse LVs, --virtualsize equal to --size Vangelis Koukis
2013-01-24 18:08 ` Alasdair G Kergon
2013-01-24 18:35   ` Stuart D Gathman [this message]
2013-01-24 23:42     ` Alasdair G Kergon
2013-01-25  8:44       ` Vangelis Koukis
2013-01-25 12:29         ` Alasdair G Kergon
2013-01-25 16:19           ` Vangelis Koukis
2013-01-28 13:50         ` Marian Csontos
2013-01-29  8:24           ` Vangelis Koukis
2013-01-31 16:22             ` Lars Ellenberg
2013-02-06 16:05               ` Vangelis Koukis
2013-01-25  8:39     ` Vangelis Koukis

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=51017F0C.20100@bmsi.com \
    --to=stuart@bmsi.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).