Il 13/04/2014 14:15, Gadi Ickowicz ha scritto:
Hi Amedeo,
Was the LUN that was lost a separate storage domain? if it was, you can list all the
disks in the system and then filter the list for disks on that storage domain. for
example, in python sdk:
disks = api.disks.list()
[disk for disk in disks if disk.get_storage_domains().get_storage_domain().get_id() ==
fc_storage_domain_id]
Thanks,
Gadi Ickowicz
----- Original Message -----
From: "Amedeo Salvati" <amedeo(a)oscert.net>
To: "Meital Bourvine" <mbourvin(a)redhat.com>
Cc: users(a)ovirt.org
Sent: Sunday, April 13, 2014 3:05:37 PM
Subject: Re: [ovirt-users] List disk images residing on specific lun
Il 13/04/2014 12:37, Meital Bourvine ha scritto:
> Hi Amedeo,
>
> I don't think that it's possible.
> But if your storage domain contains only 1 FC lun, then listing the disks on this
storage domain will provide you the info.
>
> ----- Original Message -----
>> From: "Amedeo Salvati" <amedeo(a)oscert.net>
>> To: users(a)ovirt.org
>> Sent: Sunday, April 13, 2014 1:23:13 PM
>> Subject: [ovirt-users] List disk images residing on specific lun
>>
>> Hello,
>>
>> does anyone know if it's possible, using ovirt-shell or api, to list
>> every disk image residing on specific FC LUN?
>>
>> best regards
>> Amedeo Salvati
>> _______________________________________________
>> Users mailing list
>> Users(a)ovirt.org
>>
http://lists.ovirt.org/mailman/listinfo/users
>>
Hi Meital and all,
unfortunately we have several luns, but we've lost one of them (and it's
not possible to recover it from the box), so we're looking to know what
images are residing on that lun due to remove those images from
db/engine gui...
using lvm command on hypervisor node it's possible to match lv name
still alive, with some id present on engine db or by ovirt-shell cmd
like "list disk --show-all" ?
thanks in advance
a
_______________________________________________
Users mailing list
Users(a)ovirt.org
http://lists.ovirt.org/mailman/listinfo/users
Hi Gadi,
no on that DC we have two storagedomains, each one of them has 2 LUNs,
(total 4 LUNs on two SD), and we have lost only one of them, so we have
one SD consistent and one SD broken without one lun.
To better understand what was happened, the lost LUN was effectively not
lost, but was inadvertently overwrite during new hypervisor instalation,
so it was not lost, and is still visible to hypervisor, but it's content
was wiped out / overwritten.
do you think that it's possible to match, by lvm command on hypervisor,
lv name still alive, with some id present on engine db or by ovirt-shell
cmd?
thanks in advance
a