Hi Shani,
thank you very much for your respond.
But I don’t have this parameter because it is no iSCSI LUN, it is a 
FibreChannel (FCP) LUN. I only have the ID of the LUN.

Best Regards,
Michael

Von: Shani Leviim <[email protected]>
Gesendet: Sonntag, 27. Februar 2022 18:26
An: Wagenknecht, Michael (ik4-sv) <[email protected]>
Cc: users <[email protected]>
Betreff: Re: [ovirt-users] How to create a new Direct LUN with the API

Hi Michael,
When creating a direct lun, for each <logical_unit>, you should mention the 
address, port, and target.
You can follow the example here [1] under 'Adding a new direct LUN disk'

[1] 
http://ovirt.github.io/ovirt-engine-api-model/master/#services/disks/methods/add<https://urldefense.com/v3/__http:/ovirt.github.io/ovirt-engine-api-model/master/*services/disks/methods/add__;Iw!!CdWb0g08DYTo!YTzlzlN1yAf_fUFLTkarUTVaWe6rmwKkpXJVIu0WrMfvmUSA1raM1_6tWbyPs3VcCJP4ceGDQCbTkQ$>

Regards,
Shani Leviim


On Fri, Feb 25, 2022 at 11:23 PM 
<[email protected]<mailto:[email protected]>>
 wrote:
Hi,
I tried to create a new Fibre Channel Direct LUN with the API. But it doesn't 
work. My command is:

curl -s \
--cacert '/etc/pki/ovirt-engine/ca.pem' \
--request POST \
--header 'Version: 4' \
--header 'Accept: application/xml' \
--user 'admin@internal:XXXXXXXXXX' \
--data '
<disk>
  <alias>DX600RZ2_OLVM_Test</alias>
  <name>DX600RZ2_OLVM_Test</name>
  <lun_storage>
    <type>fcp</type>
    <logical_units>
      <logical_unit id="3600000e00d2a0000002a0d15034d0000">
      </logical_unit>
    </logical_units>
  </lun_storage>
</disk>
' \
https://olvmmanager/ovirt-engine/api/disks<https://urldefense.com/v3/__https:/olvmmanager/ovirt-engine/api/disks__;!!CdWb0g08DYTo!YTzlzlN1yAf_fUFLTkarUTVaWe6rmwKkpXJVIu0WrMfvmUSA1raM1_6tWbyPs3VcCJP4ceHCVEddlQ$>

I think there are parameter missing. But I can't find a working example.
Please help.

Best Regards,
Michael
_______________________________________________
Users mailing list -- [email protected]<mailto:[email protected]>
To unsubscribe send an email to 
[email protected]<mailto:[email protected]>
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html<https://urldefense.com/v3/__https:/www.ovirt.org/privacy-policy.html__;!!CdWb0g08DYTo!YTzlzlN1yAf_fUFLTkarUTVaWe6rmwKkpXJVIu0WrMfvmUSA1raM1_6tWbyPs3VcCJP4ceGjtYlMYg$>
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/<https://urldefense.com/v3/__https:/www.ovirt.org/community/about/community-guidelines/__;!!CdWb0g08DYTo!YTzlzlN1yAf_fUFLTkarUTVaWe6rmwKkpXJVIu0WrMfvmUSA1raM1_6tWbyPs3VcCJP4ceGZctq23A$>
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/<https://urldefense.com/v3/__https:/lists.ovirt.org/archives/list/[email protected]/message/HYJ2JENVIVQY3QQGVII7IFEYLA3MB5DF/__;!!CdWb0g08DYTo!YTzlzlN1yAf_fUFLTkarUTVaWe6rmwKkpXJVIu0WrMfvmUSA1raM1_6tWbyPs3VcCJP4ceFyL-gJcw$>
_______________________________________________
Users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/[email protected]/message/ALULJGAU4NQVO56IQHRBR26HPOCVYPOP/

Reply via email to