Citrix Systems 5.6 Benutzerhandbuch

Seite von 235
49
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-probe command to force a rescan of the HBA controller and display available LUNs. See
 and 
 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-scsibus
 in
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-forget or sr-destroy as appropriate to remove the SR from the XenServer host database. See
 for details.
2. Remove the zoning configuration within the SAN for the desired LUN to the desired host.
3. Use the 
sr-probe command to determine the ADAPTER, BUS, TARGET, and LUN values corresponding
to the LUN to be removed. See 
 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
SR
yes
targetIQN
the IQN target address of iSCSI filer that hosts the SR
yes
SCSIid
the SCSI bus ID of the destination LUN
yes