Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 870
  • Last Modified:

How to shrink virtual disk on XenServer?

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
MichaelBalack
Asked:
MichaelBalack
  • 2
1 Solution
 
Niten KumarPrincipal Systems AdministratorCommented:
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
 
MichaelBalackAuthor Commented:
Hi nitenKumar,

Thanks for your prompted suggestion. Please give me some time to read through, thanks.
0
 
MichaelBalackAuthor Commented:
Thanks for Expert - Niten, in sharing his suggestion. This method rocks.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now