<div>Hi,</div>
<div> I have debug the lvm2.02.64 (with the shared-snapshot patches).</div>
<div> In the last email I mentioned the '<font color="#3333ff">Cannot update volume group vg00 with unknown segments in it!'</font></div>
<div><font color="#3333ff"> <font color="#000000"> The debug mesg</font>: "</font><font color="#ff9900"> </font><font color="#6633ff">vg_has_unknown_segments function: snapshot0 has unknown seg."</font></div>
<div><font color="#ff9900"> </font><font color="#000000"> I don't know when the snapshot0 has been created?why its segtype unkown?</font></div>
<div><font color="#ff9900"><font color="#000000"> Hope for your help.</font></font></div>
<div><font color="#ff9900"><font color="#000000"> Thank you.</font></font></div>
<p><font color="#ff9900"><font color="#000000"></font></font> </p>
<div><font color="#000000">Best regards,</font></div>
<div><font color="#ff9900"><font color="#000000">Busby</font></font></div>
<div><br></div>
<div class="gmail_quote">在 2010年5月24日 下午5:04,Busby <span dir="ltr"><<a href="mailto:chaimvy@gmail.com">chaimvy@gmail.com</a>></span>写道:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Hi All,</div>
<div> </div>
<div>I get the patches from: </div>
<div><span lang="EN-US"><font size="3" face="Times New Roman">Linux kernel 2.6.34 patch: </font></span><span lang="EN-US"><a href="http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/" target="_blank"><font size="3" face="Times New Roman">http://people.redhat.com/mpatocka/patches/kernel/new-snapshots/r19/</font></a></span></div>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">LVM2-2.02.64 patch: </font></span><span lang="EN-US"><a href="http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/" target="_blank"><font size="3" face="Times New Roman">http://people.redhat.com/msnitzer/patches/multisnap/lvm2/LVM2-2.02.64/</font></a></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US">but when I used it, the segment type can not find, can anyone help me?</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p><span lang="EN-US">
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# pvcreate /dev/sd[bcdef]</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# vgcreate vg00 /dev/sd[bcdef]</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# lvcreate -L 100G -n lv_test /dev/vg00</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# lvcreate -L 200G -c 256 --sharedstore <span> </span>mikulas -s /dev/vg00/lv_test</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3"><font face="Times New Roman"><span> </span><font color="#3333ff"><strong>WARNING: Unrecognised segment type multisnapshot</strong></font></font></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3"><font face="Times New Roman"><font color="#3333ff"><strong><span> </span>Cannot update volume group vg00 with unknown segments in it!<span style="COLOR: navy"></span></strong></font></font></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# lvscan</font></span></p>
<p style="TEXT-INDENT: 10.5pt; MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">ACTIVE<span> </span>'/dev/vg00/lv_test' [100.00 GiB] inherit</font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3"><font face="Times New Roman"><span> </span><span> </span>inactive<span> </span>'/dev/vg00/lv_test-shared' [200.00 GiB] inherit</font></font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"><font size="3" face="Times New Roman">[root@new-host-34 ~]# lvcreate -s -n lv_test_ss1 /dev/vg00/lv_test </font></span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 10.5pt" lang="EN-US"><span> </span><span style="COLOR: navy"><strong>Unable to create new logical volume with no extents</strong></span></span></p>
</span>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US">The dm modules in the system:</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US">[root@new-host-34 LVM2.2.02.64]# lsmod |grep dm<br>dm_snapshot 25583 0 <br>dm_store_daniel 11304 0 <br>dm_store_mikulas 43265 0 <br>
dm_multisnapshot 20276 2 dm_store_daniel,dm_store_mikulas<br>dm_mirror 11564 0 <br>dm_multipath 14594 0 <br>scsi_dh 5480 1 dm_multipath<br>dm_region_hash 8233 1 dm_mirror<br>
dm_log 8158 2 dm_mirror,dm_region_hash<br>dm_mod 58855 9 dm_snapshot,<font color="#3366ff"><strong>dm_store_daniel,dm_store_mikulas,dm_multisnapshot</strong></font>,dm_mirror,dm_multipath,dm_log</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"> </span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"> I just want to use the multisnap by LVM2 command. But I don't know is there any document about HOW-TO?</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"> Thank you very much.</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US"></span> </p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US">Best regards,</span></p>
<p style="MARGIN: 0cm 0cm 0pt" class="MsoNormal"><span lang="EN-US">Busby</span></p></blockquote></div><br>