Outils pour utilisateurs

Outils du site


tech:notes_multipath_i_o_mpio

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
tech:notes_multipath_i_o_mpio [2025/11/11 22:43] Jean-Baptistetech:notes_multipath_i_o_mpio [2026/06/07 19:12] (Version actuelle) – modification externe 127.0.0.1
Ligne 1: Ligne 1:
 +<!DOCTYPE markdown>
 +{{tag>Brouillon SAN Disque Réseau}}
 +
 +# Notes Multipath I/O MPIO
 +
 +
 +Voir :
 +* [[https://en.wikipedia.org/wiki/Multipath_I/O|Multipath I/O (MPIO)]]
 +* https://pve.proxmox.com/wiki/ISCSI_Multipath
 +* https://www.suse.com/documentation/sles-12/stor_admin/data/sec_multipath_lvm.html
 +* https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/7/html/DM_Multipath/mpio_setup.html
 +* http://www.netexpertise.eu/en/systems/linux/multipathed-iscsi-san-disks-on-linux.html
 +* http://linux.dell.com/files/whitepapers/iSCSI_Multipathing_in_Ubuntu_Server.pdf
 +
 +Conf GNU/Linux:
 +* https://support.purestorage.com/Solutions/Linux/Linux_Reference/Linux_Recommended_Settings
 +* https://support.purestorage.com/Solutions/Linux/Installing_and_Configuring/Configuring_Linux_Host_for_iSCSI_with_FlashArray
 +* https://storageconsortium.de/content/sites/default/files/downloads/purestorage_WP_Oracle_Best_Practices.pdf
 +* https://pure-storage-openstack-docs.readthedocs.io/en/wallaby/swift/section_swift-partitioning.html
 +
 +
 +## Si LVM
 +
 +
 +~~~bash
 +sed -i -e "s/use_lvmetad \= 1/use_lvmetad \= 0/g" /etc/lvm/lvm.conf
 +systemctl stop lvm2-lvmetad.service
 +systemctl stop lvm2-lvmetad.socket
 +#mkinitrd -f /boot/initrd-$(uname -r).img $(uname -r)
 +dracut -H -f /boot/initramfs-$(uname -r).img  $(uname -r)
 +yum install device-mapper-multipath
 +#dracut -f --add-drivers multipath
 +~~~
 +
 +// Voir gdisk et parted pour GPT //
 +~~~
 +# fdisk /dev/sdc
 +t
 +8e (LVM Linux)
 +w
 +~~~
 +
 +Création PV, VG, LV => voir LVM
 +
 +## Suite
 +
 +~~~bash
 +multipath -ll
 +modprobe dm_multipath
 +/sbin/mpathconf
 +systemctl start multipathd
 +~~~
 +
 +
 +`/etc/multipath.conf`
 +~~~c
 +defaults {
 +        user_friendly_names yes
 +        find_multipaths yes
 +}
 +~~~
 +
 +Autre conf possible
 +
 +~~~
 +# /lib/udev/scsi_id -g -u -d /dev/disk/by-path/*iscsi*
 +14945540000000000ed34fecd6b19c9dac92c6a5ccdddce57
 +~~~
 +
 +`/etc/multipath.conf`
 +~~~c
 +blacklist {
 +        wwid .*
 +}
 +
 +blacklist_exceptions {
 +        wwid "14945540000000000ed34fecd6b19c9dac92c6a5ccdddce57"
 +}
 +~~~
 +
 +~~~bash
 +multipath -r
 +multipath -ll
 +~~~
 +
 +
 +## Autres
 +
 +~~~bash
 +dracut -f --add-drivers multipath
 +~~~
 +
 +~~~bash
 +multipath -F
 +multipath -v2
 +multipath -r
 +~~~
 +
 +
 +### Exemple
 +
 +~~~bash
 +multipath -ll
 +multipathd show paths
 +~~~
 +
 +/etc/multipath.conf
 +
 +~~~
 +more /sys/class/fc_host/host?/port_state
 +::::::::::::::
 +/sys/class/fc_host/host2/port_state
 +::::::::::::::
 +Online
 +::::::::::::::
 +/sys/class/fc_host/host3/port_state
 +::::::::::::::
 +Online
 +~~~
 +
 +~~~
 +blacklist {
 +        devnode "^(ram|raw|loop|fd|dm-|sr|scd|st)[0-9]*"
 +        devnode "^hd[a-z]"
 +        devnode "^fio[a-z]"
 +        devnode "^dcssblk[0-9]*"
 +        device {
 +                vendor "DGC"
 +                product "LUNZ"
 +        }
 +        device {
 +                vendor "IBM"
 +                product "S/390.*"
 +        }
 +        # don't count normal SATA devices as multipaths
 +        device {
 +                vendor  "ATA"
 +        }
 +        # don't count 3ware devices as multipaths
 +        device {
 +                vendor  "3ware"
 +                }
 +        device {
 +                vendor  "AMCC"
 +        }
 +                # nor highpoint devices
 +
 +blacklist {
 +        devnode "^(ram|raw|loop|fd|dm-|sr|scd|st)[0-9]*"
 +        devnode "^hd[a-z]"
 +        devnode "^fio[a-z]"
 +        devnode "^dcssblk[0-9]*"
 +        device {
 +                vendor "DGC"
 +                product "LUNZ"
 +        }
 +        device {
 +                vendor "IBM"
 +                product "S/390.*"
 +        }
 +        # don't count normal SATA devices as multipaths
 +        device {
 +                vendor  "ATA"
 +        }
 +        # don't count 3ware devices as multipaths
 +        device {
 +                vendor  "3ware"
 +                }
 +        device {
 +                vendor  "AMCC"
 +        }
 +                # nor highpoint devices
 +        device {
 +                vendor  "HPT"
 +        } 
 +~~~
 +
 +
 +
 +
 +
 +
  

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki