VMDK resizing (retractable)

Hello

I converted a virtual of Hyper-V machine to vSphere. In order to eliminate any surprises during the conversion of this critical machine I didn't resize the huge D: partition that was originally 400 GB. The only thing I adjusted has been commissioning I put to Thin. It is fine for this machine (no intensive activity).

Real data on the partition is 40 GB (over 2 years). So I shrunk the partition to 100 GB in Windows DISKMGMT.

So I partition of 100 GB on 400GO with a provisioning vmdk.

Questions:

1. is there a way to resize the vmdk above to the size of the partition without shutting down the server?

I guess not...

2. what will be the best (secure) way to proceed?

3. is it true that if current 400GO is on thin vmdk provisioned database usage is equal to only actual VM (of vmdk and config) size?

If the above is correct, there is probably not need to resize vmdk because this VM will never use more partitions defined Windows. Right?

Thank you.

1. is there a way to resize the vmdk above to the size of the partition without shutting down the server?

You can't shrink the VMDK, so direct or cold, only apply them.

2. what will be the best (secure) way to proceed?

The cleanest and simplest way would be: attach a new disk to the virtual machine, migrating your data, remove the old drive from the guest OS, remove the old disk.

3. is it true that if current 400GO is on thin vmdk provisioned database usage is equal to only actual VM (of vmdk and config) size? If the above is correct, there is probably not need to resize vmdk because this VM will never use more partitions defined Windows. Right?

A thin-provisioned disk grows in size, if a block is written to for the first time. If you decreased the size of the partition in the guest OS, then under normal circumstances written should never occur on this unpartitioned space. However, the blocks that have been written to in the past will remain and continue to be physical on the datastore disk space (unless you write binary zeros in this space and the virtual or similar machine svMotion).

Tags: VMware

