[ovirt-users] Delete disk references without deleting the disk

Liron Aravot laravot at redhat.com
Wed Nov 25 07:54:16 UTC 2015



----- Original Message -----
> From: "Johan Kooijman" <mail at johankooijman.com>
> To: "Liron Aravot" <laravot at redhat.com>
> Cc: "Nir Soffer" <nsoffer at redhat.com>, "users" <users at ovirt.org>
> Sent: Tuesday, November 24, 2015 6:52:51 PM
> Subject: Re: [ovirt-users] Delete disk references without deleting the disk
> 
> When I deactivate the disk on a VM, I can click remove. It then offers me
> the dialog te remove it with a checkbox "Remove permanently". I don't check
> that, the disk will be deleted from inventory, but won't be deleted from
> storage domain?
> Can't try for myself, it'll kill my storage domain.

Yes, when you do that the disk will remain "floating" (you'll be able to see it under the
Disks tab) and you'll be able to attach it to another vm later on.
> 
> On Mon, Nov 23, 2015 at 12:46 PM, Johan Kooijman <mail at johankooijman.com>
> wrote:
> 
> > Ok. Any way to do it without? Because with snapshot deletion I end up with
> > the same issue - I can't remove images form my storage.
> >
> > On Mon, Nov 23, 2015 at 12:18 PM, Liron Aravot <laravot at redhat.com> wrote:
> >
> >>
> >>
> >> ----- Original Message -----
> >> > From: "Johan Kooijman" <mail at johankooijman.com>
> >> > To: "Nir Soffer" <nsoffer at redhat.com>
> >> > Cc: "users" <users at ovirt.org>
> >> > Sent: Monday, November 23, 2015 10:10:27 AM
> >> > Subject: Re: [ovirt-users] Delete disk references without deleting the
> >> disk
> >> >
> >> > One weird thing though: when I try to remove the VM itself, it won't
> >> let me
> >> > uncheck the "Remove disks" checkbox.
> >> >
> >>
> >> That is because that there are snapshots for the disks, you can remove
> >> the snapshots and then you could
> >> leave your disks. Currently oVirt doesn't support snapshots for floating
> >> disks.
> >> >
> >> > On Sun, Nov 22, 2015 at 9:00 PM, Nir Soffer < nsoffer at redhat.com >
> >> wrote:
> >> >
> >> >
> >> > On Sun, Nov 22, 2015 at 6:14 PM, Johan Kooijman <
> >> mail at johankooijman.com >
> >> > wrote:
> >> > > Hi all,
> >> > >
> >> > > I have about 100 old VM's in my cluster. They're powered down, ready
> >> for
> >> > > deletion. What I want to do is delete the VM's including disks without
> >> > > actually deleting the disk images from the storage array itself. Is
> >> that
> >> > > possible?
> >> >
> >> > Select the vm, click "remove", in the confirmation dialog, uncheck the
> >> > "Delete disks"
> >> > checkbox, confirm.
> >> >
> >> > > At the end I want to be able to delete the storage domain (which
> >> > > then should not hold any data, as far as ovirt is concerned).
> >> >
> >> > Ovirt deleted the vms, but is keeping the disks, so the storage domain
> >> > does hold all
> >> > the disks.
> >> >
> >> > >
> >> > > Reason for this: it's a ZFS pool with dedup enabled, deleting the
> >> images
> >> > > one
> >> > > by one will kill the array with 100% iowa for some time.
> >> >
> >> > So what do you need is to destroy the storage domain, which will
> >> > remove all the entities
> >> > associated with it, but will keep the storage without any change.
> >> >
> >> > Do this:
> >> > 1. Select the storage tab
> >> > 2. select the domain
> >> > 3. In the data center sub tab, click "maintenance"
> >> > 4. When domain is in maintenance, click "detach"
> >> > 5. Right click the domain and choose "destroy"
> >> >
> >> > This will remove the storage domain from engine database, leaving
> >> > the contents of the domain.
> >> >
> >> > You can now delete the contents using favorite system tools.
> >> >
> >> > Now, if we want to add support for this in ovirt, how would you delete
> >> > the entire domain in a more efficient way?
> >> >
> >> > Nir
> >> >
> >> >
> >> >
> >> > --
> >> > Met vriendelijke groeten / With kind regards,
> >> > Johan Kooijman
> >> >
> >> > _______________________________________________
> >> > Users mailing list
> >> > Users at ovirt.org
> >> > http://lists.ovirt.org/mailman/listinfo/users
> >> >
> >>
> >
> >
> >
> > --
> > Met vriendelijke groeten / With kind regards,
> > Johan Kooijman
> >
> 
> 
> 
> --
> Met vriendelijke groeten / With kind regards,
> Johan Kooijman
> 



More information about the Users mailing list