LoginSignup
0
0

More than 5 years have passed since last update.

PowerCLI1行で全ESXiのラウンドロビンのiopsを1にする

Last updated at Posted at 2018-11-02

https://kb.vmware.com/kb/2069356
これの対応ですね。リンク先にテキストでサンプルコードが置いてあるますが、1行ですまそうとするとこうなりました。
対象を絞り込みたい時は -like ‘naa.*’を編集したり-andで条件を追加すればOKです。

Connect-VIServer
Get-VMHost| %{Get-ScsiLun -VmHost $_ -LunType Disk | Where-Object {$_.CanonicalName -like ‘naa.*’ -and $_.MultipathPolicy -like ‘RoundRobin’}| Set-ScsiLun -CommandsToSwitchPath 1}
Disconnect-VIServer
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0