1 Reply Latest reply on Oct 19, 2009 3:21 PM by lamw

    rdmCreate.pl Problem

    ii00907 Enthusiast

      Hi,

       

      i have a problem with Perl Script rdmCreate.pl.

       

       

      If I create a new disk rdm puntanto all 'esx4, the disc that I am going to add it correctly deal. This is the command;

       

       

      root@ITRMVSC1 vm# perl rdmCreate.pl --url https://172.33.22.111/sdk/vimService --username MYUSER --password MYPSW --vmname VM1 --filename Test.vmdk --backingtype rdm

       

       

      Adding Virtual Disk on Virtual machine VM1 in the host esxhost.it.domain.com with file name Test.vmdk

       

       

      env browser

       

       

      *****

      ARRAY(0x1fe9eb90)

      *****

       

       

      *****

      number of present disks is 2

      *****

      ITRMVSC Disk[0]: Capacity /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11

      cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11VM1 Disk[1]: Capacity /vmfs/devices/disks/naa.6006016055351f00506decc0459cde11

      cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11

      calling the reconfigure VM

       

       

      returned from reconfigure VM

      Virtual Disk created.

       

       

      but when I try to point the Virtual Center back to me the following error;

       

       

      perl rdmCreate.pl --url https://172.55.22.444/sdk/webService --username administrator --password MYPSW --vmname VM1 --filename Test.vmdk --backingtype rdm

       

       

      Adding Virtual Disk on Virtual machine ITRMVSC in the host 172.33.22.111 with file name Test.vmdk

      env browser

       

       

      *****

      ARRAY(0xb5a20d0)

      *****

       

       

      *****

      number of present disks is 2

      *****

      ITRMVSC Disk[0]: Capacity /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11

      cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11ITRMVSC Disk[1]: Capacity /vmfs/devices/disks/naa.6006016055351f00506decc0459cde11

      cannonical_name: /vmfs/devices/disks/naa.6006016055351f00516decc0459cde11

      calling the reconfigure VM

      Error trapped

      SOAP Fault:

       

      -


      Fault string: Invalid datastore path 'Test.vmdk'.

      Fault detail: InvalidDatastorePathFalut :

      SOAP Fault:

      -


      Fault string: Invalid datastore path 'Test.vmdk'.

       

      My version ESX : VMware ESX 4.0.0 build-164009

       

       

      My version Vsphere : VMware vCenter Server Version 4.0.0 Build 162856

       

       

      vSpher CLI Version : VMware vSphere CLI 4.0.0-161974.x86_64

       

       

      Please help me.

       

       

      Attached the script I use