Skip to content

Instantly share code, notes, and snippets.

@jeffgreenca
Created December 9, 2016 17:27
Show Gist options
  • Save jeffgreenca/a5167d8d98f963be7e9bf777fd861fb1 to your computer and use it in GitHub Desktop.
Save jeffgreenca/a5167d8d98f963be7e9bf777fd861fb1 to your computer and use it in GitHub Desktop.
Set ESXi 6.0 Disk.MaxLun See https://kb.vmware.com/kb/1998
#Reduces the Disk.MaxLun on all connected ESXi hosts, as a workaround to an incorrect PDL error with ESXi 6.0+ and HPE 3PAR.
#Works by reducing the Disk.MaxLun below the 3PAR PE LUN 256, thus the PE LUN is not scanned and will not throw an unexpected PDL.
Get-VMHost | % { Get-AdvancedSetting -Entity $_ -Name "Disk.MaxLUN" | Set-AdvancedSetting -Value 255 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment