{"id":1113,"date":"2013-07-16T09:29:21","date_gmt":"2013-07-16T14:29:21","guid":{"rendered":"http:\/\/it.thelibrarie.com\/weblog\/?p=1113"},"modified":"2013-10-30T08:49:22","modified_gmt":"2013-10-30T13:49:22","slug":"extend-lun-iscsi-citrix-xenserver","status":"publish","type":"post","link":"https:\/\/it.thelibrarie.com\/weblog\/2013\/07\/extend-lun-iscsi-citrix-xenserver\/","title":{"rendered":"Extend LUN iSCSI Citrix XenServer"},"content":{"rendered":"<p>I have a pair of xenservers connected via 10Gb Ethernet to a pair of Equalogics SAN devices (iscsi).  Needed to expand or increase the size of the LUN that our VDI environment was connected through while maintaining the uptime of the VDI environment.  I first extended the available space on the SAN side, so this document is only for the Citrix\/XenServer configuration.<\/p>\n<p><strong>Connect to your XenServer<\/strong><br \/>\nSSH to your master server (or primary if you only have one) as root<br \/>\nYou can either list all of your available storage or, if you know what type, you can list only iscsi.  In my case I&#8217;d list the iscsi, but both commands are listed below.<\/p>\n<p><strong>List all storage<\/strong><br \/>\n<code>xe sr-list<\/code><\/p>\n<p><strong>List only iscsi storage<\/strong><br \/>\n<code>xe sr-list type=lvmoiscsi<\/code><\/p>\n<p><strong>List only the SR you want<\/strong><br \/>\n<code>xe sr-list name-label=YOURSR<\/code><\/p>\n<p>From here we&#8217;ll see something like:<\/p>\n<blockquote><p>uuid ( RO)                : 6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0<br \/>\n          name-label ( RW): EXT_VDI<br \/>\n    name-description ( RW): iSCSI SR [10.10.10.10 (iqn.2001-05.com.equallogic:0-1db196-0d76a8743-a05b26ff2g651be5-extvdi; LUN 0: 6019DA3174A8760DE51A652DEE265BA0: 1500 GB (EQLOGIC))]<br \/>\n                host ( RO): <shared><br \/>\n                type ( RO): lvmoiscsi<br \/>\n        content-type ( RO):<\/p><\/blockquote>\n<p>We want the UUID from this step &#8211; and notice the size (1500 GB).  I wanted to make this 2500GB instead.<\/p>\n<p><strong>Now we need to find the device location for this LVM<\/strong><br \/>\n<code>pvscan | grep THEUUIDFROMABOVE<\/code><br \/>\n<code>pvscan | grep 6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0<\/code><\/p>\n<blockquote><p>  PV \/dev\/sdj    VG VG_XenStorage-6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0   lvm2 [1.50 TB \/ 688.85 GB free]<\/p><\/blockquote>\n<p><strong>Rescan the device &#8211; change &#8220;sdj&#8221; to your dev device name from the last step<\/strong><br \/>\n<code>echo 1 > \/sys\/block\/sdj\/device\/rescan<\/code><\/p>\n<p><strong>Next we resize the device<\/strong><br \/>\n<code>pvresize \/dev\/sdj<\/code><\/p>\n<p><strong>And one last rescan<\/strong><br \/>\n<code>xe sr-scan uuid=THEUUIDOFYOURDEVICE<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have a pair of xenservers connected via 10Gb Ethernet to a pair of Equalogics SAN devices (iscsi). Needed to expand or increase the size of the LUN that our VDI environment was connected through while maintaining the uptime of the VDI environment. I first extended the available space on the SAN side, so this &hellip; <a href=\"https:\/\/it.thelibrarie.com\/weblog\/2013\/07\/extend-lun-iscsi-citrix-xenserver\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Extend LUN iSCSI Citrix XenServer<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-1113","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":3,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"predecessor-version":[{"id":1150,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/posts\/1113\/revisions\/1150"}],"wp:attachment":[{"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/it.thelibrarie.com\/weblog\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}