Mapping FC LUN to the clients

Note: Do not present the same LUN to multiple clients/initiators until an OS Clustering (for example, Red Hat Cluster Suite (RHCS) or Microsoft Cluster Server (MSCS)) uses the shared LUN.

On VMware vSphere client

  1. Ensure that you have enabled FC for the particular Storage Volume. For details, see Configuring FC protocol options
  2. In the vSphere Client, go to Configuration > Storage.
  3. Click Devices and then select Rescan All.


  1. In the Rescan dialog box, click OK.


  1. The refreshed list of devices appears.
  2. Select the device and then click Datastore.
  3. In the datastore list, select the datastore and then click Add Storage.


The Add Storage wizard appears.


  1. Follow the instructions on the Wizard and then complete the procedures to add storage.

Mapping FC LUN on Windows Server 2008

Discovering the FC target

Note: The mapping procedures are similar for other versions of Windows Server. However, there might be minor variations owing to the differences in UI strings and navigation.

Note: Microsoft Multipath I/O (MPIO) takes care of presenting a pseudo device.

  1. Ensure that you have enabled FC for the particular Storage Volume. For details, see Configuring Fibre Channel (FC) protocol options.
  2. On Windows Server 2008, select Server Manager > Disk Management > Rescan Disks.


After rescan, the Volumes that you have created for FC are discovered.


  1. Right-click the unallocated space and then click Online.
  2. Once online, right-click and then select Initialize Disk.


The Initialize Disk dialog box appears.


  1. Click OK.
  2. Right-click the unallocated space and then select New Simple Volume as shown in the following screen:


The New Simple Volume Wizard appears.


  1. Follow the instructions and complete the wizard to create the partition.
  2. Ensure that the created disk is added to the Disk management console (indicated by the blue ribbon).


  1. Ensure that the drive created out of FC LUN is shown (as in) the following screen:


On Kernel-based Virtual Machine

  1. Do either of the following:
    • As root, make an SSH connection to the KVM client.
    • On the KVM client, log in as root.
  2. At command prompt, do the following to map FC LUN to KVM.
  3. Run the following command to verify the number of FC Hosts:
    ls /sys/class/fc_host/
    . The following is a sample output:
    host0 host1 host2 ..........hostX
  4. Note: The number that follows host (1, 2, or X) is the HBA number of the FC Host.

  5. Run the following command to discover the FC LUNs:
    echo "1" >/sys/class/fc_host/hostHBA number/issue_lip
    . For example,
    echo "1" >/sys/class/fc_host/host7/issue_lip
  6. Repeat the step 4 for all the FC Hosts.
  7. Run the following command to fetch the WWPN of the FC Host:
    cat /sys/class/fc_host/host<HBA number>/port_name
    . For example,
    cat /sys/class/fc_host/host7/port_name
  8. Run the following command to add each FC LUN as a device to the KVM client:
    echo "scsi add-single-device h c t l" > /proc/scsi/scsi
  9. Parameter Description
    h HBA number of the Host.
    c Channel ID on the HBA.
    t SCSI target ID.
    l FC LUN ID.
  10. Run the following command to to list the disks:
    fdisk -l