Creating a Shared NFS SR (NFS)

Device-config parameters for NFS SRs:

Parameter Name

Description

Required?

 

 

 

server

IP address or hostname of the NFS

Yes

 

server

 

 

 

 

serverpath

path, including the NFS mount

Yes

 

point, to the NFS server that hosts

 

 

the SR

 

 

 

 

To create a shared NFS SR on 192.168.1.10:/export1 use the following command.

xe sr-create host-uuid=<host_uuid>content-type=user \ name-label=<"Example shared NFS SR"> shared=true \ device-config:server=<192.168.1.10>device-config:serverpath=</export1>type=nfs

LVM over Hardware HBA

The LVM over hardware HBA type represents disks as VHDs on Logical Volumes within a Volume Group created on an HBA LUN providing, for example, hardware-based iSCSI or FC support.

XenServer hosts support Fibre Channel (FC) storage area networks (SANs) through Emulex or QLogic host bus adapters (HBAs). All FC configuration required to expose a FC LUN to the host must be completed manually, including storage devices, network devices, and the HBA within the XenServer host. Once all FC configuration is complete the HBA will expose a SCSI device backed by the FC LUN to the host. The SCSI device can then be used to access the FC LUN as if it were a locally attached SCSI device.

Use the sr-probecommand to list the LUN-backed SCSI devices present on the host. This command forces a scan for new LUN-backed SCSI devices. The path value returned by sr-probefor a LUN-backed SCSI device is consistent across all hosts with access to the LUN, and therefore must be used when creating shared SRs accessible by all hosts in a resource pool.

The same features apply to QLogic iSCSI HBAs.

See the section called “Creating Storage Repositories” for details on creating shared HBA-based FC and iSCSI SRs.

Note:

XenServer support for Fibre Channel does not support direct mapping of a LUN to a VM. HBA- based LUNs must be mapped to the host and specified for use in an SR. VDIs within the SR are exposed to VMs as standard block devices.

Storage Configuration

This section covers creating storage repository types and making them available to a XenServer host. The examples provided pertain to storage configuration using the CLI, which provides the greatest flexibility. See the XenCenter Help for details on using the New Storage Repository wizard.

Creating Storage Repositories

This section explains how to create Storage Repositories (SRs) of different types and make them available to a XenServer host. The examples provided cover creating SRs using the xe CLI. See the XenCenter help for details on using the New Storage Repository wizard to add SRs using XenCenter.

Note:

Local SRs of type lvm and ext can only be created using the xe CLI. After creation all SR types can be managed by either XenCenter or the xe CLI.

49

Page 67
Image 67
Citrix Systems 6 Storage Configuration, LVM over Hardware HBA, Creating Storage Repositories, Creating a Shared NFS SR NFS