zoukankan      html  css  js  c++  java
  • Linux 6 配置multipath

    启动多路径,通过mpathconf命令创建默认模板。创建默认配置,启动和激活multipathd进程,可以使用以下命令:
    mpathconf --enable --with_multipathd y
    配置完成后建议重新启动多路径软件:
    /etc/init.d/multipathd restart
    
    备注:启动完成后会在/etc/下生成multipath.conf 文件
    以及在/etc/multipath下生成bindings 及wwid,
    其中wwid记录了系统中所有挂载盘的盘唯一ID
    Bindings记录了ID对应的映射盘
    一般绑定完后会在/dev/mapper下产生类似于mpathx等文件
    
    [root@perass multipath]# ls -ltr
    -rw-------. 1 root root 692 12?9 2013 bindings
    -rw-------. 1 root root 586 12?9 2013 wwids
    [root@perass multipath]# cat bindings 
    # Multipath bindings, Version : 1.0
    # NOTE: this file is automatically maintained by the multipath program.
    # You should not need to edit this file in normal circumstances.
    #
    # Format:
    # alias wwid
    #
    mpatha 36782bcb01a2c77001945139a07659075
    mpathb 36782bcb01a2c7700194513a70833506f
    mpathc 3600a0b80006e82d800005fcb51ba55b2
    mpathd 3600a0b80006e82d800005fcd51ba5655
    mpathe 3600a0b80006e83620000609451ba57f6
    mpathf 3600a0b80006e82d80000594550f783ef
    mpathg 3600a0b80006e8362000059c450f784b7
    mpathh 3600a0b80006e82d800005fcf51ba5725
    mpathi 3600a0b80006e83620000609651ba5825
    mpathj 3600a0b80006e82d800005fd151ba575c
    mpathk 3600a0b80006e8362000069eb51faf50b
    mpathl 3600a0b80006e836200006bba52980c0f
    [root@perass multipath]# cat wwids 
    # Multipath wwids, Version : 1.0
    # NOTE: This file is automatically maintained by multipath and multipathd.
    # You should not need to edit this file in normal circumstances.
    #
    # Valid WWIDs:
    /36782bcb01a2c7700194513a70833506f/
    /3600a0b80006e83620000609451ba57f6/
    /3600a0b80006e82d800005fcd51ba5655/
    /3600a0b80006e82d800005fcb51ba55b2/
    /3600a0b80006e82d800005fd151ba575c/
    /3600a0b80006e83620000609651ba5825/
    /3600a0b80006e82d800005fcf51ba5725/
    /3600a0b80006e8362000059c450f784b7/
    /3600a0b80006e82d80000594550f783ef/
    /3600a0b80006e8362000069eb51faf50b/
    /3600a0b80006e836200006bba52980c0f/
    
    [root@perass multipath]# multipath -ll
    mpathd (3600a0b80006e82d800005fcd51ba5655) dm-3 IBM,1818      FAStT
    size=279G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
    |-+- policy='round-robin 0' prio=6 status=active
    | |- 1:0:0:1 sdd 8:48  active ready running
    | `- 2:0:1:1 sdp 8:240 active ready running
    `-+- policy='round-robin 0' prio=1 status=enabled
      |- 1:0:1:1 sdh 8:112 active ghost running
      `- 2:0:0:1 sdl 8:176 active ghost running
    mpathc (3600a0b80006e82d800005fcb51ba55b2) dm-4 IBM,1818      FAStT
    size=721G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
    |-+- policy='round-robin 0' prio=6 status=active
    | |- 1:0:0:0 sdc 8:32  active ready running
    | `- 2:0:1:0 sdo 8:224 active ready running
    `-+- policy='round-robin 0' prio=1 status=enabled
      |- 1:0:1:0 sdg 8:96  active ghost running
      `- 2:0:0:0 sdk 8:160 active ghost running
    mpathb (36782bcb01a2c7700194513a70833506f) dm-2 DELL,PERC H700
    size=916G features='0' hwhandler='0' wp=rw
    `-+- policy='round-robin 0' prio=1 status=active
      `- 0:2:1:0 sdb 8:16  active ready running
    mpathl (3600a0b80006e836200006bba52980c0f) dm-5 IBM,1818      FAStT
    size=2.9T features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
    |-+- policy='round-robin 0' prio=6 status=active
    | |- 1:0:1:3 sdj 8:144 active ready running
    | `- 2:0:0:3 sdn 8:208 active ready running
    `-+- policy='round-robin 0' prio=1 status=enabled
      |- 1:0:0:3 sdf 8:80  active ghost running
      `- 2:0:1:3 sdr 65:16 active ghost running
    mpathk (3600a0b80006e8362000069eb51faf50b) dm-6 IBM,1818      FAStT
    size=2.0T features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw
    |-+- policy='round-robin 0' prio=6 status=active
    | |- 1:0:1:2 sdi 8:128 active ready running
    | `- 2:0:0:2 sdm 8:192 active ready running
    `-+- policy='round-robin 0' prio=1 status=enabled
      |- 2:0:1:2 sdq 65:0  active ghost running
      `- 1:0:0:2 sde 8:64  active ghost running
    

  • 相关阅读:
    Button 使用Command 按钮置灰未更新
    C# TextBox 焦点
    MultiTigger 绑定异常处理
    C# 获取程序路径
    Linux 权限设置chmod
    WPF SpreadSheetGear电子表单
    WPF 窗口
    Excel公式 提取文件路径后缀
    C#/VB.NET 获取电脑属性(硬盘ID、硬盘容量、Cpu序列号、MAC地址、系统类型)
    DevExpress Carousel 设置水平滑动列表
  • 原文地址:https://www.cnblogs.com/hzcya1995/p/13352201.html
Copyright © 2011-2022 走看看