Вы находитесь на странице: 1из 10

11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

THE GEEK DIARY SOLARIS VXVM VCS LINUX INTERVIEW QUESTIONS ORACLE

BLOGPOST

TheGeekDiarySolarisAbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS...

A beginners guide to Solaris Multipathing Software (MPxIO or


STMS)

HY Accounting for OS X
Business Accounting Software for OS X Go to itunes.apple.com

OracleSolarisStorageMultipathingMPxIOprovidesmultipathaccesstostoragelunsbygroupingtogether
thephysicalpathsandpresentingasinglelogicalpath.MPxIOcanalsobereferredasSTMSor
SCSI_VHCIduetothecommandsusedandlogicaldevicepathscreated.

Configuration files
ForSolaris10andearlier

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 1/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

/kernel/drv/fp.conf Fiberchannelportconfigurationfile(ForFiberChannelDevices)

/kernel/drv/mpt.conf mptscsi/SASHBAcontrollerdriverconfigurationfile(ForSASDevices)

/kernel/drv/scsi_vhci.conf MPXIOoperationconfigurationfile(Usedtodefineloadbalancingand
failbackmodesandconfigure3rdpartydevices)

/kernel/drv/iscsi_conf iSCSIMPxIOconfigurationfile(ForiSCSIdevices)

ForSolaris11
IncaseofSolaris11,filesinthedirectory/kernel/drv/and/etc/driver/drvarethesampledefault
configurationfilesdeliveredwithOS(notusedbyMPxIO).Donoteditthesefiles.Thelocationofthe
configurationfilesis/etc/driver/drv/.The4configurationfilesusedincaseofSolaris11arethesame,
performingthesametask.Althoughthesyntaxmaybedifferent.

/etc/driver/drv/fp.conf
/etc/driver/drv/mpt.conf
/etc/driver/drv/scsi_vhci.conf
/etc/driver/drv/iscsi_conf

Itisbestpracticetoeditthesefilesusingthestmsbootutility,ratherthaneditingthemmanually.

Enabling/Disabling MPxIO
Thesyntaxofthecommandstmsbootusedtoenable/disableMPxIOis:

stmsboot[Dfp|mpt][d|e|u|L|lcontroller_number]

where:
Dfp|mpt>toselecttheprotocolwhereyouwanttoenable/disablempxio
e>toenableSTMSonallHBA
d>todisableSTMSonallHBA
u>toupdatevfstableanddumpconfigaftermanualfileconfiguration
lorLunchangedseethemanpageofstmsforafulldescription.

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 2/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

Fewexamplesofusingstmsbootcommandare:

#stmsboote ToenableMPxIOoralldevices(globally)

#stmsbootDfpe ToenableMPxIOforfiberchanneldevices

#stmsbootd TodisableMPxIOforalldevices(globally)

How to confirm MPxIO is enabled


TomakesurethatMPxIOisenabledforaLUN,simplyruntheformatcommandandcheckforthe
/scsi_vhciinthelogicalpathoftheLUN.

#format
4.c6t60060E800561CF00000061CF00000002d0
/scsi_vhci/ssd@g60060e800561cf00000061cf00000002

Anotherwayistocheckthempxiodisableparameterintheconfigurationfiles:

Solaris7,8,9

#egrep"^mpxiodisable="/kernel/drv/*.conf
/kernel/drv/scsi_vhci.conf:mpxiodisable="no";

Solaris10

#egrep"^mpxiodisable="/kernel/drv/*.conf
/kernel/drv/fp.conf:mpxiodisable="no";

Solaris11

#egrep"^mpxiodisable="/etc/driver/drv/*.conf
/etc/driver/drv/fp.conf:mpxiodisable="no";

ForSolaris10and11,MPxIOisenabledbydefaultonX86platforms.

Verifying that the scsi_vhci module is loaded


scsi_vhciisthevirtualhostcontrollerinterconnectdriverusedtomanagepathofstorageLUN.Ifyoufind
thatthescsi_vhcimoduleisnotloaded,thenmostlikelyMPxIOisnotenabled.

Solaris[TM]7,8,9,10,11
#modinfoc|grepscsi_vhci
211scsi_vhciLOADED/INSTALLED

Verifying Health of paths


http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 3/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

Verifying Health of paths


WecancheckthemultiplepathstothestoragearrayLUNsbyusingmpathadmorluxadmcommand.The
variousstatesforthepathsare:

