the way to Change the Load Balancing Policy of a Disk

发布于 2022-09-08 07:24:48 字数 3494 浏览 15 评论 0

[size=1.4em]Issue

This document describes how to change the load balancing policy of a disk.
Environment:

  • Operating system: HP-UX version 11.31 (11i v3)
  • Itanium HP Integrity servers

[size=1.4em]Solution

  • Identify the disk:

    # ioscan -mdsf /dev/rdisk/disk69 Persistent DSF           Legacy DSF(s)========================================/dev/rdisk/disk69        /dev/rdsk/c7t2d4                         /dev/rdsk/c5t2d4

  • Use the scsimgr utility to check the load balancing policy:

    # scsimgr get_attr -D /dev/rdisk/disk69 -a load_bal_policy
            SCSI ATTRIBUTES FOR LUN : /dev/rdisk/disk69
    name = load_bal_policycurrent = least_cmd_load  <---------------------  Exisiting Policydefault = least_cmd_load saved =

  • To change the load balancing policy, use:

    # scsimgr set_attr -D /dev/rdisk/disk69 -a load_bal_policy=round_robinValue of attribute load_bal_policy set successfully

    NOTE:Valid options are:

    • least_cmd_load
      Directs I/O requests through the hardware path with the least outstanding I/O requests.

    • round_robin
      Cycles I/O requests through the available hardware paths in round robin fashion.

    • cl_round_robin
      Cycles I/O requests through the available hardware paths in round robin fashion, within the locality of the CPU on which the I/O was initiated. This is known as cell-aware round robin.

    • weighted_rr
      Cycles I/O requests through the available hardware paths in round robin fashion, subject to a user-assigned weight for each path. A hardware path is used until the number of I/O requests matches its weight , and then another path is chosen.

    • preferred_path
      Directs I/O requests to the specified hardware path, if available.

    • pref_tport
      Directs I/O requests to the specified target port, if available.

    • closest_path
      Directs I/O requests through the hardware path with the lowest memory access latency, based on its affinity with the CPU processing the I/O operation.

    • path_lockdown
      Directs I/O requests through a single hardware path. The chosen hardware path is the one that is least loaded when the device is opened. This algorithm is the only one supported for serial devices such as tape drives, changers, and SCSI controller devices, and does not apply to block devices such as disks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文