VMware
6 Replies Last post: Mar 17, 2009 5:18 AM by fixitchris  

Using vmware-vdiskmanager to move disks. posted: Mar 16, 2009 1:40 PM

Click to view fixitchris's profile Expert 547 posts since
Dec 8, 2006
See attachment for vdiskmanager preliminary test results.

One issue I was not able to reproduce was a consistent crash of a 20GB VMDK at 44%... I think it was either a type 1 or 3 and was being cloned from NTFS to VMFS. The logs don't go back that far but I will try to reproduce this problem.



Clone disk to VMFS:
vmware-vdiskmanager -r "<local_source_disk>.vmdk" -t 4 -h <remote_host_IP_address> -u <user> -f PWD.FILE "[target_datastore] <VMname>/<target_disk>.vmdk"

Clone disk from VMFS:

vmware-vdiskmanager -S -h <remote_host_IP address> -u <user> -f PWD.FILE -r "[source_datastore] <VMname>/<source_disk>.vmdk" -t <disk_type> "<local_target_disk>.vmdk"


<disk_type>
0 = growable, single file
1 = growable, 2GB split
2 = preallocated, single file
3 = preallocated, 2GB split
4 = preallocated, VMFS
5 = compressed


Cloning an IDE disk to SCSI:

?

Cloning a version 7 disk to version 4:

?

Re: Using vmware-vdiskmanager to move disks.

1. Mar 13, 2009 10:34 AM in response to: fixitchris
Click to view wendyxiao's profile Enthusiast 19 posts since
Jun 18, 2008

Using vmware-vdiskmanager to do remote-to-local clone with vmware-vdiskmanager.exe works for me. I see you have specified all the necessary options, but I use the different order of some of the options.You might want to try that. Also if you convert a local vmdk to the remote vmdk, if the remote vmdk exists, vmware-vdiskmanager will overwrite the existed vmdk for me.

Please see my command and execute result below. What I did is: 1) remote-to-local clone 2) local-to-remote clone the original disk back

1)

C:\Program Files\VMware\VMware Virtual Disk Development Kit\bin>vmware-vdiskmanager.exe -S -r "storage1 (6) test/test.vmdk" -h MY-ESX.eng.vmware.com -u USER -f c:\password.txt -t 0 c:\test.vmdk
Creating disk 'c:\test.vmdk'

Convert: 100% done.
Virtual disk conversion successful.

2)

C:\Program Files\VMware\VMware Virtual Disk Development Kit\bin>vmware-vdiskmanager.exe -r c:\test.vmdk -h MY-ESX.eng.vmware.com -u USER -f c:\password.txt -t
4 "storage1 (6) test/test.vmdk"

Convert: 100% done.
Virtual disk conversion successful.

Hope it helps,

Wendy

Re: Using vmware-vdiskmanager to move disks.

3. Mar 13, 2009 11:16 AM in response to: fixitchris
Click to view oreeh's profile Guru 9,872 posts since
Nov 30, 2005
Cloning an IDE disk to SCSI:

Not possible as this change requires changes in the VM too.
Workaround: VMware Converter

Cloning a version 7 disk to version 4:

Not possible.
You have to downgrade the virtual HW to accomplish this.

Re: Using vmware-vdiskmanager to move disks.

5. Mar 16, 2009 2:16 PM in response to: fixitchris
Click to view wendyxiao's profile Enthusiast 19 posts since
Jun 18, 2008

You can't restore to VMFS.

I have a bug (258262 ) on this:

vmware-vdiskmanager failed to convert from Remote to Local, when remote disk on ESX server is type 4 or 6 and local destination disktype is 4(VMFS)

Developer Social Media

Communities