ONLINE/primary
ONLINE/secondary
STANDBY/secondary
OFFLINE/*
UNAVAILABLE/*

mpathadm(supportedforFC/SAS/iSCSI)[WorksonSolaris10,11]
luxadm(supportedonFConly)[WorksonSolaris7,8,9,10,11]

#mpathadmlistLU
/dev/rdsk/c9t60080E50001C0300000006464D8C9044d0s2
TotalPathCount:2
OperationalPathCount:2

Tocheckthehealthofthepathsusingmpathadm:

#mpathadmshowLU/dev/rdsk/c9t60080E50001C0300000006464D8C9044d0s2

LogicalUnit:/dev/rdsk/c9t60080E50001C0300000006464D8C9044d0s2
mpathsupport:libmpscsi_vhci.so
Vendor:SUN
Product:LCSM100_F
Revision:0777
NameType:unknowntype
Name:60080e50001c0300000006464d8c9044
Asymmetric:yes
CurrentLoadBalance:roundrobin
LogicalUnitGroupID:NA
AutoFailback:on
AutoProbing:NA

Paths:
InitiatorPortName:210000e08b07922c
TargetPortName:203d0080e51c2cc4
OverridePath:NA
PathState:OK
Disabled:no

InitiatorPortName:210000e08b07f32c
TargetPortName:203e0080e51c2cc4
OverridePath:NA
PathState:OK

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 4/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

Disabled:no
.........

Tocheckhealthofpathsusingluxadm:

#luxadmprobe
FoundFibreChanneldevice(s):
......
LogicalPath:/dev/rdsk/c6t60060E800561CF00000061CF00000002d0s2
NodeWWN:203e0080e51c2cc4DeviceType:Diskdevice
......

#luxadmdisplay203e0080e51c2cc4
DEVICEPROPERTIESfordisk:203e0080e51c2cc4
Vendor:SUN
ProductID:LCSM100_F>thisisa2540or2540M2array
Revision:0777
SerialNum:SV04720931
Unformattedcapacity:5120.000MBytes
WriteCache:Enabled
ReadCache:Enabled
Minimumprefetch:0x3
Maximumprefetch:0x0
DeviceType:Diskdevice
Path(s):

/dev/rdsk/c9t60080E50001C0300000006464D8C9044d0s2
/devices/scsi_vhci/ssd@g60080e50001c0300000006464d8c9044:c,raw
Controller/devices/pci@1d,700000/SUNW,qlc@1/fp@0,0
DeviceAddress203d0080e51c2cc4,0
HostcontrollerportWWN210000e08b07922c
Classprimary
StateONLINE
Controller/devices/pci@1c,600000/SUNW,qlc@1/fp@0,0
DeviceAddress203e0080e51c2cc4,0
HostcontrollerportWWN210000e08b07f32c
Classsecondary
StateONLINE

Load Balancing policies


MPxIOalsoprovidestheloadbalancingcapabilitytotheI/O.Therearebasically3optionstoconfigure
loadbalancing:

Round Selectsallpathsinaroundrobinway.
Robin

Logical I/Oswithintherangespecifiedbyrange_sizeparameterwouldgoonthesamepath.Improves

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 5/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

Block performanceonsomestoragearrayswhichhaveperpathcachingofdata.

None Noloadbalancingonlyonepathisused.

Theloadbalancingpolicycanbesetintheconfigurationfile/kernel/drv/scsi_vhci.confforsolaris10and
earlierorinthe/etc/driver/drv/scsi_vhci.conffileforsolaris11.

loadbalance="roundrobin";

Auto-failback policy
Autofailbackpolicyenablesthereenablethefailedpathafterithasrecoveredfromthefailure.Bydefault
theautofailbackisenabled.Thereare2waystoenabletheautofailback:

Nonpersistentway
Bythismethod,theautofailbackoptiondoesnotpersistacrossreboots.

#mpathadmmodifympathsupportautofailbackonlibmpscsi_vhci.so
#mpathadmmodifympathsupportaonlibmpscsi_vhci.so

Persistentway
Forthechangestopersistacrossrebootssettheautofailbackparameterintheconfigurationfile
/kernel/drv/scsi_vhci.confforsolaris10andearlierorinthe/etc/driver/drv/scsi_vhci.conffileforsolaris11.
Thisrequiresareconfigurationreboot.

autofailback="enable";

Verifyingautofailback
Toconfirmthattheautofailbackisenableduse:

#mpathadmshowmpathsupportlibmpscsi_vhci.so|grepifailback
SupportedAutoFailbackConfig:1
AutoFailback:on<<<<
FailbackPollingRate(current/max):0/0

HowtoenableSolarismultipathing(MPxIOorSTMS)forEMCSymmetrixLUNs

SHARE ON

Twitter Facebook WhatsApp Google+ Buffer LinkedIn PinIt

Adsby Google Solaris10 UnixSolaris OracleSoftware LinuxCommands

FiledUnder:Solaris
http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 6/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

Some more articles you might also be interested in


1.HowtocheckzpoolstatusinSolaris
2.HowtoConfigureaSolaris10Jumpstartserverandclient[SPARC]
3.SVM:HowtosetbootdeviceatOBPformirroredrootdisk
4.Solaris11:HowtoconfigureVLANtaggingonanetworkinterface
5.SolarisZones:HowToChangeTheNumberOfCPUsUsingDynamicResourcePools
6.Solaris11:SettinguserandgroupquotaforZFSdatasets
7.HowtoreplaceadiskunderZFSinSolaris
8.HowtoDisableIPv6insolaris8,9,10
9.HowtoconfigureSolaris10LinkBasedIPMP
10.Solaris:howtotruncatethewtmpxfile

Adsby Google OSSoftware LinuxCommands SolarisOS AllSoftware

About Sandeep
IndiabasedUnixAdmin,CloudEvangelistanda
Virtualizationlover.IamSandeepPatil.IworkasaUnix
AdministratorandloveplayingaroundwithLinux,Solaris
andvariousothervirtualizationandHAsolutions.The
GeekDiaryblogisallabouthowtos,basicsandconcepts
onvariousLinux/UNIXrelatedtopics.Ihopeyoufindthe Python 2 to Python 3
bloguseful. Find All The Libraries and SDKs you Will
Ever Need in One Place
FollowTheblogOn:Twitter,Facebook,Google+
discoversdk.com

7Comments TheGeekDiary
1 Login

Recommend Share SortbyBest

Jointhediscussion

Purushothaman2yearsago
Thisisgreatandhelpful
1 Reply Share

SandeepPatil Mod >Purushothaman2yearsago


http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 7/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)
SandeepPatil Mod >Purushothaman 2yearsago

You'reWelcome.Andthanksfordroppingby.:)
Reply Share

ChrisMiddleton3yearsago
Thisisexcellent,thanksSandeep.
1 Reply Share

SandeepPatil Mod >ChrisMiddleton 3yearsago

HeyChris,I'mgladyoulikedit.:)
Reply Share

ArupJThakuria2yearsago
HelloAll

Ihavethebelowoutput.

AVAILABLEDISKSELECTIONS:

0.c1t0d0<lsilogiclogicalvolume3000cyl=""65533=""alt=""2=""hd=""16=""sec=""273="">

/pci@0/pci@0/pci@2/scsi@0/sd@0,0

1.c1t2d0<lsilogiclogicalvolume3000cyl=""65533=""alt=""2=""hd=""16=""sec=""273="">

/pci@0/pci@0/pci@2/scsi@0/sd@2,0

2.c2t50060E800548E930d0<hitachiopenvsun600832.32gb="">

/pci@0/pci@0/pci@8/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w50060e800548e930,0

3.c4t50060E80167EEC41d1<hitachiopenvsun7006cyl=""8824=""alt=""2=""hd=""15=""sec=""
512="">

/pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w50060e80167eec41,1

4.c4t50060E800548E942d0<hitachiopenvsun600832.32gb="">

/pci@0/pci@0/pci@8/pci@0/pci@a/SUNW,qlc@0/fp@0,0/ssd@w50060e800548e942,0

Specifydisk(enteritsnumber):Specifydisk(enteritsnumber):

Soaccordingtothispost3&4arenotundermultipathorwecansaythatmultipathisnotconfigured????
Reply Share

dinesh2yearsago
Oneofmympathisshowingofflineinmpathadmlistlu

iscannedusingdevfsadmcvandalsoranluxadmprobestillitshowsoffline

Pleaseguidemewhatelsetocheckonthis
Reply Share

Solarisfun>dinesh2yearsago
Try#cfgadmal

Checkcabling,switch,etc...Ifnotarebootmightbeyourlastresort
1 Reply Share
http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 8/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)
1 Reply Share

Subscribe d AddDisqustoyoursiteAddDisqusAdd Privacy

Search this website

Enter your email here

SIGN UP NOW


728 172
Fans Followers


507 291
Subscribers Followers

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 9/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)

CHEAT SHEETS SOLARIS INTERVIEW QUESTIONS

LDOMs(OVMforSPARC)Commandline TheultimateSolarisVolumeManager(SVM)
reference interviewquestions

SolarisVolumeManager(SVM)commandline TheultimateSolariszones(containers)interview
reference questions

SolarisZFScommandlinereference TheultimateSolarisnetworkinginterview
questions
RHEL7RHCSANotes(CheatSheets)
TheultimateZFSinterviewquestions
CentOS/RHEL7:firewalldCheatSheet HARDWARE CHEAT SHEETS

MostCommonlyusedALOMcommands

MostCommonlyusedILOMcommands

MostCommonlyusedLOMcommands

MostcommonlyusedXSCFcommands

MostCommonlyusedRSCcommands

HowtologinintoconsolefromILOM,ALOM,
LOM,ELOM,XSCF,RSC

Archives Contact Us Copyright

http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 10/10

Вам также может понравиться