Just delete the image directory
(remove_me_8eb435f3-e8c1-4042-8180-e9f342b2e449)
located under  /rhev/data-center/%spuuid%/%sduuid%/images/

As for the LV, please try the following:

dmsetup remove /dev/mapper/%device_name% --> device name could be fetched
by 'dmsetup table'

On Wed, Jan 31, 2018 at 2:00 PM, Gianluca Cecchi <gianluca.cec...@gmail.com>
wrote:

> On Wed, Jan 31, 2018 at 12:33 PM, Elad Ben Aharon <ebena...@redhat.com>
> wrote:
>
>> You can correlate according to /rhev/data-center/%spuuid%/%sd
>> uuid%/images/
>> The image id you can take from:
>>
>> # lvs -o name,tags |less -S
>>
>> IU, under LV Tage, is the LV's image id, fir example:
>>
>>   LV                                   LV Tags
>>
>>
>>  13f5b7c1-ad93-41f3-96eb-147709640d1a IU_3646e381-d237-4940-a02d-90b
>> b90b1d45a,MD_5,PU_00000000-0000-0000-0000-000000000000
>>
>> On Tue, Jan 30, 2018 at 5:58 PM, Gianluca Cecchi <
>> gianluca.cec...@gmail.com> wrote:
>>
>>> On Tue, Jan 30, 2018 at 4:51 PM, Elad Ben Aharon <ebena...@redhat.com>
>>> wrote:
>>>
>>>> Please try:
>>>>
>>>> vdsClient -s 0 teardownImage <spUUID> <sdUUID> <imgUUID>
>>>>
>>>
>>>
>>> How do I map spUUID, sdUUID and imgUUID ?
>>>
>>>
>>
> OK, thanks.
> In my case even after detaching and removing the original SD and putting the
> target SD (now the only attached to the DC) into maintenance, putting
> host into maintenance and rebooting the host, I still get these old LVs
> with flags ao (san visibility to the old source sd is still here... I'm
> going to remove when cleaned up..).
>
> Could it depend on the fact that there was another host in the DC that I
> put into maintenance and then powered off (because at the moment only one
> host was able to see the target SD where I moved all the disks)?
> So a sort of retained lock?
>
> Anyway after restarting this host and activating it with also 2 running
> VMS I have this kind of LV situation related to disks.
> Note that I also included vg_name and you can see 3 VGs
>
> be0c72ca-2dbc-4e02-ab48-5491ea0c01b7 and  f7b481c8-b744-43d4-9faa-0e494a308490
> are two VGs on source old storage domains from where I moved disks
>
> c0097b1a-a387-4ffa-a62b-f9e6972197ef is VG on target new storage domain
> where I moved the disks
>
> #  lvs -o vg_name,name,tags
>
>    be0c72ca-2dbc-4e02-ab48-5491ea0c01b7 9094cc5a-a05c-47e0-8ad9-0fef274ea97b
> IU__remove_me_eb553b69-fafb-40de-9892-66b9f2826fd3,MD_6,
> PU_00000000-0000-0000-0000-000000000000
>   be0c72ca-2dbc-4e02-ab48-5491ea0c01b7 c1250065-e137-46da-9c11-38b095ff93a7
> IU__remove_me_de47a038-28f9-4131-9650-042f73088c46,MD_7,
> PU_00000000-0000-0000-0000-000000000000
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 014ce954-d645-43f6-823a-73112b80f5ae
> IU_72fb2b45-e1b3-4ea3-a95d-c19aa4b5aad4,MD_20,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 09bdad3f-eae1-4449-bb6e-3c3f85e690e9
> IU_7e97309c-5aad-468c-81fc-e2179e4dea3a,MD_6,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 0afa6f2e-e4eb-481a-955c-4569e8eb737a
> IU_4721b70f-7146-490f-b351-c4fbff05f62e,MD_7,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 45e20ac8-f3c6-462b-a2c3-30f0c8262f84
> IU_a50a9024-e951-4755-9a71-c47b93f99d58,MD_5,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 4d27c0e1-546b-48ba-80fb-95dcd87b5583
> IU_3f949bfa-749b-4201-aa94-13bbad45132a,MD_17,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 6d23ec3e-79fb-47f0-85ff-08480476ea68
> IU_8eb435f3-e8c1-4042-8180-e9f342b2e449,MD_9,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 75aacb1d-5ce5-4b72-b481-646abfa7a652
> IU_190135c5-710d-4ca4-9e0c-cf19e7ca0f8b,MD_11,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 7f695bba-eba1-4ec2-ad24-3a0a5f03ea2d
> IU_2aef413b-b2d1-4a7c-8fbb-df81c93050ea,MD_19,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 8b48d5bb-a643-4c2b-9979-1a1be532ae71
> IU_d258a707-0bb6-47d4-88b7-e0bf01b59f78,MD_16,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef 9094cc5a-a05c-47e0-8ad9-0fef274ea97b
> IU_eb553b69-fafb-40de-9892-66b9f2826fd3,MD_14,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef a1ebb202-458a-4c3a-8020-adbd432cdc75
> IU_bc0de77d-796b-4c8d-94b3-0829110a542f,MD_12,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef a20bb16e-7c7c-4ed4-85c0-cbf297048a8e
> IU_6d8d41d5-2502-4392-8d4a-cca07581ec1e,MD_8,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef a2d5f043-55c2-4701-ac8c-ccb796a799d1
> IU_c4cb42d2-c2ae-4336-8905-f743576869bc,MD_10,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef acb04c1e-488e-469f-9905-21540dfe4361
> IU_48ca28fb-9c08-44ff-8599-7ba767a96b32,MD_13,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef c1250065-e137-46da-9c11-38b095ff93a7
> IU_de47a038-28f9-4131-9650-042f73088c46,MD_15,PU_00000000-0000-0000-0000-000000000000
>
>   c0097b1a-a387-4ffa-a62b-f9e6972197ef e26eac74-4445-4f3b-b2f5-ef048ae6d91b
> IU_fe80f8f0-17d7-43b5-beb6-68983d9fd66c,MD_4,PU_00000000-0000-0000-0000-000000000000
>      f7b481c8-b744-43d4-9faa-0e494a308490 45e20ac8-f3c6-462b-a2c3-30f0c8262f84
> IU__remove_me_a50a9024-e951-4755-9a71-c47b93f99d58,MD_13,
> PU_00000000-0000-0000-0000-000000000000
>   f7b481c8-b744-43d4-9faa-0e494a308490 4d27c0e1-546b-48ba-80fb-95dcd87b5583
> IU__remove_me_3f949bfa-749b-4201-aa94-13bbad45132a,MD_16,
> PU_00000000-0000-0000-0000-000000000000
>   f7b481c8-b744-43d4-9faa-0e494a308490 675d5f06-320a-4236-8d57-9ff7cc7eb200
> IU_23f37083-2282-41df-a01f-3e79949a758e,MD_7,PU_00000000-0000-0000-0000-000000000000
>
>   f7b481c8-b744-43d4-9faa-0e494a308490 6d23ec3e-79fb-47f0-85ff-08480476ea68
> IU__remove_me_8eb435f3-e8c1-4042-8180-e9f342b2e449,MD_14,
> PU_00000000-0000-0000-0000-000000000000
>   f7b481c8-b744-43d4-9faa-0e494a308490 823a79f2-b09a-4665-9dfa-8ccd2850225f
> IU_b71340d7-1e9e-45a4-a531-95963cb34b26,MD_6,PU_00000000-0000-0000-0000-000000000000
>
>   f7b481c8-b744-43d4-9faa-0e494a308490 863062c3-b3b0-4494-ad2f-76a1c29c069a
> IU_c57ef2e7-f34a-4788-b354-8d77ff57fb22,MD_5,PU_00000000-0000-0000-0000-000000000000
>
>   f7b481c8-b744-43d4-9faa-0e494a308490 a2d5f043-55c2-4701-ac8c-ccb796a799d1
> IU__remove_me_c4cb42d2-c2ae-4336-8905-f743576869bc,MD_15,
> PU_00000000-0000-0000-0000-000000000000
>   f7b481c8-b744-43d4-9faa-0e494a308490 e26eac74-4445-4f3b-b2f5-ef048ae6d91b
> IU__remove_me_fe80f8f0-17d7-43b5-beb6-68983d9fd66c,MD_12,
> PU_00000000-0000-0000-0000-000000000000
>
>
> So there are on the two old VGs some "remove_me" tagged LVs... that I
> think corresponds to the erorrs I got during move disk operations
>
> And if I take as reference the 6d23ec3e-79fb-47f0-85ff-08480476ea68
> related LV, I get these two entries
>
> c0097b1a-a387-4ffa-a62b-f9e6972197ef 6d23ec3e-79fb-47f0-85ff-08480476ea68
> IU_8eb435f3-e8c1-4042-8180-e9f342b2e449,MD_9,PU_00000000-0000-0000-0000-000000000000
>
> f7b481c8-b744-43d4-9faa-0e494a308490 6d23ec3e-79fb-47f0-85ff-08480476ea68
> IU__remove_me_8eb435f3-e8c1-4042-8180-e9f342b2e449,MD_14,
> PU_00000000-0000-0000-0000-000000000000
>
> Of course the one with "remove_me" inside tag is what I have to remove...
> because it is on old source SD that now has been detached/removed.
>
> what should it be the imgUUID value to give to vdsClient? Do I have to
> include IU prefix or what?
>
> The first part of the command should be
>
> vdsClient -s 0 teardownImage 55c7e1ee-7246-4574-ba46-28d4582ba0e8
> f7b481c8-b744-43d4-9faa-0e494a308490  .....
>
> Thanks again.
> Gianluca
>
>
_______________________________________________
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

Reply via email to