经验贴:Solaris 9上安装Sun原装的Emulex卡驱动(by
oldunix)
转载请注明作者网名oldunix
Solaris 10上安装比较简单,但在Solaris
9上就没那么幸运!近期某日,这个小问题折磨我居然5个小时(多数时候以为自己操作系统和补丁打得有问题!浪费N多宝贵时间!简直是谋杀自己!)可能是自己不再专业搞Sun了,真是成了外行了!
以下是安装方法:
1、安装Solaris 9操作系统;
2、安装EIS补丁,记住一定要安装SFS!
3、安装Emulex驱动,在EIS CD上:
安装SFS的时候,不会默认将Emulex的驱动安装到操作系统中,因此需要单独安装Emulex驱动的4个包
root@rac1 #
pwd
/cdrom/eis-dvd/sun/progs
root@rac1 # ls
CAM SAN
SUNWqus ce_x86
JET SSCS
ServiceTags explorer
NSV_x86 SUNWixge UCE
sneep
RSC SUNWnxge UtilityComputing
root@rac1 # cp -r SAN /tmp
root@rac1 # cd /tmp/SAN
root@rac1 # ls
README SFS_base_packages.S8.tar.gz
README_SFS_base_packages.txt SFS_base_packages.S9.tar.gz
root@rac1 #
gunzip SFS_base_packages.S9.tar.gz
root@rac1 # cd SFS_base_packages.S9
root@rac1 # ls
SUNWcfcl SUNWcfplx SUNWemlxux SUNWfcsm
SUNWjfcaux
SUNWcfclr SUNWemlxs SUNWfchba SUNWfcsmx SUNWjfcax
SUNWcfclx SUNWemlxsx SUNWfchbr SUNWjfca SUNWmdiu
SUNWcfpl
SUNWemlxu SUNWfchbx SUNWjfcau SUNWsan
root@rac1 # pkgadd -d .
The following packages are available:
1 SUNWcfcl Common
Fibre Channel HBA API Library (Usr)
(sparc)
11.9.0,REV=2002.10.15.08.47
2 SUNWcfclr Common Fibre Channel HBA API
Library (Root)
(sparc) 11.9.0,REV=2002.10.15.08.47
3 SUNWcfclx Common Fibre Channel HBA API Library (Usr) (64-bit)
(sparc) 11.9.0,REV=2002.10.15.08.47
4 SUNWcfpl
fp cfgadm plug-in library
(sparc)
11.9.0,REV=2002.06.07.10.30
5 SUNWcfplx fp cfgadm plug-in library
(64-bit)
(sparc) 11.9.0,REV=2002.06.07.10.30
6 SUNWemlxs Emulex-Sun LightPulse FCA driver (root)
(sparc) 11.9.0,REV=2005.05.11.16.37
7 SUNWemlxsx Emulex-Sun
LightPulse FCA driver (root) (64-bit)
(sparc)
11.9.0,REV=2005.05.11.16.37
8 SUNWemlxu Emulex-Sun LightPulse FCA
Utilties (usr)
(sparc) 11.9.0,REV=2005.05.11.16.37
9 SUNWemlxux Emulex-Sun LightPulse FCA Utilties (usr) (64-bit)
(sparc) 11.9.0,REV=2005.05.11.16.37
10 SUNWfchba Sun
Fibre Channel Host Bus Adapter Library
(sparc)
11.9.0,REV=2002.10.15.08.47
... 10 more menu choices to follow;
for more choices, to stop display:
11 SUNWfchbr Sun Fibre Channel Host Bus Adapter Library (Root)
(sparc) 11.9.0,REV=2002.10.15.08.47
12 SUNWfchbx
Sun Fibre Channel Host Bus Adapter Library (Usr) (64-bit)
(sparc) 11.9.0,REV=2002.10.15.08.47
13 SUNWfcsm FCSM driver
(sparc) 11.9.0,REV=2002.10.15.08.47
14 SUNWfcsmx
FCSM driver (64-bit)
(sparc)
11.9.0,REV=2002.10.15.08.47
15 SUNWjfca JNI Fibre Channel Adapter
(FCA) Driver
(sparc) 11.9.0,REV=2003.08.06.22.56
16 SUNWjfcau JNI Fibre Channel Adapter \"FCA\" (usr)
(sparc) 11.9.0,REV=2003.08.06.22.56
17 SUNWjfcaux JNI Fibre
Channel Adapter \"FCA\" (usr) (64-bit)
(sparc)
11.9.0,REV=2003.08.06.22.56
18 SUNWjfcax JNI Fibre Channel Adapter
(FCA) Driver (64-bit)
(sparc)
11.9.0,REV=2003.08.06.22.56
19 SUNWmdiu Sun Multipath I/O Drivers
(usr)
(sparc) 11.9.0,REV=2003.10.29.04.21
20 SUNWsan SAN Foundation Kit
(sparc) 1.0
Select package(s) you wish to process (or 'all' to process
all
packages). (default: all) [?,??,q]:
(只安装Emulex的四个包)
6-9
Select package(s) you wish to process (or 'all'
to process
all packages). (default: all) [?,??,q]: 6-9
Processing package instance from
Emulex-Sun LightPulse FCA driver
(root)
(sparc) 11.9.0,REV=2005.05.11.16.37
Copyright 2003 Sun
Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking
for setuid/setgid programs.
Installing Emulex-Sun LightPulse FCA driver
(root) as
## Installing part 1 of 1.
Installation of was successful.
Processing
package instance from
Emulex-Sun LightPulse FCA driver (root) (64-bit)
(sparc)
11.9.0,REV=2005.05.11.16.37
Copyright 2003 Sun Microsystems, Inc. All
rights reserved.
Use is subject to license terms.
## Processing package
information.
## Processing system information.
## Verifying package
dependencies.
## Verifying disk space requirements.
## Checking for
conflicts with packages already installed.
## Checking for setuid/setgid
programs.
Installing Emulex-Sun LightPulse FCA driver (root) (64-bit) as
## Installing part 1 of 1.
Installation of
was successful.
Processing package instance
from
Emulex-Sun
LightPulse FCA Utilties (usr)
(sparc) 11.9.0,REV=2005.05.11.16.37
Copyright 2003 Sun Microsystems, Inc. All rights reserved.
Use is
subject to license terms.
## Processing package information.
##
Processing system information.
## Verifying package dependencies.
##
Verifying disk space requirements.
## Checking for conflicts with packages
already installed.
## Checking for setuid/setgid programs.
Installing Emulex-Sun LightPulse FCA Utilties (usr) as
## Installing part 1 of 1.
Installation of was
successful.
Processing package instance from
Emulex-Sun LightPulse FCA Utilties
(usr) (64-bit)
(sparc) 11.9.0,REV=2005.05.11.16.37
Copyright 2003 Sun
Microsystems, Inc. All rights reserved.
Use is subject to license terms.
## Processing package information.
## Processing system information.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking
for setuid/setgid programs.
Installing Emulex-Sun LightPulse FCA
Utilties (usr) (64-bit) as
## Installing part 1 of 1.
Installation of was successful.
The following
packages are available:
1 SUNWcfcl Common Fibre Channel HBA API
Library (Usr)
(sparc) 11.9.0,REV=2002.10.15.08.47
2 SUNWcfclr Common Fibre Channel HBA API Library (Root)
(sparc) 11.9.0,REV=2002.10.15.08.47
3 SUNWcfclx Common
Fibre Channel HBA API Library (Usr) (64-bit)
(sparc)
11.9.0,REV=2002.10.15.08.47
4 SUNWcfpl fp cfgadm plug-in library
(sparc) 11.9.0,REV=2002.06.07.10.30
5 SUNWcfplx
fp cfgadm plug-in library (64-bit)
(sparc)
11.9.0,REV=2002.06.07.10.30
6 SUNWemlxs Emulex-Sun LightPulse FCA
driver (root)
(sparc) 11.9.0,REV=2005.05.11.16.37
7 SUNWemlxsx Emulex-Sun LightPulse FCA driver (root) (64-bit)
(sparc) 11.9.0,REV=2005.05.11.16.37
8 SUNWemlxu
Emulex-Sun LightPulse FCA Utilties (usr)
(sparc)
11.9.0,REV=2005.05.11.16.37
9 SUNWemlxux Emulex-Sun LightPulse FCA
Utilties (usr) (64-bit)
(sparc)
11.9.0,REV=2005.05.11.16.37
10 SUNWfchba Sun Fibre Channel Host Bus
Adapter Library
(sparc) 11.9.0,REV=2002.10.15.08.47
... 10 more menu choices to follow;
for more choices,
to stop display:
11 SUNWfchbr Sun Fibre Channel
Host Bus Adapter Library (Root)
(sparc)
11.9.0,REV=2002.10.15.08.47
12 SUNWfchbx Sun Fibre Channel Host Bus
Adapter Library (Usr) (64-bit)
(sparc)
11.9.0,REV=2002.10.15.08.47
13 SUNWfcsm FCSM driver
(sparc) 11.9.0,REV=2002.10.15.08.47
14 SUNWfcsmx FCSM driver
(64-bit)
(sparc) 11.9.0,REV=2002.10.15.08.47
15 SUNWjfca JNI Fibre Channel Adapter (FCA) Driver
(sparc) 11.9.0,REV=2003.08.06.22.56
16 SUNWjfcau JNI Fibre
Channel Adapter \"FCA\" (usr)
(sparc)
11.9.0,REV=2003.08.06.22.56
17 SUNWjfcaux JNI Fibre Channel Adapter
\"FCA\" (usr) (64-bit)
(sparc)
11.9.0,REV=2003.08.06.22.56
18 SUNWjfcax JNI Fibre Channel Adapter
(FCA) Driver (64-bit)
(sparc)
11.9.0,REV=2003.08.06.22.56
19 SUNWmdiu Sun Multipath I/O Drivers
(usr)
(sparc) 11.9.0,REV=2003.10.29.04.21
20 SUNWsan SAN Foundation Kit
(sparc) 1.0
Select package(s) you wish to process (or 'all' to process
all
packages). (default: all) [?,??,q]: q
root@rac1 #
[ 本帖最后由 oldunix 于
2008-7-6 09:56 编辑
]
--------------------------------------------------------------------------------
oldunix
回复于:2008-07-06 09:10:47
4、打SAN补丁:
root@rac1 # cd /cdrom
root@rac1 # cd
e*
root@rac1 # ls
CONTENTS.txt DISCLAIMER.txt history.txt
COPYRIGHT README-29JAN08 sun
root@rac1 # cd sun
root@rac1 #
ls
docs install patch progs tools
root@rac1 # cd pa*
root@rac1 # ls
10 J2SE SAN-SWITCH StorADE
firmware
10-special JASS SE6130-HOST-SW SunCluster
flashprom
8 LOM SF15K SunMC
network
9 QFS SMS SunRay
sds
AVS RSC SSP SunVTS veritas
CAM SAMFS STARCAT-SC caca* x86
COD
SAN SUNWqus e10k
ESM SAN-FC
SWUP etc
root@rac1 # cd SAN
root@rac1 # ls
111847-08.zip 9 info.txt
8 README
leadville.html
root@rac1 # cp 11* /tmp
root@rac1 # cd cd /tmp
cd:
does not exist
root@rac1 # cd /tmp
root@rac1 # ls
111847-08.zip
root@rac1 # unzip *zip
Archive: 111847-08.zip
creating:
111847-08/
inflating: 111847-08/.diPatch
inflating:
111847-08/patchinfo
creating: 111847-08/SUNWsan/
inflating:
111847-08/SUNWsan/pkgmap
inflating: 111847-08/SUNWsan/pkginfo
creating: 111847-08/SUNWsan/install/
inflating:
111847-08/SUNWsan/install/checkinstall
inflating:
111847-08/SUNWsan/install/copyright
inflating:
111847-08/SUNWsan/install/i.none
inflating:
111847-08/SUNWsan/install/patch_checkinstall
inflating:
111847-08/SUNWsan/install/patch_postinstall
inflating:
111847-08/SUNWsan/install/postinstall
inflating:
111847-08/SUNWsan/install/preinstall
creating: 111847-08/SUNWsan/reloc/
creating: 111847-08/SUNWsan/reloc/opt/
creating:
111847-08/SUNWsan/reloc/opt/SUNWsan/
creating:
111847-08/SUNWsan/reloc/opt/SUNWsan/bin/
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/bin/san_recover
creating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/
creating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman1m/
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman1m/cfgadm_fp.1m
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman1m/luxadm.1m
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman1m/stmsboot.1m
creating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman7d/
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman7d/qlc.7d
inflating:
111847-08/SUNWsan/reloc/opt/SUNWsan/man/sman7d/scsi_vhci.7d
inflating:
111847-08/README.111847-08
root@rac1 # ls
111847-08 111847-08.zip
root@rac1 # patchadd 111847-08
Checking installed patches...
Verifying sufficient filesystem capacity (dry run method)...
Installing
patch packages...
Patch number 111847-08 has been successfully
installed.
See /var/sadm/patch/111847-08/log for details
Patch
packages installed:
SUNWsan
root@rac1 #
root@rac1 # pwd
/cdrom/eis-dvd/sun/install/bin
root@rac1 # ls
find-patch
patch-EIS unpack-patches unpack_patches
root@rac1 # cd
/cdrom/eis-dvd/sun/
root@rac1 # ls
docs install patch progs
tools
root@rac1 # cd patch
root@rac1 # ls
10 J2SE
SAN-SWITCH StorADE firmware
10-special JASS
SE6130-HOST-SW SunCluster flashprom
8 LOM
SF15K SunMC network
9 QFS
SMS SunRay sds
AVS RSC SSP
SunVTS veritas
CAM SAMFS STARCAT-SC
caca* x86
COD SAN SUNWqus e10k
ESM SAN-FC SWUP etc
root@rac1 # cd SAN
root@rac1 # cd 9
root@rac1 # ls
113039-20.zip 113043-15.zip 114476-09.zip 119914-12.zip
113040-24.zip 113044-07.zip 114477-04.zip README
113041-14.zip 113046-01.zip 114478-08.zip info.txt
113042-18.zip 113049-01.zip 114878-10.zip patch_order
root@rac1 #
/cdrom/eis-dvd/sun/install/bin/unpack_patches
Are you ready to
unpack patches into /tmp/9? [y/n]: y
Cleaning out /tmp/9...
Unpacking.....
Patch 113039-20
Patch 113040-24
Patch
113041-14
Patch 113042-18
Patch 113043-15
Patch 113044-07
Patch
113046-01
Patch 113049-01
Patch 114476-09
Patch 114477-04
Patch
114478-08
Patch 114878-10
Patch 119914-12
You should run: cd
/tmp/9; ./install_patches
*****************************************
* Special Information for these patches *
*****************************************
Before installing these
patches you require the SAN Foundation Suite.
Also the patch 111847-xx
in directory above.
NOTE: Patch 114878-xx (JNI) is here although the
setup-standard script
does not install the 4 JNI packages from the SAN
Foundation Suite.
(You must install them by hand if the Sun JNI driver
is required).
Patch 119913-xx (Emlxs) is also here although the
setup-standard script
does not install the 4 Emlxs packages from the
SAN Foundation Suite.
(You must install them by hand if the Emlxs
driver is required).
root@rac1 #
root@rac1 # cd /tmp/9;
./install_patches
Patch cluster install script for SAN-4.x for Solaris 9
*WARNING* SYSTEMS WITH LIMITED DISK SPACE SHOULD *NOT* INSTALL
PATCHES:
With or without using the save option, the patch installation
process
will still require some amount of disk space for installation and
administrative tasks in the /, /usr, /var, or /opt partitions where
patches are typically installed. The exact amount of space will
depend
on the machine's architecture, software packages already
installed, and the
difference in the patched objects size. To be
safe, it is not recommended
that a patch cluster be installed on a
system with less than 4 MBytes of
available space in each of these
partitions. Running out of disk space
during installation may result
in only partially loaded patches. Check and
be sure adequate disk space
is available before continuing.
Are you
ready to continue with install? [y/n]: y
Determining if sufficient save
space exists...
Sufficient save space exists, continuing...
Installing
patches located in /tmp/9
Using patch_order file for patch installation
sequence
Installing 113039-20...
Skipping 113046-01...
Skipping
113049-01...
Installing 114477-04...
Installing 113040-24...
Installing 113041-14...
Installing 113042-18...
Installing
113043-15...
Installing 113044-07...
Installing 114476-09...
Installing 114478-08...
Installing 114878-10...
Installation of
114878-10 failed. Return code 8 - Attempting to patch a packag
e that is not
installed
Installing 119914-12...
The following patches were not
able to be installed:
114878-10
For more installation
messages refer to the installation logfile:
/var/sadm/install_data/SAN-4.x_for_Solaris_9_log
Use
'/usr/bin/showrev -p' to verify installed patch-ids.
Refer to individual
patch README files for more patch detail.
Rebooting the system is usually
necessary after installation.
root@rac1 #reboot
[ 本帖最后由 oldunix 于
2008-7-6 09:25 编辑
]
--------------------------------------------------------------------------------
oldunix
回复于:2008-07-06 09:11:28
5、如果不执行如下步骤,依然看不到FC阵列的磁盘!
执行如下步骤:
root@rac2
# cfgadm -avl
Ap_Id
Receptacle Occupant Condition Information
When Type
Busy Phys_Id
c0 connected configured
unknown
unavailable scsi-bus n /devices/pci@8,700000/ide@6:scsi
c0::dsk/c0t0d0 connected configured unknown TSSTcorp
CD/
DVDW TS-L632D
unavailable CD-ROM y
/devices/pci@8,700000/ide@6:scsi::dsk/c0t0d0
c1
connected configured unknown
unavailable fc-private n
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:fc
c1::5000cca0044689ed
connected configured unknown HITACHI HUS1
514FBSUN146G
unavailable disk y
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:fc::5
000cca0044689ed
c1::5000cca00446bf41 connected configured unknown HITACHI
HUS1
514FBSUN146G
unavailable disk n
/devices/pci@9,600000/SUNW,qlc@2/fp@0,0:fc::5
000cca00446bf41
c2
connected unconfigured unknown
unavailable fc-fabric n
/devices/pci@8,600000/SUNW,emlxs@1/fp@0,0:fc
c2::200800a0b8483095 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@1/fp@0,0:fc:
:200800a0b8483095
c2::200900a0b8483096 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@1/fp@0,0:fc:
:200900a0b8483096
c2::200c00a0b8483119 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@1/fp@0,0:fc:
:200c00a0b8483119
c2::200d00a0b848311a connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@1/fp@0,0:fc:
:200d00a0b848311a
c3
connected unconfigured unknown
unavailable fc-fabric n
/devices/pci@8,600000/SUNW,emlxs@2/fp@0,0:fc
c3::200800a0b8483096 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@2/fp@0,0:fc:
:200800a0b8483096
c3::200900a0b8483095 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@2/fp@0,0:fc:
:200900a0b8483095
c3::200c00a0b848311a connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@2/fp@0,0:fc:
:200c00a0b848311a
c3::200d00a0b8483119 connected unconfigured
unknown
unavailable disk n
/devices/pci@8,600000/SUNW,emlxs@2/fp@0,0:fc:
:200d00a0b8483119
usb0/1 empty unconfigured ok
unavailable unknown n /devices/pci@9,700000/usb@1,3:1
usb0/2 empty unconfigured ok
unavailable unknown n /devices/pci@9,700000/usb@1,3:2
usb0/3 empty unconfigured ok
unavailable unknown n /devices/pci@9,700000/usb@1,3:3
usb0/4 empty unconfigured ok
unavailable unknown n /devices/pci@9,700000/usb@1,3:4
root@rac2 #
根据以上输出进行如下配置:
cfgadm -c
configure c2::200800a0b8483095
cfgadm -c configure c2::200900a0b8483096
cfgadm -c configure c2::200c00a0b8483119
cfgadm -c configure
c2::200d00a0b848311a
cfgadm -c configure c3::200800a0b8483096
cfgadm
-c configure c3::200900a0b8483095
cfgadm -c configure
c3::200c00a0b848311a
cfgadm -c configure
c3::200d00a0b8483119
阅读(1374) | 评论(0) | 转发(0) |