免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 9670 | 回复: 10

请教emulex hba卡驱动的安装,急死我了 [复制链接]

论坛徽章:
0
发表于 2009-11-10 13:21 |显示全部楼层
20可用积分
反复装N次了,每次装驱动都没什么错误提示,很顺利完成,但是在HBAanyware的界面里看不到光纤卡的信息啊
驱动程序是在官方网站上下载的,绝对没有错。下面是官方的安装文档里的部分内容:

Installing the Driver for the First Time
To install the Emulex driver for Solaris for the first time:
1. Login as, or su to ‘root’.
2. Load the package from your distribution medium into a directory, referred to here as
<where-you-put-it>.
The driver is a regular tar file, named lpfc-<driver version>-sparc.tar.
3. Change to the <where-you-put-it> directory. Type:
cd <where-you-put-it>
4. Extract the installation image from the tar file. Type:
tar xvf lpfc-<driver version>-sparc.tar
5. At the shell prompt, type:
pkgadd -d `pwd`
If you are installing the lpfc driver on an alternate root, type:
pkgadd -R <alt-root> -d `pwd`
Note: The HBAnyware utility must be installed separately from the driver. Refer to the
"Installing the Utility" on page 11 for more information.
Note: If you are performing pkgadd on an alternate system root, you may see the following
warning messages depending on your system setup.
WARNING: unknown admin parameter <networktimeout>
WARNING: unknown admin parameter <networkretries>
WARNING: unknown admin parameter <authentication>
WARNING: unknown admin parameter <keystore>
This situation can also lead to partial installation of the lpfc driver package. The issue
is mainly seen when you run pkgadd from a Solaris release that is older than the
Solaris release on the alternate root. The newer updates of Solaris 9 (and 10) have
new admin parameters defined in var/sadm/install/admin/default that are not
recognized by the earlier Solaris releases. Use an alternate admin file, while running
pkgadd in these situations. See the Solaris system administration documentation and
the pkgadd(1M) and pkgrm(1M) manual pages for further details.
Driver for Solaris - Installation Section Page 7
6. Answer the following question:
Select package(s) you wish to process (or 'all' to process all packages).
(default: all) [?,??,q]:
7. Select the number associated with lpfc for installation. If you need help, type? or ??. You may
see some additional questions related to directories. Ordinarily, the defaults are sufficient. To
select a default press <Enter>.
a. Answer the question:
Rebuild manual pages database for section 7d [y,n,?]:
Manual pages for lpfc are installed in section 7d of the online man pages. Normally, you can run
the catman command to create preformatted versions of the on-line manual from the nroff(1)
input files. Each manual page is examined and those whose preformatted versions are missing
or out of date are recreated. If any changes are made, catman recreates the windex database.
Depending on your system, this operation can take anywhere from 1 to 10 minutes. If you type
<n>, the catman is skipped which allows the installation to complete quickly. The catman command
skipped is output for the administrator to run at a later point in time, if desired.
b. The next question you see is:
Use IP networking over Fibre Channel [y,n,?]:
Answer <y> if you want to enable IP or <n> if you do not want to enable IP.
8. Continue with the installation by answering Yes to the following:
Do you want to continue with the installation of <lpfc> [y,n,?]:
9. The install package provides running commentary on the installation process. Be sure to
examine the output for any errors or warnings. When the installation concludes, notice the
message:
SCSI: If you are using the lpfc driver to access SCSI devices, please
refer to the User Manual on www.emulex.com with regards to discovering
SCSI targets and LUNs.
10. Finally, you are asked:
Select package(s) you wish to process (or 'all' to process all packages).
(default: all) [?,??,q]:
This is the same question that began your session. If you do not want to install additional packages,
type <q>. The lpfc driver installation is now complete. After you quit, you see the following
message:
***IMPORTANT NOTICE ***
This machine must now be rebooted in order to ensure safe operation.
At this point the driver is loaded and automapped targets are visible to the system and the
HBAnyware utility.
11. Before you reboot the machine, consider whether you must modify any configuration files,
beyond the defaults established by the installation process.
a. View the /kernel/drv/lpfc.conf file. If necessary, change settings as you deem appropriate.
However, the defaults are likely to be satisfactory. You can find lpfc.conf in the
/kernel/drv if the driver is installed referencing the root directory. Refer to “The Configuration
File (lpfc.conf)” on page 19 for more information on changing driver properties
using the lpfc.conf file. After it is installed, you can also change driver properties using
the HBAnyware utility. Refer to the HBAnyware Utility User Manual for more information.
b. Starting with the 6.20 release of the lpfc driver, all targets and LUNs discovered by the
driver are automatically reported to the OS. If you do not want to expose certain
Driver for Solaris - Installation Section Page 8
targets/LUNs to the OS, refer to “Target / LUN Masking” on page 37 for more
information.
c. You must create an address file for each adapter that you want to configure for IP
networking. The installation process creates the address file /etc/hostname.lpfc0
by default. You may need to rename this file to match the lpfc instance number.
12. Reboot the system to ensure proper operation, if networking was enabled during installation or if
non-dynamic driver parameters were changed. At the shell prompt, type the following:
# sync
# reboot
The system reboots to multi-user mode and the Emulex LightPulse driver is available for use.
If you are enabling IP networking, you may find after rebooting the system that FCP disk access
works but host-to-host IP access does not work. This generally means you have an error in the
/etc/hostname.lpfc<0-N> file(s). Make sure the lpfc instance number(s) as reported by
dmesg(1M) matches the lpfc number(s) in the /etc/hostname.lpfc<0-N> file(s).


