XenServer Storage Deep Dive

44
XenServer Storage Integration Deep Dive

Transcript of XenServer Storage Deep Dive

Page 1: XenServer Storage Deep Dive

XenServerStorage Integration Deep DiveXenServerStorage Integration Deep Dive

Page 2: XenServer Storage Deep Dive

2© 2009 Citrix Systems, Inc. — All rights reserved

Agenda

XenServer 5.5 Storage Architecture

Multipathing

Vendor Integration

StorageLink

Page 3: XenServer Storage Deep Dive

3© 2009 Citrix Systems, Inc. — All rights reserved

EnterpriseEdition

Platinum Edition

FreeEdition

XenServer

Essentials

Shared Storage (iSCSI, FC, NFS)

XenCenter Management

64bit, Windows, Linux Workloads

Live Migration (XenMotion)

No socket restriction

High Availability

StorageLinkTM

Provisioning Services (p+v)

Lab Management

Performance Monitoring

Citrix XenServer & Essentials 5.5 Family

Active Directory Integration

Generic Storage Snapshotting

Provisioning Services (virtual)

Stage Management

Workload Balancing

Workflow Studio Orchestration

NEW

NEW

NEW

Page 4: XenServer Storage Deep Dive

XenServer 5.5 Storage ArchitectureXenServer 5.5 Storage Architecture

Page 5: XenServer Storage Deep Dive

5© 2009 Citrix Systems, Inc. — All rights reserved

Expanded Backup Support

Page 6: XenServer Storage Deep Dive

6© 2009 Citrix Systems, Inc. — All rights reserved

Storage Technologies

Storage Repository

LUN

LVM Volume Group

LVMLogicalVolume

LVMLogicalVolume

Storage Repository

Filesystem

.VHDfile

.VHDfile

Storage Repository

LUN

LVM Volume Group

LVMLogicalVolume

LVMLogicalVolume

VHD header VHD header

XenServer 5.0 / 5.5NFS / EXT3

XenServer 5.0 iSCSI / FC

XenServer 5.5 iSCSI / FC

VM virtual disk

Page 7: XenServer Storage Deep Dive

7© 2009 Citrix Systems, Inc. — All rights reserved

LVM XenServer 5.5 (LVHD)

• Replaces LVM for SRs

• Hosts VHD files directly on LVM volumes

• Best of both worlds• Features of VHD• Performance of LVM

• Adds Advanced Storage features• Fast Cloning• Snapshots

• Fast and simple upgrade

• Backwards compatible

Page 8: XenServer Storage Deep Dive

MultipathingMultipathing

Page 9: XenServer Storage Deep Dive

11© 2009 Citrix Systems, Inc. — All rights reserved

Why using Multipathing?

• Path redundancy to storage

• Performance increase by load sharing algorithms

• Many fibre channel environments by default have multiple paths

FCHBA 2

FCHBA 1

XenServer FC Switches Storage Subsystem

LUN 1

LUN 1

Storage controller 1

Storage controller 2

LUN 1

LUN 1

LUN 1

Page 10: XenServer Storage Deep Dive

12© 2009 Citrix Systems, Inc. — All rights reserved

Enabling Multipathing

• xe host-param-set other-config:multipathing=true uuid=host_uuid

• xe host-param-set other-config:multipathhandle=dmp uuid=host_uuid

• Note: Do not enable multipathing by other ways (e.g. CLI)!!!

Page 11: XenServer Storage Deep Dive

13© 2009 Citrix Systems, Inc. — All rights reserved

XenServer supports 2 multipathing technologies

Device Mapper Multipathing (DMP) RDAC MPP (mppVhba)

Default yes no

XenServer version >= 5.04.1 CLI

>= 5.0 Update 2

Management by XenCenter yes no

Support wide storage range only LSI controller based storage

Driver / Daemon multipathd mppVhba driver

CLI path check multipath –ll mpputil

Configuration /etc/multipath-enabled.conf /etc/mpp.conf(requires execution of /opt/xensource/bin/update-initrd)

See details: http://support.citrix.com/article/ctx118791

Page 12: XenServer Storage Deep Dive

14© 2009 Citrix Systems, Inc. — All rights reserved

DMP vs RDAC MPP

• Check if RDAC MPP is running• lsmod | grep mppVhba

