[lvm-devel] lvcreate -s - why specifying size for snapshot ?

Bryn M. Reeves bmr at redhat.com
Fri Mar 20 16:10:07 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sandeep K Sinha wrote:
> Hi all,
> Disk
> After hunting for relevant documents and failing to find one.
> I would like to know if its not true that the size of the snapshot
> should be equal to the original volume?
> If so, then why do we accept size for a snapshot?
> 
> Or Am I missing something somewhere else?
> 

The size of the snapshot governs the amount of space set aside for
storing the changes to the origin volume. E.g. if you made a snapshot
and then completely overwrote the origin the snapshot would have to be
at least as big as the origin volume to hold the changes.

You need to dimension a snapshot according to the expected level of
change. So for example a short-lived snapshot of a read-mostly volume,
e.g. /usr, would need less space than a long-lived snapshot of a volume
that sees a greater number of writes such as /home.

Snapshots can be grown after they have been created but you need to make
sure they don't fill up. If this happens the snapshot will become
invalid (since it can no longer faithfully track changes on the origin
volume).

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAknDv98ACgkQ6YSQoMYUY95s2wCfQwnpoTiHL+8xhuifVX4YGoJz
TW0Ani+qq0uDmwgAKbHAVUiwEO6MLGtN
=D2F3
-----END PGP SIGNATURE-----




More information about the lvm-devel mailing list