PowerCLI

 View Only
  • 1.  Round Robin and IOPS Limit

    Posted 24 days ago

    Hi All,

    Could anyone please guide me on the following:

    1. How to check the current LUNs' path selection policy and IOPS settings?

    2. If the LUNs are not configured for Round Robin, how can we change the policy for multiple LUNs in bulk?

    3. Also, how do we set the IOPS value (e.g., IOPS=1,000 or similar) for all LUNs using a script?

    Appreciate it if you can share the appropriate PowerCLI or script to achieve this.

    Thanks, Kumar.



  • 2.  RE: Round Robin and IOPS Limit

    Posted 23 days ago
    The path selection policy (PSP) and any options are defined in storage array type plugins (SATP) rules.
    # Retrieve the ESXCLI object for the specified ESXi host
    $esxcli = Get-VMHost -Name 'NAME' | Get-EsxCli -V2

    # Display all Storage Array Type Plugins (SATPs) available on the host
    $esxcli.storage.nmp.satp.list.Invoke()

    # Display all storage devices managed by the Native Multipath Plugin (NMP)
    $esxcli.storage.nmp.device.list.Invoke()

    # Show all SATP rules in a graphical grid view window
    $esxcli.storage.nmp.satp.rule.list.Invoke() | Out-GridView
    Example rule for the PURE FlashArray
    # Add a new SATP rule for PURE FlashArray devices using Round Robin PSP with iops=1 option
    $esxcli.storage.nmp.satp.rule.add.Invoke(@{
            satp      = 'VMW_SATP_ALUA'
            vendor    = 'PURE'
            model     = 'FlashArray'
            psp       = 'VMW_PSP_RR'
            pspoption = 'iops=1'
        })
    Using this method, you can apply the needed PSP and any options to all devices on that storage array type.