• „multipath –ll“ would show MD device as output (if DMP is active)

• Use only 1 technology• When RDAP MPP is running use it

• Otherwise use DMP

Page 13: XenServer Storage Deep Dive

15© 2009 Citrix Systems, Inc. — All rights reserved

MPP RDAC: Path check

• mpputilLun #0 - WWN: 600a0b80001fdf0800001d9c49b0caa1 ---------------- LunObject: present DevState: OPTIMAL

Controller 'A' Path -------------------- Path #1: LunPathDevice: present DevState: OPTIMAL

Path #2: LunPathDevice: present DevState: OPTIMAL

Controller 'B' Path -------------------- Path #1: LunPathDevice: present DevState: OPTIMAL

Path #2: LunPathDevice: present DevState: OPTIMAL

Page 14: XenServer Storage Deep Dive

16© 2009 Citrix Systems, Inc. — All rights reserved

DMP: Path check

• Monitoring using XenCenter

• Monitoring using CLI• Command: multipath -ll

Page 15: XenServer Storage Deep Dive

Multipathing & Software iSCSIMultipathing & Software iSCSI

Page 16: XenServer Storage Deep Dive

18© 2009 Citrix Systems, Inc. — All rights reserved

iSCSI with Software Initiator

• IP addressing to be done by XenServer Dom-0

• Multipathing also to be done by XenServer Dom-0

• Dom-0 IP configuration is essential

NIC 1

XenServer Switches Storage Subsystem

LUN 1

Storage LAN Ctrl 1

IP

LUN 1

XenServerDom-0

IPLUN

1LUN

1IP

Page 17: XenServer Storage Deep Dive

19© 2009 Citrix Systems, Inc. — All rights reserved

Best practice configuration: iSCSI storage with multipathing

• Separation of subnets also on IP base

NIC 2

NIC 1

XenServer FC Switches Storage Subsystem

LUN 1

Storage LAN

Adapter 1

Storage LAN

Adapter 2

Port 1 IP:192.168.1.201

Port 2 IP:192.168.2.201

Port 1 IP:192.168.1.202

Port 2 IP:192.168.2.202

NIC 1 IP:192.168.1.10

NIC 2 IP:192.168.2.10

Subnet:255.255.255.0

Subnet 1

Subnet 2

Page 18: XenServer Storage Deep Dive

20© 2009 Citrix Systems, Inc. — All rights reserved

Subnet 1

Not recommended configurations for multipathing and iSCSI:

NIC 2

NIC 1

XenServer

NIC 1 IP:192.168.1.10

NIC 2 IP:192.168.1.11

Both server NICs in same subnet

Subnet 1

NIC 2

NIC 1

XenServer

Team IP:192.168.1.10

Mixing of NIC teaming and multipathing

Page 19: XenServer Storage Deep Dive

21© 2009 Citrix Systems, Inc. — All rights reserved

Multipathing with Software InitiatorXenServer 5

• XenServer 5 supports Multipathing with iSCSI software initiator

• Prerequisites are:• iSCSI target uses same IQN on all ports

• iSCSI target ports operate in portal mode

• Multipathing reliability has been enhanced massively in XenServer 5.5

Page 20: XenServer Storage Deep Dive

22© 2009 Citrix Systems, Inc. — All rights reserved

How to check if iSCSI target operates in portal mode?

• Execute iscsiadm -m discovery --type sendtargets --portal <ip address of 1 target>

• Output must show alls IPs of the target ports with identical IQN• Example:

192.168.0.161:3260,1 iqn.strawberry:litchie192.168.0.204:3260,2 iqn.strawberry:litchie

• When connecting to iSCSI target using XenCenter Storage Repository Wizard, also all target IPs should show up after Discovery

Page 21: XenServer Storage Deep Dive

NetApp IntegrationNetApp Integration

Page 22: XenServer Storage Deep Dive

24© 2009 Citrix Systems, Inc. — All rights reserved

NetApp Storage

• NetApp Storage supports Multipathing

• For configuring NetApp storage and modification of multipath.conf see whitepaperhttp://support.citrix.com/article/CTX118842

• NetApp typically supports portal mode for iSCSI multipathing for iSCSI SW Initiator is supported

• Especially for low-end NetApp storage (e.g. FAS2020) with limited LAN adapters special considerations take place

