Solved

How to shrink virtual disk on XenServer?

Posted on 2016-10-13
3
548 Views
Last Modified: 2016-11-03
This is using Citrix Xenserver and XenCenter version 6.0. There are a few VM, in which the virtual disk is very under-utilized. For example, found a web server - web1, only 100 GB was used out of 500 GB. We are thinking of shrinking this existing virtual disk from  500 gb to 200 gb, how should we do?

VMware got a tool called, VMware vSphere Convertor, does Xen comes with XenConvertor or any other tool? If so, please show step-by-step on how to "shrink" it without affecting the existing data.

Thanks a lot.
0
Comment
Question by:MichaelBalack
[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 6

Accepted Solution

by:
Niten Kumar earned 500 total points
ID: 41844913
You will need XenConvert 2.x for this to work.  You can download from here >>>> https://www.citrix.com/go/products/xenserver/xenserver-xenconvert-free.html

1.  Download and install XenConvert on the Windows VM.

2.  Attach a secondary disk that is 205 percent times the size of the existing VDI. The secondary drive is to be used as temporary space for XenConvert.

3.  Format the secondary disk with an NTFS file system and add a drive letter to the disk.

4.  Open XenConvert and click Next.



5.  Adjust the free space size as the following:

         Example for original size: 14406

        xenserver1.jpg


         Example for New size: 5000

          xenserver2.jpg

        Description of the fields in the preceding figures:

         -  Used Space: The space currently being used in the VDI.

         -  Free Space: The new size for the VDI. So if you want to make it 10GB, you change the value to 10240 MB.

        -  Unallocated space: The additional space you give to the VM and that is displayed as unallocated space.

        -  Capacity: The value in the last row is the VM VDI total size:


6.   Proceed with the XenConvert utility to create a disk to import later or to create the new VDI on the XenServer.
0
 
LVL 1

Author Comment

by:MichaelBalack
ID: 41851327
Hi nitenKumar,

Thanks for your prompted suggestion. Please give me some time to read through, thanks.
0
 
LVL 1

Author Closing Comment

by:MichaelBalack
ID: 41873456
Thanks for Expert - Niten, in sharing his suggestion. This method rocks.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

If your vDisk VHD file gets deleted from the image store accidentally or on purpose, you won't be able to remove the vDisk from the PVS console. There is a known workaround that is solid.
This article will show you how to create an ISO CD-ROM/DVD-ROM image (*.iso), and MD5 checksum signature, for use with VMware vSphere Hypervisor 6.5 (ESXi 6.5). It's a good idea to compare checksums, because many installations fail because of a corr…
Teach the user how to use configure the vCenter Server storage filters Open vSphere Web Client:  Navigate to vCenter Server Advanced Settings: Add the four vCenter Server storage filters: Review the advanced settings: Modify the values of the four v…
Teach the user how to install and configure the vCenter Orchestrator virtual appliance Open vSphere Web Client: Deploy vCenter Orchestrator virtual appliance OVA file: Verify vCenter Orchestrator virtual appliance boots successfully: Connect to the …

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