<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial">Thanks for you reply!<br>    Firstly, I'm very sorry I forgot introduce the scenarios in my experiments. Supposing a case, I have a virtual machine with two disks. One is mounted as a root partition and the other is data partition and the second disk is an iscsi lun, that is to say, not a local disk or image. Now the result wanted is that creating a snapshot for the root disk but not for the data disk when executing "virsh snapshot-create-as" command. Actually, it meet an error:<br>      error:unsuported configuration: source for disk 'vdc' is not a regular file; refusing to generate external snapshot name.<br>    The xml configuration of this virtual machine as follows:<br>         <disk type='block' device='disk'><br>              <driver name='qemu' type='raw' /><br>             <source dev='/dev/sdm1' >                 // sdm1 is a remote scsi lun and mounted at the local host<br>              <target dev='vdc' bus='virtio' /><br>         </disk><br>     Given above problem, I want to only create the snapshot of local disk.<br><br><br><div></div><div id="divNeteaseMailCard"></div><br>ÔÚ 2013-06-24 23:22:47£¬"vonNieda, Adam (USMS)" <Adam.vonNieda@usdoj.gov> Ð´µÀ£º<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">



<style></style>


<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   I think what you¡¯re looking for is LVM snapshots. The whole purpose of taking VM snapshots is to have a consistent image of the machine as a whole. There¡¯s
 lots of articles out there on LVM snapshots, here¡¯s one. <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">   http://www.tldp.org/HOWTO/LVM-HOWTO/snapshots_backup.html<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:libvirt-users-bounces@redhat.com">libvirt-users-bounces@redhat.com</a> [mailto:<a href="mailto:libvirt-users-bounces@redhat.com">libvirt-users-bounces@redhat.com</a>]
<b>On Behalf Of </b>cmcc.dylan<br>
<b>Sent:</b> Saturday, June 22, 2013 11:13 AM<br>
<b>To:</b> <a href="mailto:libvirt-users@redhat.com">libvirt-users@redhat.com</a><br>
<b>Subject:</b> [libvirt-users] snapshot-create-as for a single disk not all disks<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">Hi everyone!<o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">   Is there any way to create snaphot for a single disk of a virtual machine. As I konw, "virsh snapshot-create-as domain_name  snapshot_name --disk-only" traverses
 all block devices to create snapshot. However I don't want to create snapshot except for root partition.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">  The version of qemu and libvirt I used is as follows:<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">                qemu-1.4.2 and libvrit-0.10.2<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">  I meet an error when I delete the snapshot which is created by "snapshot-create-as" command. whether or not qemu(1.4.2) and libvirt(0.10.2) don't support the
 function currently.<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black"><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:black">   Look forward to your help!<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
</div>


</blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>