This section explains how to configure the desired host system for IPFC. It includes the procedures to determine the port instance and to plumb an IPFC instance.
You need the slot information to calculate the Fibre Channel (FC) adapter port instances. You can also determine the slot in which the card exists and the number that is associated with the card by using the command:
prtdiag | grep -i pci
The examples in this procedure assume that you have an array with an HBA card that is located in PCI adapter slot 5, and the PCI adapter is in slot 1 of the I/O board.
For example, if the HBA has two ports, multiply by 2. Using the array with an HBA in the PCI adapter slot 5, multiply 5 by 2 to get 10.
Using an HBA in PCI adapter slot 5 and PCI slot 1 of the I/O board, add 1 to 10 for a sum of 11.
The number 11 converts to “b” in hexadecimal.
The following table shows the elements of the device path for a PCI single FC network adapter device that has the following path:
"/pci@b,2000/SUNW,qlc@2/fp@0,0" 7 "fp"
In this example, the value of interface-number is fcip7.
# ipadm create-ip fcip7
If the command is successful, a message appears on both the console and in the messages file. For example:
Sep 13 15:52:30 bytownite ip: ip: joining multicasts failed (7) on fcip0 - will use link layer brocasts for multicast
Each FP instance on the system has an entry in /dev/fc. If HBAs have been removed, some stale links might exist. Use this procedure to load and create IPFC.
# luxadm -e dump_map /dev/fc/fp0 Pos Port_ID Hard_Addr Port WWN Node WWN Type 0 610100 0 210000e08b049f53 200000e08b049f53 0x1f (Unknown Type) 1 620d02 0 210000e08b02c32a 200000e08b02c32a 0x1f (Unknown Type) 2 620f00 0 210000e08b03eb4b 200000e08b03eb4b 0x1f (Unknown Type) 3 620e00 0 210100e08b220713 200100e08b220713 0x1f (Unknown Type,Host Bus Adapter) # luxadm -e dump_map /dev/fc/fp1 No FC devices found. - /dev/fc/fp1
In the example for this procedure, the destination HBAs have port IDs 610100 and 620d02. The originating HBA’s port ID is 620e00.
# ls -l /dev/fc/fp originating-hba-link
In the following example, 0 is the number for the originating-hba-link:
# ls -l /dev/fc/fp 0 lrwxrwxrwx 1 root root 51 Sep 4 08:23 /dev/fc/fp0 -> ../../devices/pci@8,600000/SUNW,qlc@1/fp@0,0:devctl
You must remove the leading ../../devices from the path name output. For example:
# grep pci@8,600000/SUNW,qlc@1/fp@0,0 /etc/path_to_inst "/pci@8,600000/SUNW,qlc@1/fp@0,0" 0 "fp"
The instance number precedes “fp” in the output. In the following example output, the instance number is 0.
"/pci@8,600000/SUNW,qlc@1/fp@0,0" 0 "fp"
In this example, the instance is 0.
# ipadm create-ip fcip 0