<div dir="ltr">Pavel -<div><br></div><div>This works if engine is up. What about if it is down? Is there no way to easily correlate? Like maybe through vdsClient to check with VDSM on the engine directly?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 5, 2016 at 3:11 AM, Pavel Gashev <span dir="ltr">&lt;<a href="mailto:Pax@acronis.com" target="_blank">Pax@acronis.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<div>You can use ovirt-shell:</div>
<div>
<div></div>
</div>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<div>
<div><font face="Consolas" style="font-size:10px">[oVirt shell (connected)]# list disks --parent-vm-name VM1 --show-all</font></div>
<div><font face="Consolas" style="font-size:10px"><br>
</font></div>
<div><font face="Consolas" style="font-size:10px">id                                          : e7a1f91c-4196-4e04-8936-bbc37daff393</font></div>
<div><font face="Consolas" style="font-size:10px">name                                        : W2K12_Disk1</font></div>
<div><font face="Consolas" style="font-size:10px">active                                      : True</font></div>
<div><font face="Consolas" style="font-size:10px">actual_size                                 : 327680</font></div>
<div><font face="Consolas" style="font-size:10px">alias                                       : W2K12_Disk1</font></div>
<div><font face="Consolas" style="font-size:10px">bootable                                    : True</font></div>
<div><font face="Consolas" style="font-size:10px">format                                      : cow</font></div>
<div><font face="Consolas" style="font-size:10px">image_id                                    : 48b748b6-dc20-43f5-8c51-e0f984e2fd00</font></div>
<div><font face="Consolas" style="font-size:10px">interface                                   : virtio</font></div>
<div><font face="Consolas" style="font-size:10px">propagate_errors                            : False</font></div>
<div><font face="Consolas" style="font-size:10px">provisioned_size                            : 85899345920</font></div>
<div><font face="Consolas" style="font-size:10px">quota-id                                    : c224e50a-de46-461e-bd32-94a921151355</font></div>
<div><font face="Consolas" style="font-size:10px">read_only                                   : False</font></div>
<div><font face="Consolas" style="font-size:10px">shareable                                   : False</font></div>
<div><font face="Consolas" style="font-size:10px">size                                        : 85899345920</font></div>
<div><font face="Consolas" style="font-size:10px">sparse                                      : True</font></div>
<div><font face="Consolas" style="font-size:10px">status-state                                : ok</font></div>
<div><font face="Consolas" style="font-size:10px">storage_domains-storage_domain-id           : 75801b3b-d9ce-4b62-aa36-6b6519ecc04e</font></div>
<div><font face="Consolas" style="font-size:10px">storage_type                                : image</font></div>
<div><font face="Consolas" style="font-size:10px">vm-id                                       : 8f163624-823f-4ac2-8964-7aa473c41de2</font></div>
<div><font face="Consolas" style="font-size:10px">wipe_after_delete                           : False</font></div>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
Where id is the directory name, and image_id is the file name.</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<span style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<div style="font-family:Calibri;font-size:12pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>&lt;<a href="mailto:users-bounces@ovirt.org" target="_blank">users-bounces@ovirt.org</a>&gt; on behalf of Charles Kozler &lt;<a href="mailto:charles@fixflyer.com" target="_blank">charles@fixflyer.com</a>&gt;<br>
<span style="font-weight:bold">Date: </span>Thursday 4 February 2016 at 23:37<br>
<span style="font-weight:bold">To: </span>users &lt;<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&gt;<br>
<span style="font-weight:bold">Subject: </span>[ovirt-users] matching / mapping ovirt storage domain images to VMs<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>
<div dir="ltr">is there an easy / intutive way to find out the underlying image associated to a VM? for instance, looking at a storage domain from the server, it is not easy to figure out what VM it actually belongs to
<div><br>
</div>
<div>
<div>[storage[root@snode01 images]$ find -type f | grep -iv meta | grep -iv lease  | xargs du -sch</div>
<div>20K<span style="white-space:pre-wrap"> </span>./bd765364-064d-487c-a6f8-a290249edca1/4f6dcb0e-e4c9-4ab6-af6d-d49f89228fa1</div>
<div>20K<span style="white-space:pre-wrap"> </span>./e69a0128-fddc-4ee7-b91c-04caf8bdd540/2ce9d1aa-70e3-4063-895d-c9848ec122e5</div>
<div>10G<span style="white-space:pre-wrap"> </span>./2d1eab4a-df47-4e8e-8a0c-c58ca9c0d6cf/1ab0bebd-57b4-45f3-8e77-7c1973282766</div>
<div>10G<span style="white-space:pre-wrap"> </span>./9ed4a196-bc18-4d6a-b7b6-f38bee01e102/32953e4c-8a3c-4252-96d9-9ecbb7c2a603</div>
<div>0<span style="white-space:pre-wrap"> </span>./1c3129dc-56fa-4e41-bd5b-3313f9f1aa86/d4221e11-bf3b-4226-a8a8-b53ff0189592</div>
<div>21G<span style="white-space:pre-wrap"> </span>total</div>
<div><br>
</div>
<div>How can I find out what VMs these belong to?</div>
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium">
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><strong><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">Charles Kozler</font></span></strong></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><em><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">Vice President, IT Operations</font></span></em></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium"> </div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">FIX Flyer, LLC</font></span></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">225 Broadway | Suite 1600 | New York, NY 10007</font></span></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2"><a href="tel:1-888-349-3593" value="+18883493593" target="_blank">1-888-349-3593</a></font></span></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><a href="http://fixflyer.com" target="_blank"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">http://www.fixflyer.com</font></span></a></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><font size="2"> </font></div>
<div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><font size="1">NOTICE TO RECIPIENT: THIS E-MAIL IS MEANT ONLY FOR THE INTENDED RECIPIENT(S) OF THE TRANSMISSION, AND CONTAINS CONFIDENTIAL INFORMATION WHICH IS PROPRIETARY TO FIX FLYER LLC.  ANY UNAUTHORIZED
 USE, COPYING, DISTRIBUTION, OR DISSEMINATION IS STRICTLY PROHIBITED.  ALL RIGHTS TO THIS INFORMATION IS RESERVED BY FIX FLYER LLC.  IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND PLEASE DELETE THIS E-MAIL FROM YOUR SYSTEM
 AND DESTROY ANY COPIES.</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></span>
</div>

</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium"><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><strong><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">Charles Kozler</font></span></strong></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><em><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">Vice President, IT Operations</font></span></em></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;;font-size:medium"> </div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">FIX Flyer, LLC</font></span></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">225 Broadway | Suite 1600 | New York, NY 10007</font></span></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">1-888-349-3593</font></span></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><a href="http://fixflyer.com" target="_blank"><span style="font-family:&#39;times new roman&#39;,times,serif"><font size="2">http://www.fixflyer.com</font></span></a></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><font size="2"> </font></div><div style="color:rgb(0,0,0);font-family:&#39;Times New Roman&#39;"><font size="1">NOTICE TO RECIPIENT: THIS E-MAIL IS MEANT ONLY FOR THE INTENDED RECIPIENT(S) OF THE TRANSMISSION, AND CONTAINS CONFIDENTIAL INFORMATION WHICH IS PROPRIETARY TO FIX FLYER LLC.  ANY UNAUTHORIZED USE, COPYING, DISTRIBUTION, OR DISSEMINATION IS STRICTLY PROHIBITED.  ALL RIGHTS TO THIS INFORMATION IS RESERVED BY FIX FLYER LLC.  IF YOU ARE NOT THE INTENDED RECIPIENT, PLEASE CONTACT THE SENDER BY REPLY E-MAIL AND PLEASE DELETE THIS E-MAIL FROM YOUR SYSTEM AND DESTROY ANY COPIES.</font></div></div></div></div></div></div></div></div>
</div>