A Beginners Guide To Solaris Multipathing Software (MPxIO or STMS)
A Beginners Guide To Solaris Multipathing Software (MPxIO or STMS)
A Beginners Guide To Solaris Multipathing Software (MPxIO or STMS)
THE GEEK DIARY SOLARIS VXVM VCS LINUX INTERVIEW QUESTIONS ORACLE
BLOGPOST
TheGeekDiarySolarisAbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS...
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)
#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.
Solaris[TM]7,8,9,10,11
#modinfoc|grepscsi_vhci
211scsi_vhciLOADED/INSTALLED
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
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
FiledUnder:Solaris
http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 6/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)
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
Jointhediscussion
Purushothaman2yearsago
Thisisgreatandhelpful
1 Reply Share
You'reWelcome.Andthanksfordroppingby.:)
Reply Share
ChrisMiddleton3yearsago
Thisisexcellent,thanksSandeep.
1 Reply Share
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
SIGN UP NOW
728 172
Fans Followers
507 291
Subscribers Followers
http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 9/10
11/11/2016 AbeginnersguidetoSolarisMultipathingSoftware(MPxIOorSTMS)
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
http://thegeekdiary.com/abeginnersguidetosolarismultipathingsoftwarempxiostms/ 10/10