A journey of a thousand miles begins with a single step — Confucius
According to Citrix KB article, after deleting all snapshots or clones of a Vm, some disk space still remains allocated. In time this may become an issue, so here is a way to recover that disk space.
Note: The VM will need to be shutdown or suspended (actually, running the following command will suspend the VM anyway):
For Xen Server 5.5 update 1 and later:
coalesce-leaf –u <uuid of VM>
For Xen Server 5.6 and later:
xe host-call-plugin host-uuid=<host-UUID> plugin=coalesce-leaf fn=leaf-coalesce args:vm_uuid=<VM-UUID>
A small script (kudos to http://sysadminnotebook.blogspot.com/2011/07/reclaim-disk-space-from-deleted.html) to automate the process if you need:
#!/bin/bash
MASTER=$(xe pool-list params=master | egrep -o “[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}”)
RUNNING_VMS=$(xe vm-list is-control-domain=false power-state=running params=uuid | egrep -o “[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}”)
for VM in $RUNNING_VMS; do
xe host-call-plugin host-uuid=$MASTER plugin=coalesce-leaf fn=leaf-coalesce args:vm_uuid=$VM
done
Here is a quick command to create some CPU load (courtesy to http://it.toolbox.com/blogs/david/simulate-load-on-your-linux-server-using-a-oneliner-26150):
dd if=/dev/zero bs=100M | gzip | gzip -d | gzip | gzip -d | gzip | gzip -d > /dev/null &
The situation:
Because of the non paged memory pool limit of 256MB on the Windows 32 bit systems, I wasn’t able to use Virtuozzo for Windows on dedicated systems with more than 8GB. This translated into a large volume of work related to build and deploy the dedicated systems. In addition, around 2GB of memory was never being use which is a waste.
I was desperately trying to download this tool a few days ago from the project page which is hosted at Sourceforge now and it continuously failed.
So, here is a local link for the qmhandle tool.
Long story short – we need to increase the disk space on a Linux VM in Citrix XenServer. Here is how it can be done in general steps – for technical people that know Linux pretty well. If the following steps don’t ring a bell to you, DO NOT proceed. Check on Google as there are plenty of howtos with screenshots and more details. In either case, it’s indicated to have a backup. Better safe then sorry…
Parallels fails badly at providing easy access to its free downloads by asking the user to “register” every time when it tries to get those downloads. This is really annoying, especially when you’re in a hurry installing Plesk or Virtuozzo. However, the downloads are still free so here are the direct links: