<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: I want to add a FC LUN to vm and share the same FC LUN to other vm's under the same ESX host. How to achieve this through perl SDK in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694165#M2790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;For Step1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;I am using rdmManagement.pl written by William Lam.&amp;nbsp; What are the values for extraConfig ?( to add the shared writer flag as per your guidance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;Line: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;my $vmspec = VirtualMachineConfigSpec-&amp;gt;new(deviceChange =&amp;gt; [$devspec], &lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;extraConfig =&amp;gt; ????&lt;/SPAN&gt; ); I went through vmware documentation could not get what values to be passed for extraConfig.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;With the above change I will retry the Step2&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Step2:&amp;nbsp; I will try to share "share_&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;rdm.&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;vmdk" file to other VM2--VM4.-&amp;nbsp; FAILED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;perl vmdkManagement.pl --server &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;10.123.12.10 &lt;/SPAN&gt;--username root --password vmpass --operation add --vmdkname share_rdm.vmdk --vmname VM2 --datastore "datastore1 (2)"&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Reconfiguring "VM2" to add VMDK: "[datastore1 (2)] VM1/share_rdm.vmdk"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2015 11:08:37 GMT</pubDate>
    <dc:creator>kadursandy</dc:creator>
    <dc:date>2015-03-05T11:08:37Z</dc:date>
    <item>
      <title>I want to add a FC LUN to vm and share the same FC LUN to other vm's under the same ESX host. How to achieve this through perl SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694162#M2787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;There are 4 vms under the same ESXi (vm1, vm2, vm3 and vm4). All 4 vm's are created with one "SCSI Controller 0" by default with LsiLogicController Parallel. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I want to add a FC(Fiber Channel) LUN to vm1 and share the same FC LUN to other vm's(share with vm2, vm3 and vm4) under the same ESX host. I need to do this for around 800 ESX hosts which has 4 vm's as explained. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps:&lt;/P&gt;&lt;P&gt;1. Add FC LUN to vm1.&lt;/P&gt;&lt;P&gt;2. Share the same FC LUN to vm2, vm3 and vm4&lt;/P&gt;&lt;P&gt;3. Repeat 1 and 2 for around 800 ESXi hosts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share&amp;nbsp; the approach using vsphere Perl SDK. I am stuck as many forums give different approaches with different errors explained(I am confused and did not understand the approach)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 11:01:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694162#M2787</guid>
      <dc:creator>kadursandy</dc:creator>
      <dc:date>2015-03-04T11:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add a FC LUN to vm and share the same FC LUN to other vm's under the same ESX host. How to achieve this through perl SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694163#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll probably have to create an RDM mapping in this case.&amp;nbsp; You could share a VMDK out to multiple VMs with some VMX setting flags, but you mentioned direct FC LUN sharing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002782" style="font-size: 10pt; line-height: 1.5em;" title="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002782"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1002782&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1034165" style="font-size: 10pt; line-height: 1.5em;" title="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1034165"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1034165&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, assuming you have the right application, you basically need to create the RDM mapping on VM1, then attach that as shared disks to VM2-VM4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will you have the LUN discovered on all hosts?&amp;nbsp; Or do you need to run discovery? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can probably get a leg-up with rdmManagement.pl written by William Lam.&amp;nbsp; You'd then just modify the extraConfig to add the shared writer flag (look at the first KB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, the first VM gets a RDM mapping created (through ReconfigVM_Task() with proper disk backing), then each additional VM will point at the RDM mapping file created by the VM1 RDM mapping.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you work up some basic script logic, swing back and I'll be happy to iron it out into a working state.&amp;nbsp; You'll find the device creation and backing information to be a bit frustrating, it's where most of the errors will occur in the script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:16:47 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694163#M2788</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-03-04T14:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add a FC LUN to vm and share the same FC LUN to other vm's under the same ESX host. How to achieve this through perl SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694164#M2789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response. Yes all LUNs are discovered on all the hosts already.&lt;/P&gt;&lt;P&gt;Step1: I have created the RDM mapping to VM1 and &lt;SPAN style="font-size: 13.3333330154419px;"&gt;share_rdm.&lt;/SPAN&gt;vmdk file is created in virtual compatability mode(William Lam script used below) - Successful&lt;/P&gt;&lt;P&gt;perl &lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;rdmManagement.pl&lt;/SPAN&gt; --server 10.123.12.10 --username root --password vmpass --vmname VM1 --operation add --device /vmfs/devices/disks/naa.60002ac00000000028004ab500008f69 --compatmode virtual --filename share_rdm.vmdk&lt;/P&gt;&lt;P&gt;controllerKey=1000 unitNumber=1 backing=VirtualDiskRawDiskMappingVer1BackingInfo=HASH(0x2e15298) capacityInKB=1048576&lt;/P&gt;&lt;P&gt;Creating and adding "virtualMode" RDM: "share_rdm.vmdk" to VM1 ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Successfully added RDM to VM!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step2: Now I am trying to share "share_&lt;SPAN style="font-size: 13.3333330154419px;"&gt;rdm.&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;vmdk" file to other VM2--VM4.-&amp;nbsp; FAILED&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;perl vmdkManagement.pl --server &lt;SPAN style="font-size: 13.3333330154419px;"&gt;10.123.12.10 &lt;/SPAN&gt;--username root --password vmpass --operation add --vmdkname share_rdm.vmdk --vmname VM2 --datastore "datastore1 (2)"&lt;/P&gt;&lt;P&gt;Reconfiguring "VM2" to add VMDK: "[datastore1 (2)] VM1/share_rdm.vmdk" ...&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;SOAP Fault:&lt;/P&gt;&lt;P&gt;-----------&lt;/P&gt;&lt;P&gt;Fault string: The device or operation specified at index '0' is not supported for the existing virtual machine platform.&lt;/P&gt;&lt;P&gt;Fault detail: DeviceUnsupportedForVmPlatform&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me with this error ..What is missing to overcome this error. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 04:22:45 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694164#M2789</guid>
      <dc:creator>kadursandy</dc:creator>
      <dc:date>2015-03-05T04:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: I want to add a FC LUN to vm and share the same FC LUN to other vm's under the same ESX host. How to achieve this through perl SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694165#M2790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;For Step1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;I am using rdmManagement.pl written by William Lam.&amp;nbsp; What are the values for extraConfig ?( to add the shared writer flag as per your guidance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;Line: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;my $vmspec = VirtualMachineConfigSpec-&amp;gt;new(deviceChange =&amp;gt; [$devspec], &lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px;"&gt;extraConfig =&amp;gt; ????&lt;/SPAN&gt; ); I went through vmware documentation could not get what values to be passed for extraConfig.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; font-family: proxima-nova, Arial, sans-serif; font-size: 14px; line-height: 1.5em;"&gt;With the above change I will retry the Step2&amp;nbsp; ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Step2:&amp;nbsp; I will try to share "share_&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;rdm.&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;vmdk" file to other VM2--VM4.-&amp;nbsp; FAILED&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;perl vmdkManagement.pl --server &lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333330154419px; font-family: inherit;"&gt;10.123.12.10 &lt;/SPAN&gt;--username root --password vmpass --operation add --vmdkname share_rdm.vmdk --vmname VM2 --datastore "datastore1 (2)"&lt;/P&gt;&lt;P style="margin: 2px; font-size: 14px; font-family: proxima-nova, Arial, sans-serif; color: #666666;"&gt;Reconfiguring "VM2" to add VMDK: "[datastore1 (2)] VM1/share_rdm.vmdk"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 11:08:37 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/I-want-to-add-a-FC-LUN-to-vm-and-share-the-same-FC-LUN-to-other/m-p/2694165#M2790</guid>
      <dc:creator>kadursandy</dc:creator>
      <dc:date>2015-03-05T11:08:37Z</dc:date>
    </item>
  </channel>
</rss>

