6.0

Table Of Contents
VMware, Inc. 47
Chapter 4 Managing Storage
Changing Path State with ESXCLI
Youcantemporarilydisablepathsformaintenanceorotherreasons,andenablethepathwhenyouneedit
again.YoucandisablepathswithESXCLI.Specifyoneoftheoptionslistedin“ConnectionOptionsforvCLI
HostManagementCommands”onpage 18inplaceof<conn_options>.
Ifyouarechangingapath’s
state,thechangeoperationfailsifI/Oisactivewhenthepathsettingischanged.
Reissuethecommand.YoumustissueatleastoneI/Ooperationbeforethechangetakeseffect.
To disable a path with ESXCLI
1 (Optional)Listalldevicesandcorrespondingpaths.
esxcli <conn_options> storage core path list
Thedisplayincludesinformationabouteachpath’sstate.
2SetthestateofaLUNpathtooff.
esxcli <conn_options> storage core path set --state off --path vmhba32:C0:T1:L0
Whenyouareready,setthepathstatetoactiveagain.
esxcli <conn_options> storage core path set --state active --path vmhba32:C0:T1:L0
Changing Path State with vicfg-mpath
Youcandisablepathswithvicfg-mpath.Specifyoneoftheoptionslistedin“ConnectionOptionsforvCLI
HostManagementCommands”onpage 18inplaceof<conn_options>.
Ifyouarechangingapath’sstate,thechangeoperationfailsifI/Oisactivewhenthepathsettingischanged.
Reissuethecommand.
YoumustissueatleastoneI/Ooperationbeforethechangetakeseffect.
To disable a path with vicfg-mpath
1 (Optional)Listalldevicesandcorrespondingpaths.
vicfg-mpath <conn_options> --list-paths
Thedisplayincludesinformationabouteachpath’sstate.
2SetthestateofaLUNpathtooff.
vicfg-mpath <conn_options> --state off --path vmhba32:C0:T1:L0
Whenyouareready,setthepathstatetoactiveagain.
vicfg-mpath <conn_options> --state active --path vmhba32:C0:T1:L0
Managing Path Policies
ForeachstoragedevicemanagedbyNMP(notPowerPath),anESXihostusesapathselectionpolicy.Ifyou
haveathirdpartyPSPinstalledonyourhost,itspolicyalsoappearsonthelist.Thefollowingpathpolicies
aresupportedbydefault.