Tag Archive: xenserver


While building my XenServer farm I had a couple servers die on me, requiring XenServer to be re-installed. This left the local storage, DVD & removable storage from each dead server dangling in the pool. They show up in XenCenter as greyed out repositories.

To get the GUID of the dangling SR’s run this command from any host in the pool:

xe sr-list –minimal params=uuid host=”<not in database>”

Then run this command using the GUID’s from the above command to remove them:

xe sr-forget uuid=%dangling-SR-GUID%

Repeat the command to remove each of your dangling storage repositories.

I needed to quickly add a second disk to a VM during our recent facility move and didn’t have time to create a new Storage Repository (SR). Now with some time to clean things up in my XenServer farm I wanted to move the disk to its own SR. I ended up being stumped when using the XenCenter console and needed to use the xe CLI. This page had the commands that I required to make the copy to the new SR. Just remember to use the vdi-uuid of the vdisk you want to move.

Best practices for deploying Citrix XenServer on HP StorageWorks P4000 SAN

This guide would have been good to find about a week ago. I’ll have to readjust my storage repositories to have 1 iSCSI LUN for each VM instead of 1 large storage repository for my resource pool. I wonder if I’ll be able to copy directly from the old LUN to each of the new LUNs?

Increase the size of your virtual disk

Now that I read the title of this post, it sounds a touch dirty…

I had created a couple generic Win2k8 R2 VMs last week with 25GB OS drives. I hadn’t decided which services would be running on the boxes and 25GB would be more than enough for most applications. The only problem was that I had decided to install Sharepoint 2010 Foundation on one and SQL 2008 R2 on the other and both require 80GB of disk space. Good thing XenServer 5.6 and Window Server 2008 R2 make it easy to increase the disk size.

In XenCenter 5.6 select the virtual disk from the storage tab of the virtual machine, click Properties, select Size and Location, then increase the size of the disk.

Super simple, eh? This feature has been available for quite some time, v4.1 I believe, via the CLI but was exposed to the GUI in v5.6.

Now you need to extend the partition in Windows. Right click My Computer select Manage, select Disk Management, right click on the disk you want to extend, and select Extend. This starts the Extend Volume Wizard. Follow the prompts to complete the process. By default Win2k8 R2 extends the partition to the maximum available space available. So this wizard is just about clicking next, next, finish.

Take a look at the Citrix KB article for more info and additional instructions for the CLI procedure and how to extend a partition in Linux operating systems.

Note: Windows 2003 and XP are not able to extend the partition while the OS is running. You need to attach the disk to another VM and use DiskPart to extend the volume.

Powered by WordPress | Theme: Motion by 85ideas | © 2006–2012 Dave Hildebrand | 59 queries in 6.340 seconds.