Page 23: XenServer Storage Deep Dive

25© 2009 Citrix Systems, Inc. — All rights reserved

NetApp low-end storage (iSCSI)

• Often limited by NIC configuration

• Example: 2 NICs per head

• 1 aggregate / LUN is represented by 1 head at a time (other head for fault tolerance)

• Thus: 2 NICs effectively can be used for storage connection

• Typically Filer delivers non-block-based protocols (e.g. CIFS) which also require redundancy as well as block based protocols (e.g. iSCSI)

Page 24: XenServer Storage Deep Dive

26© 2009 Citrix Systems, Inc. — All rights reserved

iSCSI Network

NIC 1

NIC 0

NIC 0

NIC 1

Controller 0(active)

CIFS Network

NIC 0

NIC 1

Controller 1(fault tolerance)

Example FAS2020: Scenario 1no network reduncancy for iSCSI and CIFSseparation of networks

Page 25: XenServer Storage Deep Dive

27© 2009 Citrix Systems, Inc. — All rights reserved

Example FAS2020: Scenario 2network redundancy for iSCSI and CIFSno separation of networks

NIC 1

NIC 0

NIC 0

NIC 1

Controller 0(active)

CIFS & iSCSI Network

NIC Bondvif /

bond

NIC 0

NIC 1

Controller 1(fault tolerance)

vif / bond

Page 26: XenServer Storage Deep Dive

28© 2009 Citrix Systems, Inc. — All rights reserved

Example FAS2020: Scenario 3network redundancy for iSCSI (multipathing) and CIFSseparation of networks

NIC 1

NIC 0

NIC 0

NIC 1

Ctrl 1(active)

NIC Bond

Vif /bond

Controller 1(fault tolerance)

Same configuration

CIFS VLAN

iSCSI VLAN

NIC 3

NIC 2

Multipathing

CIFS VLAN

iSCSI VLAN

Page 27: XenServer Storage Deep Dive

Dell / Equalogic IntegrationDell / Equalogic Integration

Page 28: XenServer Storage Deep Dive

30© 2009 Citrix Systems, Inc. — All rights reserved

Dell Equalogic Support

• XenServer 5.5 includes Adapter (min. firmware 4.0.1 required)

• Redundant path configuration does not depend on using adapter or not

• All PS series are supported as running same OS

• StorageLink Gateway support planned

Page 29: XenServer Storage Deep Dive

31© 2009 Citrix Systems, Inc. — All rights reserved

Dell / Equalogic

• See whitepaper for Dell / Equalogic storage http://support.citrix.com/article/CTX118841

• Each Equalogic has two controllers

• Only 1 controller is active

• Uses „Group ID“ address on storage side(similar to bonding / teaming on server side)

• Only connection over group ID, no direct connection to the iSCSI ports possible

• Therefore multipathing cannot be used bonding on XenServer side

Page 30: XenServer Storage Deep Dive

Datacore IntegrationDatacore Integration

Page 31: XenServer Storage Deep Dive

33© 2009 Citrix Systems, Inc. — All rights reserved

Multipathing architecture with Datacore

• Different IQNs for targets – no portal mode possible!!

NIC 2

NIC 1

XenServer Switches

LUN 1

Storage Controller

1

Storage Controller

2

Port 1 IP:192.168.1.201

Port 2 IP:192.168.2.202

NIC 1 IP:192.168.1.10

NIC 2 IP:192.168.2.10

Subnet:255.255.255.0

Subnet 1

Subnet 2

IQN 1

IQN 2

Page 32: XenServer Storage Deep Dive

34© 2009 Citrix Systems, Inc. — All rights reserved

Datacore hints

• Special attention for software iSCSI

• Follow Datacore technical bulletin: TB15ftp://support.datacore.com/psp/tech_bulletins/TechBulletinsAll/TB15b_Citrix%20XenServer_config_501.pdf

• Datacore in VM• O.k. when not using HA

• Configuration possible, but take care about booting the whole environment

• Take care when updating XenServer

Page 33: XenServer Storage Deep Dive

StorageLinkStorageLink

Page 34: XenServer Storage Deep Dive

36© 2009 Citrix Systems, Inc. — All rights reserved

Logical advancement of XenServer integrated storage adapters

Netapp & EqualogicStorage adapter