Installing the Driver as a Loadable Kernel Module

When installing the device driver as a loadable kernel module, you must use supported versions of the
hardware and software. Refer to the “Compatibility” section on page 2 of the manual and read the
“Configuration” section beginning on page 16 before you start the installation.
To load the driver as a loadable module:
1. Login as or su to ‘root’.
2. Type:
modload /kernel/drv/lpfc (for 32-bit platforms) or
modload /kernel/drv/sparcv9/lpfc (for 64-bit platforms)
3. Type:
cfgadm
Identify and record the < Ap_Ids> of all the Emulex LightPulse adapters on the system.
4. Type:
cfgadm -c configure <Ap_Id>
for each of the Emulex LightPulse adapters.
To unload the driver:
1. Login as or su to ‘root’.
2. Un-mount all the filesystems that belong to the lpfc driver.
3. Un-plumb all IP interfaces that belong to the lpfc driver, if networking is enabled on the lpfc
driver.
4. Stop all HBAnyware/elxhbamgr processes.
5. Type:
cfgadm
Record the <Ap_Ids> of all the Emulex LightPulse adapters on the system.
6. Type:
cfgadm -c unconfigure <Ap_Id>
for each of the Emulex LightPulse adapters.
7. Type:
modunload -i <module_id>
where <module_id> is the ID of the lpfc driver. You can get IDs by running modinfo.
Driver for Solaris - Installation Section Page 9
RCM Script

The lpfc 6.30g driver includes a rcmscript(4) named lpfc,hpdr. The driver package installs the rcmscript
under /usr/lib/rcm/scripts. If a dynamic reconfiguration (DR) operation is attempted to remove an lpfc
instance, the DR operation fails if the rcpscript detects the HBAnyware utility process on the system. The
lpfc,hpdr script command default timeout value is 15 seconds. If necessary, you can modify it to better
suit the demands of the system.
Updating Existing Drivers
Updating a Driver (from Version 5.x and 6.X) for Emulex LightPulse
Adapters
You can update the driver by saving certain driver configuration files and using pkgrm. Two files are
saved when you run pkgrm.
• The /kernel/drv/lpfc.conf file is moved to /usr/tmp/lpfc.conf.pkgrm allowing you to restore any
customized parameter settings after installing a new device driver.
• The file /kernel/drv/sd.conf is copied to /usr/tmp/sd.conf.pkgrm. The file could be referenced to
setup target/LUN masking in lpfc.conf. Additionally any lpfc specific settings in the original file
are deleted by the pkgrm process.
After installing a new device driver, you can use the saved files to restore all the customized disk
settings.
To update the driver:
1. Login as or su to ‘root’.
2. At the shell prompt, type:
pkgrm lpfc
3. Install the new driver package. Type:
pkgadd –d ‘pwd‘
Note: The rcmscript does not detect the presence of any third party management
applications that may be accessing the lpfc adapters via libhbapi(3LIB). Before
attempting to unconfigure a lpfc instance, stop all applications that are accessing the
lpfc instances.



其中蓝色部分那一步我没有做,这一步是必须的么?我怎么才知道驱动安装好了呢? 安装文档详细内容见附件,谢谢各位的热心回答。

manual.pdf

1.66 MB, 下载次数: 115

论坛徽章:
0
发表于 2009-11-10 13:32 |显示全部楼层
安装lpfc后再执行 /opt/EMLXlpfc/emlxdrv  运行选项clear_all再重启就行了.

论坛徽章:
0
发表于 2009-11-10 14:10 |显示全部楼层
等待结果

论坛徽章:
0
发表于 2009-11-16 15:52 |显示全部楼层
搞了N久,最后发现时HBAanyware 本身有问题,光纤卡已经驱动好了的~~~

论坛徽章:
0
发表于 2009-11-16 16:38 |显示全部楼层

论坛徽章:
0
发表于 2009-11-16 17:06 |显示全部楼层

论坛徽章:
0
发表于 2009-11-16 17:18 |显示全部楼层

论坛徽章:
0
发表于 2009-11-16 18:07 |显示全部楼层

论坛徽章:
0
发表于 2009-11-16 18:25 |显示全部楼层

回复 #1 henaifu 的帖子

直接用SAN包就可以了

论坛徽章:
0
发表于 2009-11-18 01:46 |显示全部楼层
SD driver (lpfc) is sunset and 6.30g is the latest supported version and not more new version beyond 6.30g. It is the best to install SFS driver.

Emulex SFS and SD drivers both offer a wide range of capabilities, as well as field-proven reliability. In the future, Emulex will continue to offer new industry-leading capabilities on the SFS driver (emlxs driver), whereas the SD driver (lpfc driver) is a legacy driver with no planned extensions beyond the current capabilities.

http://www.emulex.com/files/down ... _fca_info_rev_7.pdf
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP