<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:blue;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>I appreciate the suggestion about using MD
driver.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>However, I have already built MD devices
which are hosting the volume groups and logical volumes.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>I am not aware of being able to using the
MD driver with MD devices as opposed to non MD devices (mirroring a mirror
rather then mirroring straight disk partitions).<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>Does any know if this is possible?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'>Thanks!<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=blue face=Arial><span style='font-size:
12.0pt;font-family:Arial;color:blue'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> linux-lvm-bounces@redhat.com
[mailto:linux-lvm-bounces@redhat.com] <b><span style='font-weight:bold'>On
Behalf Of </span></b>Jed Donnelley<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, May 01, 2006 8:05 PM<br>
<b><span style='font-weight:bold'>To:</span></b> LVM general discussion and
development<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [linux-lvm] Cloning
Logical Volumes</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>At 03:21 PM 4/27/2006, Jonathan E Brassow wrote:<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>dd is probably the best way right now. <br>
<br>
in the future, the clone would probably take the form: <br>
prompt> lvconvert -m1 vg/lv; (wait for sync); lvsplit vg/lv <br>
<br>
The syntax isn't worked out yet and lvsplit is not there yet... but we have
talked about doing something like that. <br>
<br>
brassow <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
One possibility that occurs to me is to use RAID-1 under LVM and then clone
your LVM file system(s)<br>
by splitting a software RAID-1 clone (e.g. MD driver).  Even if you don't
want to pay the price of redundant<br>
disks in your final system configuration, you can leave it with a single 1/2
RAID set with no loss of reliability<br>
(over no RAID).  You can even do the RAID-1ing on a single disk if that
has any potential value, but it's a bit<br>
more difficult for me to see how you would separate the clone out that way.<br>
<br>
Just a thought.  I use such RAID-1 cloning quite often and find it very convenient. 
It seems to me it<br>
would work fine in this case.  About the only thing I find I have to be
careful of is to be sure that if<br>
I'm cloning the /boot (or /root if it includes /boot) file system that I make
sure the boot record is in<br>
place (in my case running grub and writing the appropriate record on the
appropriate disk before<br>
splitting the RAID system for cloning).<br>
<br>
I still don't trust LVM for recovering munged file systems (no effective
mechanism for fsck if you<br>
can't get to the LVM file system, init problems for RAID-10, etc. as mentioned
previously on<br>
this list) so I'm not using LVM at this time and haven't tested the above
mechanism.  You're<br>
mileage may vary.<br>
<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>On Apr 26, 2006, at 5:55 PM, Greg Hartzog wrote: <br>
<br>
<br>
<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=5 face="Times New Roman"><span style='font-size:
18.0pt'>Hello there folks.  I have a question.</span></font> <br>
<font size=5><span style='font-size:18.0pt'> </span></font> <br>
<font size=5><span style='font-size:18.0pt'>I am looking for a better way of
cloning logical volumes then creating a new logical volume, identical to a
source logical volume, and using dd to copy data between the two
logical volumes.</span></font> <br>
<font size=5><span style='font-size:18.0pt'> </span></font> <br>
<font size=5><span style='font-size:18.0pt'>I would love to use dm-mirror to do
this, but I do not think any interface has been provided to do this yet.</span></font>
<br>
<font size=5><span style='font-size:18.0pt'> </span></font> <br>
<font size=5><span style='font-size:18.0pt'>All suggestions and ideas
appreciated.</span></font> <br>
<font size=5><span style='font-size:18.0pt'> </span></font> <br>
<font size=5><span style='font-size:18.0pt'>I am running lvm2-2.02.04-r1 &
2.6.15 kernel.</span></font> <br>
<font size=5><span style='font-size:18.0pt'> </span></font> <br>
<font size=5><span style='font-size:18.0pt'>Thanks!</span></font> <o:p></o:p></p>

<p></x-sigsep><font size=3 face="Times New Roman"><span style='font-size:12.0pt'><x-sigsep>--Jed
<a href="http://www.nersc.gov/~jed/" eudora=autourl>http://www.nersc.gov/~jed/</a><o:p></o:p></span></font></p>

</div>

</body>

</html>