XenServer 5.0 : Configuration d'un XenServer avec du matériel SUN

From Deimos.fr / Bloc Notes Informatique
Jump to: navigation, search

1 Introduction

To perform installation on multiple XenServer, I needed to set multiple hardware connected on Fiber channel. I did 2 installations, boths with this kind of hardware :

  • SUN X4150
  • SUN X4600
  • SUN StorageTek ST2540
  • SUN StorageTek ST6140

2 Hardware Connectivity

To setup connectivity, I used fiber channel. To make it work, you need to have Fiber Channel Switch and if it's possible, redundancy (so, 2 switches).

Having this kind of configuration make a lot of multipath links. This is very good for fault tolerance and load balancing.

3 Lun Configuration

To have all paths actives for the multipahing, you need to present your LUN in a specific format to your XenServers. Simply connect on the disk array with CAM (Common Array Manager), select the LUN (or go in Administratration to set all the LUN) and set the host type : Windows 2000/Server 2003 non-clustered (with Veritas DMP).

4 Multipathing configuration

By default, no preconfigured device is set to multipath configuration for SUN hardware. That's why we need to change the default configuration to add configuration of the StorageTek.

4.1 SUN StorageTek ST2540

Add those lines to the /etc/multipath.conf configuration file :

Configuration File /etc/multipath.conf
        device {
                vendor "SUN"
                product "LCSM100_F"
                getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
                prio_callout "/sbin/mpath_prio_rdac /dev/%n"
                features "0"
                hardware_handler "1 rdac"
                path_grouping_policy group_by_prio
                failback immediate
                rr_weight uniform
                no_path_retry queue
                rr_min_io 1000
                path_checker rdac
        }

4.2 SUN StorageTek ST6140 or ST6540

Add those lines to the /etc/multipath.conf configuration file :

Configuration File /etc/multipath.conf
        device {
                vendor "SUN"
                product "CSM200_R"
                getuid_callout "/sbin/scsi_id -g -u -s /block/%n"
                prio_callout "/sbin/mpath_prio_rdac /dev/%n"
                features "0"
                hardware_handler "1 rdac"
                path_grouping_policy group_by_prio
                failback immediate
                rr_weight uniform
                no_path_retry queue
                rr_min_io 1000
                path_checker rdac
        }

5 Refresh configuration

Now you need to restart multipathd deamon or to reboot your servers for changes to take effect.

6 FAQ

6.1 I applyied a Xen Update Hotfix and my San is not reconized anymore

Reapply the configuration to your multipath. Each updates will erase it.

7 References

http://forums.citrix.com/thread.jspa?threadID=241199&tstart=0
http://support.citrix.com/article/ctx118791