Similar Questions

  • Drive configured VM thin sizes are still thick

    Hi all

    I have a virtual machine with a disc which is fixed at 205 GB (which was a P2V played earlier) see image 1.  I have SvMotioned the virtual machine in another data store (same block size of 1 MB and VMFS v 3.31) yet the VMDK is retractable see illustration 2.  When checking in the operating system, it shows that only 124 GB is used in theory my hard file should only be ~ 124 GB.

    Environment is running esxi 4.1 on backend FC storage shared.  HW version is 7.

    Any ideas?

    Thank you

    Michael

    Did you use sdelete or shrink at the beginning?

  • Move and resize 4TB VMDK

    We run vSphere 6.0 and you have a VM Ubuntu which has a second virtual disk that is thin provided as 4TB and has about 80 GB of actual data.

    We must move from the virtual machine to an another 6.0 ESXi host vSphere that is not on a network.

    We have removed the second disk of the virtual machine first.

    What is the best way to move the VMDK on another host ESXi virtual machine?

    Can it be resized down from CT 4 so it can be copied to a USB key?

    Thank you

    Why not create an archive in tar gzip the contents of disc 2 - then remove the 2 disk and create a new position final?

  • Cannot resize the virtual disk, the virtual machine by using a «child» vmdk file

    Release: VMWare workstation 9

    SE host: Windows 7 64-bit

    Screenshots below.

    I want to resize my VM from 50 GB to 100 GB.

    It seems that VMware workstation 9 uses a child for my VM vmdk.  In my case, using its "Windows Server 2008 R2 x 64 - 000001.vmdk" for its virtual disk file.  The correct file should be "Windows Server 2008 R2 x64.vmdk", I think.

    There are currently no snapshots registered for this virtual machine, I see.

    The virtual machine works well as is, but I can't resize the disk without the VMWare gui, saying I should be perform the operation on the parent vmdk file.

    It seems that I do run a snapshot that is not really a snapshot?  How to merge with the older files - Sxx.vmdk to 0000xx - Sxxx.vmdk

    I also tried to use the command line tool to manually resize the vmdk parent, but I get permission "access denied" errors.

    Kind regards

    Matt

    -------------------------------------------

    Parameters of the HARD disk:

    settings.jpg

    Error:

    Error.jpg

    Files:

    Files.jpg

    He no snapshots are displayed in the Manager of snapshot with the check box 'Show AutoProtect snapshots' verified then the snapshot is an orphan and the best way I use normally to fix this if I want the contents of the snapshot of orphan to be among the basic disk is with tab of the virtual machine in VMware Workstation GUI closed I simply delete the .vmsd file and then open the virtual machine tab in the VMware Workstation GUI and cover and immediately remove a snapshot in the Snapshot Manager.  This will force the orphan snapshot to merge with the parent disk.  Then to clean I still remove the .vmsd file and orphans, .vmsn and .vmem file.

    Note: Before the procedure you have a good backup of the virtual machine in case you accidentally mess something up.

  • Error during resizing of vmdk in VMWare Fusion 3.1.1

    I have a Windows 7 virtual machine that had a 20 GB, designated as the single disk vmdk. I wanted to resize to 40 GB so I stop the machine, went

    for the parameters of the virtual machine and set the new size (with the disk to preallocate space / split into 2GB files on options).

    During resizing a popup of error is displayed with the following message:

    The called function can only be performed on partial strings. Please open the virtual disk parent.

    Once this message, the drive no longer appears in the settings of the virtual machine; If I try to re add the vmdk file, VMWare simply hangs after selecting it in the open file dialog box.

    I tried to check the disk with the following command:

    /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager -R seven.vmdk 
    No errors were found on the virtual disk, 'seven.vmdk'.
    

    If I try to clone the drive, I get this error:

    $ /Library/Application\ Support/VMware\ Fusion/vmware-vdiskmanager -r seven.vmdk -t 0 seven2.vmdk
    Creating disk '/Volumes/ScratchMyBak/Users/fabiocorneti/seven2.vmdk'
    Failed to convert disk: The called function cannot be performed on partial chains. Please open the parent virtual disk (0x500003e83).
    

    The same error is reported in more detail in the log file attached; the lines in question are these:

    Oct 15 11:52:36.473: vmx| DISK: OPEN scsi0:0 '/Volumes/VM/seven.vmwarevm/seven.vmdk' persistent R[]
    Oct 15 11:52:39.083: vmx| FILE: WaitForPossession timeout on '/Volumes/VM/seven.vmwarevm/seven.vmdk.lck/M41364.lck' due to a local process (333)
    Oct 15 11:52:39.084: vmx| FILE: FileIO_Lock on '/Volumes/VM/seven.vmwarevm/seven.vmdk' failed: Lock timed out
    Oct 15 11:52:39.084: vmx| DISKLIB-DSCPTR: DescriptorOpenWithRetry: Descriptor file '/Volumes/VM/seven.vmwarevm/seven.vmdk' locked (try 0)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [0]: "seven-f001.vmdk" 0 (0x1a)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [1]: "seven-f002.vmdk" 0 (0x1a)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [2]: "seven-f003.vmdk" 0 (0x1a)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [3]: "seven-f004.vmdk" 0 (0x1a)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [4]: "seven-f005.vmdk" 0 (0x1a)
    Oct 15 11:52:42.952: vmx| DISKLIB-DSCPTR: Opened [5]: "seven-f006.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [6]: "seven-f007.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [7]: "seven-f008.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [8]: "seven-f009.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [9]: "seven-f010.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [10]: "seven-f011.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [11]: "seven-f012.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [12]: "seven-f013.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [13]: "seven-f014.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [14]: "seven-f015.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [15]: "seven-f016.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [16]: "seven-f017.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [17]: "seven-f018.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [18]: "seven-f019.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [19]: "seven-f020.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [20]: "seven-f021.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-DSCPTR: Opened [21]: "seven-f022.vmdk" 0 (0x1a)
    Oct 15 11:52:42.953: vmx| DISKLIB-LINK  : Opened '/Volumes/VM/seven.vmwarevm/seven.vmdk' (0x1a): twoGbMaxExtentSparse, 83886080 sectors / 40 GB.
    Oct 15 11:52:42.953: vmx| DISKLIB-LIB   : Opened "/Volumes/VM/seven.vmwarevm/seven.vmdk" (flags 0x1a).
    Oct 15 11:52:42.954: vmx| DiskDDB: Could not retrieve geometry.cylinders: The called function cannot be performed on partial chains. Please open the parent virtual disk.
    Oct 15 11:52:42.954: vmx| DiskDDB: Could not retrieve geometry.biosCylinders: The called function cannot be performed on partial chains. Please open the parent virtual disk.
    Oct 15 11:52:42.954: vmx| DiskGetGeometry: Reading of disk partition table
    Oct 15 11:52:42.954: vmx| Setting thread 37 stack size to 1048576.
    Oct 15 11:52:43.213: vmx| Msg_Post: Error
    Oct 15 11:52:43.213: vmx| [http://msg.disk.noBackEnd|http://msg.disk.noBackEnd] Cannot open the disk '/Volumes/VM/seven.vmwarevm/seven.vmdk' or one of the snapshot disks it depends on.
    Oct 15 11:52:43.213: vmx| [http://msg.disk.configureDiskError|http://msg.disk.configureDiskError] Reason: The called function cannot be performed on partial chains. Please open the parent virtual disk.----------------------------------------
    Oct 15 11:52:47.567: vmx| Module DiskEarly power on failed.
    

    Is it possible to fix the vmdk?

    Sorry I had not had my coffee yet and missed the following...

    The next section in the original seven.vmdk file looked like at...

    # Disk DescriptorFile
    version=1
    encoding="UTF-8"
    CID=00000000
    parentCID=00000000
    isNativeSnapshot="no"
    createType="twoGbMaxExtentSparse"
    

    It should have looked like...

    # Disk DescriptorFile
    version=1
    encoding="UTF-8"
    CID=fffffffe
    parentCID=ffffffff
    isNativeSnapshot="no"
    createType="twoGbMaxExtentFlat"
    

    Try the new version of the attached file seven.vmdk.

  • Resize the fixed size VMDK

    Im trying to resize a vmhd. I know that I have to convert it into a new vmhd to do. Ive been looking for a little while and got a good idea on how to do it, but something must be wrong in my syntax.

    Here's what I have.

    C:\Virtual Machines\VM1 > "c:\Program VMware Server\vmware - vdiskmanager.exe ', VM1.vmdk - r t 2 s 14 GB VM1_reduced.vmdk

    what I think is the syntax to convert a fixed disk of VM1.vmdk (t 2), size 14 GB, new name for VMDK

    but when I run, there is the original size which is about 16 GB. (Yes there is free space available in the host which is a windows Server 2003 OS)

    Any thoughts?

    Ahh... you can not reduce the defined maximum size of a virtual disk with vmware-vdiskmanager (or any other VMware tool, in fact).  You must create a new virtual disk and ghost/clone the existing drive, on another; then replace the original with the new disk in your virtual machine.

  • resize size incorrect vmdk after recovering plate

    Hello

    I got flat condition vmdk again doing stub (http://www.phdvirtual.com/wrapgen) file.

    but I am wrong, and now I have the disk with size 900 GB instead of 9 GB.

    How can I resize this disc?

    Thanks in advance

    Delete the one you generated and create another new of correct size.

  • Ability to resize Windows server 2008 vmdk?

    VMware Converter 4.0.1 has the possibility to resize VMDK in MS Windows 2008?

    I'm assuming that the ability to resize vmdkalso also applies to Windows 2003 virtual machines?

    Yes, with converter, you can resize Windows partitions.

    André

    * If you found this device or any other answer useful please consider awarding points for correct or helpful answers

  • Cannot resize vmdk

    Hi, I would like to resize a vmdk file.

    This vmdk is 50 GB with 2 linux partitions.

    I reduced this partition with gparted to 25GB.

    But now, I want to reduce the size of the vmdk file. But using vmware converter, I don't have the ability to resize the disk. The option is not to activate.

    Is this normal? Is there another method to resize the vmdk file?

    Concerning

    Another way to resize your disk vmdk can be:

    the concept is: create a nrew disk resized and a third party image so (example Hiren) allows you to copy the disc. Finally, disconnect the big disk and start the virtual machine with the new drive.

    http://communities.VMware.com/message/961997#961997 http://communities.VMware.com/message/887516#887516

    If you want to rename your vmdk file to maintain correct namig:

    Unplug your vmdk virtual machine drive

    Rename the hard and - flat.vmdk with new names. (the command is mv oldfile.vmdk newfile.vmdk)

    NewFile.VMDK Edit with vi or nano and change in the new file descriptor - flat.vmdk. Save, and then reconnect the new disk to the virtual machine

    Goodbye, Alberto

  • Resize an additional vmdk

    Hi I have a machine vm with a 80 GB vmdk local. I also have an additional vmdk (30 GB). I create on VMWorkstation and they have been converted when I moved Mac. They work very well.

    I need to increase the size of the additional VMDK. If I go into the settings and select the 2nd disk, it displays a 0 GB capacity and the virtual disk file is missing. That's 1 (drive)

    I tried running the following command

    sudo/Applications/VMware\ Fusion.app/Contents/Library/vmware-vdiskmanager vNextDevelopment.vmdk 40GB - x


    from the mydisk.vmdk directory located and reports

    Impossible to extend the drive "vNextDevelopment.vmdk": one of the provided parameters is not valid (0x3e80).


    Is there something obvious I'm doing wrong?


    No snapshots btw. It is a sparse VMDK


    THX


    S


    Here is a picture of the cmdline and content directory, in the case where I typed and do not (although I have copy and paste the name of vmdk)

    Screen Shot 2015-11-30 at 14.44.18.png

    Please compress/zip . descriptor VMDK files for the two virtual disks as well as of VMwarelast.log virtual machine and attach archive .zip to a response message. What confuses me, is that the virtual disk consists of 21 files, which looks like the virtual disk is already here to 40 GB!

    André

  • Increase in the size of vmdk vCenter Analytics of operations (resize)

    Hey everybody! I'll start with a warning that I am too complicate the process for that apparently I am a FOOL! Either way, a result of work is the ideal fruit here!

    Here's the situation...  I have deployed vCenter Ops out of the OVA/OVF, fine so far... And well, environmental needs, no one REQUIRES additional storage space! So so... as vCenter Ops itself is detect that HE's going to run out of disk space! Perfect, right?

    So I pop in vCenter, increase the size of the disc, and we should be defined, right? Uh, no.

    For whatever the reason, once again... may be missing a set of specific commands...

    When I try to increase the size of the disk, it keeps the denynig there is no available space, yet a fdisk-l seems to show that/dev/sdb seems to have enough space...   Certainly, there is an article "addressing" the problem of resizing vCenter Ops, and I mean by "address", it does not at all.

    With me so far?  Interestingly, vCenter Ops likes to throw the part data analytics to a logical volume by the name of data_vg

    So, I have no ego, no obligation, other than trying to ensure that we find the answer... and we have a source to this address for all time, instead of KB articles without answers, or the steps that eventually destroy my logical volume and all the data contained in. (Hell, if I wanted to, I just would deploy the EGGS again with 'large' size)  Any help, greatly appreciated.

    To add more disk space, all you need to do is add an extra on the disc and restart the virtual machine, it will detect and add space to the virtual machine.

    This is the KB

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2016022

  • Resize a vmdk thickness

    Hello

    Our environment have many virtual machines with the allocated size vDisk

    We must reclaim this unused space somehow without converting them to a provisioning

    The only way that I can think of is using VMware Converter to do a V2V of VMS and to resize the vDisks

    Is there ny other medium?

    There is a 3rd part of Quest software, called vOptimizer Pro tool

    I ' t is not freeware, but depending on the size of the environment, it might be useful

    Take a look: http://www.quest.com/voptimizer-pro/

    I tested it in a dev environment and it works very very well.

    This product has been around for 2 years, and as far as I know it is the only product capable to do that.

    Makes me think why there not an another development of a tool with this ability?

    Please allow points to useful/correct answers

  • cannot resize the virtual disk (vmdk) after successful hyper-v conversion

    Hello

    We are experiencing an environment vSphere 4.1. I have a problem on the Ramdisk resizing.

    We had managed to convert a hyper v VM. Virtual machine operating system is Windows 2008.

    After that, I can't resize the virtual disk (GB in disk options was gray-ed out, even when the virtual machine is power down)

    It's strange

    I have attached several screenshot of the virtual machine.

    Need your advice.

    Thank you

    His grace is on the IDE interface and you can not resize. the only way is to reclone using vmware converter and resize in the wizard. For more information: http://www.yellow-bricks.com/2010/05/28/resizing-your-ide-virtual-harddisk/

  • Partition and ESXi windows server 2 k 3 resize os vmdk

    Is it possible to shrink the partition (I see in vmtools there a preparation to the boom how well that works and can it be done live?

    It might be simpler to run VMware Converter inside the guest, resize the disks and by publishing the new virtual machine to the same box of ESXi.

    Jase McCarty

    http://www.jasemccarty.com

    Co-author of VMware ESX Essentials in the virtual data center

    (ISBN:1420070274) Auerbach

    Please consider awarding points if this post was helpful or appropriate

  • How to resize the screen display to use only half of the screen

    in order to write the information to a website in a MS word document, I want to put the site to display browser so the document MS word on the screen at the same time (each 1/2 of the screen (left and right view). How can I do this? I am technically challenged so tell me in the jargon of the primary school

    I can't test this on Windows 10, but...

    On Windows 7, if you hold down the keyboard Windows key, then press the right arrow key, the currently active window will change its form. By example, if the window is maximized it will change occupying half right side of the screen. Hold the Windows key and pressing the arrow key right to scroll to the right, left and restored/resizable. To maximize, use the up arrow key.

    I hope you can use this keyboard shortcut hidden to set each application to the half of the screen easily without having to manually extendable/retractable and move windows. And it's a cool thing that you can share with other people.

Maybe you are looking for