Hi <div><br></div><div>Thanks for the feedback!.</div><div><br></div><div>Yes you may need to re-do the changes after upgrading. I've just filled a bug to fix this.</div><div><br></div><div><a href="http://dev.opennebula.org/issues/1635">http://dev.opennebula.org/issues/1635</a><br>

</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben</div><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 5, 2012 at 9:13 AM, zouxinzhe <span dir="ltr"><<a href="mailto:zouxinzhe@gmail.com" target="_blank">zouxinzhe@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>





<div style="MARGIN:10px">
<div>I have modify the script to remove the file disk.* whenever I detach 
it. Now everything seems well.</div>
<div>But 
I wonder if this problem will reproduce when I upgrade my OpenNebula in the future?</div>
<div> </div>
<hr style="WIDTH:210px;min-height:1px" align="left" color="#b5c4df" size="1">

<div><span>zouxinzhe</span></div>
<div> </div>
<div style="BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0cm;PADDING-LEFT:0cm;PADDING-RIGHT:0cm;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<div style="padding-right:8px;padding-left:8px;padding-top:8px;font-size:12px;background:#efefef;padding-bottom:8px">
<div><b>From:</b> <a href="mailto:rsmontero@opennebula.org" target="_blank">Ruben S. 
Montero</a></div>
<div><b>Date:</b> <a href="tel:2012-11-03%C2%A000" value="+12012110300" target="_blank">2012-11-03 00</a>:32</div>
<div><b>To:</b> <a href="mailto:zouxinzhe@gmail.com" target="_blank">zouxinzhe</a></div>
<div><b>CC:</b> <a href="mailto:jmelis@opennebula.org" target="_blank">Jaime Melis</a>; <a href="mailto:users@lists.opennebula.org" target="_blank">Users OpenNebula</a></div>
<div><b>Subject:</b> Re: [one-users] OpenNebula didn't delete the <a href="http://disk.id" target="_blank">disk.id</a> 
file when I detach the disk from VM</div></div></div>
<div>
<div>Please take a look at:
<div><br></div>
<div><a href="http://lists.opennebula.org/pipermail/users-opennebula.org/2012-October/020809.html" target="_blank">http://lists.opennebula.org/pipermail/users-opennebula.org/2012-October/020809.html</a><br></div>
<div><br></div>
<div>Let us know if this works for you... note that in your case you may need to 
modify the delete script from the lvm drivers...</div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Fri, Nov 2, 2012 at 11:24 AM, zouxinzhe <span dir="ltr"><<a href="mailto:zouxinzhe@gmail.com" target="_blank">zouxinzhe@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT:#ccc 1px solid;MARGIN:0px 0px 0px 0.8ex;PADDING-LEFT:1ex" class="gmail_quote"><u></u>
  <div style="MARGIN:10px">
  <div>
  <div>Hi,there are some other question I have.</div>
  <div>I wanna attach a disk to my VM.I have create a image in LVM datastore : 
  </div>
  <div><strong>oneimage create -d 100 --name volume1 --type DATABLOCK --size 
  1024 --fstype ext4</strong></div>
  <div>All is OK.Then I use this image to attach a disk to a VM :</div>
  <div><strong>onevm attachdisk one-12 --image volume1 --target 
  vdaa</strong></div>
  <div>The OpenNebula has make a snapshot and ln this snapshot to the disk.2. 
  However when I detach the disk from VM, OpenNebula remove the lv but it 
  doesn't remove the disk.2.</div>
  <div>So it will be fail when I try to attach another disk to that VM, 
  following is the error log:</div>
  <div><strong>ln -s "/dev/vg_node176/lv-one-13-12-2" 
  "/opt/nebula/ONE/var/datastores/0/12/disk.2"" failed: ln: creating symbolic 
  link `/opt/nebula/ONE/var/datastores/0/12/disk.2': File exists</strong></div>
  <div>Is that a BUG?</div><span><font color="#888888">
  <div> </div></font></span></div><span><font color="#888888">
  <div></div>
  <div><span><span>zouxinzhe</span></span></div></font></span></div><br>_______________________________________________<br>Users 
  mailing list<br><a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br><a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>

<br></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all">
<div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief 
Architect<br>OpenNebula - The Open Source Solution for Data Center 
Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | 
@OpenNebula<br></font></span></div></div></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Ruben S. Montero, PhD<br>Project co-Lead and Chief Architect<br>OpenNebula - The Open Source Solution for Data Center Virtualization<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:rsmontero@opennebula.org" target="_blank">rsmontero@opennebula.org</a> | @OpenNebula<br>


</div>