This article provides step-by-step instructions on how to create and
attach a VPSA block volume with Citrix Hypervisor using iSCSI connectivity.
This article scribe two ways to do so: GUI using Citrix XenCenter, and CLI using Citrix xe commands.
1. Identify the Citrix Hypervisor server(s) iSCSI IQN
Fron the Citrix XenCenter, highlight the Hypervisor server. iSCSI IQN can be found on the General tab
Another way to identify the Citrix Hypervisor server(s) iSCSI IQN is by using CLI.
Highlight the Hypervisor server, and on the Console tab, type:
cat /etc/iscsi/initiatorname.iscsi
In this example, iSCSI initiator name is : iqn.2020-05.com.example:431bc440
2. Create a server record and attach block volume on the Zadara VPSA
2.1 On the Zadara VPSA GUI, highlight Servers, then press Add, and select Manuel
On the Create Server windows , enter the following:
- Citrix Hypervisor server name
- Linux as OS type
- Citrix Hypervisor server's iSCSI IQN
Press Create and Yes to confirm.
2.2 Create a Block Volume on the Zadara VPSA
On the Zadara VPSA GUI, highlight Volumes , the press Create, and select Create Block Volume
On the Create Block Volume windows , enter Volume name and Capacity
Press Submit and Yes to confirm.
2.3 Attach the the Block Volume to the server
On the Zadara VPSA GUI, highlight Volumes , the press Servers, and select Attache to Server(s)
On the Attach Volume to Server(s) windows, select the Citrix Hypervisor server record
Press Submit and Yes to confirm.
3. Create new Storage Repository (SR) on the XenCenter GUI
On the Citrix XenCenter press New Storage
Select iSCSI for the SR Type and press Next
Give the new SR a name, and press Next
Select Full provisioning (LVM), and press Next
on the Location, enter target VPSA IP address , check the Use CHAP authentication check box and enter the server record CHAP username and password
The CHAP username and password for Server record can be found on the VPSA GUI
Highlight the Servers then the server record name, the CHAP username and Password can be found on the properties pane
After entering the CHAP username and password press Scan Target Host, Select the Target IQN and the Target LUN for the new SR
Press Finish
The new SR will appear on the Citrix XenCenter GUI
4. Create new Storage Repository (SR) using Citrix xe CLI
SSH to the Citrix Hypervisor server and login as root
run the following to check the target iSCSI IQN
xe sr-probe type=lvmoiscsi device-config:target=172.31.10.2
run the following to check the LUN SCSI ID that attached to the target iSCSI IQN
xe sr-probe type=lvmoiscsi device-config:target=172.31.10.2 device-config:targetIQN="iqn.2011-04.com.zadarastorage:vsa-00000035:1" device-config:chapuser=Citrix_Lab device-config:chappassword=ZA9pWEk7HyuJ
Run the following to create a new Storage Repository with the name iscsi_SR01 on LUN ID 23135313566383436
xe sr-create type=lvmoiscsi device-config:target=172.31.10.2 device-config:targetIQN="iqn.2011-04.com.zadarastorage:vsa-00000035:1" device-config:chapuser=Citrix_Lab device-config:chappassword=ZA9pWEk7HyuJ device-config:LUNid=0 device-config:SCSIid=23135313566383436 name-label=iscsi_SR01 shared=true
The new SR will appear on the Citrix XenCenter GUI