<div dir="ltr">Hi all,<div><br></div><div>Responding to an old thread - but I'm having an issue with this. I can't remove the disk from a VM, without deleting a snapshot. Since deleting contents on my storage domain will crash it (long story..), I need to find a way to remove it from ovirt inventory without deleting the image files on disk.</div><div><br></div><div>- Can't delete the VM and uncheck "Remove disks", due to snapshots present;</div><div>- Can't delete the disk without permanently deleting it, due to snapshots present;</div><div><br></div><div>Are there any other options? What will happen if I put the storage domain in maintenance and destroy the entire storage domain? Is that even possible when VM's have disks associated to it that live on this storage domain?</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Nov 25, 2015 at 8:54 AM, Liron Aravot <span dir="ltr"><<a href="mailto:laravot@redhat.com" target="_blank">laravot@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=""><br>
<br>
----- Original Message -----<br>
> From: "Johan Kooijman" <<a href="mailto:mail@johankooijman.com">mail@johankooijman.com</a>><br>
</span><span class="">> To: "Liron Aravot" <<a href="mailto:laravot@redhat.com">laravot@redhat.com</a>><br>
> Cc: "Nir Soffer" <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>>, "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> Sent: Tuesday, November 24, 2015 6:52:51 PM<br>
> Subject: Re: [ovirt-users] Delete disk references without deleting the disk<br>
><br>
</span><span class="">> When I deactivate the disk on a VM, I can click remove. It then offers me<br>
> the dialog te remove it with a checkbox "Remove permanently". I don't check<br>
> that, the disk will be deleted from inventory, but won't be deleted from<br>
> storage domain?<br>
> Can't try for myself, it'll kill my storage domain.<br>
<br>
</span>Yes, when you do that the disk will remain "floating" (you'll be able to see it under the<br>
Disks tab) and you'll be able to attach it to another vm later on.<br>
<div class="HOEnZb"><div class="h5">><br>
> On Mon, Nov 23, 2015 at 12:46 PM, Johan Kooijman <<a href="mailto:mail@johankooijman.com">mail@johankooijman.com</a>><br>
> wrote:<br>
><br>
> > Ok. Any way to do it without? Because with snapshot deletion I end up with<br>
> > the same issue - I can't remove images form my storage.<br>
> ><br>
> > On Mon, Nov 23, 2015 at 12:18 PM, Liron Aravot <<a href="mailto:laravot@redhat.com">laravot@redhat.com</a>> wrote:<br>
> ><br>
> >><br>
> >><br>
> >> ----- Original Message -----<br>
> >> > From: "Johan Kooijman" <<a href="mailto:mail@johankooijman.com">mail@johankooijman.com</a>><br>
> >> > To: "Nir Soffer" <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>><br>
> >> > Cc: "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> >> > Sent: Monday, November 23, 2015 10:10:27 AM<br>
> >> > Subject: Re: [ovirt-users] Delete disk references without deleting the<br>
> >> disk<br>
> >> ><br>
> >> > One weird thing though: when I try to remove the VM itself, it won't<br>
> >> let me<br>
> >> > uncheck the "Remove disks" checkbox.<br>
> >> ><br>
> >><br>
> >> That is because that there are snapshots for the disks, you can remove<br>
> >> the snapshots and then you could<br>
> >> leave your disks. Currently oVirt doesn't support snapshots for floating<br>
> >> disks.<br>
> >> ><br>
> >> > On Sun, Nov 22, 2015 at 9:00 PM, Nir Soffer < <a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a> ><br>
> >> wrote:<br>
> >> ><br>
> >> ><br>
> >> > On Sun, Nov 22, 2015 at 6:14 PM, Johan Kooijman <<br>
> >> <a href="mailto:mail@johankooijman.com">mail@johankooijman.com</a> ><br>
> >> > wrote:<br>
> >> > > Hi all,<br>
> >> > ><br>
> >> > > I have about 100 old VM's in my cluster. They're powered down, ready<br>
> >> 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<br>
> >> that<br>
> >> > > possible?<br>
> >> ><br>
> >> > Select the vm, click "remove", in the confirmation dialog, uncheck the<br>
> >> > "Delete disks"<br>
> >> > checkbox, confirm.<br>
> >> ><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>
> >> > Ovirt deleted the vms, but is keeping the disks, so the storage domain<br>
> >> > does hold all<br>
> >> > the disks.<br>
> >> ><br>
> >> > ><br>
> >> > > Reason for this: it's a ZFS pool with dedup enabled, deleting the<br>
> >> images<br>
> >> > > one<br>
> >> > > by one will kill the array with 100% iowa for some time.<br>
> >> ><br>
> >> > 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>
> >> ><br>
> >> > Nir<br>
> >> ><br>
> >> ><br>
> >> ><br>
> >> > --<br>
> >> > Met vriendelijke groeten / With kind regards,<br>
> >> > Johan Kooijman<br>
> >> ><br>
> >> > _______________________________________________<br>
> >> > Users mailing list<br>
> >> > <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> >> > <a href="http://lists.ovirt.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
> >> ><br>
> >><br>
> ><br>
> ><br>
> ><br>
> > --<br>
> > Met vriendelijke groeten / With kind regards,<br>
> > Johan Kooijman<br>
> ><br>
><br>
><br>
><br>
> --<br>
> Met vriendelijke groeten / With kind regards,<br>
> Johan Kooijman<br>
><br>
</div></div></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>