zoukankan      html  css  js  c++  java
  • 多路径multipath配置文件RedHat7

      环境描述RedHat Enterprise Linux7 multipath配置文件详解:

    vi /etc/multipath.conf
    devices {
            device {
                    vendor "NETAPP"
                    product "LUN.*"
                    path_grouping_policy "group_by_prio"
                    path_checker "tur"
                    features "3 queue_if_no_path pg_init_retries 50"
                    hardware_handler "1 alua"
                    prio "alua"
                    failback "immediate"
                    rr_weight "uniform"
                    rr_min_io 128
                    dev_loss_tmo "infinity"
                    retain_attached_hw_handler "yes"
                    detect_prio "yes"
                    path_selector  "round-robin 0"
                    no_path_retry  18
                    user_friendly_names yes              
            }
    }
    
    blacklist {
        device {
            vendor ".*"
        }
    }
    blacklist_exceptions {
        device {
            vendor "^NETAPP"
        }
    }

    查看服务状态
    systemctl status multipathd.service
    systemctl start multipathd.service
    systemctl enable multipathd.service
    systemctl list-unit-files | grep multipathd

    参考链接:https://access.redhat.com/solutions/1337273

    DM-Multipath could not set user friendly names for SAN devices

    We have enabled user_friendly_names yes option in /etc/multipath.conf file, but still dm-multipath creates the multipath device maps using WWID instead of user friendly names (e.g. mpathn):

    $ less /etc/multipath.conf
    [...]
    defaults {
        user_friendly_names yes
        find_multipaths yes
    }
    
    $ multipath -v2
    $ multipath -ll
    360a98000572d5765636f65646544784e dm-3 NETAPP  ,LUN             
    size=10G features='4 queue_if_no_path pg_init_retries 50 retain_attached_hw_handle' hwhandler='0' wp=rw
    `-+- policy='service-time 0' prio=0 status=active
      |- 18:0:0:0 sdc 8:32 active undef running
      `- 19:0:0:0 sdb 8:16 active undef running


  • 相关阅读:
    BZOJ1029:[JSOI2007]建筑抢修(贪心,堆)
    1054. [HAOI2008]移动玩具【BFS】
    1297. [SCOI2009]迷路【矩阵乘法】
    1192. [HNOI2006]鬼谷子的钱袋【进制】
    2243. [SDOI2011]染色【树链剖分】
    1051. [HAOI2006]受欢迎的牛【强连通分量】
    codevs 2074 营救 WW
    codevs 1191 数轴染色
    codevs 2855 游乐园的迷宫 bfs
    codevs 2806 红与黑
  • 原文地址:https://www.cnblogs.com/azyb/p/10809613.html
Copyright © 2011-2022 走看看