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.
Connect to your XenServer
SSH to your master server (or primary if you only have one) as root
You can either list all of your available storage or, if you know what type, you can list only iscsi. In my case I’d list the iscsi, but both commands are listed below.
List all storage
xe sr-list
List only iscsi storage
xe sr-list type=lvmoiscsi
List only the SR you want
xe sr-list name-label=YOURSR
From here we’ll see something like:
uuid ( RO) : 6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0
name-label ( RW): EXT_VDI
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))]
host ( RO):
type ( RO): lvmoiscsi
content-type ( RO):
We want the UUID from this step – and notice the size (1500 GB). I wanted to make this 2500GB instead.
Now we need to find the device location for this LVM
pvscan | grep THEUUIDFROMABOVE
pvscan | grep 6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0
PV /dev/sdj VG VG_XenStorage-6f16bb1c-1a3d-b9d3-98d4-7b57b30934c0 lvm2 [1.50 TB / 688.85 GB free]
Rescan the device – change “sdj” to your dev device name from the last step
echo 1 > /sys/block/sdj/device/rescan
Next we resize the device
pvresize /dev/sdj
And one last rescan
xe sr-scan uuid=THEUUIDOFYOURDEVICE