[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Snapshot question...

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?

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]