<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="color: rgb(0, 0, 0); font-family: Calibri, sans-serif; font-size: 14px;">
<div>You can use ovirt-shell:</div>
<div>
<div id="MAC_OUTLOOK_SIGNATURE"></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 id="OLK_SRC_BODY_SECTION" 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><<a href="mailto:users-bounces@ovirt.org">users-bounces@ovirt.org</a>> on behalf of Charles Kozler <<a href="mailto:charles@fixflyer.com">charles@fixflyer.com</a>><br>
<span style="font-weight:bold">Date: </span>Thursday 4 February 2016 at 23:37<br>
<span style="font-weight:bold">To: </span>users <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
<span style="font-weight:bold">Subject: </span>[ovirt-users] matching / mapping ovirt storage domain images to VMs<br>
</div>
<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 class="" style="white-space:pre"> </span>./bd765364-064d-487c-a6f8-a290249edca1/4f6dcb0e-e4c9-4ab6-af6d-d49f89228fa1</div>
<div>20K<span class="" style="white-space:pre"> </span>./e69a0128-fddc-4ee7-b91c-04caf8bdd540/2ce9d1aa-70e3-4063-895d-c9848ec122e5</div>
<div>10G<span class="" style="white-space:pre"> </span>./2d1eab4a-df47-4e8e-8a0c-c58ca9c0d6cf/1ab0bebd-57b4-45f3-8e77-7c1973282766</div>
<div>10G<span class="" style="white-space:pre"> </span>./9ed4a196-bc18-4d6a-b7b6-f38bee01e102/32953e4c-8a3c-4252-96d9-9ecbb7c2a603</div>
<div>0<span class="" style="white-space:pre"> </span>./1c3129dc-56fa-4e41-bd5b-3313f9f1aa86/d4221e11-bf3b-4226-a8a8-b53ff0189592</div>
<div>21G<span class="" style="white-space:pre"> </span>total</div>
<div><br>
</div>
<div>How can I find out what VMs these belong to?</div>
<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:'Times New Roman';font-size:medium">
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><strong><span style="font-family:'times new roman',times,serif"><font size="2">Charles Kozler</font></span></strong></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><em><span style="font-family:'times new roman',times,serif"><font size="2">Vice President, IT Operations</font></span></em></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman';font-size:medium"> </div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><span style="font-family:'times new roman',times,serif"><font size="2">FIX Flyer, LLC</font></span></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><span style="font-family:'times new roman',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:'Times New Roman'"><span style="font-family:'times new roman',times,serif"><font size="2">1-888-349-3593</font></span></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><a href="http://fixflyer.com" target="_blank"><span style="font-family:'times new roman',times,serif"><font size="2">http://www.fixflyer.com</font></span></a></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><font size="2"> </font></div>
<div style="color:rgb(0,0,0);font-family:'Times New Roman'"><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>
</span>
</body>
</html>