VMware

This Question is Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
9 Replies Last post: Aug 5, 2009 2:18 AM by killermachine…  

vmware-vdiskmanager.exe -p hangs posted: May 27, 2009 2:23 AM

Click to view killermachine188's profile Novice 19 posts since
Jan 29, 2009

Hi@all,

we have problems using the vmware-vdiskmanager to prepare the shrinking of the vmdk files.

The vmware-vdiskmanager hangs if we are usind a vmdk file, with a lot of unused blocks. To reproduce the error we create a bunch of small files (abot 500 files, filesize 5mb) and then delete them within the running guest. Trying to prepare shrink the vmdk with the unused blocks results in a hanging system. Nothing responds any more, so we have to turn of the host machine.

Here is the abstracted script of the hole process:

  • start the guest

  • generate the files on each drive

  • delete all generated files

  • shut down the guest

  • defragment each vmdk file

  • prepare each vmdk file for shrinking

  • shrink each vmdk file

The shrinking of the first vmdk files (1-2) completes without any error. The CPU of vmware-vdiskmanager/vmware-mount usage is about 80% on a E8400 machiche with 2GB Ram.

On the later vmdk files, the processes start to zero out the blocks and hangs. Killing the processes is not possible any more.

The guest have 3-4 hdds with ntfs and fat32 partions using the whole drive. Tested guest OS are WinXP SP1/SP2/SP3 and Win Vista SP1. Tested on hosts with Win XP SP2/SP3 with Workstation 6.0.x/6.5.x and only Player 2.0.x and 2.5.x. Installed VDDKs 1.0.1 and 1.1. The problems could be reproduces in any combination of the installed sofware, but not every time. Some times the whole optimization process runs through without any errors.

The questions:

  • is there any solution for these problem?

  • is there any kind of logs for the vmware processes used in the optimization process?

  • can somebody confirm these behavior?

Best regards


Re: vmware-vdiskmanager.exe -p hangs

1. Jun 7, 2009 7:57 AM in response to: killermachine…
Click to view wmchristie's profile Lurker 1 posts since
Jun 7, 2009

I am having a similar issue, with some differences.

I have a single virtual disk, NTFS, that I need to shrink. I have run a defrag on it in both the guest and the host. The capacity is 139GB, the current vmdk file size is 121GB but only about 45GB of space is being used. When I run vmware-vdiskmanager -p on the mounted disk, it starts off working fine for a few minutes, but after 5 to 10 minutes it stops using any processor and the entire host stops responding. The host must be hard reset.

The vmdk file gets corrupted but vmware-vdiskmanager -R successfully repairs it.

Any help will be appreciated.

Regards,

Bill

Re: vmware-vdiskmanager.exe -p hangs

2. Jun 10, 2009 10:27 AM in response to: killermachine…
Click to view wendyxiao's profile Enthusiast 19 posts since
Jun 18, 2008

It worked for me. I have a VM with xpsp2 on Workstation65, The VM has 5 VMDKs, the first 4 vmdks has 8 GB each and the last one has 128GB, one of them is fat32 and the others are NTFS. I tried the following scenario on each vmdk:

create some files on the vmdk

delete the generated files

use vmware-mount.exe to mount the vmdk to Z: drive in the host

use vmware-vdiskmanager -p Z:

use vmware-mount.exe /d Z:

use vmware-vdiskmanage.exe -k aaa.vmdk

Re: vmware-vdiskmanager.exe -p hangs

4. Jun 16, 2009 6:06 PM in response to: killermachine…
Click to view wendyxiao's profile Enthusiast 19 posts since
Jun 18, 2008

I tried files with only hundreds of MB.

Wendy

Re: vmware-vdiskmanager.exe -p hangs

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

I can reproduce the issue now. We are investigating this. We will get you back regarding this issue as soon as we can.

Wendy

Re: vmware-vdiskmanager.exe -p hangs

6. Jun 22, 2009 11:18 AM in response to: wendyxiao
Click to view wendyxiao's profile Enthusiast 19 posts since
Jun 18, 2008

Hi,

We confirmed that it is a bug. Our developer is looking into it now. Hopefully we will get back to you with solutions ASAP.

Thanks,

Wendy

Re: vmware-vdiskmanager.exe -p hangs

8. Jun 29, 2009 5:24 AM in response to: killermachine…
Click to view fixitchris's profile Expert 626 posts since
Dec 8, 2006
I ran into the same issue. What I did is run Contig.exe from Sysinternals on the VMDK, then prepare it again with vdiskmanager.

Developer Social Media

Communities