On 05/22/2012 02:39 PM, tariq wali expounded in part:
if I may ask an elementary question please :) I normally take a
snapshot on lvm partition offcourse that contains MySQL data say /data
and then mount it as ro and then use the ancient tar/scp to copy it
elsewhere . Could anyone please correct me if there is a better way to
do it ? like can i take a snapshot of /data and transfer the entire
volume to another system ( i mean duplicate/mirror it ) ?
Yes
sometime /data contains data that I really don't need to be in the
snapshot but the way i take snapshot it pretty much creates a mirror
.. I have always wondered how snapshot thing works because when i take
snapshot I continue to use my original /data and continue to do IO on
it while snapshot is mounted :)
Writes to the original volume cause the original data to be copied to
the snapshot volume first. Reads from the snapshot check for the block
in the snapshot volume, and if not there read it from the original
volume. Thus, each first time logical write to a block on the original
volume results in a read,write,write - and performance could tank if you
are doing too many of these.
_______________________________________________
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/