Solved

How to shrink virtual disk on XenServer?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to edit .vmx files to add advanced configuration options Open vSphere Web Client: Edit Settings for a VM: Choose VM Options -> Advanced: Add Configuration Parameters:
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

828 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