The vmkernel logs on ESXi Hosts report the message:
“WARNING: ScsiClaimrule: 1318: Path vmhba2:C0:T0:L1 is claimed by plugin NMP, but current claimrule number 290 indicates that it should be claimed by plugin PowerPath.”
ESXi 5.5
PowerPath/VE 5.9 SP1 P03
HP Smart Array P410i Controller
Run: esxcfg-mpath -l to ensure the VMHBA is the local Smart Array P410i Controller
Device Display Name: HP Serial Attached SCSI Disk
Adapter: vmhba2 Channel: 0 Target: 0 LUN: 1
Run these 4 commands to make the change. You do not have to reboot.
esxcli storage core claimrule add –type=”location” –rule=210 –plugin=”NMP” –adapter=vmhba2 –channel=0 –target=0 –lun=1
esxcli storage core claimrule load
esxcli storage core claimrule run
esxcli storage core claimrule list | grep 210
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | # stop WARNING: ScsiClaimrule: 1318: Path vmhba2:C0:T0:L1 is claimed by plugin NMP, but current claimrule number 290 indicates that it should be claimed by plugin PowerPath. # found 8/27/17 https://vmscribble.com/powercli/current-claimrule-number-290-indicates-claimed-plugin-powerpath/ $vCenter=Read-Host"Enter the vCenter Name" $listofhosts=Read-Host"Enter the path and file name to the list of ESXi hosts ex. c:scriptshosts.txt" $thehosts=Get-Content-path$listofhosts # Connect to your vCenter Connect-VIServer$vCenter foreach($esxihost in$thehosts) { #Display the ESXi Host being modified Write-Host'$thehosts = '$esxihost # $esxcli = Get-EsxCli -VMHost $esxihost -V2 $esxcli=Get-VMHost$esxihost|Get-EsxCli-V2 # Create the new claimrule $arguments=$esxcli.storage.core.claimrule.add.CreateArgs() $arguments.type="location" $arguments.rule=210 $arguments.plugin="NMP" $arguments.adapter="vmhba2" $arguments.channel=0 $arguments.target=0 $arguments.lun=1 $esxcli.storage.core.claimrule.add.Invoke($arguments) # Load the new Claimrule $esxcli.storage.core.claimrule.load.Invoke() # Run the new Claimrule $esxcli.storage.core.claimrule.run.Invoke() } # Disconnect from the vCenter Disconnect-VIServer$vCenter-Confirm:$false |
The script will ask for the vCenter name and .txt file of ESXi host names.