Solaris系统下配置MPXIO

时间:2022-06-01 19:27:05

用的LSI的存储和普安的存储SUNV245平台+LPE11002或者QlogicQLE2460

环境SUN的V245+LSI3994

想测试下LSI的存储在Solaris下的路径冗余,因为用LSI带的RDAC装完系统就Hang住了……

操作系统环境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...

首先执行format,然后选择映射过来的磁盘,选择inquiry就可以显示了:)如下例所示:

bash-3.00#format

Searchingfordisks...doneAVAILABLEDISKSELECTIONS:

0.c0t0d0/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0

1.c0t1d0/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@1,0

2.c0t2d0/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@2,0

3.c0t3d0/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@3,0

4.c1t2d0/pci@1e,600000/pci@0/pci@8/lpfc@0/fp@0,0/ssd@w200800a0b8420154,0

5.c2t1d0/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

!-execute,thenreturn

quit

format>inquiry

Vendor:ENGENIO

Product:INF-01-00

Revision:0619

format>

然后呢执行:

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/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0

1.c1t112d0/pci@1e,600000/pci@0/pci@2/lpfc@0/fp@0,0/ssd@w220000d0230014de,0

2.c2t113d0/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

!-execute,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文件添加下面的内容

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";

~

然后保存后执行下面的命令:#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

/pci@1e,600000/pci@0/pci@a/pci@0/pci@8/scsi@1/sd@0,0

1.c3t600D0230FFFFFFFF0014DE422CA20201d0

/scsi_vhci/ssd@g600d0230ffffffff0014de422ca20201

Specifydisk(enteritsnumber):^D

如果有什么不对的地方或者需要修改的地方请帮忙指出谢谢:)