All of lore.kernel.org
 help / color / mirror / Atom feed
From: Phillip Susi <psusi@cfl.rr.com>
To: Busby <chaimvy@gmail.com>
Cc: device-mapper development <dm-devel@redhat.com>
Subject: Re: create lvm2 snapshot will take a long time while large IO on origin lv(till large IO ends)
Date: Fri, 30 Apr 2010 10:39:12 -0400	[thread overview]
Message-ID: <4BDAEB90.7050305@cfl.rr.com> (raw)
In-Reply-To: <q2hb8091bb41004291809i8fa5d34cr3918144d715f0792@mail.gmail.com>

On 4/29/2010 9:09 PM, Busby wrote:
> Hi, Phillip Susi,
>                  Why not suspend the origin's IO first, then create the
> snapshot lv, resume the origin lv 's IO waiting Q last. the 'dd' cmd is
> eariler than the snapshot's creating, if suspend the IO, the filesystem
> on the snapshot will be corrupt, I get it, but I think the  snapshot is
> in block layer, should suspend the user layer's data coming first, then
> flush the data in the dirty buffer and create the snapshot.  like the dd
> cmd on the origin, will make the snapshot's creating take a very long
> time, for waiting for the dm suspend 's return, I think flush the data
> in the dirty buffer (data from dd ), suspend the next data of the dd,
> create the snapshot, then let the data into dirty buffer to the block
> layer. the dd cmd will put the data into dirty buffer continually, can
> not be suspended?

I don't think it is possible to suspend new IO requests from user land
while allowing it from the buffer cache.

  reply	other threads:[~2010-04-30 14:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-29  3:24 create lvm2 snapshot will take a long time while large IO on origin lv(till large IO ends) Busby
2010-04-29 17:31 ` Phillip Susi
2010-04-30  1:09   ` Busby
2010-04-30 14:39     ` Phillip Susi [this message]
2010-05-05 11:10       ` Busby

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=4BDAEB90.7050305@cfl.rr.com \
    --to=psusi@cfl.rr.com \
    --cc=chaimvy@gmail.com \
    --cc=dm-devel@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.