Solved

Shrink a volume

Posted on 2016-09-16
3
98 Views
Last Modified: 2016-10-03
I have created a virtual machine in Vspere 6 having 3 partitions of total size 950 GB. Later I realized that I need to expand the volume beyond a certain limit, so I added another hard drive - Storage piece - everything works fine. One of my partitions - D drive - is now free and I deleted the volume. That space, aprox. 550GB is now un allocated. I want to free up this space from virtual hard disk - I followed the procedure to edit the vmdk file that I got from exchange expert which says that: -

Locate the vdmk files and we need to edit the *.vmdk, which is the descriptor file, which contains the variables for the size of the *.-flat.vmdk. Using cat, this is what the descriptor file contains
Then edit using vi xxxx.vmdk storage file. There will be an entry under the heading “#Extent description, after the letters RW, defines the size of the VMware virtual disk (VMDK).
For example, 40GB files will have an entry like 83886080 and the calculation is
40GB = 40*1024*1024*1024/512 = 83886080.
We wanted to reduce the size of the VMware virtual machine disk (VMDK) from 40 GB to 20 GB. So the value we need to enter into the descriptor file is:-

20 GB = 20 * 1024 * 1024 * 1024 / 512  =  41943040

Using vi, edit the descriptor file, and change the number from 83886080 to 41943040, and save the file.
Migrate or Copy the virtual machine to another datastore.

--------------------------------------------------------
I can see some flat and ckt files and I am not sure am I editing the right file or not. every time I get a error as attached. luckily I took the backup of the vmdk file and once I got the error I restored and all are back to normal.

My question is here, how I can shrink the volume which I am not able to use in windows. I want to free up the un allocated space in windows from Virtual machine hard drive.
VMWARE-Errorr.JPG
VMWARE-Errorr1.png
0
Comment
Question by:Sunny Sebastian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 121

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 41801227
Please follow my EE Article, this is a tutorial article, with step by step instructions, however remember this is unsupported.

only the vmdk descriptor file needs to be edited, not the ctk files.

HOW TO: Shrink a VMware Virtual Machine Disk (VMDK) in 15 minutes

this is the supported method of reducing the size of a vmdk (virtual disk)

HOW TO:  Resize a VMware (VMDK) Virtual Disk

this is the supported method of reducing the size of a vmdk (virtual disk)

Part 13: HOW TO: Shrink or Reduce a VMware Virtual Machine Disk (VMDK) using VMware vCenter Converter Standalone v5.5.2
0
 
LVL 121
ID: 41823487
do you require any more assistance to close out this question?
0
 

Author Closing Comment

by:Sunny Sebastian
ID: 41825938
ok good
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
When rebooting a vCenters 6.0 and try to connect using vSphere Client we get this issue "Invalid URL: The hostname could not parsed." When we get this error we need to do some changes in the vCenter advanced settings to fix the issue.
Teach the user how to convert virtaul disk file formats and how to rename virtual machine files on datastores. Open vSphere Web Client: Review VM disk settings: Migrate VM to new datastore with a thick provisioned (lazy zeroed) disk format: Rename a…
This video shows you how to use a vSphere client to connect to your ESX host as the root user. Demonstrates the basic connection of bypassing certification set up. Demonstrates how to access the traditional view to begin managing your virtual mac…
Suggested Courses

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question