by Constantin (staff) » Fri Mar 26, 2010 2:19 pm
Manual to connect HA to XEN.
Configure XenServer Host for Multipath
1. From XenCenter GUI configure XenServer Pool and add Servers.
2. Edit the ‘/etc/multipath-enabled.conf’ file on each XenServer host
Important Note: ‘/etc/mutipath.conf’ is a soft link that points to ‘/etc/multipath-enabled.conf’
Find the first defaults section in the file. It will be the uncommented defaults section at the beginning of the file. Within this section, copy the “polling_interval” line from the second defaults section which is commented out with hash (#) symbols at the beginning of the line and then remove the #.
For example, when you are finished, it will look like this: defaults {
user_friendly_names no polling_interval 10
}
Enable the Multi-pathing support on each XenServer host from the XenCenter GUI:
3. Put the XenServer host in maintenance mode
4. Click on general > properties > multi-pathing
5. Select “enable multi-pathing”
6. Exit maintenance mode
Then to continue the prep I do the following (and this is the key, logging into the targets from the command line): Up to step 7 is critical after that is more about making sure you reconnect on reboot
Configure the Software iSCSI Initiator to Login to the StarWind`s Targets
1. From the XenCenter GUI, click on the XenServer Host name then click on the console tab and login as root.
2. Edit ‘/etc/iscsi/iscsid.conf’ (Note: for XenServer 5.5 Edit ‘/etc/iscsi/iscsid-mpath.conf’) file as follows:
In the iSCSI settings section, uncomment the following line by removing the ‘#’: node.session.iscsi.ImmediateData = No
In the iSCSI settings section, comment out the following line by adding a ‘#’ at the beginning: #node.session.iscsi.ImmediateData = Yes
3. Edit ‘/etc/iscsi/initiatorname.iscsi’ file and add the following arguments on separate lines as follows: InitiatorName= <iqn name of XenServer Host>
For example: InitiatorName=iqn.2007-11.example.com:1c677f65
This iqn name can be found in the XenCenter Console General tab.
InitiatorAlias= <XenServer Host Name> – this is the network name of your XenServer Host For example:
InitiatorAlias=xenserver-2
4. Start the iscsi daemon by typing the following command on the XenServer console:
service open-iscsi restart
5. To get open-iscsi to automatically start at run time, enter:
chkconfig --level 3 open-iscsi on
6. Discover targets by entering the following command for each target. Repeat this step for every Storage Server target that will serve storage to the XenServer host pool:
iscsiadm –m discovery –t sendtargets –p <ip address of iscsi target>
7. Login to targets by entering:
iscsiadm –m node –L all
8. Automate target logins for future system startups by entering the following for each target.
iscsiadm -m node –T <targetname> -p <ip address of iscsi target>:<listening \
port> --op update -n node.conn[0].startup -v automatic
For example:
/etc/iscsiadm -m node –T iqn.2000-08.com.starwind:titan-1 -p 172.168.8.80:3260 \ --op update –n node.conn[0].startup -v automatic
9. Edit ‘/etc/rc.d/rc.local’ and add the following lines at the end of the file: sleep 30
iscsiadm --mode node --loginall=all
10. Start the iscsi daemon by typing the following command on the XenServer console:
service open-iscsi restart
11. Repeat the above steps for every XenServer Host in the Pool.
This manual can be used for Xen 5.5 only!
Constantin Videnski
StarWind Software Support Department
support at starwindsoftware dot com