VMware Cloud Community
ii00907
Contributor
Contributor
Jump to solution

rdmCreate.pl Problem

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 --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 --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

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

Please take a look at the solution here:

Consider closing this thread out, since you do have multiple threads about the same question spawning in a few places.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
1 Reply
lamw
Community Manager
Community Manager
Jump to solution

Please take a look at the solution here:

Consider closing this thread out, since you do have multiple threads about the same question spawning in a few places.

=========================================================================

William Lam

VMware vExpert 2009

VMware ESX/ESXi scripts and resources at:

VMware Code Central - Scripts/Sample code for Developers and Administrators

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos