Hello Luc,
I have been trying to find q depth of iscsi adapter as per following .but value is blank here .
C:\Windows\system32> $esx_cli.system.module.parameters.list("iscsi_vmk")|?{$_.name -eq "iscsivmk_HostQDepth"}
Description Name Type Value
----------- ---- ---- -----
Maximum Outstanding Commands Per Adapter iscsivmk_HostQDepth int
i thought of increasing the q depth as esxtop has high value of 780 under CMDS/s under iscsi adapter.
Btw, the default value, which you don't see, is 128.
See also Adjust Maximum Queue Depth for Software iSCSI
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I normally do this as follows
$qDepth = @{
module = 'iscsi_vmk'
parameterstring = 'iscsivmk_LunQDepth=256'
}
$esxcli = Get-EsxCli -VMHost MyEsx
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
$esxcli.system.module.parameters.set.Invoke($qDepth)
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
$qDepth = @{
module = 'iscsi_vmk'
#parameterstring = 'iscsivmk_LunQDepth=256'
}
$esxcli = Get-EsxCli -VMHost MyEsx
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
#$esxcli.system.module.parameters.set.Invoke($qDepth)
#$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
i just want to check the value so i comment out above .is that ok to get value ??
Yes
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
not working as it is where i started .
$qDepth = @{
module = 'iscsi_vmk'
}
$esxcli = Get-EsxCli -VMHost "piassvmcl004.eu.thmulti.com"
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
and output
Don't you have the Type and Value columns in the output?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No,
i got following
You didn't do the set yet?
You should see the value after you call the line with set.
All parameters will show an empty value field until you set the parameter.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Btw, the default value, which you don't see, is 128.
See also Adjust Maximum Queue Depth for Software iSCSI
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks luc .i can’t set this right now .but as you mentioned default is 128 though not displayed.
i m thinking if any thing needs to be changed from storage end also if make it to 256.
There are several other settings (MaxHWTransferSize,DSNRO ,DelayedAck, SATP rules...) you might want to review to optimise your storage for VvSphere.
But it would be best to look for the Best Practices for vSphere from your storage vendor.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
I know this is an old thread, but how do these commands change if I want to use ESXCLI v2? I cannot seem to find the correct syntax.
They don't, the code above has a typo, I forgot the V2 switch.
It should be
module = 'iscsi_vmk'
parameterstring = 'iscsivmk_LunQDepth=256'
}
$esxcli = Get-EsxCli -VMHost MyEsx -V2
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
$esxcli.system.module.parameters.set.Invoke($qDepth)
$esxcli.system.module.parameters.list.Invoke('iscsi_vmk')
For more info on this V2 switch, have a look at PowerCLI 6.3 R1: Get-ESXCLI Why the V2?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference