Citrix Systems 6 Manuale Utente

Pagina di 207
45
/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
Required?
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
chapuser
the username to be used for CHAP authentication
no
chappassword
the password to be used for CHAP authentication
no