[ovirt-users] Can't remove snapshot

Greg Padgett gpadgett at redhat.com
Tue Feb 16 23:07:00 UTC 2016


On 02/16/2016 05:51 PM, Marcelo Leandro wrote:
> Hello Greg,
> I not see disk image at the storage:
>
> [root at srv-qemu01 ~]# cd
> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/b7a27d0c-57cc-490e-a3f8-b4981310a9b0/
> [root at srv-qemu01 b7a27d0c-57cc-490e-a3f8-b4981310a9b0]# ls
> 2e59f7f2-9e30-460e-836a-5e0d3d625059
>
> But in DB i see :
>
> SELECT imagestatus,storage_pool_id, storage_domain_id, image_group_id,
> image_guid, parentid FROM
> storage_domains,image_storage_domain_map,images,vm_static,vm_device
> WHERE image_storage_domain_map.image_id = images.image_guid AND
> storage_domains.id = image_storage_domain_map.storage_domain_id AND
> vm_static.vm_guid = vm_device.vm_id AND images.image_group_id =
> vm_device.device_id AND vm_device.device = 'disk' AND
> vm_static.vm_name = 'Servidor-Cliente';
>   imagestatus |           storage_pool_id            |
> storage_domain_id           |            image_group_id            |
>             image_guid              |               parentid
>
> -------------+--------------------------------------+--------------------------------------+--------------------------------------+--------------------------------------+-----------------------
> ---------------
>             1 | 77e24b20-9d21-4952-a089-3c5c592b4e6d |
> c2dc0101-748e-4a7b-9913-47993eaa52bd |
> b7a27d0c-57cc-490e-a3f8-b4981310a9b0 |
>  | 2e59f7f2-9e30-460e-836
> a-5e0d3d625059
>             4 | 77e24b20-9d21-4952-a089-3c5c592b4e6d |
> c2dc0101-748e-4a7b-9913-47993eaa52bd |
> b7a27d0c-57cc-490e-a3f8-b4981310a9b0 |
> 2e59f7f2-9e30-460e-836a-5e0d3d625059 | 00000000-0000-0000-000
> 0-000000000000
>
> in this case I have that update the imagem with you describe?
>
> """Arguments in your case would be the VM name, snapshot name, and the
> UUID of the image that is missing from your storage.  (You may need to
> manually mark the image as illegal first, [2]). ""
>
> Thanks.

I believe it would still be prudent to verify that image 
7f8bb099-9a18-4e89-bf48-57e56e5770d2 is supposed to be missing, by running 
the disk info tool from:
   https://bugzilla.redhat.com/show_bug.cgi?id=1306741.

Once we verify that it's ok to remove the image, then I'd proceed to clean 
up the db records via the image cleanup sql script.

Thanks,
Greg




More information about the Users mailing list