Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Reclaiming disk space from a VM

Posted on 2010-01-12
Medium Priority
Last Modified: 2012-05-08
Dear Experts

I have very clumsily made a blunder and hoping someone can help me out!

Our file server (a VM) has multiple virtual hard disks attached. One of them was running low on disk space so i increased the provisioned size of the disk through vSphere client but i did it on the wrong virtual disk!
So now when i rescan disks on the VM i've got a virtual disk with 40GB of unallocated space.

Is there anything i can do to get that space back?
Question by:Bladey001
  • 2
LVL 16

Expert Comment

ID: 26292413

Are these SAS disks or SAN Attached? If San Attached you can then remove the 40GB by not presenting it to this server

Author Comment

ID: 26292452

They are FC SAN attached. How would i go about not presenting it to the server? Will this affect the data on the original part of the disk?
LVL 16

Expert Comment

ID: 26292465
Ok what SAN? And how did you increase it to 40GB? Did present a new LUN from the SAN?
LVL 24

Accepted Solution

ryder0707 earned 1600 total points
ID: 26292513
You cant shrink directly even using vmkfstools command, so you have couple of ways to do it

1. Attach another smaller vmdk and move the file to this new disk, detach the old one and reconfigure drive letter in Windows
2. Use vmware converter and do V2V to resize any virtual disk
3. Or use 3rd party tool like QtPartEd to resize
4. Use disk imaging tool like ghost to clone the disk to another smaller disk

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Question has a verified solution.

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

HOW TO: Connect to the VMware vSphere Hypervisor 6.5 (ESXi 6.5) using the vSphere (HTML5 Web) Host Client 6.5, and perform a simple configuration task of adding a new VMFS 6 datastore.
Ransomware is a malware that is again in the list of security  concerns. Not only for companies, but also for Government security and  even at personal use. IT departments should be aware and have the right  knowledge to how to fight it.
Teach the user how to rename, unmount, delete and upgrade VMFS datastores. Open vSphere Web Client: Rename VMFS and NFS datastores: Upgrade VMFS-3 volume to VMFS-5: Unmount VMFS datastore: Delete a VMFS datastore:
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…
Suggested Courses

564 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