Solaris系統(tǒng)下配置MPXIO
用的LSI的存儲和普安的存儲SUNV245平臺+LPE11002或者QlogicQLE2460
環(huán)境SUN的V245+LSI3994
想測試下LSI的存儲在Solaris下的路徑冗余,因為用LSI帶的RDAC裝完系統(tǒng)就Hang住了……
操作系統(tǒng)環(huán)境SUN-V245Solaris10U5HBA卡是Emulex的LPE11002雙端口的,先用LSI的Santricity做了一個Raid
然后在Solaris下用Format能看到倆個盤
接著如果使用第三方的存儲就如下:
bash-3.00#cat/kernel/drv/scsi_vhci.conf
#
#Copyright2004SunMicrosystems,Inc.Allrightsreserved.
#Useissubjecttolicenseterms.
#
#pragmaident"@(#)scsi_vhci.conf1.904/08/26SMI"
#
name="scsi_vhci"class="root";
#
#Loadbalancingglobalconfiguration:settingload-balance="none"willcause
#allI/Otoagivendevice(whichsupportsmultipathI/O)tooccurviaone
#path.Settingload-balance="round-robin"willcauseeachpathtothedevice
#tobeusedinturn.
#
load-balance="round-robin";
#
#Automaticfailbackconfiguration
#possiblevaluesareauto-failback="enable"orauto-failback="disable"
auto-failback="enable";
#
#ForenablingMPxIOsupportfor3rdpartysymmetricdeviceneedan
#entrysimilartofollowinginthisfile.Justreplacethe"SUNSENA"
#partwiththeVendorID/ProductIDforthedevice,exactlyasreportedby
#Inquirycmd.
#
#device-type-scsi-options-list=
#"SUNSENA","symmetric-option";
#
#symmetric-option=0x1000000;
如果需要添加別的存儲在下面添加如下:
device-type-scsi-options-list=
“DGCRAID”,“symmetric-option”;
symmetric-option=0×1000000;
怎么識別VendorID/ProductID了o(∩_∩)o...
首先執(zhí)行format,然后選擇映射過來的磁盤,選擇inquiry就可以顯示了:)如下例所示:
bash-3.00#format
Searchingfordisks...doneAVAILABLEDISKSELECTIONS:
0.c0t0d0<SEAGATE-ST973451SS-0001cyl38296alt2hd4sec935>/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
1.c0t1d0<FUJITSU-MBB2147RC-0105cyl65533alt2hd4sec1095>/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0
2.c0t2d0<drivetypeunknown>/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@2,0
3.c0t3d0<FUJITSU-MBB2147RC-0105cyl65533alt2hd4sec1095>/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@3,0
4.c1t2d0<ENGENIO-INF-01-00-0619cyl25598alt2hd64sec64>/pci@1e,600000/pci@0/pci@8/lpfc@0/fp@0,0/ssd@w200800a0b8420154,0
5.c2t1d0<ENGENIO-INF-01-00-0619cyl25598alt2hd64sec64>/pci@1e,600000/pci@0/pci@8/lpfc@0,1/fp@0,0/ssd@w200800a0b8420153,0Specifydisk(enteritsnumber):4selectingc1t2d0[diskformatted]FORMATMENU:
disk-selectadisk
type-select(define)adisktype
partition-select(define)apartitiontable
current-describethecurrentdisk
format-formatandanalyzethedisk
repair-repairadefectivesector
label-writelabeltothedisk
analyze-surfaceanalysis
defect-defectlistmanagement
backup-searchforbackuplabels
verify-readanddisplaylabels
save-savenewdisk/partitiondefinitions
inquiry-showvendor,productandrevision
volname-set8-charactervolumename
!<cmd>-execute<cmd>,thenreturn
quit
format>inquiry
Vendor:ENGENIO
Product:INF-01-00
Revision:0619
format>
然后呢執(zhí)行:
bash-3.00#stmsboot-e
WARNING:Thisoperationwillrequireareboot.
Doyouwanttocontinue?[y/n](default:y)y
Thechangeswillcomeintoeffectafterrebootingthesystem.
Rebootthesystemnow?[y/n](default:y)y
Thisrequiredareboot,soIrebootedthemachine,andlowandbeholdthedevicesappearedcorrectly:
重啟以后在用format應該就會只看到一個盤了:)
#######################################################
如果用的是普安的光纖存儲的話或者其他光纖存儲需要修改另外一些文件
首先用format看到倆個盤
然后在bash-3.00#format
Searchingfordisks...done
AVAILABLEDISKSELECTIONS:
0.c0t0d0<SEAGATE-ST973451SS-0001cyl38296alt2hd4sec935>/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
1.c1t112d0<inspur-AS800-361Gcyl37793alt2hd127sec64>/pci@1e,600000/pci@0/pci@2/lpfc@0/fp@0,0/ssd@w220000d0230014de,0
2.c2t113d0<inspur-AS800-361Gcyl37793alt2hd127sec64>/pci@1e,600000/pci@0/pci@2/lpfc@0,1/fp@0,0/ssd@w220000d0231014de,0
Specifydisk(enteritsnumber):1
selectingc1t112d0[diskformatted]
FORMATMENU:
disk-selectadisk
type-select(define)adisktype
partition-select(define)apartitiontable
current-describethecurrentdisk
format-formatandanalyzethedisk
repair-repairadefectivesector
label-writelabeltothedisk
analyze-surfaceanalysis
defect-defectlistmanagement
backup-searchforbackuplabels
verify-readanddisplaylabels
save-savenewdisk/partitiondefinitions
inquiry-showvendor,productandrevision
volname-set8-charactervolumename
!<cmd>-execute<cmd>,thenreturn
quit
format>inquiry
Vendor:inspur
Product:AS800
Revision:361G
format>q
然后修改/kernel/drv/scsi_conf文件
如下所示:bash-3.00#cat/kernel/drv/scsi_vhci.conf
bash-3.00#cat/kernel/drv/scsi_vhci.conf
#
#Copyright2004SunMicrosystems,Inc.Allrightsreserved.
#Useissubjecttolicenseterms.
#
#pragmaident"@(#)scsi_vhci.conf1.904/08/26SMI"
#
name="scsi_vhci"class="root";
#
#Loadbalancingglobalconfiguration:settingload-balance="none"willcause
#allI/Otoagivendevice(whichsupportsmultipathI/O)tooccurviaone
#path.Settingload-balance="round-robin"willcauseeachpathtothedevice
#tobeusedinturn.
#
load-balance="round-robin";
#
#Automaticfailbackconfiguration
#possiblevaluesareauto-failback="enable"orauto-failback="disable"
auto-failback="enable";
#
#ForenablingMPxIOsupportfor3rdpartysymmetricdeviceneedan
#entrysimilartofollowinginthisfile.Justreplacethe"SUNSENA"
#partwiththeVendorID/ProductIDforthedevice,exactlyasreportedby
#Inquirycmd.
#
#device-type-scsi-options-list=
#"SUNSENA","symmetric-option";
#
#symmetric-option=0x1000000;
device-type-scsi-options-list=
"inspurAS800","symmetric-option";
symmetric-option=0x1000000;
在然后看下機器上的光纖設備,我下面顯示的還有Qlogic的是因為我插過QLOGIC的卡……
bash-3.00#ls-l/dev/fc
total10
lrwxrwxrwx1rootroot60Jul2212:12fp0->../../devices/pci@1e,600000/pci@0/pci@8/lpfc@0/fp@0,0:devctl
lrwxrwxrwx1rootroot62Jul2212:12fp1->../../devices/pci@1e,600000/pci@0/pci@8/lpfc@0,1/fp@0,0:devctl
lrwxrwxrwx1rootroot64Jul2214:26fp2->../../devices/pci@1e,600000/pci@0/pci@2/QLGC,qlc@0/fp@0,0:devctl
lrwxrwxrwx1rootroot60Jul2214:38fp3->../../devices/pci@1e,600000/pci@0/pci@2/lpfc@0/fp@0,0:devctl
lrwxrwxrwx1rootroot62Jul2214:38fp4->../../devices/pci@1e,600000/pci@0/pci@2/lpfc@0,1/fp@0,0:devctl
然后編輯/kernel/drv/fcp.conf文件添加下面的內(nèi)容
bash-3.00#vi/kernel/drv/fcp.conf
"/kernel/drv/fcp.conf"8lines,182characters
#
#Copyright1999SunMicrosystems,Inc.Allrightsreserved.
#Useissubjecttolicenseterms.
#
#ident"@(#)fcp.conf1.203/09/30SMI"
#
name="fcp"parent="pseudo"instance=0;
name="fcp"parent="pci@1e,600000/pci@0/pci@2/lpfc@0"instance=0port=0mpxio-disable="no";
name="fcp"parent="pci@1e,600000/pci@0/pci@2/lpfc@0,1"instance=0port=0mpxio-disable="no";
~
然后保存后執(zhí)行下面的命令:#stmsboot-e重啟后就可以正確認出來一塊盤了
bash-3.00#luxadmprobe
NoNetworkArrayenclosuresfoundin/dev/es
FoundFibreChanneldevice(s):
NodeWWN:200000d0230014deDeviceType:Diskdevice
LogicalPath:/dev/rdsk/c3t600D0230FFFFFFFF0014DE422CA20201d0s2
bash-3.00#format
Searchingfordisks...done
AVAILABLEDISKSELECTIONS:
0.c0t0d0<SEAGATE-ST973451SS-0001cyl38296alt2hd4sec935>
/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0
1.c3t600D0230FFFFFFFF0014DE422CA20201d0<inspur-AS800-361Gcyl37793alt2hd127sec64>
/scsi_vhci/ssd@g600d0230ffffffff0014de422ca20201
Specifydisk(enteritsnumber):^D
如果有什么不對的地方或者需要修改的地方請幫忙指出謝謝:)
版權(quán)聲明:本站文章來源標注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請保持原文完整并注明來源及原文鏈接。禁止復制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務器上建立鏡像,否則將依法追究法律責任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學習參考,不代表本站立場,如有內(nèi)容涉嫌侵權(quán),請聯(lián)系alex-e#qq.com處理。