<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xenserver &#8211; Carl Webster</title>
	<atom:link href="https://www.carlwebster.com/tag/xenserver/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.carlwebster.com</link>
	<description>The Accidental Citrix Admin - The site for those who find themselves supporting Citrix involuntarily or accidentally</description>
	<lastBuildDate>Sat, 29 May 2021 15:23:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
<site xmlns="com-wordpress:feed-additions:1">42228915</site>	<item>
		<title>Adding an SSD Storage Device to Citrix XenServer</title>
		<link>https://www.carlwebster.com/adding-an-ssd-storage-device-to-citrix-xenserver/</link>
					<comments>https://www.carlwebster.com/adding-an-ssd-storage-device-to-citrix-xenserver/#comments</comments>
		
		<dc:creator><![CDATA[Carl Webster]]></dc:creator>
		<pubDate>Sat, 18 Jun 2011 20:34:33 +0000</pubDate>
				<category><![CDATA[XenServer]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[xenserver]]></category>
		<guid isPermaLink="false">http://webster.skyrocket.ltd/?p=860</guid>

					<description><![CDATA[[Update 26Mar2019. See Updated section below.] Note: This still works for XenServer 8.2 In the process of creating Virtual Machines (VMs) for labs for a customer, I needed to have&#8230;]]></description>
										<content:encoded><![CDATA[<p><strong>[Update 26Mar2019. See Updated section below.]</strong></p>
<p><strong>Note: This still works for XenServer 8.2</strong></p>
<p>In the process of creating Virtual Machines (VMs) for labs for a customer, I needed to have 10VMs running at the same time.  My XenServer host uses a 1.5TB local SATA drive for VM storage and an iSCSI storage server.  I can’t use the storage server for these VMs as I will be taking my lab XenServer to the customer site and I don’t want to take two very heavy full tower servers.  After getting the eighth VM running, my XenServer host was begging for mercy.  The local SATA bus was being saturated with disk traffic.  Since I need to have 10 VMs running I needed a solution fast.  I ordered a Solid State Device (SSD) storage drive to put in the XenServer host.  Since I am not a Linux geek, I decided to document what I had to do to make the SSD drive available for exclusive use by XenServer 5.6 SP2.</p>
<p>From XenCenter, click on the <em>Console</em> tab and press <em>Enter</em> (Figure 1).</p>
<figure id="attachment_14572" aria-describedby="caption-attachment-14572" style="width: 500px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure001.png" target="_blank" rel="noopener"><img fetchpriority="high" decoding="async" class="wp-image-14572 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure001.png" alt="Figure 1" width="500" height="148" /></a><figcaption id="caption-attachment-14572" class="wp-caption-text">Figure 1</figcaption></figure>
<p><strong>Note:</strong>  Thanks to Denis Gundarev for his help with the following Linux commands.</p>
<p>From the console prompt, type <strong>fdisk &#8211;l</strong> (that is a lower case letter “L”).  This will list all the drives and partitions that XenServer sees (Figure 2).</p>
<p><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure002-1.png" target="_blank" rel="noopener"><img decoding="async" class="alignnone wp-image-14573 size-full" style="font-weight: bold; font-size: 0.8125rem;" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure002-1.png" alt="Figure 2" width="640" height="382" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure002-1.png 640w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure002-1-503x300.png 503w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure002-1-600x358.png 600w" sizes="(max-width: 640px) 100vw, 640px" /></a></p>
<p>Figure 2</p>
<p>My new SSD drive is shown as <strong>Disk /dev/sdb</strong>.  The original drive where XenServer is installed shows as Disk /dev/sda.  The external USB drive is 2TB and shows as Disk /dev/sdc .  The following commands will use my drive’s /dev/sdb designation.  The commands to type are in <strong>bold</strong> and comments about those commands are in square brackets <strong><em>[]</em></strong> following the commands.  You should <strong>not</strong> type the comments.</p>
<p>[root@XenServer1 ~]# <strong>fdisk /dev/sdb</strong><br />
Device contains neither a valid DOS partition table nor Sun, SGI, or OSF disklabel<br />
Building a new DOS disklabel. Changes will remain in memory only<br />
until you decide to write them. After that, of course, the previous<br />
content won&#8217;t be recoverable.</p>
<p>The number of cylinders for this disk is set to 36481.<br />
There is nothing wrong with that, but this is larger than 1024,<br />
and could in certain setups cause problems with:<br />
1) software that runs at boot time (e.g., old versions of LILO)<br />
2) booting and partitioning software from other OSs<br />
(e.g., DOS FDISK, OS/2 FDISK)<br />
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)</p>
<p>Command (m for help): <strong>n <em>[new partition]</em></strong><br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
<strong>p <em>[make the partition a primary partition]</em></strong><br />
Partition number (1-4): <strong>1 <em>[partition number 1]</em></strong><br />
First cylinder (1-36481, default 1):<br />
Using default value 1<br />
Last cylinder or +size or +sizeM or +sizeK (1-36481, default 36481):<br />
Using default value 36481</p>
<p>Command (m for help): <strong>t <em>[change file system type]</em></strong><br />
Selected partition 1<br />
Hex code (type L to list codes): <strong>83 <em>[83 is the Linux file system]</em></strong></p>
<p>Command (m for help): <strong>w <em>[write partition table]</em></strong><br />
The partition table has been altered!</p>
<p>Calling ioctl() to re-read partition table.<br />
Syncing disks.<br />
[root@XenServer1 ~]# <strong>mkfs.ext3 /dev/sdb1 <em>[format partition]</em></strong><br />
mke2fs 1.39 (29-May-2006)<br />
Filesystem label=<br />
OS type: Linux<br />
Block size=4096 (log=2)<br />
Fragment size=4096 (log=2)<br />
36634624 inodes, 73258400 blocks<br />
3662920 blocks (5.00%) reserved for the super user<br />
First data block=0<br />
Maximum filesystem blocks=0<br />
2236 block groups<br />
32768 blocks per group, 32768 fragments per group<br />
16384 inodes per group<br />
Superblock backups stored on blocks:<br />
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,<br />
4096000, 7962624, 11239424, 20480000, 23887872, 71663616</p>
<p>Writing inode tables: done<br />
Creating journal (32768 blocks): done<br />
Writing superblocks and filesystem accounting information: done</p>
<p>This filesystem will be automatically checked every 25 mounts or<br />
180 days, whichever comes first.  Use tune2fs -c or -i to override.<br />
[root@XenServer1 ~]# <strong>xe sr-create type=ext shared=false device-config:device=/dev/sdb1 name-label=SSD <em>[create Storage Repository]</em></strong></p>
<p><strong>[Update 26Mar2019: In later versions of XenServer (I am using 7.6), there is an additional required parameter.</strong></p>
<p style="padding-left: 40px;"><strong>xe sr-create type=ext shared=false device-config:device=/dev/sdb1 name-label=SSD host-uuid=f87f5b5f-a079-444f-849a-1de9513a60e9 </strong></p>
<p style="padding-left: 40px;"><strong>The host&#8217;s UUID is found on the General tab. You can right-click the UUID value and copy it to the clipboard.]</strong></p>
<p>Once the Storage Repository (SR) is created, it is available in XenCenter in the <em>Storage </em>tab (Figure 3).  Creating the new SR on the SSD drive took about 30 seconds.</p>
<figure id="attachment_14574" aria-describedby="caption-attachment-14574" style="width: 805px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003.png" target="_blank" rel="noopener"><img decoding="async" class="wp-image-14574 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003.png" alt="Figure 3" width="805" height="282" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003.png 805w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003-530x186.png 530w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003-768x269.png 768w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure003-600x210.png 600w" sizes="(max-width: 805px) 100vw, 805px" /></a><figcaption id="caption-attachment-14574" class="wp-caption-text">Figure 3</figcaption></figure>
<p>Select the SSD SR in the Server View and click <em>Add…</em> (Figure 4).</p>
<figure id="attachment_14575" aria-describedby="caption-attachment-14575" style="width: 507px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure004.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14575 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure004.png" alt="Figure 4" width="507" height="677" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure004.png 507w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure004-225x300.png 225w" sizes="auto, (max-width: 507px) 100vw, 507px" /></a><figcaption id="caption-attachment-14575" class="wp-caption-text">Figure 4</figcaption></figure>
<p>Enter a <em>Name, Description, Size</em>, select <em>SSD</em> and click <em>Add</em> (Figure 5).</p>
<figure id="attachment_14576" aria-describedby="caption-attachment-14576" style="width: 592px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure005.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14576 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure005.png" alt="Figure 5" width="592" height="400" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure005.png 592w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure005-444x300.png 444w" sizes="auto, (max-width: 592px) 100vw, 592px" /></a><figcaption id="caption-attachment-14576" class="wp-caption-text">Figure 5</figcaption></figure>
<p>The new Virtual Disk appears in XenCenter with no VM assigned (Figure 6).</p>
<figure id="attachment_14577" aria-describedby="caption-attachment-14577" style="width: 780px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14577 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006.png" alt="Figure 6" width="780" height="159" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006.png 780w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006-530x108.png 530w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006-768x157.png 768w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure006-600x122.png 600w" sizes="auto, (max-width: 780px) 100vw, 780px" /></a><figcaption id="caption-attachment-14577" class="wp-caption-text">Figure 6</figcaption></figure>
<p>To verify the new storage repository and its new virtual disk are available to a VM, select any VM, click the <em>Storage</em> tab and click <em>Add…</em> (Figure 7).</p>
<figure id="attachment_14579" aria-describedby="caption-attachment-14579" style="width: 518px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure007-1.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14579 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure007-1.png" alt="Figure 7" width="518" height="493" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure007-1.png 518w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure007-1-315x300.png 315w" sizes="auto, (max-width: 518px) 100vw, 518px" /></a><figcaption id="caption-attachment-14579" class="wp-caption-text">Figure 7</figcaption></figure>
<p>The SSD SR shows as available to add a new virtual disk to the selected VM (Figure 8).</p>
<figure id="attachment_14580" aria-describedby="caption-attachment-14580" style="width: 592px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure008.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14580 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure008.png" alt="Figure 8" width="592" height="400" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure008.png 592w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure008-444x300.png 444w" sizes="auto, (max-width: 592px) 100vw, 592px" /></a><figcaption id="caption-attachment-14580" class="wp-caption-text">Figure 8</figcaption></figure>
<p>Click <em>Cancel</em>.  The new SSD-based storage repository and its new virtual disk are ready for use.</p>
<p>After adding the SSD drive, I was able to create the other two VMs needed for the labs (Figure 9).  Now to test how much better performance for VM startup time is.  I started the Domain Controller, waited until the log-in screen (87 seconds), started the SQL server, waited until the log-in screen (37 seconds), selected all eight remaining VMs, and clicked <em>Start</em> on the menu bar.  53-seconds later the last VM was at the login screen.</p>
<figure id="attachment_14581" aria-describedby="caption-attachment-14581" style="width: 746px" class="wp-caption alignnone"><a href="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure009.png" target="_blank" rel="noopener"><img loading="lazy" decoding="async" class="wp-image-14581 size-full" src="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure009.png" alt="Figure 9" width="746" height="530" srcset="https://www.carlwebster.com/wp-content/uploads/2011/06/Figure009.png 746w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure009-422x300.png 422w, https://www.carlwebster.com/wp-content/uploads/2011/06/Figure009-600x426.png 600w" sizes="auto, (max-width: 746px) 100vw, 746px" /></a><figcaption id="caption-attachment-14581" class="wp-caption-text">Figure 9</figcaption></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://www.carlwebster.com/adding-an-ssd-storage-device-to-citrix-xenserver/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">860</post-id>	</item>
	</channel>
</rss>
