Solved

Shrinking the disk

Posted on 2013-10-27
17
430 Views
Last Modified: 2013-11-16
I have a vm in vmware provisioned as Thin Format.After some time the machine allocated up to 400 G and then i deleted some of 100 G but it is still getting 400 G .How can i shrink this thin formated disk.
The virtual machine hosted is having a Linux based OS.
0
Comment
Question by:kastro Abbasi
[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
  • 8
  • 7
  • 2
17 Comments
 
LVL 5

Expert Comment

by:wynandkunkel
ID: 39603557
You would have to use VMware Converter to accomplish this.  In the disk section you can select the minimum size of the disk or you can manually type in the size you want, bearing in mind that you cannot go smaller that the space used in the disk.
0
 
LVL 120
ID: 39603645
Install VMware vCenter Converter Standalone 5.5 on the Virtual Machine and Create a V2V, and in the wizard specify the new size of the virtual disk you require, and whether you want a thick or thin disk.

Installing converter on the VM to be converted is Best Practice, as recommended by VMware.


see my EE Article, Step by Step Tutorial Instructions with Screenshots

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.5

HOW TO:  Synchronize changes when completing a P2V or V2V with VMware vCenter Converter Standalone 5.1

HOW TO: Improve the transfer rate of a Physical to Virtual (P2V), Virtual to Virtual Conversion (V2V) using VMware vCenter Converter Standalone 5.0
0
 

Author Comment

by:kastro Abbasi
ID: 39603647
you mean i have to move this vm to some other datastore ,as this is linux machine and many users are working on it.
please explain a little bit more
0
Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

 
LVL 5

Expert Comment

by:wynandkunkel
ID: 39603655
Hi ayazabbasi,

You could "move" it to the same datastore as converter will create a copy of the machine.  This might just then take a little longer as the same datastore would be reading the old machine and writing the new machine at the same time.  

In my experience this is typically something that you should do after hours, or during "quiet time"...

Once the "conversion" has completed you could then delete the "old" copy.

There is no other VMware supported method of doing this.
0
 
LVL 120
ID: 39603656
If this is a Linux machine, what Linux distribution are you using?

Converter may not be comopatible or support your VM.

You will have to ensure, ALL Services are shutdown, and ALL users are logged out.

BUT first, what Linux Distribution?
0
 

Author Comment

by:kastro Abbasi
ID: 39603907
I am using suse enterprise linux on esxi 4.1.Is there no other way as by using vmkfstools

or any other way except converter
0
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 500 total points
ID: 39603921
I'm afraid VMware removed support for shrinking disks in the OS after 2.5/3.0.

You could also try a cloning tool to another disk of smaller size.

Converter 5.5 does support the following Linux Distros for conversion:-

SUSE Linux Enterprise Server 9.x (32-bit and 64-bit)
SUSE Linux Enterprise Server 10.x (32-bit and 64-bit)
SUSE Linux Enterprise Server 11.x (32-bit and 64-bit)
0
 

Author Comment

by:kastro Abbasi
ID: 39606813
Can i use the Magic parted to shrink my suse enterprise Linux
0
 
LVL 120
ID: 39606883
you can use partition utilities, the OS partition will change, but not the virtual disk (vmdk).
0
 

Author Comment

by:kastro Abbasi
ID: 39606953
so you mean by using the magic partition i ll shrink the os partition,then i have to use vmware converter to shrink the vmdk.
as the vmdk.
but now the vmdk size has reached to 1T and i dont have so much space to shift this vm of 1T by using vmware converter.so thats why i was using magic partition to shrink the os partition .so what do you suggest it will work or not
0
 

Author Comment

by:kastro Abbasi
ID: 39607067
I mean in first step i shrinked the linux partitions by using magic partition and what is the second step to shrink the vmdk size
0
 
LVL 120
ID: 39607100
Converter will shrink the partition and disk in a single procedure there is no need to use additional partition products.
0
 
LVL 120
ID: 39607103
Why has the size increased from 400GB to 1TB ?
0
 

Author Comment

by:kastro Abbasi
ID: 39607120
as first i was trying to use the dd utility to append the block with zeroes.it filled all the space .
0
 
LVL 120
ID: 39607150
So the disk is now 1TB
0
 

Author Comment

by:kastro Abbasi
ID: 39607764
yes it is having ITB size
0
 
LVL 120
ID: 39607966
What is the maximum size you have made the thin disk?

you will need to convert.
0

Featured Post

Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as high-speed processing of the cloud.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
copy large amount of files 9 73
VMWare 101 9 84
Move Hosts to new cluster 2 52
setup VMWare environment on Windows 10 17 50
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.
Concerto Cloud Services, a provider of fully managed private, public and hybrid cloud solutions, announced today it was named to the 20 Coolest Cloud Infrastructure Vendors Of The 2017 Cloud  (http://www.concertocloud.com/about/in-the-news/2017/02/0…
This Micro Tutorial will teach you how to reformat your flash drive. Sometimes your flash drive may have issues carrying files so this will completely restore it to manufacturing settings. Make sure to backup all files before reformatting. This w…
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…

739 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