Ignore Local Disks when Generating Multipath Devices on Oracle Lin 6_1601802.1

rongshiyuan發表於2015-02-03
Ignoring Local Disks when Generating Multipath Devices on Oracle Linux 6 (文件 ID 1601802.1)

In this Document

Goal
Solution

Applies to:

Linux OS - Version Oracle Linux 5.5 with Unbreakable Enterprise Kernel [2.6.32] and later
Linux x86-64
Linux x86

Goal

 This document should show how to blacklist local disks from multipath configurations.

Solution

  1.  Determine local disks

    1. # multipath -v2
      create: SATA_WDC_WD800JD-75M_WD-WMAM9S391055 undef ATA,WDC WD800JD-75MS
      size=75 GB features="0" hwhandler="0" wp=undef
      `-+- policy='round-robin 0' prio=1 status=undef
        |- 0:0:0:0 sda 8:0  

      .
      .
      .
        
      or use
      # multipathd show paths format "%n %S %s %f %h %t"
       size vend/prod/rev          dm_st
       75G  ATA,WDC WD800JD-75MS   undef
       10G  DGC,RAID 5             active
       10G  DGC,RAID 5             active
       50G  DGC,RAID 5             active
       50G  DGC,RAID 5             active
       10G  DGC,RAID 5             active
       10G  DGC,RAID 5             active
       50G  DGC,RAID 5             active
       50G  DGC,RAID 5             active
       10G  SUN,Sun Storage 7410   active
       10G  SUN,Sun Storage 7410   active
       100G SUN,Sun Storage 7410   active
       100G SUN,Sun Storage 7410   active
        
       "ATA" here tells you that this is a local disk

      For more information on multipathd use, please read DM Multipath Configuration and Administration


    2. Now blacklist the device found above in the /etc/multipath.conf
      blacklist {
            wwid SATA_WDC_WD800JD-75M_WD-WMAM9S391055
      }
       

    3. reload the multipath  configuration
      # service multipathd reload
        

    4. remove the existing map

      # multipath -f SATA_WDC_WD800JD-75M_WD-WMAM9S391055
        


    5. Confirm that the device is not added back by multipathd
      # multipath | grep SATA_WDC_WD800JD-75M_WD-WMAM9S391055
        

      this should return nothing.





     

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17252115/viewspace-1425043/,如需轉載,請註明出處,否則將追究法律責任。

相關文章