<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=UTF-8" http-equiv=Content-Type>
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
DIV.FoxDiv20121101164606134720 {
COLOR: #000000
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
LINE-HEIGHT: 1.5; FONT-FAMILY: 微软雅黑; COLOR: #000080; FONT-SIZE: 10.5pt
}
</STYLE>
<META name=GENERATOR content="MSHTML 9.00.8112.16450"></HEAD>
<BODY 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; 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-BOTTOM: 8px; PADDING-LEFT: 8px; PADDING-RIGHT: 8px; BACKGROUND: #efefef; COLOR: #000000; FONT-SIZE: 12px; PADDING-TOP: 8px">
<DIV><B>From:</B> <A href="mailto:jmelis@opennebula.org">Jaime
Melis</A></DIV>
<DIV><B>Date:</B> 2012-10-31 19:00</DIV>
<DIV><B>To:</B> <A href="mailto:zouxinzhe@gmail.com">邹欣哲</A></DIV>
<DIV><B>CC:</B> <A href="mailto:users@lists.opennebula.org">Users
OpenNebula</A></DIV>
<DIV><B>Subject:</B> Re: [one-users] Delete image fail on the LVM type
datastore</DIV></DIV></DIV>
<DIV>
<DIV class=FoxDiv20121101164606134720>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></BODY></HTML>