<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to resize your SR in Xen</title>
	<atom:link href="http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/feed" rel="self" type="application/rss+xml" />
	<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen</link>
	<description>Technical stuff (coding/hosting/ASP/PHP) and about life (photos/stories)</description>
	<lastBuildDate>Sun, 05 Sep 2010 12:58:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: bofh42</title>
		<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/comment-page-1#comment-13587</link>
		<dc:creator>bofh42</dc:creator>
		<pubDate>Tue, 30 Jun 2009 15:44:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/#comment-13587</guid>
		<description>copy &amp; past template for the job, jut set your SR name

# resize the lun on the iscsi server

# replace  in the next line
SR2GROW=`xe sr-list params=uuid name-label= &#124; awk &#039;{ print $NF }&#039;`

# find devices to resize
DEV2GROW=`pvscan &#124; grep $SR2GROW &#124; awk &#039;{ print $2 }&#039;`

# scan for resized devices
iscsiadm -m node -R

# do the resize
for dev in $DEV2GROW ; do
    pvresize $dev
done

# tell xenapi to look for the new LVM size
xe sr-scan uuid=${SR2GROW}</description>
		<content:encoded><![CDATA[<p>copy &amp; past template for the job, jut set your SR name</p>
<p># resize the lun on the iscsi server</p>
<p># replace  in the next line<br />
SR2GROW=`xe sr-list params=uuid name-label= | awk &#8216;{ print $NF }&#8217;`</p>
<p># find devices to resize<br />
DEV2GROW=`pvscan | grep $SR2GROW | awk &#8216;{ print $2 }&#8217;`</p>
<p># scan for resized devices<br />
iscsiadm -m node -R</p>
<p># do the resize<br />
for dev in $DEV2GROW ; do<br />
    pvresize $dev<br />
done</p>
<p># tell xenapi to look for the new LVM size<br />
xe sr-scan uuid=${SR2GROW}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart</title>
		<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/comment-page-1#comment-13551</link>
		<dc:creator>Bart</dc:creator>
		<pubDate>Thu, 25 Jun 2009 11:39:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/#comment-13551</guid>
		<description>For resizing without reboot, first run the command:
iscsiadm -m node -R

This will rescan the iSCSI devices and detect the new sizes. 

After this, you continue with pvresize &amp; sr-scan.</description>
		<content:encoded><![CDATA[<p>For resizing without reboot, first run the command:<br />
iscsiadm -m node -R</p>
<p>This will rescan the iSCSI devices and detect the new sizes. </p>
<p>After this, you continue with pvresize &amp; sr-scan.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JTY</title>
		<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/comment-page-1#comment-3025</link>
		<dc:creator>JTY</dc:creator>
		<pubDate>Sat, 26 Apr 2008 03:37:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/#comment-3025</guid>
		<description>I had to reboot my Xen server before running pvresize. Otherwise, it didn&#039;t recognize the increased disk space. Likely because Open-iSCSI needs to reconnect to see the larger LUN.</description>
		<content:encoded><![CDATA[<p>I had to reboot my Xen server before running pvresize. Otherwise, it didn&#8217;t recognize the increased disk space. Likely because Open-iSCSI needs to reconnect to see the larger LUN.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlos Taborda</title>
		<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/comment-page-1#comment-1734</link>
		<dc:creator>Carlos Taborda</dc:creator>
		<pubDate>Fri, 11 Apr 2008 21:52:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/#comment-1734</guid>
		<description>for some reason, it didnt do anything for me (ctaborda at lansyx.com) Let me know if you could give me some help.

I had a 250gb LUN, and expanded it to 750GB, I am now trying to expand my SR as well.

I did the following :

# xe sr-list name-label=XenContainer
uuid ( RO)                : c12f813c-8e4c-b04f-4872-0930c8b84f51
          name-label ( RW): XenContainer
    name-description ( RW):
                type ( RO): lvm
        content-type ( RO): user


# pvscan &#124; grep c12f813c-8e4c-b04f-4872-0930c8b84f51
  PV /dev/dm-3   VG VG_XenStorage-c12f813c-8e4c-b04f-4872-0930c8b84f51   lvm2 [249.99 GB / 79.99 GB free]

# pvresize /dev/dm-3
  Physical volume &quot;/dev/dm-3&quot; changed
  1 physical volume(s) resized / 0 physical volume(s) not resized

# xe sr-scan uuid=c12f813c-8e4c-b04f-4872-0930c8b84f51
#

After this, I check within XenCenter and I still see my SR as 250g! I would love some help. Also, am I safe from loosing data by doingthis?

Thanks,</description>
		<content:encoded><![CDATA[<p>for some reason, it didnt do anything for me (ctaborda at lansyx.com) Let me know if you could give me some help.</p>
<p>I had a 250gb LUN, and expanded it to 750GB, I am now trying to expand my SR as well.</p>
<p>I did the following :</p>
<p># xe sr-list name-label=XenContainer<br />
uuid ( RO)                : c12f813c-8e4c-b04f-4872-0930c8b84f51<br />
          name-label ( RW): XenContainer<br />
    name-description ( RW):<br />
                type ( RO): lvm<br />
        content-type ( RO): user</p>
<p># pvscan | grep c12f813c-8e4c-b04f-4872-0930c8b84f51<br />
  PV /dev/dm-3   VG VG_XenStorage-c12f813c-8e4c-b04f-4872-0930c8b84f51   lvm2 [249.99 GB / 79.99 GB free]</p>
<p># pvresize /dev/dm-3<br />
  Physical volume &#8220;/dev/dm-3&#8243; changed<br />
  1 physical volume(s) resized / 0 physical volume(s) not resized</p>
<p># xe sr-scan uuid=c12f813c-8e4c-b04f-4872-0930c8b84f51<br />
#</p>
<p>After this, I check within XenCenter and I still see my SR as 250g! I would love some help. Also, am I safe from loosing data by doingthis?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Norman</title>
		<link>http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/comment-page-1#comment-216</link>
		<dc:creator>Ben Norman</dc:creator>
		<pubDate>Fri, 11 Jan 2008 06:21:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.roelbroersma.nl/index.php/2007/11/03/how-to-resize-your-sr-in-xen/#comment-216</guid>
		<description>Hi Roel, Thanks for the help.  I used the same commands for a shared Fibre Channel San Storage.  Worked a treat.  Just a quick note for anyone using the xe sr-scan command to make sure you add the uuid at the end as below.

xe sr-scan uuid=

Cheers
Ben</description>
		<content:encoded><![CDATA[<p>Hi Roel, Thanks for the help.  I used the same commands for a shared Fibre Channel San Storage.  Worked a treat.  Just a quick note for anyone using the xe sr-scan command to make sure you add the uuid at the end as below.</p>
<p>xe sr-scan uuid=</p>
<p>Cheers<br />
Ben</p>
]]></content:encoded>
	</item>
</channel>
</rss>
