<div dir="ltr">One weird thing though: when I try to remove the VM itself, it won't let me uncheck the "Remove disks" checkbox.<div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Nov 22, 2015 at 9:00 PM, Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Sun, Nov 22, 2015 at 6:14 PM, Johan Kooijman <<a href="mailto:mail@johankooijman.com">mail@johankooijman.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I have about 100 old VM's in my cluster. They're powered down, ready for<br>
> deletion. What I want to do is delete the VM's including disks without<br>
> actually deleting the disk images from the storage array itself. Is that<br>
> possible?<br>
<br>
</span>Select the vm, click "remove", in the confirmation dialog, uncheck the<br>
"Delete disks"<br>
checkbox, confirm.<br>
<span class=""><br>
> At the end I want to be able to delete the storage domain (which<br>
> then should not hold any data, as far as ovirt is concerned).<br>
<br>
</span>Ovirt deleted the vms, but is keeping the disks, so the storage domain<br>
does hold all<br>
the disks.<br>
<span class=""><br>
><br>
> Reason for this: it's a ZFS pool with dedup enabled, deleting the images one<br>
> by one will kill the array with 100% iowa for some time.<br>
<br>
</span>So what do you need is to destroy the storage domain, which will<br>
remove all the entities<br>
associated with it, but will keepĀ the storage without any change.<br>
<br>
Do this:<br>
1. Select the storage tab<br>
2. select the domain<br>
3. In the data center sub tab, click "maintenance"<br>
4. When domain is in maintenance, click "detach"<br>
5. Right click the domain and choose "destroy"<br>
<br>
This will remove the storage domain from engine database, leaving<br>
the contents of the domain.<br>
<br>
You can now delete the contents using favorite system tools.<br>
<br>
Now, if we want to add support for this in ovirt, how would you delete<br>
the entire domain in a more efficient way?<br>
<span class="HOEnZb"><font color="#888888"><br>
Nir<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Met vriendelijke groeten / With kind regards,<br>Johan Kooijman<br></div></div>
</div>