3.2. 在​​​​​​​生​​​​​​​成​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​设​​​​​​​备​​​​​​​时​​​​​​​忽​​​​​​​略​​​​​​​逻​​​​​​​辑​​​​​​​磁​​​​​​​盘​​​​​​​


有​​​​​​​些​​​​​​​机​​​​​​​器​​​​​​​在​​​​​​​其​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​中​​​​​​​有​​​​​​​本​​​​​​​地​​​​​​​ SCSI 卡​​​​​​​。​​​​​​​不​​​​​​​建​​​​​​​议​​​​​​​在​​​​​​​这​​​​​​​些​​​​​​​设​​​​​​​备​​​​​​​中​​​​​​​使​​​​​​​用​​​​​​​ DM-Multipath。​​​​​​​以​​​​​​​下​​​​​​​步​​​​​​​骤​​​​​​​显​​​​​​​示​​​​​​​如​​​​​​​何​​​​​​​在​​​​​​​配​​​​​​​置​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​时​​​​​​​修​​​​​​​改​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​来​​​​​​​忽​​​​​​​略​​​​​​​逻​​​​​​​辑​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​
  1. 确​​​​​​​定​​​​​​​哪​​​​​​​些​​​​​​​磁​​​​​​​盘​​​​​​​是​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​并​​​​​​​将​​​​​​​其​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​。​​​​​​​
    在​​​​​​​这​​​​​​​个​​​​​​​示​​​​​​​例​​​​​​​中​​​​​​​,/dev/sda 是​​​​​​​内​​​​​​​部​​​​​​​磁​​​​​​​盘​​​​​​​。​​​​​​​请​​​​​​​注​​​​​​​意​​​​​​​:因​​​​​​​为​​​​​​​在​​​​​​​默​​​​​​​认​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​配​​​​​​​置​​​​​​​文​​​​​​​件​​​​​​​中​​​​​​​已​​​​​​​经​​​​​​​对​​​​​​​其​​​​​​​进​​​​​​​行​​​​​​​了​​​​​​​配​​​​​​​置​​​​​​​,所​​​​​​​以​​​​​​​执​​​​​​​行​​​​​​​ multipath -v2 会​​​​​​​在​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​中​​​​​​​显​​​​​​​示​​​​​​​本​​​​​​​地​​​​​​​磁​​​​​​​盘​​​​​​​ /dev/sda。​​​​​​​
    For further information on the multipath command output, see 第 5.4 节 “Multipath Command Output”.
    [root@rh4cluster1 ~]# multipath -v2
    create: SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    [size=33 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 0:0:0:0 sda  8:0    [--------- 
    
    device-mapper ioctl cmd 9 failed: Invalid argument
    device-mapper ioctl cmd 14 failed: No such device or address
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    
  2. 要​​​​​​​防​​​​​​​止​​​​​​​设​​​​​​​备​​​​​​​映​​​​​​​射​​​​​​​器​​​​​​​在​​​​​​​其​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​中​​​​​​​映​​​​​​​射​​​​​​​ /dev/sda,请​​​​​​​编​​​​​​​辑​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​的​​​​​​​ blacklist 部​​​​​​​分​​​​​​​,使​​​​​​​其​​​​​​​包​​​​​​​括​​​​​​​该​​​​​​​设​​​​​​​备​​​​​​​。​​​​​​​尽​​​​​​​管​​​​​​​您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​ devnode 类​​​​​​​型​​​​​​​将​​​​​​​ sda 设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,但​​​​​​​那​​​​​​​不​​​​​​​是​​​​​​​一​​​​​​​个​​​​​​​安​​​​​​​全​​​​​​​的​​​​​​​步​​​​​​​骤​​​​​​​,因​​​​​​​为​​​​​​​在​​​​​​​重​​​​​​​启​​​​​​​是​​​​​​​无​​​​​​​法​​​​​​​保​​​​​​​证​​​​​​​ /dev/sda 是​​​​​​​同​​​​​​​一​​​​​​​个​​​​​​​名​​​​​​​称​​​​​​​。​​​​​​​要​​​​​​​将​​​​​​​单​​​​​​​独​​​​​​​的​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,您​​​​​​​可​​​​​​​以​​​​​​​使​​​​​​​用​​​​​​​那​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​的​​​​​​​ WWID 将​​​​​​​其​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​。​​​​​​​
    请​​​​​​​注​​​​​​​意​​​​​​​:在​​​​​​​ multipath -v2 命​​​​​​​令​​​​​​​的​​​​​​​输​​​​​​​出​​​​​​​中​​​​​​​,/dev/sda 设​​​​​​​备​​​​​​​的​​​​​​​ WWID 是​​​​​​​ SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1。​​​​​​​要​​​​​​​将​​​​​​​这​​​​​​​个​​​​​​​设​​​​​​​备​​​​​​​列​​​​​​​入​​​​​​​黑​​​​​​​名​​​​​​​单​​​​​​​,请​​​​​​​在​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​中​​​​​​​添​​​​​​​加​​​​​​​以​​​​​​​下​​​​​​​内​​​​​​​容​​​​​​​。​​​​​​​
    blacklist {
          wwid SIBM-ESXSST336732LC____F3ET0EP0Q000072428BX1
    }
    
  3. 在​​​​​​​您​​​​​​​更​​​​​​​新​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​后​​​​​​​,您​​​​​​​必​​​​​​​须​​​​​​​手​​​​​​​动​​​​​​​让​​​​​​​ multipathd 守​​​​​​​护​​​​​​​进​​​​​​​程​​​​​​​重​​​​​​​新​​​​​​​载​​​​​​​入​​​​​​​该​​​​​​​文​​​​​​​件​​​​​​​。​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​可​​​​​​​重​​​​​​​新​​​​​​​载​​​​​​​入​​​​​​​更​​​​​​​新​​​​​​​的​​​​​​​ /etc/multipath.conf 文​​​​​​​件​​​​​​​。​​​​​​​
    service multipathd reload
    
  4. 运​​​​​​​行​​​​​​​以​​​​​​​下​​​​​​​命​​​​​​​令​​​​​​​:
    multipath -F
    multipath -v2
    
    本​​​​​​​地​​​​​​​磁​​​​​​​盘​​​​​​​或​​​​​​​者​​​​​​​不​​​​​​​应​​​​​​​再​​​​​​​列​​​​​​​入​​​​​​​新​​​​​​​的​​​​​​​多​​​​​​​路​​​​​​​径​​​​​​​映​​​​​​​射​​​​​​​的​​​​​​​磁​​​​​​​盘​​​​​​​如​​​​​​​下​​​​​​​。​​​​​​​
    [root@rh4cluster1 ~]# multipath -F
    [root@rh4cluster1 ~]# multipath -v2
    create: 3600a0b80001327d80000006d43621677
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:0 sdb  8:16    
      \_ 3:0:0:0 sdf  8:80    
    
    create: 3600a0b80001327510000009a436215ec
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:1 sdc  8:32    
      \_ 3:0:0:1 sdg  8:96    
    
    create: 3600a0b80001327d800000070436216b3
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:2 sdd  8:48    
      \_ 3:0:0:2 sdh  8:112   
    
    create: 3600a0b80001327510000009b4362163e
    [size=12 GB][features="0"][hwhandler="0"]
    \_ round-robin 0 
      \_ 2:0:0:3 sde  8:64    
      \_ 3:0:0:3 sdi  8:128
    
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.