RE: target number in lpfc.conf

From: Jerry Rioux (jrioux@incat.com)
Date: Tue Jun 12 2007 - 14:34:53 EDT


Forgot to attach the files. Here they are.

Jerry Rioux
Enterprise Systems Engineer

Help Desk 1-888-746-6478
www.incat.com

-----Original Message-----
From: sunmanagers-bounces@sunmanagers.org
[mailto:sunmanagers-bounces@sunmanagers.org] On Behalf Of Jerry Rioux
Sent: Tuesday, June 12, 2007 2:29 PM
To: sunmanagers@sunmanagers.org
Subject: target number in lpfc.conf

We have are running solaris 8 on a 450 with an Emulex 9002l hba card. We
have configured the sd.conf and lpfc.conf. The sun OS is seeing the LUNS
that have been created. Our issue is that it shows up as
c6t500a098185c60ec2d0s2. (where the long number is the WWPN of our
Netapp hba.

How do we configure it so that it shows up as c6t17d0s2?

t17 is the arbitrary number we assigned in sd.conf and lpfc.conf.

I have also attached the lpfc.conf and sd.conf.

If this can't be done should I be using the emulex driver and configure
it with the emlxs.conf file?

Thanks,

Jerry Rioux

Enterprise Systems Engineer

Help Desk 1-888-746-6478

www.incat.com

[demime 1.01b removed an attachment of type image/gif which had a name
of image001.gif]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
#
# Copyright (c) 1992, by Sun Microsystems, Inc.
#
#ident "@(#)sd.conf 1.9 98/01/11 SMI"

name="sd" class="scsi" class_prop="atapi"
        target=0 lun=0;

name="sd" class="scsi" class_prop="atapi"
        target=1 lun=0;

name="sd" class="scsi" class_prop="atapi"
        target=2 lun=0;

name="sd" class="scsi" class_prop="atapi"
        target=3 lun=0;

name="sd" class="scsi"
        target=4 lun=0;

name="sd" class="scsi"
        target=5 lun=0;

name="sd" class="scsi"
        target=6 lun=0;

name="sd" class="scsi"
        target=8 lun=0;

name="sd" class="scsi"
        target=9 lun=0;

name="sd" class="scsi"
        target=10 lun=0;

name="sd" class="scsi"
        target=11 lun=0;

name="sd" class="scsi"
        target=12 lun=0;

name="sd" class="scsi"
        target=13 lun=0;

name="sd" class="scsi"
        target=14 lun=0;

name="sd" class="scsi"
        target=15 lun=0;

# Start lpfc auto-generated configuration -- do NOT alter or delete this line
# WARNING: anything you put within this auto-generated section will
# be DELETED if you execute pkgrm to remove the lpfc driver package.
# You may need to add additional lines to probe for additional LUNs
# or targets. You SHOULD delete any lines that represent lpfc targets
# or LUNs that are not used.
# You should add any new entries between this line
# and the End lpfc auto generated configuration line
# name="sd" parent="lpfc" target=16 lun=0;
# name="sd" parent="lpfc" target=17 lun=0;
name="sd" parent="lpfc" target=17 lun=0;
name="sd" parent="lpfc" target=17 lun=1;
name="sd" parent="lpfc" target=17 lun=2;
name="sd" parent="lpfc" target=17 lun=3;
name="sd" parent="lpfc" target=17 lun=4;
name="sd" parent="lpfc" target=17 lun=5;
name="sd" parent="lpfc" target=17 lun=6;
name="sd" parent="lpfc" target=17 lun=7;
name="sd" parent="lpfc" target=17 lun=8;
name="sd" parent="lpfc" target=17 lun=9;
name="sd" parent="lpfc" target=17 lun=10;
name="sd" parent="lpfc" target=17 lun=11;
name="sd" parent="lpfc" target=17 lun=12;
name="sd" parent="lpfc" target=17 lun=13;
name="sd" parent="lpfc" target=17 lun=14;
name="sd" parent="lpfc" target=17 lun=15;
name="sd" parent="lpfc" target=17 lun=16;
name="sd" parent="lpfc" target=17 lun=17;
name="sd" parent="lpfc" target=17 lun=18;
name="sd" parent="lpfc" target=17 lun=19;
name="sd" parent="lpfc" target=17 lun=20;
name="sd" parent="lpfc" target=17 lun=21;
name="sd" parent="lpfc" target=17 lun=22;
name="sd" parent="lpfc" target=17 lun=23;
name="sd" parent="lpfc" target=17 lun=24;
name="sd" parent="lpfc" target=17 lun=25;
name="sd" parent="lpfc" target=17 lun=26;
name="sd" parent="lpfc" target=17 lun=27;
name="sd" parent="lpfc" target=17 lun=28;
name="sd" parent="lpfc" target=17 lun=29;
name="sd" parent="lpfc" target=17 lun=30;
name="sd" parent="lpfc" target=17 lun=31;
name="sd" parent="lpfc" target=17 lun=32;
name="sd" parent="lpfc" target=17 lun=33;
name="sd" parent="lpfc" target=17 lun=34;
name="sd" parent="lpfc" target=17 lun=35;
name="sd" parent="lpfc" target=17 lun=36;
name="sd" parent="lpfc" target=17 lun=37;
name="sd" parent="lpfc" target=17 lun=38;
name="sd" parent="lpfc" target=17 lun=39;
name="sd" parent="lpfc" target=17 lun=40;
name="sd" parent="lpfc" target=17 lun=41;
name="sd" parent="lpfc" target=17 lun=42;
name="sd" parent="lpfc" target=17 lun=43;
name="sd" parent="lpfc" target=17 lun=44;
name="sd" parent="lpfc" target=17 lun=45;
name="sd" parent="lpfc" target=17 lun=46;
name="sd" parent="lpfc" target=17 lun=47;
name="sd" parent="lpfc" target=17 lun=48;
name="sd" parent="lpfc" target=17 lun=49;
name="sd" parent="lpfc" target=17 lun=50;
name="sd" parent="lpfc" target=17 lun=51;
name="sd" parent="lpfc" target=17 lun=52;
name="sd" parent="lpfc" target=17 lun=53;
name="sd" parent="lpfc" target=17 lun=54;
name="sd" parent="lpfc" target=17 lun=55;
name="sd" parent="lpfc" target=17 lun=56;
name="sd" parent="lpfc" target=17 lun=57;
name="sd" parent="lpfc" target=17 lun=58;
name="sd" parent="lpfc" target=17 lun=59;
name="sd" parent="lpfc" target=17 lun=60;
name="sd" parent="lpfc" target=17 lun=61;
name="sd" parent="lpfc" target=17 lun=62;
name="sd" parent="lpfc" target=17 lun=63;
name="sd" parent="lpfc" target=17 lun=64;
name="sd" parent="lpfc" target=17 lun=65;
name="sd" parent="lpfc" target=17 lun=66;
name="sd" parent="lpfc" target=17 lun=67;
name="sd" parent="lpfc" target=17 lun=68;
name="sd" parent="lpfc" target=17 lun=69;
name="sd" parent="lpfc" target=17 lun=70;
# A small number of LUNs for a RAID array
# A small number of LUNs for a RAID array
# name="sd" parent="lpfc" target=17 lun=1;
# name="sd" parent="lpfc" target=17 lun=2;
# name="sd" parent="lpfc" target=17 lun=3;
# End lpfc auto-generated configuration -- do NOT alter or delete this line
#
# Copyright (c) 2003-2006 Emulex. All rights reserved.
#

#
#
# Solaris LightPulse lpfc (SCSI) / lpfn (IP) driver: global initialized data.
#
# lpfc.conf 1.34 2006/11/30 13:51:50PST

# Verbosity: only turn this flag on if you are willing to risk being
# deluged with LOTS of information.
# You can set a bit mask to record specific types of verbose messages:
#
# 0x1 ELS events
# 0x2 Device Discovery events
# 0x4 Mailbox Command events
# 0x8 Initialization events
# 0x10 Link Attention events
# 0x20 IP events
# 0x40 FCP events
# 0x80 Node table events
# 0x400 Miscellaneous events
# 0x800 SLI events
# 0x2000 IOCtl events
# 0xffff Log All Events
log-verbose=0x0;

# Setting log-only to 0 causes log messages to be printed on the
# console and to be logged to syslog (which may send them to the
# console again if it's configured to do so).
# Setting log-only to 1 causes log messages to go to syslog only.
log-only=1;

#
# +++ Variables relating to FCP (SCSI) support. +++
#
# specifies the method of binding to be used. This
# binding method is used for persistent binding and automaped
# binding. A value of 1 will force WWNN binding, value
# of 2 will force WWPN binding, value of 3 will force
# DID binding and value of 4 will force the driver to derive
# binding from ALPA (hard addressed) in a private loop environment.
# Any persistent binding whose type does not match with the
# bind method of the port will be ignored.
fcp-bind-method=2;

# Setup FCP persistent bindings,
# fcp-bind-WWPN binds a specific WorldWide PortName to a target id,
# fcp-bind-WWNN binds a specific WorldWide NodeName to a target id,
# fcp-bind-DID binds a specific DID to a target id.
# Binding method must match with the bind method of that HBA, else the
# binding will be ignored.
# fcp-bind-method should NOT be set to 4 when one of these binding methods
# is used.
# WWNN, WWPN and DID are hexadecimal values.
# WWNN must be 16 digit BCD with leading 0s.
# WWPN must be 16 digit BCD with leading 0s.
# DID must be 6 digit BCD with leading 0s.
# The SCSI ID to bind to consists of two parts, the lpfc interface
# to bind to, and the target number for that interface.
# Thus lpfc0t2 specifies target 2 on interface lpfc0.
# NOTE: Target ids, with all luns supported, must also be in sd.conf.

# Here are some examples:
# WWNN SCSI ID
# fcp-bind-WWNN="2000123456789abc:lpfc1t0",
# "20000020370c27f7:lpfc0t2";
#
# WWPN SCSI ID
# fcp-bind-WWPN="2100123456789abc:lpfc0t0",
# "21000020370c2855:lpfc0t1",
# "2100122222222222:lpfc2t2";
#
# DID SCSI ID
# fcp-bind-DID="0000ef:lpfc0t3";
# BEGIN: LPUTIL-managed Persistent Bindings
fcp-bind-WWPN="500a098185c60ec2:emlxs0t17";
# If automap is set, SCSI IDs for all FCP nodes without
# persistent bindings will be automatically generated.
# If new FCP devices are added to the network when the system is down,
# there is no guarantee that these SCSI IDs will remain the same
# when the system is booted again.
# The bind method of the port is used as the binding method of
# automap devices to preserve SCSI IDs between link down and link up.
# If automap is 0, only devices with persistent bindings will be
# recognized by the system.
automap=1;

# lun-queue-depth [1 to 128] - The default value lpfc will use to
# limit the number of outstanding commands per FCP LUN. This value
# is global, affecting each LUN recognized by the driver, but may be
# overridden on a per-LUN basis (see below). RAID arrays may want
# to be configured using the per-LUN tunable throttles.
lun-queue-depth=30;

# tgt-queue-depth [0 to 10240] - The default value lpfc will use to
# limit the number of outstanding commands per FCP target. This value
# is global, affecting each target recognized by the driver, but may be
# overridden on a per-target basis (see below). RAID arrays may want
# to be configured using the per-target tunable throttles. A value
# of 0 means don't throttle the target.
tgt-queue-depth=0;

# lpfcNtM-lun-throttle: the maximum number of outstanding commands to
# permit for each LUN of an FCP target that supports multiple LUNs.
# The default throttle for the number of commands outstanding to a single
# LUN of a multiple-LUN target is lun-queue-depth. For a target that
# can support multiple LUNs, it may be useful to specify a LUN throttle
# that differs from the default.
# Example: lpfc0t17-lun-throttle=48;
# says that each LUN on target 17, interface lpfc0 should be allowed
# up to 48 simultaneously outstanding commands.
#lpfc1t39-lun-throttle=10;
#lpfc0t40-lun-throttle=30;

# lpfcNtM-tgt-throttle: the maximum number of outstanding commands to
# permit for a FCP target.
# By default, target throttle is diabled.
# Example: lpfc0t17-tgt-throttle=48;
# says that target 17, interface lpfc0 should be allowed
# up to 48 simultaneously outstanding commands.
#lpfc1t39-tgt-throttle=10;
#lpfc0t40-tgt-throttle=30;

# no-device-delay [0 to 30] - determines the length of
# the interval between deciding to fail back an I/O because there is no way
# to communicate with its particular FCP device (e.g., due to device failure)
# and the actual fail back. A value of zero implies no delay whatsoever.
# Cautions: (1) This value is in seconds.
# (2) Setting a long delay value may permit I/O to build up,
# each with a pending timeout, which could result in the exhaustion of
# critical Solaris kernel resources. In this case, you may see a fatal
# message such as
# PANIC: Timeout table overflow
#
# Note that this value can have an impact on the speed with which a
# system can shut down with I/Os pending and with the HBA not able to
# communicate with the loop or fabric, e.g., with a cable pulled.
no-device-delay=1;

#
# +++ Variables relating to IP networking support. +++
#

# network-on: true (1) if networking is enabled, false (0) if not
# This variable will be set during the installation of the driver
# via pkgadd.
network-on=0;

# xmt-que-size [128 to 10240] - size of the transmit queue for mbufs
xmt-que-size=256;

#
# +++ Variables common to both SCSI (FCP) and IP networking support. +++
#

#
# If scan-down = 0, scan the devices on the private loop in increasing
# order of ALPA. If scan-down = 1, scan the devices on the private loop
# in decreasing order of ALPA.
# NOTE: scan-down does not apply if a loop map is obtained.
#
scan-down=1;

# Determine how long the driver will wait [0 - 255] to begin linkdown
# processing when the hba link has become inaccessible. Linkdown processing
# includes failing back commands that have been waiting for the link to
# come back up. Units are in seconds. linkdown-tmo works in conjuction
# with nodev-tmo. I/O will fail when either of the two expires.
linkdown-tmo=30;

# If set, nodev-holdio will hold all I/O errors on FCP devices that disappear
# until they come back. Default is 0, return errors with no-device-delay.
# This parameter is ignored, if scsi commands are issued in polled mode.
nodev-holdio=0;

# If set, nodev-tmo will hold all I/O errors on devices that disappear
# until the timer [0 to 255 secs] expires. Default is 30, return errors
# with no-device-delay.
nodev-tmo=30;

# Use no-device-delay to delay FCP RSP errors and certain check conditions.
delay-rsp-err=0;

# num-iocbs [128 to 10240] - number of iocb buffers to allocate
num-iocbs=256;

# num-bufs [64 to 4096] - number of buffers to allocate
# Buffers are needed to support Fibre channel Extended Link Services.
# Also used for SLI-2 FCP buffers, one per FCP command, and Mailbox commands.
num-bufs=128;

# topology: link topology for initializing the Fibre Channel connection.
# 0 = attempt loop mode, if it fails attempt point-to-point mode
# 2 = attempt point-to-point mode only
# 4 = attempt loop mode only
# Set point-to-point mode if you want to run as an N_Port.
# Set loop mode if you want to run as an NL_Port.
topology=0;

# Set a preferred ALPA for the adapter, only valid if topology is loop.
# lpfc0-assign-alpa=2; Request ALPA 2 for lpfc0

# ip-class: FC class (2 or 3) to use for the IP protocol.
ip-class=3;

# fcp-class: FC class (2 or 3) to use for the FCP protocol.
fcp-class=3;

# Use ADISC for FCP rediscovery instead of PLOGI.
use-adisc=0;

# Extra IO timeout [0 to 255 secs] for fabrics
extra-io-tmo=0;

# Number of 4k STREAMS buffers [64 to 1024] to post to IP ring.
post-ip-buf=128;

# Use dqfull-throttle-up-time [0 to 30 secs] to specify when to increment
# the current Q depth.
dqfull-throttle-up-time=1;

# Increment the current Q depth by dqfull-throttle-up-inc [0 to 128]
dqfull-throttle-up-inc=1;

# Use ACK0, instead of ACK1 for class 2 acknowledgement.
ack0=0;

# cr-delay: Coalesce Response Delay
# This value specifies a count of milliseconds [0 to 63] after which an
# interrupt response is generated if cr-count has not been satisfied.
# This value is set to 0 to disable the Coalesce Response feature.
cr-delay=0;

# cr-count: Coalesce Response Count
# This value specifies a count of I/O completions [1 to 255] after which an
# interrupt response is generated. This feature is disabled if cr-delay is
# set to 0.
cr-count=1;

# discovery-threads [1 to 32] - This value specifies the maximum number of
# ELS commands during discovery
discovery-threads=1;

# link-speed: link speed selection for initializing the Fibre Channel connection.
# 0 = auto select (default)
# 1 = 1 Gigabaud
# 2 = 2 Gigabaud
# 4 = 4 Gigabaud
link-speed=0;

# fdmi-on: 0 = disable fdmi
# 1 = enable fdmi without registration of "host name" port attribute
# 2 = enable fdmi and "host name" port attribute
fdmi-on=0;

# msi-mode: 0 = disable msi; use legacy interrupts
# 1 = enable single message MSI
# 2 = enable multiple message MSI
# If multiple message MSI is not possible due to OS/hardware limitation, then
# attempt single message MSI. If single message MSI fails, then attempt legacy
# interrupts.
msi-mode=2;
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:42:03 EDT