Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
linux:multipathing [2013/01/02 15:02] – external edit 127.0.0.1linux:multipathing [2013/03/23 17:27] tmade
Line 27: Line 27:
  
   multipath -v2    multipath -v2 
-The multipath -v2 command prints out multipathed paths that show which devices are multipathed. If the command does not print anything out, ensure that all SAN connections are set up properly and the system is multipathed. multipath -l show multipath topology (sysfs and DM info) multipath -ll show multipath topology (maximum info) chkconfig multipathd on blacklist { wwid SIBM-ESXSST336732LCF3ET0EP0Q000072428BX1 name SBIM* wird über den Befehl “multipath -v2” ausgelesen. Durch hinzufügen in die Blacklist wird das Divice nicht mehr gelistet } oder blacklist { device { vendor “IBM” product “3S42” #DS4200 Product 10 } device { vendor “HP” product “*” } } dann: service multipathd reload example multipath section: multipaths { multipath { wwid 3600508b4000156d70001200000b0000 alias yellow path_grouping_policy multibus path_checker readsector0 path_selector “round-robin 0” failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 1DEC_321816758474 alias red rr_weight priorities } } dann: multipath -F flush all multipath device maps multipath -v2 show vervose mit level 2 identify devices: cat /sys/block/sda/device/vendor cat /sys/block/sda/device/model WICHTIG (redhat/centos): /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated —>zeigt device info fuer /etc/multipath.conf example devices: devices { device { vendor “HP” product “OPEN-V.” getuid_callout ”/sbin/scsi_id -g -u -p0x80 -s /block/%n” } } The multipathd interactive console can be used to troubleshoot problems you may be having with your system. For example, the following command sequence displays the multipath configuration, including the defaults, before exiting the console. multipathd -k multipath konsole »show config For example, the following command sequence displays the multipath configuration, including the defaults ctrl+D multipathd -k > > reconfigure The following command sequence ensures that multipath has picked up any changes to the multipath.conf, > > CTRL-D multipathd -k Use the following command sequence to ensure that the path checker is working properly. > > show paths > > CTRL-D devices mounten: 1. filesystem erstellen mit mkfs 2. mounten (e.g) siehe “ll /dev/mpath” und auf gelinktes device mounten+   
 +The multipath -v2 command prints out multipathed paths that show which devices are multipathed.  
 + 
 +If the command does not print anything out, ensure that all SAN connections are set up properly and the system is multipathed.  
 + 
 +  multipath -l  
 +   
 +show multipath topology (sysfs and DM info) multipath -ll show multipath topology (maximum info) chkconfig multipathd on blacklist { wwid SIBM-ESXSST336732LCF3ET0EP0Q000072428BX1 name SBIM* wird über den Befehl “multipath -v2” ausgelesen. Durch hinzufügen in die Blacklist wird das Divice nicht mehr gelistet } oder blacklist { device { vendor “IBM” product “3S42” #DS4200 Product 10 } device { vendor “HP” product “*” } } dann: service multipathd reload example multipath section: multipaths { multipath { wwid 3600508b4000156d70001200000b0000 alias yellow path_grouping_policy multibus path_checker readsector0 path_selector “round-robin 0” failback manual rr_weight priorities no_path_retry 5 } multipath { wwid 1DEC_321816758474 alias red rr_weight priorities } } dann: multipath -F flush all multipath device maps multipath -v2 show vervose mit level 2 identify devices: cat /sys/block/sda/device/vendor cat /sys/block/sda/device/model WICHTIG (redhat/centos): /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.defaults /usr/share/doc/device-mapper-multipath-0.4.7/multipath.conf.annotated —>zeigt device info fuer /etc/multipath.conf example devices: devices { device { vendor “HP” product “OPEN-V.” getuid_callout ”/sbin/scsi_id -g -u -p0x80 -s /block/%n” } } The multipathd interactive console can be used to troubleshoot problems you may be having with your system. For example, the following command sequence displays the multipath configuration, including the defaults, before exiting the console. multipathd -k multipath konsole »show config For example, the following command sequence displays the multipath configuration, including the defaults ctrl+D multipathd -k > > reconfigure The following command sequence ensures that multipath has picked up any changes to the multipath.conf, > > CTRL-D multipathd -k Use the following command sequence to ensure that the path checker is working properly. > > show paths > > CTRL-D devices mounten:  
 + 
 +1. filesystem erstellen mit mkfs  
 +2. mounten (e.g) siehe “ll /dev/mpath” und auf gelinktes device mounten
  
 mount /dev/dm-2 /mnt/tmp mount /dev/dm-2 /mnt/tmp
Line 36: Line 46:
             vendor                  "COMPAQ"             vendor                  "COMPAQ"
             product                 "HSV111 (C)COMPAQ"             product                 "HSV111 (C)COMPAQ"
- getuid_callout          "/sbin/scsi_id -g -u -s"+         getuid_callout          "/sbin/scsi_id -g -u -s"
             prio_callout            "/sbin/mpath_prio_alua %d"                 prio_callout            "/sbin/mpath_prio_alua %d"    
             features                "0"             features                "0"
           hardware_handler        "0"           hardware_handler        "0"
             path_grouping_policy    multibus             path_grouping_policy    multibus
- failback                immediate+         failback                immediate
             prio_callout            "/sbin/mpath_prio_alua %d"                   prio_callout            "/sbin/mpath_prio_alua %d"      
               path_checker            tur               path_checker            tur
linux/multipathing.txt · Last modified: 2017/12/09 01:19 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki