From: yue <ooolinux@163.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] copy lv from lv?
Date: Fri, 1 Apr 2011 10:46:26 +0800 (CST) [thread overview]
Message-ID: <1551167.2ce1.12f0ef45c4f.Coremail.ooolinux@163.com> (raw)
In-Reply-To: <alpine.LRH.2.00.1103302019060.412@bmsred.bmsi.com>
[-- Attachment #1: Type: text/plain, Size: 2310 bytes --]
1.what i mean is that, when copy one lv, i would like use it's snapshot, not origin, because origin is always template. making a snapshot is very quick.
but if can take a thousand snapshots from one lv, same size as origin? while the snapshots are readable and writable?
thanks
2.nice -5 dd if=/dev/clones/from bs=64M iflag=direct |
dd of=/dev/scratch/to bs=64M oflag=direct
the pipe base on STDIN,STDOUT. i do not think STDIN,STDOUT have too mush cache
At 2011-03-31 08:27:52,"Stuart D. Gathman" <stuart@bmsi.com> wrote:
>On Wed, 30 Mar 2011, Ray Morris wrote:
>
>>> 1..how to pipe two copy together
>>
>> This is what I use after some experimenting. I've found
>> it's often far faster than the more obvious use of dd:
>>
>> nice -5 dd if=/dev/clones/from bs=64M iflag=direct |
>> dd of=/dev/scratch/to bs=64M oflag=direct
>>
>> I use 64 MB extents. For smaller extents, a matching dd
>> block size might be good.
>
>Thanks for that recipe. It ought to be in lvm2 as an lvcopy utility
>(dynamically determining extent size, etc).
>
>>> 2.i take lv as xen-guestOS's disk. usually many guestOS created
>>> from one lv(called template), maybe many data is readonly, so if so
>>> many lvs share readonly part ,and have its private data? COW save
>>> disk space, and take less time. i do not think snapshot is sutable
>>> for this case. thanks
>
>As long as the origin is not often modified, having many snapshots
>is efficient. Each write to the origin will of course entail a write
>to each snapshot. (And as I discovered recently, if write barriers are
>disabled or buggy at any hardware or software layer, a power failure during
>heavy writes to the origin is particularly vulnerable to write reordering
>corrupting a snapshot. So make sure UPS is working before updating the
>origin.)
>
>--
> Stuart D. Gathman <stuart@bmsi.com>
> Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
>"Confutatis maledictis, flammis acribus addictis" - background song for
>a Microsoft sponsored "Where do you want to go from here?" commercial.
>
>_______________________________________________
>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/
[-- Attachment #2: Type: text/html, Size: 4128 bytes --]
prev parent reply other threads:[~2011-04-01 2:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-29 12:53 [linux-lvm] copy lv from lv? yue
2011-03-29 17:48 ` Ray Morris
2011-03-30 13:49 ` yue
2011-03-30 18:28 ` Ray Morris
2011-03-31 0:27 ` Stuart D. Gathman
2011-03-31 12:15 ` Zdenek Kabelac
2011-04-05 16:25 ` Ray Morris
2011-04-05 21:10 ` Zdenek Kabelac
2011-04-05 21:29 ` [linux-lvm] Taking it off list - " Ray Morris
2011-04-01 2:46 ` yue [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=1551167.2ce1.12f0ef45c4f.Coremail.ooolinux@163.com \
--to=ooolinux@163.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).