6.0

Table Of Contents
VMware, Inc. 97
Chapter 6 Managing Third-Party Storage Arrays
Rules65436–65535arereservedforinternalusebyVMware.
Whenclaimingapath,thePSArunsthroughtherulesstartingfromthelowestnumberanddeterminesisa
pathmatchestheclaimrulespecification.IfthePSAfindsamatch,itgivesthepathtothecorresponding
plugin.Thisisworth
noticingbecauseagivenpathmightmatchseveralclaimrules.
Thefollowingexamplesillustrateaddingclaimrules.Specifyoneoftheoptionslistedin“ConnectionOptions
forvCLIHostManagementCommands”onpage 18inplaceof<conn_options>.
Addrule321,whichclaimsthepathonadaptervmhba0,channel0,target0,LUN0fortheNMPplugin.
esxcli <conn_options> storage core claimrule add -r 321 -t location -A vmhba0 -C 0 -T 0 -L 0
-P NMP
Addrule429,whichclaimsallpathsprovidedbyanadapterwiththemptscsidriverfortheMASK_PATH
plugin.
esxcli <conn_options> storage core claimrule add -r 429 -t driver -D mptscsi -P MASK_PATH
Addrule914,whichclaimsallpathswithvendorstringVMWAREandmodelstringVirtualfortheNMP
plugin.
esxcli <conn_options> storage core claimrule add -r 914 -t vendor -V VMWARE -M Virtual -P NMP
Addrule1015,whichclaimsallpathsprovidedbyFCadaptersfortheNMPplugin.
esxcli <conn_options> storage core claimrule add -r 1015 -t transport -R fc -P NMP
Converting ESX 3.5 LUN Masks to Claim Rule Format
Theesxcli storage core claimrule convertcommandconvertsLUNmasksinESX3.5format
(/adv/Disk/MaskLUNs)toclaimruleformat.ThecommandwritestheconvertedlistanderasestheoldLUN
maskdata.Specifyoneoftheoptionslistedin“ConnectionOptionsforvCLIHostManagementCommands”
onpage 18inplaceof<conn_options>.
To convert ESX 3.5 format LUN masks to claim rule format
1Run
esxcli storage core claimrule convertwithoutoptions.
ThatcallreturnsNo /adv/Disk/MaskLUNs config entry to convertordisplaysthelistofclaimrules
thatwouldresultfromtheconversion.Forexample:
2Runesxcli storage core claimrule convert
--committoactuallycommitthechange.
WhenyouconvertLUNmaskingtotheclaimruleformatafteranupgradefromESX/ESXi3.5toESX/ESXi4.x,
thiscommandconvertsthe/adv/Disk/MaskLUNsadvancedconfigurationentryintheesx.conffiletoclaim
ruleswithMASK_PATHastheplugin.
Rule Plugin HbaName Controller Target LUN
120 MASK_PATH vmhba11 0 0 11
121 MASK_PATH vmhba11 0 0 10
122 MASK_PATH vmhba4 0 2 1
I
MPORTANTThisconversiondoesnotworkforallinputMaskLUNvariations.Forexample,roleconversion
forsoftwareiSCSILUNsisnotsupported.
Inspectthelistofgeneratedclaimrulescarefullybeforeyoucommitthembyusing
--commit.
Table 6-1. esxcli storage core claimrule convert Options
Options Description
--commit
-C
ForcesLUNmaskconfigurationchangestobesaved.Ifyoucallthecommandwithoutthis
parameter,changesarenotsaved,andyoucanfirstinspectthegeneratedclaimrules.