From: Stuart D Gathman <stuart@bmsi.com>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] Fun and games with mirroring
Date: Wed, 23 May 2012 18:44:27 -0400 [thread overview]
Message-ID: <4FBD684B.4040309@bmsi.com> (raw)
In-Reply-To: <CAGQjrKYeeG4Bwifh3yno46P3BDe9grbz8Um6mZqpcst5Eh7JaA@mail.gmail.com>
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.
prev parent reply other threads:[~2012-05-23 22:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-22 14:50 [linux-lvm] Fun and games with mirroring Vic
2012-05-22 15:27 ` Les Mikesell
2012-05-22 15:29 ` Vic
2012-05-22 16:00 ` Bryn M. Reeves
2012-05-22 16:40 ` Vic
2012-05-22 19:24 ` Brassow Jonathan
2012-05-22 19:59 ` Vic
2012-05-23 8:52 ` Bryn M. Reeves
2012-05-23 10:02 ` Zdenek Kabelac
2012-05-23 15:16 ` Brassow Jonathan
2012-05-23 8:54 ` Bryn M. Reeves
2012-05-23 15:21 ` Les Mikesell
2012-05-23 15:36 ` Bryn M. Reeves
2012-05-23 17:03 ` Les Mikesell
2012-05-23 17:24 ` Bryn M. Reeves
2012-05-23 18:00 ` Les Mikesell
2012-05-23 18:32 ` Stuart D Gathman
2012-05-23 19:07 ` Les Mikesell
2012-05-23 22:39 ` Stuart D Gathman
2012-05-22 17:57 ` Stuart D Gathman
2012-05-22 18:39 ` tariq wali
2012-05-23 22:44 ` Stuart D Gathman [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=4FBD684B.4040309@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 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.