Once the HBA is physically installed into the XenServer host, use the following steps to configure the HBA:

1.Set the IP networking configuration for the HBA. This example assumes DHCP and HBA port 0. Specify the appropriate values if using static IP addressing or a multi-port HBA.

/opt/QLogic_Corporation/SANsurferiCLI/iscli -ipdhcp 0

2.Add a persistent iSCSI target to port 0 of the HBA.

/opt/QLogic_Corporation/SANsurferiCLI/iscli -pa 0 <iscsi_target_ip_address>

3.Use the xe sr-probecommand to force a rescan of the HBA controller and display available LUNs. See the section called “Probing an SR” and the section called “Creating a shared LVM over Fibre Channel / iSCSI HBA or SAS SR (lvmohba)” for more details.

Removing HBA-based SAS, FC or iSCSI device entries

Note:

This step is not required. Citrix recommends that only power users perform this process if it is necessary.

Each HBA-based LUN has a corresponding global device path entry under /dev/disk/by-scsibusin the format <SCSIid>-<adapter>:<bus>:<target>:<lun> and a standard device path under /dev. To remove the device entries for LUNs no longer in use as SRs use the following steps:

1.Use sr-forgetor sr-destroyas appropriate to remove the SR from the XenServer host database. See the section called “Destroying or forgetting a SR” for details.

2.Remove the zoning configuration within the SAN for the desired LUN to the desired host.

3.Use the sr-probecommand to determine the ADAPTER, BUS, TARGET, and LUN values corresponding to the LUN to be removed. See the section called “Probing an SR” for details.

4.Remove the device entries with the following command:

echo "1" > /sys/class/scsi_device/<adapter>:<bus>:<target>:<lun>/device/delete

Warning:

Make absolutely sure you are certain which LUN you are removing. Accidentally removing a LUN required for host operation, such as the boot or root device, will render the host unusable.

LVM over iSCSI

The LVM over iSCSI type represents disks as Logical Volumes within a Volume Group created on an iSCSI LUN.

Creating a shared LVM over iSCSI SR using the software iSCSI initiator (lvmoiscsi)

Device-config parameters for lvmoiscsi SRs:

Parameter Name

Description

Optional?

target

the IP address or hostname of the iSCSI filer that hosts the

yes

 

SR

 

 

 

 

targetIQN

the IQN target address of iSCSI filer that hosts the SR

yes

 

 

 

SCSIid

the SCSI bus ID of the destination LUN

yes

 

 

 

49

Page 69
Image 69
Citrix Systems 5.6 manual LVM over iSCSI, Removing HBA-based SAS, FC or iSCSI device entries