<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hi Lionel,<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">The error message you&#39;ve mentioned sounds like a UI error.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Can you please attach your ui log?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Also, on the data from &#39;images&#39; table you&#39;ve uploaded, can you describe which line is the relevant disk?<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Finally (for now), in case the snapshot was deleted, can you please validate it by viewing the output of:<br>$ select * from snapshots;<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small"><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif"><b>Regards,<br></b></span></div><span style="font-family:tahoma,sans-serif"><b>Shani Leviim<br></b></span></div></div></div></div></div>
<br><div class="gmail_quote">On Mon, Feb 26, 2018 at 9:20 AM, Lionel Caignec <span dir="ltr">&lt;<a href="mailto:caignec@cines.fr" target="_blank">caignec@cines.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Shani,<br>
thank you for helping me with your reply,<br>
i juste make a little mistake on explanation. In fact it&#39;s the snapshot does not exist anymore. This is the disk(s) relative to her wich still exist, and perhaps LVM volume.<br>
So can i delete manually this disk in database? what about the lvm volume? Is it better to recreate disk sync data and destroy old one?<br>
<br>
<br>
<br>
----- Mail original -----<br>
De: &quot;Shani Leviim&quot; &lt;<a href="mailto:sleviim@redhat.com">sleviim@redhat.com</a>&gt;<br>
À: &quot;Lionel Caignec&quot; &lt;<a href="mailto:caignec@cines.fr">caignec@cines.fr</a>&gt;<br>
Cc: &quot;users&quot; &lt;<a href="mailto:users@ovirt.org">users@ovirt.org</a>&gt;<br>
Envoyé: Dimanche 25 Février 2018 14:26:41<br>
Objet: Re: [ovirt-users] Ghost Snapshot Disk<br>
<span class=""><br>
Hi Lionel,<br>
<br>
You can try to delete that snapshot directly from the database.<br>
<br>
In case of using psql  [1], once you&#39;ve logged in to your database, you can<br>
run this query:<br>
$ select * from snapshots where vm_id = &#39;&lt;your_vm_id&gt;&#39;;<br>
This one would list the snapshots associated with a VM by its id.<br>
<br>
In case you don&#39;t have you vm_id, you can locate it by querying:<br>
$ select * from vms where vm_name = &#39;nil&#39;;<br>
This one would show you some details about a VM by its name (including the<br>
vm&#39;s id).<br>
<br>
Once you&#39;ve found the relevant snapshot, you can delete it by running:<br>
$ delete from snapshots where snapshot_id = &#39;&lt;your_snapshot_id&gt;&#39;;<br>
This one would delete the desired snapshot from the database.<br>
<br>
Since it&#39;s a delete operation, I would suggest confirming the ids before<br>
executing it.<br>
<br>
Hope you&#39;ve found it useful!<br>
<br>
[1]<br>
<a href="https://www.ovirt.org/documentation/install-guide/appe-Preparing_a_Remote_PostgreSQL_Database_for_Use_with_the_oVirt_Engine/" rel="noreferrer" target="_blank">https://www.ovirt.org/<wbr>documentation/install-guide/<wbr>appe-Preparing_a_Remote_<wbr>PostgreSQL_Database_for_Use_<wbr>with_the_oVirt_Engine/</a><br>
<br>
<br>
</span>*Regards,*<br>
<br>
*Shani Leviim*<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Feb 23, 2018 at 9:25 AM, Lionel Caignec &lt;<a href="mailto:caignec@cines.fr">caignec@cines.fr</a>&gt; wrote:<br>
<br>
&gt; Hi,<br>
&gt;<br>
&gt; i&#39;ve a problem with snapshot. On one VM i&#39;ve a &quot;snapshot&quot; ghost without<br>
&gt; name or uuid, only information is size (see attachment). In the snapshot<br>
&gt; tab there is no trace about this disk.<br>
&gt;<br>
&gt; In database (table images) i found this :<br>
&gt;   f242cc9a-56c1-4ae4-aef0-<wbr>f75eb01f74b1 | 2018-01-17 22:02:00+01 |<br>
&gt; 2748779069440 | 00000000-0000-0000-0000-<wbr>000000000000 |<br>
&gt; 00000000-0000-0000-0000-<wbr>000000000000 |           4 | 2018-01-18<br>
&gt; 22:01:20.5+01   | 0dd2090c-3491-4fa1-98c3-<wbr>54ae88be793c<br>
&gt;  |           2 |             4 | 17e26476-cecb-441d-a5f7-<wbr>46ab3ef387ee |<br>
&gt; 2018-01-17 22:01:29.663334+01 | 2018-01-19 08:40:14.345229+01 | f      |<br>
&gt;                  1 |           2<br>
&gt;  1c7650fa-542b-4ec2-83a1-<wbr>d2c1c31be5fd | 2018-01-17 22:02:03+01 |<br>
&gt; 5368709120000 | 00000000-0000-0000-0000-<wbr>000000000000 |<br>
&gt; 00000000-0000-0000-0000-<wbr>000000000000 |           4 | 2018-01-18<br>
&gt; 22:01:20.84+01  | 0dd2090c-3491-4fa1-98c3-<wbr>54ae88be793c<br>
&gt;  |           2 |             4 | bf834a91-c69f-4d2c-b639-<wbr>116ed58296d8 |<br>
&gt; 2018-01-17 22:01:29.836133+01 | 2018-01-19 08:40:19.083508+01 | f      |<br>
&gt;                  1 |           2<br>
&gt;  8614b21f-c0de-40f2-b4fb-<wbr>e5cf193b0743 | 2018-02-09 23:00:44+01 |<br>
&gt; 5368709120000 | 00000000-0000-0000-0000-<wbr>000000000000 |<br>
&gt; 00000000-0000-0000-0000-<wbr>000000000000 |           4 | 2018-02-16<br>
&gt; 23:00:02.855+01 | 390175dc-baf4-4831-936a-<wbr>5ea68fa4c969<br>
&gt;<br>
&gt;<br>
&gt;  But i does not know which line is my disk. Is it possible to delete<br>
&gt; directly into database?<br>
&gt;  Or is it better to dump my disk to another new and delete the &quot;corrupted<br>
&gt; one&quot;?<br>
&gt;<br>
&gt;  Another thing, when i try to move the disk to another storage domain i<br>
&gt; always get &quot;uncaght exeption occured ...&quot; and no error in engine.log.<br>
&gt;<br>
&gt;<br>
&gt;  Thank you for helping.<br>
&gt;<br>
&gt; --<br>
&gt; Lionel Caignec<br>
&gt;<br>
&gt; ______________________________<wbr>_________________<br>
&gt; Users mailing list<br>
&gt; <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
&gt; <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/<wbr>mailman/listinfo/users</a><br>
&gt;<br>
&gt;<br>
</div></div></blockquote></div><br></div>