时间:2005-3-4
任务:在Sun v880上加装Emulex LP9002L-F2光纤卡,用来识别P4000磁带库及带机
实施步聚:
1. 关闭v880上的所有应用
2. 关闭系统,切断电源
3. 安装HBA卡到PCI槽
4. 开机,正常启动Solaris系统
5. 以root用户登录到系统,安装lpfc.1驱动程序包,pkgadd –d ./ lpfc.1
6. 修改/kernel/drv/st.conf,增加target数量及lun数量,st.conf如下:
#
# Copyright (c) 1995-2000 by Sun Microsystems, Inc.
# All rights reserved.
#
#
#pragma ident "@(#)st.conf 1.31 00/08/24 SMI"
#
# This file contains configuration entries for both officially supported
# devices of Sun Microsystems and many 3rd party devices.
#
# The officially supported devices are :
#
# "ARCHIVE Python 28388" Note 1
# "ARCHIVE Python 28454" Note 1
# "ARCHIVE Python 29279" Note 1
# "ARCHIVE VIPER 150" Note 1
# "EXABYTE EXB-8200" Note 1
# "EXABYTE EXB-8500" Note 1
# "EXABYTE EXB-8505" Note 1
# "EXABYTE EXB-8900" Note 1
# "HP 88780" Note 1
# "HP C5683A" Note 1
# "HP C5713A" Note 1
# "Quantum DLT4000" Note 1
# "Quantum DLT7000" Note 1
# "Quantum DLT8000" Note 1
# "STK 9840" Note 1
# "SUN DLT4000" Note 1
# "SUN DLT4700" Note 1
# "SUN DLT7000" Note 1
# "TANDBERG SLR5" Note 1
# "TANDBERG TDC 4200" Note 1
# "TANDBERGMLR1" Note 1
# "TANDBERGMLR3" Note 1
#
# The unsupported devices are :
#
# "Emulex MTO2" Note 1
# "ANRITSU DMT2120" Note 1
# "ARCHIVE Python 04106" Note 1
# "ARCHIVE VIPER 255" Note 1
# "DEC DLT2"
# "DEC TZ87"
# "EXABYTE EXB-2501" Note 1
# "EXABYTE EXB-4200c" Note 1
# "EXABYTE EXB8500C"
# "FUJITSU M1016B M2483B"
# "FUJITSU M248"
# "HP C1533A" Note 1
# "HP C1553A "
# "HP C1537A" Note 1
# "HP C1557A" Note 1
# "HP HP35470A" Note 1
# "HP HP35480A" Note 1
# "IBM 03490"
# "IBM 9348"
# "KENNEDY" Note 1
# "LMS" Note 1
# "M4 DATA 123107 SCSI" Note 1
# "Metrum"
# "R-BYTE RB100"
# "Seagate STT20000N" Note 1
# "SONY SDT-5000" Note 1
# "SONY SDT-5200" Note 1
# "STK 9490"
# "STK 4280"
# "STK" Note 1
# "TANDBERG 4100" Note 1
# "TANDBERG 4200" Note 1
# "TELEX"
# "WANGTEK 51000 SCSI"
# "WANGTEK 5150ES" Note 1
# "WANGTEK 5525ES SCSI" Note 1
# "WANGTEK 6130-HS" Note 1
# "WangDAT Model 2600" Note 1
# "WangDAT Model 3400" Note 1
# "WangDAT" Note 1
# "\076\000" Note 1
#
# Notes
# -----
# 1 Drive is configured automatically - no entry is needed in st.conf.
#
# The 3rd party devices do apparently work with the configurations listed.
# All the entries have been taken from the net and probably have worked in
# the past, but have not been tested by Sun Microsystems. Use these entries
# as your starting point for generating your configuration entries.
#
#
tape-config-list=
#"HP Ultrium 2-SCSI", "HP LTO Ultrium Generation 2", "Class_HP460",
#"Emulex MTO2", "Emulex MT02 QIC-11/QIC-24", "MT02",
#"ANRITSU DMT2120", "Unisys 1/2\" Reel", "ANRITSU",
#"ARCHIVE Python 04106", "Seagate Scorpion 24 DDS3 DAT", "ARCH_04106",
#"ARCHIVE Python 28454", "Archive Python 4mm Helical Scan", "ARCH_Python",
#"ARCHIVE Python 29279", "Archive Python 4mm DAT Stacker", "ARCH_Python",
#"ARCHIVE Python 28388", "Archive/Conner CTDX004 4mm DAT", "Conner2-DAT",
#"ARCHIVE VIPER 150", "Archive QIC-150", "QIC150",
#"ARCHIVE VIPER 255", "Archive QIC-525", "QIC150",
#"DEC DLT2", "DEC DLT", "DLT2",
#"DEC TZ87", "DEC DLT", "DLT2",
#"EXABYTE EXB-2501", "Exabyte EXB-2501 QIC", "EXB-2501",
#"EXABYTE EXB-4200c", "Exabyte 4mm Helical Scan", "Exa4200c",
#"EXABYTE EXB-8200", "Exabyte EXB-8200 8mm Helical Scan","EXB-8200",
#"EXABYTE EXB-8500", "Exabyte EXB-8500 8mm Helical Scan","EXB-850X",
#"EXABYTE EXB-8505", "Exabyte EXB-8505 8mm Helical Scan","EXB-850X",
#"EXABYTE EXB8500C", "Exabyte 8500C 8mm Helical Scan", "EXB-850X",
#"FUJITSU M1016B M2483B", "Fujitsu 1/2\" Cartridge", "Fujitsu_comp",
#"FUJITSU M248", "Fujitsu 1/2\" Cartridge", "Fujitsu_m248x",
#"HP 88780", "HP-88780 1/2\" Reel", "HP_half",
#"HP C1533A", "HP DDS2 4mm DAT loader", "HP_DAT",
#"HP C1553A ", "HP C1553A 4mm DAT", "HP_DAT",
#"HP C1537A", "HP DDS-3 4mm DAT ", "HP_DAT_3",
#"HP C1557A", "HP DDS-3 4mm DAT loader", "HP_DAT_3",
#"HP HP35470A", "HP 35470A 4mm DAT", "HP_DAT",
#"HP HP35480A", "HP 35480A 4mm DAT", "HP_DAT",
#"IBM 03490", "IBM 3490E 1/2\" Cartridge", "CLASS_3490",
#"IBM 9348", "STK 4220 1/2\" Cartridge", "C3490",
#"KENNEDY", "Kennedy 1/2\" Reel", "KENNEDY",
#"LMS", "CDC 1/2\" Cartridge", "LMS",
#"M4 DATA 123107 SCSI", "M4-Data 1/2\" Reel", "M4_DATA",
#"Metrum", "Metrum VHS Cartridge", "MetD",
#"QUANTUM DLT7000", "Quantum DLT7000", "DLT7k-data",
#"SUN DLT7000", "Sun DLT7000", "DLT7k-data",
#"Quantum DLT4000", "Quantum DLT4000", "DLT-data",
#"SUN DLT4000", "DLT4000", "DLT-data",
#"SUN DLT4700", "DLT4700 Library", "DLT-data",
#"R-BYTE RB100", "R-Byte Whozits", "DAT",
#"Seagate STT20000N", "Seagate Hornet NS20 Travan", "NS20",
#"SONY SDT-5000", "SONY 4mm DAT", "DAT",
#"SONY SDT-5200", "SONY 4mm DAT", "DAT",
#"STK 9490", "STK 9490 1/2\" Cartridge", "CLASS_3490",
#"STK 4280", "STK 4280 1/2\" Cartridge", "C3490",
#"STK", "STK 1/2\" Cartridge", "CLASS_3490",
#"TANDBERG 4100", "Tandberg 4100 QIC", "TAND_4100_QIC",
#"TANDBERG 4200", "Tandberg 4200 QIC", "TAND_4200_QIC",
#"TANDBERG TDC 4200", "Tandberg QIC 2.5 Gig Tape Drive", "TANDB-2_5G",
#"TANDBERG SLR5", "Tandberg 8 Gig QIC", "TAND-8G-VAR",
#"TANDBERGMLR1", "Tandberg MLR1 QIC", "TANDBERG_MLR1",
#"TANDBERGMLR3", "Tandberg 50 Gig QIC", "TAND-50G-VAR",
#"TELEX", "STK 4220 1/2\" Cartridge", "C3490",
#"WANGTEK 51000 SCSI", "Wangtek 1.2GB QIC", "WtQIC",
#"WANGTEK 5150ES", "Wangtek QIC-150", "WANGTEK_QC150",
#"WANGTEK 5525ES SCSI", "Wangtek 525MB QIC", "WtQIC",
#"WANGTEK 6130-HS", "Wangtek 4mm Helical Scan", "WANGTEK_6130",
#"WangDAT Model 2600", "WangDAT 4mm DAT", "WangDAT",
#"WangDAT Model 3400", "WangDAT 4mm DAT", "WangDAT",
#"WangDAT", "Wang DAT 3.81 Helical Scan", "WangDAT",
#"\076\000", "Fujitsu 1/2\" Cartridge", "Fujitsu_half";
#ANRITSU = 1, 0x25, 0, 0x0041D, 4, 0x00, 0x02, 0x03, 0x03, 1;
#ARCH_04106 = 1, 0x2C, 0, 0x09639, 4, 0x00, 0x8C, 0x8C, 0x8C, 3;
#ARCH_Python = 1, 0x2C, 0, 0x0DE39, 4, 0x00, 0x8C, 0x8C, 0x8C, 3;
#CLASS_3490 = 1, 0x24, 0, 0x1C43D, 4, 0x00, 0x00, 0x00, 0x00, 0;
#C3490 = 1, 0x24, 0, 0x1C43D, 4, 0x00, 0x00, 0x00, 0x01, 2;
#Conner2-DAT = 1, 0x2C, 0, 0x0DE39, 4, 0x00, 0x00, 0x00, 0x00, 0;
#DAT = 1, 0x34, 0, 0x00439, 4, 0x00, 0x00, 0x00, 0x00, 0;
#DLT2 = 1, 0x38, 0, 0x0D639, 4, 0x17, 0x18, 0x80, 0x81, 2;
#DLT-data = 1, 0x38, 0, 0x0D639, 4, 0x80, 0x81, 0x82, 0x83, 2;
#DLT7k-data = 1, 0x38, 0, 0x0D639, 4, 0x82, 0x83, 0x84, 0x85, 2;
#EXB-2501 = 1, 0x28, 1024, 0x00442, 4, 0x00, 0x00, 0x00, 0x00, 0;
#EXB-8200 = 1, 0x28, 0, 0x08C79, 4, 0x00, 0x00, 0x00, 0x00, 0;
#EXB-850X = 1, 0x29, 0, 0x0CE39, 4, 0x14, 0x15, 0x8C, 0x8C, 1;
#Exa4200c = 1, 0x34, 0, 0x01639, 4, 0x63, 0x00, 0x00, 0x00, 1;
#Fujitsu_comp = 1, 0x21, 0, 0x18639, 4, 0x00, 0x00, 0x00, 0x09, 1;
#Fujitsu_half = 1, 0x21, 0, 0x0063B, 4, 0x00, 0x00, 0x00, 0x00, 0;
#Fujitsu_m248x = 1, 0x21, 0, 0x0C639, 4, 0x00, 0x00, 0x00, 0x00, 0;
#HP_DAT = 1, 0x34, 0, 0x19679, 4, 0x00, 0x00, 0x00, 0x00, 0;
#HP_DAT_3 = 1, 0x34, 0, 0x09639, 4, 0x00, 0x8C, 0x8C, 0x8C, 1;
#HP_half = 1, 0x23, 0, 0x0041D, 4, 0x01, 0x02, 0x03, 0xC3, 1;
#KENNEDY = 1, 0x22, 0, 0x0041D, 4, 0x01, 0x02, 0x03, 0x03, 1;
#LMS = 1, 0x20, 0, 0x0066B, 4, 0x00, 0x00, 0x00, 0x00, 0;
#M4_DATA = 1, 0x27, 0, 0x0049D, 4, 0x01, 0x02, 0x06, 0x06, 1;
#MT02 = 1, 0x14, 512, 0x00202, 4, 0x84, 0x05, 0x05, 0x05, 1;
#MetD = 1, 0x36, 0, 0x01639, 4, 0x00, 0x00, 0x00, 0x00, 0;
#NS20 = 1, 0x32, 512, 0x0C40A, 4, 0x00, 0x00, 0x00, 0x00, 0;
#QIC150 = 1, 0x15, 512, 0x00642, 4, 0x00, 0x00, 0x00, 0x00, 0;
#TANDB-2_5G = 1, 0x32, 0, 0x0D67B, 4, 0x00, 0x00, 0x00, 0x00, 0;
#TAND-8G-VAR = 1, 0x37, 0, 0x0963B, 4, 0xA0, 0xD0, 0xD0, 0xD0, 3;
#TANDBERG_MLR1 = 1, 0x32, 512, 0x0463A, 4, 0x00, 0x00, 0x00, 0x00, 0;
#TAND-50G-VAR = 1, 0x37, 0, 0x0963B, 4, 0xA0, 0xD0, 0xD0, 0xD0, 3;
#TAND_4100_QIC = 1, 0x32, 512, 0x0463A, 4, 0x00, 0x00, 0x00, 0x00, 0;
#TAND_4200_QIC = 1, 0x32, 512, 0x0463A, 4, 0x00, 0x00, 0x00, 0x00, 0;
#WANGTEK_6130 = 1, 0x2A, 0, 0x00659, 4, 0x00, 0x00, 0x00, 0x00, 0;
#WANGTEK_QC150 = 1, 0x16, 512, 0x00642, 4, 0x00, 0x00, 0x00, 0x00, 0;
#WangDAT = 1, 0x2B, 0, 0x00659, 4, 0x00, 0x00, 0x00, 0x00, 0;
#WangDAT = 1, 0x34, 0, 0x00679, 4, 0x00, 0x00, 0x00, 0x00, 0;
#WtQIC = 1, 0x32, 512, 0x0467A, 4, 0x00, 0x00, 0x00, 0x00, 0;
#CLASS_HP460 = 2, 0x3b, 0, 0x18659, 1, 0x42, 0x42, 0x42, 0x42, 0;
#
name="st" class="scsi" target=0 lun=0;
name="st" class="scsi" target=1 lun=0;
name="st" class="scsi" target=2 lun=0;
name="st" class="scsi" target=3 lun=0;
name="st" class="scsi" target=4 lun=0;
name="st" class="scsi" target=5 lun=0;
name="st" class="scsi" target=6 lun=0;
#
#In case there are wide tape drives, one can use these targets
#
name="st" class="scsi" target=8 lun=0;
name="st" class="scsi" target=9 lun=0;
name="st" class="scsi" target=10 lun=0;
name="st" class="scsi" target=11 lun=0;
name="st" class="scsi" target=12 lun=0;
name="st" class="scsi" target=13 lun=0;
name="st" class="scsi" target=14 lun=0;
name="st" class="scsi" target=15 lun=0;
name="st" class="scsi" target=0 lun=1;
name="st" class="scsi" target=1 lun=1;
name="st" class="scsi" target=2 lun=1;
name="st" class="scsi" target=3 lun=1;
name="st" class="scsi" target=4 lun=1;
name="st" class="scsi" target=5 lun=1;
name="st" class="scsi" target=6 lun=1;
name="st" class="scsi" target=8 lun=1;
name="st" class="scsi" target=9 lun=1;
name="st" class="scsi" target=10 lun=1;
name="st" class="scsi" target=11 lun=1;
name="st" class="scsi" target=12 lun=1;
name="st" class="scsi" target=13 lun=1;
name="st" class="scsi" target=14 lun=1;
name="st" class="scsi" target=15 lun=1;
name="st" class="scsi" target=0 lun=2;
name="st" class="scsi" target=1 lun=2;
name="st" class="scsi" target=2 lun=2;
name="st" class="scsi" target=3 lun=2;
name="st" class="scsi" target=4 lun=2;
name="st" class="scsi" target=5 lun=2;
name="st" class="scsi" target=6 lun=2;
name="st" class="scsi" target=8 lun=2;
name="st" class="scsi" target=9 lun=2;
name="st" class="scsi" target=10 lun=2;
name="st" class="scsi" target=11 lun=2;
name="st" class="scsi" target=12 lun=2;
name="st" class="scsi" target=13 lun=2;
name="st" class="scsi" target=14 lun=2;
name="st" class="scsi" target=15 lun=2;
name="st" class="scsi" target=0 lun=3;
name="st" class="scsi" target=1 lun=3;
name="st" class="scsi" target=2 lun=3;
name="st" class="scsi" target=3 lun=3;
name="st" class="scsi" target=4 lun=3;
name="st" class="scsi" target=5 lun=3;
name="st" class="scsi" target=6 lun=3;
name="st" class="scsi" target=8 lun=3;
name="st" class="scsi" target=9 lun=3;
name="st" class="scsi" target=10 lun=3;
name="st" class="scsi" target=11 lun=3;
name="st" class="scsi" target=12 lun=3;
name="st" class="scsi" target=13 lun=3;
name="st" class="scsi" target=14 lun=3;
name="st" class="scsi" target=15 lun=3;
name="st" class="scsi" target=0 lun=4;
name="st" class="scsi" target=1 lun=4;
name="st" class="scsi" target=2 lun=4;
name="st" class="scsi" target=3 lun=4;
name="st" class="scsi" target=4 lun=4;
name="st" class="scsi" target=5 lun=4;
name="st" class="scsi" target=6 lun=4;
name="st" class="scsi" target=8 lun=4;
name="st" class="scsi" target=9 lun=4;
name="st" class="scsi" target=10 lun=4;
name="st" class="scsi" target=11 lun=4;
name="st" class="scsi" target=12 lun=4;
name="st" class="scsi" target=13 lun=4;
name="st" class="scsi" target=14 lun=4;
name="st" class="scsi" target=15 lun=4;
name="st" class="scsi" target=0 lun=5;
name="st" class="scsi" target=1 lun=5;
name="st" class="scsi" target=2 lun=5;
name="st" class="scsi" target=3 lun=5;
name="st" class="scsi" target=4 lun=5;
name="st" class="scsi" target=5 lun=5;
name="st" class="scsi" target=6 lun=5;
name="st" class="scsi" target=8 lun=5;
name="st" class="scsi" target=9 lun=5;
name="st" class="scsi" target=10 lun=5;
name="st" class="scsi" target=11 lun=5;
name="st" class="scsi" target=12 lun=5;
name="st" class="scsi" target=13 lun=5;
name="st" class="scsi" target=14 lun=5;
name="st" class="scsi" target=15 lun=5;
# This line adds support for Fibre Channel Tapes
name="st" parent="fp" target=0;
7. 重启主机:shutdown –i6 g0 –y,或通过使用下列命令配置磁带设备(可以不重启)
# update_drv –f st (使修改后的st.conf生效,仅对Solaris 9有效)
# modinfo | grep st (确认st被加载)
# modinfo | grep lpfc (确认lpfc被加载)
8. ls /dev/rmt (确认磁带机设备已经生成),如果没有,再执行一次devfsadm。
9. inquire (应该可以看到机械手和磁带库上的磁带机)
# inquire |grep Ultrium
scsidev@3.0.1:HP Ultrium 2-SCSI F49Z|Tape, /dev/rmt/0cbn
ATNN:HP Ultrium 2-SCSI HUL3C00118
scsidev@3.0.2:HP Ultrium 2-SCSI F49Z|Tape, /dev/rmt/1cbn
ATNN:HP Ultrium 2-SCSI HUL3C00096
scsidev@3.0.3:HP Ultrium 2-SCSI F49Z|Tape, /dev/rmt/2cbn
ATNN:HP Ultrium 2-SCSI HUL3C00078
scsidev@3.0.4:HP Ultrium 2-SCSI F49Z|Tape, /dev/rmt/3cbn
ATNN:HP Ultrium 2-SCSI HUL4C02062
10. 使用jbedit –a添加Storage Node。
如果有任何问题,欢迎大家一起讨论。