Hello,<div><br></div><div>I closed the ticket, because everything works for me as expected. I reckon that there must be a configuration issue somewhere. Are you still experiencing this?</div><div><br></div><div>cheers,<br>
Jaime</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 5:48 AM, Jaime Melis <span dir="ltr"><<a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<div><br></div><div>everthing seems correct. I've opened a bug report in order to review it:</div><div><a href="http://dev.opennebula.org/issues/1632" target="_blank">http://dev.opennebula.org/issues/1632</a><br>
</div><div><br></div>
<div>cheers,<br>Jaime</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Nov 2, 2012 at 2:43 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>Hi,</div>
<div>here is the information you want</div>
<div>#####################################</div>
<div>
<div>$ onedatastore show 100</div>
<div>DATASTORE 100 INFORMATION </div>
<div>ID : 100 </div>
<div>NAME : lvm_datastore </div>
<div>USER : oneadmin </div>
<div>GROUP : oneadmin </div>
<div>CLUSTER : - </div>
<div>DS_MAD : lvm </div>
<div>TM_MAD : lvm </div>
<div>BASE PATH : /opt/nebula/ONE/var/datastores/100</div>
<div> </div>
<div>PERMISSIONS </div>
<div>OWNER : um- </div>
<div>GROUP : u-- </div>
<div>OTHER : --- </div>
<div> </div>
<div>DATASTORE TEMPLATE </div>
<div>DISK_TYPE="block"</div>
<div>DS_MAD="lvm"</div>
<div>TM_MAD="lvm"</div>
<div>VG_NAME="vg_node176"</div>
<div> </div>
<div>IMAGES </div>
<div>21 </div></div>
<div>#####################################</div>
<div>I canot show images that have been deleted from the
OpenNebula.Follow is the image create by the same config file</div>
<div>
<div>$ oneimage show 21</div>
<div>IMAGE 21 INFORMATION </div>
<div>ID : 21 </div>
<div>NAME : RedHat3 </div>
<div>USER : oneadmin </div>
<div>GROUP : oneadmin </div>
<div>DATASTORE : lvm_datastore </div>
<div>TYPE : OS </div>
<div>REGISTER TIME : 11/01 17:41:44 </div>
<div>PERSISTENT : No </div>
<div>SOURCE : localhost:vg_node176.lv-one-21</div>
<div>PATH : /opt/nebula/images/rhel.5.5.x86_64.raw.small</div>
<div>SIZE : 2.5G </div>
<div>STATE : rdy </div>
<div>RUNNING_VMS : 0 </div>
<div> </div>
<div>PERMISSIONS </div>
<div>OWNER : um- </div>
<div>GROUP : --- </div>
<div>OTHER : --- </div>
<div> </div>
<div>IMAGE TEMPLATE </div>
<div>DEV_PREFIX="hd"</div></div>
<div>#####################################</div>
<div>$cat /opt/nebula/ONE/var/remotes/datastore/lvm/lvm.conf </div>
<div>
<div># Default volume group</div>
<div>VG_NAME=vg-one</div>
<div> </div>
<div># Default LVM server host</div>
<div>HOST=localhost</div>
<div> </div>
<div># Default LV snapshot SIZE</div>
<div>DEFAULT_SIZE=512</div>
<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:jmelis@opennebula.org" target="_blank">Jaime
Melis</a></div>
<div><b>Date:</b> <a href="tel:2012-10-31%C2%A019" value="+12012103119" target="_blank">2012-10-31 19</a>:00</div>
<div><b>To:</b> <a href="mailto:zouxinzhe@gmail.com" target="_blank">邹欣哲</a></div>
<div><b>CC:</b> <a href="mailto:users@lists.opennebula.org" target="_blank">Users
OpenNebula</a></div>
<div><b>Subject:</b> Re: [one-users] Delete image fail on the LVM type
datastore</div></div></div><div><div>
<div>
<div>Hi,
<div><br></div>
<div>please send us the following information:</div>
<div><br></div>
<div>$ onedatastore show -x <lvm_datastore_id></div>
<div>$ oneimage show -x <image_id> (after creating the image and before
deleting it)</div>
<div>$ cat /var/lib/one/remotes/datastore/lvm/lvm.conf</div>
<div><br></div>
<div>cheers,<br>Jaime</div>
<div class="gmail_extra"><br><br>
<div class="gmail_quote">On Wed, Oct 31, 2012 at 9:06 AM, 邹欣哲 <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"><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Hi
everyone,I have found several problems when I use LVM datastore on
OpenNebula3.8. </span>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">First,when I delete the
image which is registed in the LVM datastore, OpenNebula doesn't remove the
lv.</span></div>
<div><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt">Following is error
record written in the oned.log:</span></div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ReM][D]: Req:3040 UID:0 ImageDelete
result SUCCESS, 7</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: LOG I 7 rm:
Removing localhost:/dev/-/- from the image repository</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][I]: rm: Removing
localhost:/dev/-/- from the image repository</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: LOG E 7 rm:
Command " sudo lvremove -f -/-" failed: lvremove: invalid option -- '/'</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][E]: rm: Command " sudo lvremove -f
-/-" failed: lvremove: invalid option -- '/'</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: LOG I 7
Error during parsing of command line.</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][I]: Error during parsing of
command line.</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: LOG E 7
Error removing localhost:/dev/-/-</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][E]: Error removing
localhost:/dev/-/-</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: LOG I 7
ExitCode: 3</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][I]: ExitCode: 3</div>
<div dir="ltr">Mon Oct 29 00:30:57 2012 [ImG][D]: Message received: RM FAILURE 7
Error removing localhost:/dev/-/-</div>
<div style="MARGIN-RIGHT:0px" dir="ltr">Mon Oct 29 00:30:57 2012 [ImM][E]:
Error removing image from datastore. Manually remove image source - to
completely delete the image: Error removing localhost:/dev/-/-</div>
<div dir="ltr"><strong><span style="FONT-FAMILY:Calibri;FONT-SIZE:10.5pt"><span style="FONT-FAMILY:宋体;FONT-SIZE:10.5pt;FONT-WEIGHT:normal">This problem
has happened 3 times when I delete 6 images.</span></span></strong></div>
<div><br></div>Oscar<br><br><br><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><br></div><br clear="all">
<div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open
Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br></div></div></div></div>
</div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jaime Melis<br>Project Engineer<br>OpenNebula - The Open Source Toolkit for Cloud Computing<br><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:jmelis@opennebula.org" target="_blank">jmelis@opennebula.org</a><br>
</div>