All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephane Chazelas <stephane.chazelas@emerson.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Snapshot question...
Date: Tue, 22 Apr 2008 17:52:23 +0100	[thread overview]
Message-ID: <chaz20080422165222.GC6559@artesyncp.com> (raw)
In-Reply-To: <480E121A.7020100@Media-Brokers.com>

2008-04-22 12:28:10 -0400, Charles Marcus:
[...]
>> So to sum up, the "snapshot" volume you are creating is a
>> "virtual" volume that is a front end to both the snapshot
>> storage volume ("COW") and the original real volume ("real").
>>
>> Hope this clarifies a bit,
>
> Thanks for trying, but no, that just made my head hurt...
>
> ;)
>
> Seriously... if the snapshot volume that I'm creating is a front end to 
> BOTH, when I back it up, I guess LVM just 'knows' that I mean to backup the 
> 'original'?
>
> Is there a graphical outline of how this works? I seem to do better with 
> visualizations...
[...]

I can try another wording.

Your snapshot device is a *virtual* device. And if you do a cat
/dev/vg/snapshot, you'll get 100GB worth of data which will be
exactly the same as you would have gotten if you had done a cat
/dev/vg/original at the time you did the snapshot.

To make that virtual snapshot work, LVM uses internally another
this time real device, which you don't access directly. You can
do a cat /dev/mapper/vg-snapshot-cow, you'll get 5 GB of data,
but that data will be useless to you, it's in a special format
recognised by the device-mapper used to store only the blocks
that were changed in your original device since the snapshot.

The "dmsetup status" or "lvdisplay" commands should be able to
tell you how much of the COW volume has already been allocated
to store the "modifications". When all the space there has been
used, the virtual device will stop working altogether.

is that better?
Stephane

      parent reply	other threads:[~2008-04-22 16:52 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-22 10:30 [linux-lvm] Snapshot question Charles Marcus
2008-04-22 10:47 ` Stephane Chazelas
2008-04-22 16:12   ` Brian J. Murrell
2008-04-22 16:38     ` Stephane Chazelas
2008-04-22 16:54       ` Dan Kegel
2008-04-22 17:39         ` Dan Kegel
2008-04-23 11:49           ` Stephane Chazelas
2008-04-22 16:51     ` Dan Kegel
2008-04-24  3:57     ` [linux-lvm] Snapshot question... [scaling problem] Ross Boylan
2008-04-24  4:10       ` Dan Kegel
2008-04-24 14:21         ` Larry Dickson
2008-04-24 15:59           ` Stuart D. Gathman
2008-04-24 17:19             ` Larry Dickson
2008-04-22 16:28   ` [linux-lvm] Snapshot question Charles Marcus
2008-04-22 16:47     ` dave
2008-04-22 17:09       ` Charles Marcus
2008-04-23 10:08         ` Charles Marcus
2008-04-22 16:52     ` Stephane Chazelas [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=chaz20080422165222.GC6559@artesyncp.com \
    --to=stephane.chazelas@emerson.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.