VMware Cloud Community
ii00907
Contributor
Contributor
Jump to solution

Problem vmreconfig.pl

Hi,

I have a problem when i remove a disk. I run this command ;

perl vmreconfig.pl --url https://172.23.42.211/sdk/vimService --username root --password passw0rd --filename ../sampledata/vmreconfig.xml --schema ../schema/vmreconfig.xsd

But i have this result;

No reconfiguration performed as there is no device config spec created.

In attach the file vmreconfig.xml

Help please!!!!!!

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

afaik, vimsh device.addexistingdisk does not allow you to add an existingn RDM but only standard VMDK(s), it was probably not written to handle RDMs

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

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
4 Replies
lamw
Community Manager
Community Manager
Jump to solution

The reason it's not working is you're providing the incorrect name of the device ... it actually took me second try before realizing what it was looking for

	  <Hard-Disk>
	     <Name>Disk3</Name>
	  </Hard-Disk>

should be:

	  <Hard-Disk>
	     <Name>Hard disk 3</Name>
	  </Hard-Disk>

Note: The input is case sensitive and notice the d on disk is lower case. To find out the device name, specifically for your vDisk, you can take a look at the settings for your virtual machine and you'll see the various devices. VMware should have better error/warning handling versus just "dying" out with some message relating to the API that a user may not be aware of

Here is a sample output for a successful virtual disk removal:

[vi-admin@scofield vm]$ ./vmreconfig.pl --server himalaya.primp-industries.com --username root --filename ../sampledata/my_vmreconfig.xml ../schema/vmreconfig.xsd
Enter password:

Removing hard disk with the backing filename '[himalaya-local-SATA.RE4-GP:Storage] vMA-resize/vMA-resize_1.vmdk' . . .
Virtual machine 'vMA-resize' is reconfigured successfully.

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

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
ii00907
Contributor
Contributor
Jump to solution

Very very thanks,

I had not thought of that.

I found some problems with version 4 of ESX. They took the script of 3.5 and took them on the 4.

Sorry if I ask you another question, but now to hook a rdm to use a VM rdmCreate.pl (vdiskcreate.pl not work). Can you tell me if I can attach a rdm through commands vimsh?

I tried vmware-vim-cmd vmsvc / device.diskaddexisting creating another rdmp.vmdk through vmkftools, but does not work, manages to engage only vdisk.

Thanks to one of your kind reply.

By

Ivan

0 Kudos
lamw
Community Manager
Community Manager
Jump to solution

afaik, vimsh device.addexistingdisk does not allow you to add an existingn RDM but only standard VMDK(s), it was probably not written to handle RDMs

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

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
ii00907
Contributor
Contributor
Jump to solution

Many thanks,

are very precise and detailed

0 Kudos