Solved

How to shrink virtual disk on XenServer?

Posted on 2016-10-13
3
94 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
  • 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Will try to explain how to use the VMware feature TAGs in the VMs and create Veeam Backup Jobs using TAGs. Since this article is too long, I will create second article for the Veeam tasks.
HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
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 …
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…

911 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now