Outils pour utilisateurs

Outils du site


tech:notes_multipath_i_o_mpio

Notes Multipath I/O MPIO

Si LVM

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

multipath -ll
modprobe dm_multipath
/sbin/mpathconf
systemctl start multipathd

/etc/multipath.conf

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

blacklist {
        wwid .*
}
 
blacklist_exceptions {
        wwid "14945540000000000ed34fecd6b19c9dac92c6a5ccdddce57"
}
multipath -r
multipath -ll

Autres

dracut -f --add-drivers multipath
multipath -F
multipath -v2
multipath -r

Exemple

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"
        } 
tech/notes_multipath_i_o_mpio.txt · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki