登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

solaris上光线卡安装  

2008-10-31 16:18:29|  分类: unix |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

1  下载光纤驱动并安装

光线卡安装日志参考:

Emulex_LightPulse_FC9002L_Solaris9_Install

# tar xvf solaris-6.01c-1a.tar
x EmlxApps300a8-Solaris.tar, 6850560 bytes, 13380 tape blocks
x lpfc-6.01c-sparc.tar, 1848832 bytes, 3611 tape blocks
x readme.first.txt, 953 bytes, 2 tape blocks
# ls
EmlxApps300a8-Solaris.tar  readme.first.txt           ssh-UdjGS369
lpfc-6.01c-sparc.tar       solaris-6.01c-1a.tar
# tar xvf lpfc-6.01c-sparc.tar
x lpfc.1, 0 bytes, 0 tape blocks
x lpfc.1/pkgmap, 1814 bytes, 4 tape blocks
x lpfc.1/pkginfo, 276 bytes, 1 tape blocks
x lpfc.1/install, 0 bytes, 0 tape blocks
x lpfc.1/install/copyright, 480 bytes, 1 tape blocks
x lpfc.1/install/postinstall, 9336 bytes, 19 tape blocks
x lpfc.1/install/postremove, 2848 bytes, 6 tape blocks
x lpfc.1/install/preremove, 1620 bytes, 4 tape blocks
x lpfc.1/install/request, 2378 bytes, 5 tape blocks
x lpfc.1/install/space, 23 bytes, 1 tape blocks
x lpfc.1/reloc, 0 bytes, 0 tape blocks
x lpfc.1/reloc/etc, 0 bytes, 0 tape blocks
x lpfc.1/reloc/etc/system, 0 bytes, 0 tape blocks
x lpfc.1/reloc/kernel, 0 bytes, 0 tape blocks
x lpfc.1/reloc/kernel/drv, 0 bytes, 0 tape blocks
x lpfc.1/reloc/kernel/drv/lpfc, 592692 bytes, 1158 tape blocks
x lpfc.1/reloc/kernel/drv/lpfc.conf, 10863 bytes, 22 tape blocks
x lpfc.1/reloc/kernel/drv/sd.conf, 1185 bytes, 3 tape blocks
x lpfc.1/reloc/kernel/drv/sparcv9, 0 bytes, 0 tape blocks
x lpfc.1/reloc/kernel/drv/sparcv9/lpfc, 719064 bytes, 1405 tape blocks
x lpfc.1/reloc/usr, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/include, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/include/fcdiag.h, 18051 bytes, 36 tape blocks
x lpfc.1/reloc/usr/lib, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/lib/libdfc.a, 43820 bytes, 86 tape blocks
x lpfc.1/reloc/usr/lib/libdfc.so, 42000 bytes, 83 tape blocks
x lpfc.1/reloc/usr/lib/sparcv9, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/lib/sparcv9/libdfc.a, 47936 bytes, 94 tape blocks
x lpfc.1/reloc/usr/lib/sparcv9/libdfc.so, 51248 bytes, 101 tape blocks
x lpfc.1/reloc/usr/sbin, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc/convert_path_lpfc, 2257 bytes, 5 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc/dfc, 1050 bytes, 3 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc/dfc32, 118520 bytes, 232 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc/dfc64, 120944 bytes, 237 tape blocks
x lpfc.1/reloc/usr/sbin/lpfc/resetqdepth, 1027 bytes, 3 tape blocks
x lpfc.1/reloc/usr/share, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/share/man, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/share/man/man7d, 0 bytes, 0 tape blocks
x lpfc.1/reloc/usr/share/man/man7d/lpfc.7d, 30587 bytes, 60 tape blocks
# ls
EmlxApps300a8-Solaris.tar  lpfc.1                     solaris-6.01c-1a.tar
lpfc-6.01c-sparc.tar       readme.first.txt           ssh-UdjGS369
# pkgadd -d /tmp

The following packages are available:
  1  lpfc.1     Emulex LightPulse FC SCSI/IP Host Bus Adapter driver
                (sun4u) Release 6.01c

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]:

Processing package instance from

Emulex LightPulse FC SCSI/IP Host Bus Adapter driver
(sun4u) Release 6.01c

                    lpfc FC SCSI/IP driver

            Copyright (c) 2004, Emulex Corporation
            3333 Susan Street, Costa Mesa, CA  92626

All rights reserved.  This product and related documentation is
protected by copyright and distributed under licenses restricting
its use, copying, distribution and decompilation.  No part of this
product or related documentation may be reproduced in any form by
any means without prior written authorization of Emulex Corporation
and its licensors, if any.

CAUTION:  The lpfc driver will not work with any release of Solaris/SunOS
earlier than 2.6/5.6.  However, even for later releases, lpfc may
have to be compiled specifically for that release of Solaris.  This
version of lpfc has been built under Solaris/SunOS  for sun4u.


Rebuild manual pages database for section 7d [y,n,?] y

Use IP networking over Fibre Channel [y,n,?] y

Network hostname (for first adapter) [?,q] cluster2
Using as the package base directory.
## Processing package information.
## Processing system information.
   11 package pathnames are already properly installed.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.

The following files are already installed on the system and are being
used by another package:
  /usr/share/man/man7d

Do you want to install these conflicting files [y,n,?,q] y
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of [y,n,?] y

Installing Emulex LightPulse FC SCSI/IP Host Bus Adapter driver as

## Installing part 1 of 1.
[ verifying class ]
/usr/share/man/man7d/lpfc.7d
[ verifying class ]
/kernel/drv/lpfc
/kernel/drv/lpfc.conf
/kernel/drv/sparcv9/lpfc
[ verifying class ]
/usr/include/fcdiag.h
/usr/lib/libdfc.a
/usr/lib/libdfc.so
/usr/lib/sparcv9/libdfc.a
/usr/lib/sparcv9/libdfc.so
/usr/sbin/lpfc/convert_path_lpfc
/usr/sbin/lpfc/dfc
/usr/sbin/lpfc/dfc32
/usr/sbin/lpfc/dfc64
/usr/sbin/lpfc/resetqdepth
[ verifying class ]
Modifying /etc/system
Modifying /kernel/drv/sd.conf
[ verifying class ]
## Executing postinstall script.
Updating /kernel/drv/lpfc.conf
Updating /etc/system (moddir)

Configuring /etc/hostname.lpfc0 as cluster2
catman -M //usr/share/man -w 7d
This may take a while ...
Driver lpfc added to system.

************
IMPORTANT:  You must reboot the system to start this driver.
SCSI:       If you are using lpfc to access disks, be sure to
            check the configuration file of your SCSI target driver
            (presumably sd.conf) to ensure that the driver will
            probe for all of the targets/luns in your environment.
NETWORK:    The first adapter IP network interface
            /etc/hostname.lpfc0
            has been set up with the hostname cluster2.
            To configure additional Lightpulse adapters, simply
            create additional files
            /etc/hostname.lpfc[1-n]
            each containing the name of this host from the
            standpoint of that adapter's network.
ALL:        Examine the contents of /kernel/drv/lpfc.conf
            for driver-specific variables and behavior.
************

Installation of was successful.


Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: q

*** IMPORTANT NOTICE ***
        This machine must now be rebooted in order to ensure
        sane operation.  Execute
               shutdown -y -i6 -g0
        and wait for the "Console Login:" prompt. 

 

2    修改配置文件

光纤卡安装以后,需要修改两个配置文件,分别为:

/kernel/drv/sd.conf

/kernel/drv/lpfc.conf

修改内容在以下过程中标注:


# cd /kernel/drv
# vi sd.conf
"sd.conf" 65 lines, 1611 characters
#
# 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;
# 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;
name="sd" parent="lpfc" target=0 lun=0;
name="sd" parent="lpfc" target=0 lun=1;
name="sd" parent="lpfc" target=0 lun=2;
name="sd" parent="lpfc" target=0 lun=3;
name="sd" parent="lpfc" target=0 lun=4;
name="sd" parent="lpfc" target=0 lun=5;
name="sd" parent="lpfc" target=0 lun=6;
name="sd" parent="lpfc" target=0 lun=7;
name="sd" parent="lpfc" target=1 lun=0;
name="sd" parent="lpfc" target=1 lun=1;
name="sd" parent="lpfc" target=1 lun=2;
name="sd" parent="lpfc" target=1 lun=3;
name="sd" parent="lpfc" target=1 lun=4;
name="sd" parent="lpfc" target=1 lun=5;
name="sd" parent="lpfc" target=1 lun=6;
name="sd" parent="lpfc" target=1 lun=7;
name="sd" parent="lpfc" target=2 lun=0;
name="sd" parent="lpfc" target=3 lun=0;
name="sd" parent="lpfc" target=4 lun=0;
name="sd" parent="lpfc" target=5 lun=0;
name="sd" parent="lpfc" target=6 lun=0;
name="sd" parent="lpfc" target=7 lun=0;
name="sd" parent="lpfc" target=8 lun=0;
name="sd" parent="lpfc" target=9 lun=0;
name="sd" parent="lpfc" target=10 lun=0;
name="sd" parent="lpfc" target=11 lun=0;
name="sd" parent="lpfc" target=12 lun=0;
name="sd" parent="lpfc" target=13 lun=0;
name="sd" parent="lpfc" target=14 lun=0;
name="sd" parent="lpfc" target=15 lun=0;
name="sd" parent="lpfc" target=16 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;

--增加部分
"sd.conf" 100 lines, 3022 characters
# vi lpfc.conf
"lpfc.conf" 276 lines, 10863 characters
#
# COPYRIGHT 2004, EMULEX CORPORATION
# 3333 Susan Street, Costa Mesa, CA 92626
#
# All rights reserved. This computer program and related documentation
# is protected by copyright and distributed under licenses restricting
# its use, copying, distribution and decompilation. This computer
# program and its documentation are CONFIDENTIAL and a TRADE SECRET
# of EMULEX CORPORATION. The receipt or possession of this program
# or its documentation does not convey rights to reproduce or disclose
# its contents, or to manufacture, use, or sell anything that it may
# describe, in whole or in part, without the specific written consent
# of EMULEX CORPORATION. Any reproduction of this program without
# the express written consent of EMULEX CORPORATION is a violation
# of the copyright laws and may subject you to criminal prosecution.
#
#
# Solaris LightPulse lpfc (SCSI) / lpfn (IP) driver: global initialized data.
#
# lpfc.conf 1.26 2004/03/15 11:41:22PST

# 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. +++
#
/top
# If set, nodev-holdio will hold all I/O errors on devices that disappear
# until they come back. Default is 0, return errors with no-device-delay.
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;

# Treat certain check conditions as an FCP error.
check-cond-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
# 6 = attempt point-to-point mode, if it fails attempt loop mode
# 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=2;

--由0更改为2

# 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.
"lpfc.conf" 276 lines, 10863 characters
# reboot


修改配置文件后,重起主机生效

#reboot -- -r

  评论这张
 
阅读(765)| 评论(0)

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018