Page 35: XenServer Storage Deep Dive

37© 2009 Citrix Systems, Inc. — All rights reserved

Citrix StorageLink Overview (XenServer)

Guest

Snap-infor XenServer

XenServer

StorageLink

Data Path

Control Path

iSCSI / FC

Page 36: XenServer Storage Deep Dive

38© 2009 Citrix Systems, Inc. — All rights reserved

Leveraging the best of virtualization and storage

Page 37: XenServer Storage Deep Dive

39© 2009 Citrix Systems, Inc. — All rights reserved

StorageLink OverviewXenServer

Netapp EqualLogicVSM

Bridge

Hyper-V

Hyper-V

VDS

Storage Repository

LUNLUN LUN

Storage Repository

LUNLUN LUN

Storage Repository

LUNLUN LUN

SAN/NAS

Virtual Storage Manager

ParentPartition

DOM0

XenServer

Data PathData Path

Control Path

Page 38: XenServer Storage Deep Dive

40© 2009 Citrix Systems, Inc. — All rights reserved

StorageLink Gateway Overview

Vendor-specific VSM Storage Adapters run in separate processes

SMI-S is the preferred method of integration as it requires no custom development work

Hyper-V

Storage Modules

Fabric(SMIS)

Hypervisor Modules

Proxy

Network Modules

NetAppSMIS

activity

status

power

NetApp FAS980

activity

status

power

NetApp FAS980

NetApp

UID

HPStorageWorks

1 4 7 10

12963

HP EVA series

Citrix StorageLink Gateway Core

Web Services Interface (SOAP/.NET)

UID

HPStorageWorksMSA1500cs

HP StorageWorks

Modular Smart Array 1500

UID

HPStorageWorksMSA1500cs

HP StorageWorks

Modular Smart Array 1500

UID

HPStorageWorksMSA1500cs

HP StorageWorks

Modular Smart Array 1500

Vendor Y Storage Adapter

Vendor’sSMI-S

provider

VendorSMI-S

CIMOM

VendorSMI-S

CIMOM

Vendor X Storage Adapter

DellDell

XenServer

Page 39: XenServer Storage Deep Dive

41© 2009 Citrix Systems, Inc. — All rights reserved

Storage Technologies

Storage Repository

LUN

LVM Volume Group

LVMLogicalVolume

LVMLogicalVolume

VHD header VHD header

XenServer 5.5 iSCSI / FC

VM virtual disk

LUN

Storage Repository

XenServer 5.5 iSCSI / FC +

LUN

Page 40: XenServer Storage Deep Dive

43© 2009 Citrix Systems, Inc. — All rights reserved

Snapshot types

XenServer (free) Essentials Enterprise

Snapshot type Software based snapshot Hardware based snapshot(also software based snapshot possible

when not using StorageLink)

LUN access model LVM (1 LUN=x times VDI) LUN-per-VDI (1 LUN = 1 VDI)

Performance Good Superior

Utilization On XenServer host On storage subsystem

Overhead Low lowest

Page 41: XenServer Storage Deep Dive

44© 2009 Citrix Systems, Inc. — All rights reserved

StorageLink: Microsoft look-and-feel

Page 42: XenServer Storage Deep Dive

45© 2009 Citrix Systems, Inc. — All rights reserved

Essentials: Example usage scenarioEffective creation of VMs from template

VMTemplate

LUN

VM clone 1x

1. Copy of LUN

2. Modification of Zoning

3. Creation of VM

4. Assignment of LUN to VM

VM clone 3x

1. Copy of LUN

2. Modification of Zoning

3. Creation of VM

4. Assignment of LUN to VM

1. Copy of LUN

2. Modification of Zoning

3. Creation of VM

4. Assignment of LUN to VM

1. Copy of LUN

2. Modification of Zoning

3. Creation of VM

4. Assignment of LUN to VM

Effectiveness:

• Fast-Cloning using Storage Snapshots• Fully automated storage and SAN configuration• for FC and iSCSI

Page 43: XenServer Storage Deep Dive

46© 2009 Citrix Systems, Inc. — All rights reserved

StorageLink: Supported Storages

• StorageLink HCL http://hcl.vmd.citrix.com/SLG-HCLHome.aspx

Page 44: XenServer Storage Deep Dive