<div dir="ltr">The bug created, <div><a href="https://bugzilla.redhat.com/show_bug.cgi?id=1321018">https://bugzilla.redhat.com/show_bug.cgi?id=1321018</a><br></div><div><br></div><div>Sorry for the delay, I had trouble opening the bug in Bugzilla.</div><div><br></div><div>Thanks.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-03-14 13:40 GMT-03:00 Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Mar 14, 2016 at 6:11 PM, Marcelo Leandro <<a href="mailto:marceloltmm@gmail.com">marceloltmm@gmail.com</a>> wrote:<br>
> All the disks in the<br>
> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
> are deleted snapshots that were not removed. The disk no contain snapshot.<br>
> In<br>
> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
> it must have just one disk after the merge.<br>
><br>
> Right?<br>
<br>
</span>Yes, this seems to be a bug when doing a merge on a host which is not<br>
the spm.<br>
<br>
According to the log you attached (vdsm.log.5):<br>
- we do not deactivate the lv after the merge<br>
- therefore the link /dev/vgname/lvname is not deleted<br>
- we don't delete the link at /rhev/data-center<br>
- we don't delete the links at /run/vdsm/storage<br>
<br>
The links under /run/vdsm/storage and /rhev/data-center should will<br>
be deleted when hotunpluging this disk, or when stopping the vm.<br>
<br>
Please file a ovirt/vdsm bug for this and include the information<br>
from this thread.<br>
<span class="HOEnZb"><font color="#888888"><br>
Nir<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> Em 14/03/2016 12:41, "Marcelo Leandro" <<a href="mailto:marceloltmm@gmail.com">marceloltmm@gmail.com</a>> escreveu:<br>
>><br>
>> Are you talking about /dev/vgname/lvname link or the links under<br>
>> /run/vdsm/storage/domain/image/volume,<br>
>> or /rhev/data-center/pull/domain/image/volume?<br>
>><br>
>> in /rhev/data-center/pull/domain/image/volume<br>
>><br>
>><br>
>> /dev/vgname/lvname is created by udev rules when lv is activated or<br>
>> deactivated.<br>
>> To understand if this is the issue, can you show the output of:<br>
>><br>
>> pvscan --cache<br>
>> return:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# pvscan --cache<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]#<br>
>><br>
>><br>
>> lvs vgname<br>
>> return:<br>
>> 06d35bed-445f-453b-a1b5-cf1a26e21d57<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 19.00g<br>
>> 0bad7a90-e6d5-4f80-9e77-276092989ec3<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 1.00g<br>
>> 12e1c2eb-2e4e-4714-8358-0a8f1bf44b2f<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 502.00g<br>
>> 191eb95f-2604-406b-ad90-1387cd4df7aa<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 10.00g<br>
>> 235da77a-8713-4bdf-bb3b-4c6478b0ffe2<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 1.68t<br>
>> 289b1789-e65a-4725-95fe-7b1a59208b45<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 15.00g<br>
>> 2d1cd019-f547-47c9-b360-0247f5283563<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 14.00g<br>
>> 2e59f7f2-9e30-460e-836a-5e0d3d625059<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 27.50g<br>
>> 2ff7d36e-2ff9-466a-ad26-c1c67ba34dc6<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 21.00g<br>
>> 3d01ae03-ee4e-4fc2-aedd-6fc757f84f22<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 202.00g<br>
>> 4626025f-53ab-487a-9f95-35ae65393f03<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 6.00g<br>
>> 5dbb5762-6828-4c95-9cd1-d05896758af7<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 100.00g<br>
>> 5e1461fc-c609-479d-9627-e88936fb15ed<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 11.00g<br>
>> 64800fa4-85c2-4567-9605-6dc8ed5fec52<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 39.00g<br>
>> 661293e4-26ef-4c2c-903b-442a2b7fb5c6<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 13.00g<br>
>> 79e4e84b-370a-4d6d-9683-197dabb591c2<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 5.12g<br>
>> 7a3a6929-973e-4eec-bef0-1b99101e850d<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 20.00g<br>
>> 7a79ae4f-4a47-4ce2-8570-95efc7774f7b<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 80.00g<br>
>> 828d4c13-62c5-4d23-b0cc-e4ec88928c1f<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 128.00m<br>
>> 871874e8-0d89-4f13-962a-3d8175194130<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 54.00g<br>
>> a0a9aac2-d387-4148-a8a0-a906cfc1b513<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 240.00g<br>
>> aa397814-43d4-42f7-9151-fd6d9f6d0b7f<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 22.00g<br>
>> b3433da9-e6b5-4ab4-9aed-47a698079a62<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 55.00g<br>
>> b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 124.00g<br>
>> b5174aaa-b4ed-48e2-ab60-4bd51edde175<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 4.00g<br>
>> b8027a73-2d37-4df6-a2ac-4782859b749f<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 128.00m<br>
>> b86ed4a4-c922-4567-98b4-bace49d258f6<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 13.00g<br>
>> ba8a3a28-1dd5-4072-bcd1-f8155fade47a<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi------- 21.00g<br>
>> bb1bb92b-a8a7-486a-b171-18317e5d8095<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 534.00g<br>
>> c7b5ca51-7ec5-467c-95c6-64bda2cb1fa7<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 13.00g<br>
>> e88dfa8a-a9dc-4843-8c46-cc57ad700a04<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 4.00g<br>
>> f2ca34b7-c2b5-4072-b539-d1ee91282652<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 137.00g<br>
>> ids<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-ao---- 128.00m<br>
>> inbox<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-a----- 128.00m<br>
>> leases<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-a----- 2.00g<br>
>> master<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-a----- 1.00g<br>
>> metadata<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-a----- 512.00m<br>
>> outbox<br>
>> c2dc0101-748e-4a7b-9913-47993eaa52bd -wi-a----- 128.00m<br>
>><br>
>><br>
>><br>
>> ls -l /dev/vgname<br>
>> return:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# ls -l<br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/<br>
>> total 0<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:18<br>
>> 0569a2e0-275b-4702-8500-dff732fea13c -> ../dm-68<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 23:00<br>
>> 06d35bed-445f-453b-a1b5-cf1a26e21d57 -> ../dm-39<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 23:00<br>
>> 0ab62c79-0dc1-43ef-9043-1f209e988bd9 -> ../dm-66<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 15:22<br>
>> 0bad7a90-e6d5-4f80-9e77-276092989ec3 -> ../dm-86<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 15:16<br>
>> 1196d06c-d3ea-40ee-841a-a3de379b09f9 -> ../dm-85<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> 12e1c2eb-2e4e-4714-8358-0a8f1bf44b2f -> ../dm-32<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> 18b1b7e1-0f76-4e1b-aea1-c4b737dad26d -> ../dm-64<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:20<br>
>> 191eb95f-2604-406b-ad90-1387cd4df7aa -> ../dm-40<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> 3cf87634-ac94-42a9-ac8e-fde0acf867d8 -> ../dm-63<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:17<br>
>> 4626025f-53ab-487a-9f95-35ae65393f03 -> ../dm-33<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 14:28<br>
>> 48e81eda-fa1e-4788-95a5-7d99974d4b3f -> ../dm-78<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:20<br>
>> 5dbb5762-6828-4c95-9cd1-d05896758af7 -> ../dm-41<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:18<br>
>> 5e1461fc-c609-479d-9627-e88936fb15ed -> ../dm-36<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:40<br>
>> 5f484058-1fa7-496e-8525-4ad52e5c0c9c -> ../dm-73<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 14:33<br>
>> 61e3c3de-55d1-42e8-8098-eccef7319cac -> ../dm-81<br>
>> lrwxrwxrwx. 1 root root 8 Mar 9 01:17<br>
>> 64800fa4-85c2-4567-9605-6dc8ed5fec52 -> ../dm-46<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:26<br>
>> 77204a10-1ce3-442a-9571-3a6a19649224 -> ../dm-69<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 12:26<br>
>> 79e4e84b-370a-4d6d-9683-197dabb591c2 -> ../dm-58<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:53<br>
>> 7a3a6929-973e-4eec-bef0-1b99101e850d -> ../dm-37<br>
>> lrwxrwxrwx. 1 root root 8 Feb 16 01:21<br>
>> 7f8bb099-9a18-4e89-bf48-57e56e5770d2 -> ../dm-25<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> 8ab6040f-3605-44fe-aee6-a74e03c44ecb -> ../dm-27<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:55<br>
>> 8b14431f-52b5-42ba-977a-ec8401f7ddea -> ../dm-75<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 14:42<br>
>> 9367bcda-d1aa-40f7-b7ec-d7d2028bc4e6 -> ../dm-84<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:33<br>
>> 9faf4687-48e7-48fa-9aad-50ed89ee1f8a -> ../dm-72<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:48<br>
>> a9f65abe-4514-4873-aca7-3e2a04bd4448 -> ../dm-74<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:21<br>
>> aa397814-43d4-42f7-9151-fd6d9f6d0b7f -> ../dm-43<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 13:48<br>
>> b2aa77bb-bc83-4c29-9a67-09d6df2c6fdf -> ../dm-26<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 15:23<br>
>> b3433da9-e6b5-4ab4-9aed-47a698079a62 -> ../dm-44<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:20<br>
>> b86ed4a4-c922-4567-98b4-bace49d258f6 -> ../dm-42<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> bb1bb92b-a8a7-486a-b171-18317e5d8095 -> ../dm-30<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 23:04<br>
>> bba70ecf-0d97-4a1a-bff5-d1fba4706602 -> ../dm-67<br>
>> lrwxrwxrwx. 1 root root 8 Mar 6 05:07<br>
>> c7b5ca51-7ec5-467c-95c6-64bda2cb1fa7 -> ../dm-38<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 14:10<br>
>> d24715dd-32a5-404e-bc57-fe11b99f1fb9 -> ../dm-77<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 14:37<br>
>> d963aba9-3d3a-489d-91ed-ea4465537495 -> ../dm-82<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 13:59<br>
>> da77b987-aaa4-4f9f-9300-4f73d6fb103e -> ../dm-76<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 01:18<br>
>> e88dfa8a-a9dc-4843-8c46-cc57ad700a04 -> ../dm-34<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:33<br>
>> f2ca34b7-c2b5-4072-b539-d1ee91282652 -> ../dm-31<br>
>> lrwxrwxrwx. 1 root root 8 Mar 13 22:53<br>
>> f49ae932-1c07-4295-998d-648afa850982 -> ../dm-65<br>
>> lrwxrwxrwx. 1 root root 8 Feb 13 04:26 ids -> ../dm-20<br>
>> lrwxrwxrwx. 1 root root 8 Feb 13 04:26 inbox -> ../dm-23<br>
>> lrwxrwxrwx. 1 root root 8 Mar 2 00:23 leases -> ../dm-21<br>
>> lrwxrwxrwx. 1 root root 8 Feb 13 04:26 master -> ../dm-24<br>
>> lrwxrwxrwx. 1 root root 8 Mar 14 15:16 metadata -> ../dm-19<br>
>> lrwxrwxrwx. 1 root root 8 Feb 13 04:26 outbox -> ../dm-22<br>
>><br>
>> tree /run/vdsm/stoage/domain/image<br>
>> return before:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# tree<br>
>> /run/vdsm/storage/c2dc0101-748e-4a7b-9913-47993eaa52bd/93633835-d709-4ebb-9317-903e62064c43/<br>
>><br>
>> /run/vdsm/storage/c2dc0101-748e-4a7b-9913-47993eaa52bd/93633835-d709-4ebb-9317-903e62064c43/<br>
>> └── b47f58e0-d576-49be-b8aa-f30581a0373a -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>><br>
>> 0 directories, 1 file<br>
>><br>
>> tree /rhev/data-center/pool/domain/images/image<br>
>> return before:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# tree<br>
>> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
>><br>
>> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
>> ├── 0569a2e0-275b-4702-8500-dff732fea13c -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/0569a2e0-275b-4702-8500-dff732fea13c<br>
>> ├── 0bad7a90-e6d5-4f80-9e77-276092989ec3 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/0bad7a90-e6d5-4f80-9e77-276092989ec3<br>
>> ├── 1196d06c-d3ea-40ee-841a-a3de379b09f9 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/1196d06c-d3ea-40ee-841a-a3de379b09f9<br>
>> ├── 48e81eda-fa1e-4788-95a5-7d99974d4b3f -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/48e81eda-fa1e-4788-95a5-7d99974d4b3f<br>
>> ├── 5f484058-1fa7-496e-8525-4ad52e5c0c9c -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5f484058-1fa7-496e-8525-4ad52e5c0c9c<br>
>> ├── 61e3c3de-55d1-42e8-8098-eccef7319cac -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/61e3c3de-55d1-42e8-8098-eccef7319cac<br>
>> ├── 77204a10-1ce3-442a-9571-3a6a19649224 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/77204a10-1ce3-442a-9571-3a6a19649224<br>
>> ├── 8b14431f-52b5-42ba-977a-ec8401f7ddea -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/8b14431f-52b5-42ba-977a-ec8401f7ddea<br>
>> ├── 9367bcda-d1aa-40f7-b7ec-d7d2028bc4e6 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/9367bcda-d1aa-40f7-b7ec-d7d2028bc4e6<br>
>> ├── 9faf4687-48e7-48fa-9aad-50ed89ee1f8a -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/9faf4687-48e7-48fa-9aad-50ed89ee1f8a<br>
>> ├── a9f65abe-4514-4873-aca7-3e2a04bd4448 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/a9f65abe-4514-4873-aca7-3e2a04bd4448<br>
>> ├── b2aa77bb-bc83-4c29-9a67-09d6df2c6fdf -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b2aa77bb-bc83-4c29-9a67-09d6df2c6fdf<br>
>> ├── b3433da9-e6b5-4ab4-9aed-47a698079a62 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b3433da9-e6b5-4ab4-9aed-47a698079a62<br>
>> ├── bba70ecf-0d97-4a1a-bff5-d1fba4706602 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/bba70ecf-0d97-4a1a-bff5-d1fba4706602<br>
>> ├── d24715dd-32a5-404e-bc57-fe11b99f1fb9 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/d24715dd-32a5-404e-bc57-fe11b99f1fb9<br>
>> ├── d963aba9-3d3a-489d-91ed-ea4465537495 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/d963aba9-3d3a-489d-91ed-ea4465537495<br>
>> └── da77b987-aaa4-4f9f-9300-4f73d6fb103e -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/da77b987-aaa4-4f9f-9300-4f73d6fb103e<br>
>><br>
>> 0 directories, 17 files<br>
>><br>
>><br>
>> tree /run/vdsm/stoage/domain/image<br>
>> return after:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# tree<br>
>> /run/vdsm/storage/c2dc0101-748e-4a7b-9913-47993eaa52bd/93633835-d709-4ebb-9317-903e62064c43/<br>
>><br>
>> /run/vdsm/storage/c2dc0101-748e-4a7b-9913-47993eaa52bd/93633835-d709-4ebb-9317-903e62064c43/<br>
>> └── b47f58e0-d576-49be-b8aa-f30581a0373a -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>><br>
>> 0 directories, 1 file<br>
>><br>
>><br>
>> tree /rhev/data-center/pool/domain/images/image<br>
>> return after:<br>
>> [root@srv-qemu02 2f2c9196-831e-45bd-8824-ebd3325c4b1c]# tree<br>
>> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
>><br>
>> /rhev/data-center/77e24b20-9d21-4952-a089-3c5c592b4e6d/c2dc0101-748e-4a7b-9913-47993eaa52bd/images/2f2c9196-831e-45bd-8824-ebd3325c4b1c/<br>
>> ├── 0569a2e0-275b-4702-8500-dff732fea13c -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/0569a2e0-275b-4702-8500-dff732fea13c<br>
>> ├── 0bad7a90-e6d5-4f80-9e77-276092989ec3 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/0bad7a90-e6d5-4f80-9e77-276092989ec3<br>
>> ├── 1196d06c-d3ea-40ee-841a-a3de379b09f9 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/1196d06c-d3ea-40ee-841a-a3de379b09f9<br>
>> ├── 48e81eda-fa1e-4788-95a5-7d99974d4b3f -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/48e81eda-fa1e-4788-95a5-7d99974d4b3f<br>
>> ├── 5f484058-1fa7-496e-8525-4ad52e5c0c9c -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5f484058-1fa7-496e-8525-4ad52e5c0c9c<br>
>> ├── 61e3c3de-55d1-42e8-8098-eccef7319cac -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/61e3c3de-55d1-42e8-8098-eccef7319cac<br>
>> ├── 77204a10-1ce3-442a-9571-3a6a19649224 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/77204a10-1ce3-442a-9571-3a6a19649224<br>
>> ├── 8b14431f-52b5-42ba-977a-ec8401f7ddea -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/8b14431f-52b5-42ba-977a-ec8401f7ddea<br>
>> ├── 9367bcda-d1aa-40f7-b7ec-d7d2028bc4e6 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/9367bcda-d1aa-40f7-b7ec-d7d2028bc4e6<br>
>> ├── 9faf4687-48e7-48fa-9aad-50ed89ee1f8a -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/9faf4687-48e7-48fa-9aad-50ed89ee1f8a<br>
>> ├── a9f65abe-4514-4873-aca7-3e2a04bd4448 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/a9f65abe-4514-4873-aca7-3e2a04bd4448<br>
>> ├── b2aa77bb-bc83-4c29-9a67-09d6df2c6fdf -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b2aa77bb-bc83-4c29-9a67-09d6df2c6fdf<br>
>> ├── b3433da9-e6b5-4ab4-9aed-47a698079a62 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b3433da9-e6b5-4ab4-9aed-47a698079a62<br>
>> ├── bba70ecf-0d97-4a1a-bff5-d1fba4706602 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/bba70ecf-0d97-4a1a-bff5-d1fba4706602<br>
>> ├── d24715dd-32a5-404e-bc57-fe11b99f1fb9 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/d24715dd-32a5-404e-bc57-fe11b99f1fb9<br>
>> ├── d963aba9-3d3a-489d-91ed-ea4465537495 -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/d963aba9-3d3a-489d-91ed-ea4465537495<br>
>> └── da77b987-aaa4-4f9f-9300-4f73d6fb103e -><br>
>> /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/da77b987-aaa4-4f9f-9300-4f73d6fb103e<br>
>><br>
>> 0 directories, 17 files<br>
>><br>
>><br>
>> Thanks.<br>
>><br>
>> 2016-03-14 12:23 GMT-03:00 Nir Soffer <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>>:<br>
>>><br>
>>> On Mon, Mar 14, 2016 at 5:05 PM, Marcelo Leandro <<a href="mailto:marceloltmm@gmail.com">marceloltmm@gmail.com</a>><br>
>>> wrote:<br>
>>> ><br>
>>> ><br>
>>> > Is it cold (the VM is down) or live (the VM is up) merge (snapshot<br>
>>> > deletion)?<br>
>>> ><br>
>>> > VM is up<br>
>>> ><br>
>>> > What version are you running?<br>
>>> ><br>
>>> > oVirt Engine Version: 3.6.3.4-1.el7.centos<br>
>>> ><br>
>>> ><br>
>>> > Can you please share engine and vdsm logs?<br>
>>> ><br>
>>> > yes.<br>
>>> ><br>
>>> > Please note that at some point we try to verify that image was removed<br>
>>> > by<br>
>>> > running getVolumeInfo hence, the volume not found is expected. The<br>
>>> > thing is,<br>
>>> > that you say that volume does exist.<br>
>>> > Can you run following command on the host:<br>
>>> ><br>
>>> > vdsClient -s 0 getVolumeInfo <sd> <sp> <img> <vol><br>
>>> ><br>
>>> > return the command:<br>
>>> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# vdsClient -s 0<br>
>>> > getVolumeInfo c2dc0101-748e-4a7b-9913-47993eaa52bd<br>
>>> > 77e24b20-9d21-4952-a089-3c5c592b4e6d<br>
>>> > 93633835-d709-4ebb-9317-903e62064c43<br>
>>> > 948d0453-1992-4a3c-81db-21248853a88a<br>
>>> > Volume does not exist: ('948d0453-1992-4a3c-81db-21248853a88a',)<br>
>>> ><br>
>>> > after restarting the host where vm was on, the link discs in<br>
>>> > image_group_id<br>
>>> > was broken but was not removed.<br>
>>> ><br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 10:04<br>
>>> > 215a902a-1b99-403b-a648-21977dd0fa78<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/215a902a-1b99-403b-a648-21977dd0fa78<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:28<br>
>>> > 27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:31<br>
>>> > 3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 08:44<br>
>>> > 5097df27-c676-4ee7-af89-ecdaed2c77be<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5097df27-c676-4ee7-af89-ecdaed2c77be<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:23<br>
>>> > 5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:12<br>
>>> > 7d9b6ed0-1125-4215-ab76-37bcda3f6c2d<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/7d9b6ed0-1125-4215-ab76-37bcda3f6c2d<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 10:13<br>
>>> > 948d0453-1992-4a3c-81db-21248853a88a<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/948d0453-1992-4a3c-81db-21248853a88a<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Nov 27 22:30<br>
>>> > b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 11 22:01<br>
>>> > c598bb22-a386-4908-bfa1-7c44bd764c96<br>
>>> > -><br>
>>> ><br>
>>> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/c598bb22-a386-4908-bfa1-7c44bd764c96<br>
>>> ><br>
>>> ><br>
>>> > You question is not clear. Can you explain what is the unexpected<br>
>>> > behavior?<br>
>>> ><br>
>>> > the link to the lvm should not be deleted after deleting the snapshot?<br>
>>><br>
>>> Are you talking about /dev/vgname/lvname link or the links under<br>
>>> /run/vdsm/storage/domain/image/volume,<br>
>>> or /rhev/data-center/pull/domain/image/volume?<br>
>>><br>
>>> /dev/vgname/lvname is created by udev rules when lv is activated or<br>
>>> deactivated.<br>
>>> To understand if this is the issue, can you show the output of:<br>
>>><br>
>>> pvscan --cache<br>
>>> lvs vgname<br>
>>> ls -l /dev/vgname<br>
>>><br>
>>> Both before the the merge, and after the merge was completed.<br>
>>><br>
>>> The lv should not exist, and the links should be deleted.<br>
>>><br>
>>> Links under /run/vdsm/storage or /rhev/data-center/ should be created<br>
>>> when starting a vm, and tore down when stopping a vm, hotunpluging<br>
>>> a disk, or removing a snapshot.<br>
>>><br>
>>> To understand if there is an issue, we need the output of:<br>
>>><br>
>>> tree /run/vdsm/stoage/domain/image<br>
>>> tree /rhev/data-center/pool/domain/images/image<br>
>>><br>
>>> Before and after the merge.<br>
>>><br>
>>> The links should be deleted.<br>
>>><br>
>>> Nir<br>
>>><br>
>>> ><br>
>>> ><br>
>>> > Thanks<br>
>>> ><br>
>>> > 2016-03-14 10:14 GMT-03:00 Nir Soffer <<a href="mailto:nsoffer@redhat.com">nsoffer@redhat.com</a>>:<br>
>>> >><br>
>>> >> On Sat, Mar 12, 2016 at 3:10 PM, Marcelo Leandro<br>
>>> >> <<a href="mailto:marceloltmm@gmail.com">marceloltmm@gmail.com</a>><br>
>>> >> wrote:<br>
>>> >> > Good morning<br>
>>> >> ><br>
>>> >> > I have a doubt, when i do a snapshot, a new lvm is generated,<br>
>>> >> > however<br>
>>> >> > when I delete this snapshot the lvm not off, that's right?<br>
>>> >><br>
>>> >> You question is not clear. Can you explain what is the unexpected<br>
>>> >> behavior?<br>
>>> >><br>
>>> >> To check if an lv created or removed by ovirt, you can do:<br>
>>> >><br>
>>> >> pvscan --cache<br>
>>> >> lvs vg-uuid<br>
>>> >><br>
>>> >> Nir<br>
>>> >><br>
>>> >> ><br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# ls<br>
>>> >> > 27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> >> > 7d9b6ed0-1125-4215-ab76-37bcda3f6c2d<br>
>>> >> > 3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> >> > b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > 5097df27-c676-4ee7-af89-ecdaed2c77be<br>
>>> >> > c598bb22-a386-4908-bfa1-7c44bd764c96<br>
>>> >> > 5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# ls -l<br>
>>> >> > total 0<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:28<br>
>>> >> > 27a8bca3-f984-4f67-9dd2-9e2fc5a5f366 -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:31<br>
>>> >> > 3fba372c-4c39-4843-be9e-b358b196331d -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 08:44<br>
>>> >> > 5097df27-c676-4ee7-af89-ecdaed2c77be -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5097df27-c676-4ee7-af89-ecdaed2c77be<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:23<br>
>>> >> > 5aaf9ce9-d7ad-4607-aab9-2e239ebaed51 -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 12 09:12<br>
>>> >> > 7d9b6ed0-1125-4215-ab76-37bcda3f6c2d -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/7d9b6ed0-1125-4215-ab76-37bcda3f6c2d<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Nov 27 22:30<br>
>>> >> > b47f58e0-d576-49be-b8aa-f30581a0373a -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > lrwxrwxrwx. 1 vdsm kvm 78 Mar 11 22:01<br>
>>> >> > c598bb22-a386-4908-bfa1-7c44bd764c96 -><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > /dev/c2dc0101-748e-4a7b-9913-47993eaa52bd/c598bb22-a386-4908-bfa1-7c44bd764c96<br>
>>> >> ><br>
>>> >> ><br>
>>> >> ><br>
>>> >> > disks snapshot:<br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# qemu-img<br>
>>> >> > info<br>
>>> >> > 27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> >> > image: 27a8bca3-f984-4f67-9dd2-9e2fc5a5f366<br>
>>> >> > file format: qcow2<br>
>>> >> > virtual size: 112G (120259084288 bytes)<br>
>>> >> > disk size: 0<br>
>>> >> > cluster_size: 65536<br>
>>> >> > backing file:<br>
>>> >> ><br>
>>> >> > ../93633835-d709-4ebb-9317-903e62064c43/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > backing file format: raw<br>
>>> >> > Format specific information:<br>
>>> >> > compat: 0.10<br>
>>> >> > refcount bits: 16<br>
>>> >> ><br>
>>> >> ><br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# qemu-img<br>
>>> >> > info<br>
>>> >> > 3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> >> > image: 3fba372c-4c39-4843-be9e-b358b196331d<br>
>>> >> > file format: qcow2<br>
>>> >> > virtual size: 112G (120259084288 bytes)<br>
>>> >> > disk size: 0<br>
>>> >> > cluster_size: 65536<br>
>>> >> > backing file:<br>
>>> >> ><br>
>>> >> > ../93633835-d709-4ebb-9317-903e62064c43/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > backing file format: raw<br>
>>> >> > Format specific information:<br>
>>> >> > compat: 0.10<br>
>>> >> > refcount bits: 16<br>
>>> >> ><br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# qemu-img<br>
>>> >> > info<br>
>>> >> > 5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> >> > image: 5aaf9ce9-d7ad-4607-aab9-2e239ebaed51<br>
>>> >> > file format: qcow2<br>
>>> >> > virtual size: 112G (120259084288 bytes)<br>
>>> >> > disk size: 0<br>
>>> >> > cluster_size: 65536<br>
>>> >> > backing file:<br>
>>> >> ><br>
>>> >> > ../93633835-d709-4ebb-9317-903e62064c43/b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > backing file format: raw<br>
>>> >> > Format specific information:<br>
>>> >> > compat: 0.10<br>
>>> >> > refcount bits: 16<br>
>>> >> ><br>
>>> >> ><br>
>>> >> > disk base:<br>
>>> >> > [root@srv-qemu03 93633835-d709-4ebb-9317-903e62064c43]# qemu-img<br>
>>> >> > info<br>
>>> >> > b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > image: b47f58e0-d576-49be-b8aa-f30581a0373a<br>
>>> >> > file format: raw<br>
>>> >> > virtual size: 112G (120259084288 bytes)<br>
>>> >> > disk size: 0<br>
>>> >> ><br>
>>> >> ><br>
>>> >> > Thanks.<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>
</div></div></blockquote></div><br></div>