[linux-lvm] Use lvcreart -m to make a mirror

Jonathan E Brassow jbrassow at redhat.com
Mon Jan 9 23:39:23 UTC 2006


The attached script (originally from Jun'ichi Nomura) is what I've been 
using to validate mirror volumes.  You might be able to pull out things 
for use in your tests.  It uses device mapper and is design to attack a 
specific bug.

  brassow

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mirror_177067.sh
Type: application/octet-stream
Size: 4337 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20060109/359c18f8/attachment.obj>
-------------- next part --------------


On Jan 5, 2006, at 3:47 AM, Patrick Caulfield wrote:

> Fang,Dongyu wrote:
>> Thanks your replay.
>> How can I mount the "original" (mimage_0) or the "mirror" (mimage_1)
>> single?
>> Because I want to verify it write/read data in both LV indeed.
>
> Because of internal cacheing I don't know whether that's a sensible 
> thing to do.
>
>> And how can I remove the mirror relation between the two LV(let the
>> "original" and "mirror" become two singe LV)?   (I use `lvconvert -m 0
>> vg1/mirror1`  then LVs become one.)
>
> With current RPMs you currently can't. The code is in CVS but it needs 
> lots of
> testing.
> -- 
>
> patrick
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm at redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>


More information about the linux-lvm mailing list