Configuring multipathing

Deploying an HCP VM System on KVM

Version
9.6.x
Audience
anonymous
Part Number
MK-94HCP009-07

Before setting up DM-Multipath on your system, make sure your system includes the device-mapper-multipath package.

To configure multipathing:

  1. Enter the following command to list all block devices visible to the operating system:
    lsblk
    Here is a sample output:
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sdf 8:80 0 1T 0 disk
    sdd 8:48 0 1T 0 disk
    sdb 8:16 0 7.3T 0 disk
    sdk 8:160 0 1T 0 disk
    sdi 8:128 0 1T 0 disk
    sdg 8:96 0 1T 0 disk
    sde 8:64 0 1T 0 disk
    sdc 8:32 0 7.2T 0 disk
    sda 8:0 0 64G 0 disk
    ??sda2 8:2 0 63G 0 part
    ? ??fedora00-swap 253:1 0 6.4G 0 lvm [SWAP]
    ? ??fedora00-root 253:0 0 15G 0 lvm /
    ??sda1 8:1 0 1G 0 part /boot
    sdj 8:144 0 1T 0 disk
    sdh 8:112 0 1T 0 disk
    
  2. Enter the following command to set up DM-Multipath for basic failover:
    mpathconf --enable --with_multipathd y
  3. Enter the following command to start the multipath service:
    multipathd
  4. Enter the following command to verify that SAN LUN devices are listed:
    lsblk
    Here is a sample output:
    NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
    sdf 8:80 0 1T 0 disk
    ??mpathb 253:3 0 1T 0 mpath
    sdd 8:48 0 1T 0 disk
    ??mpatha 253:2 0 1T 0 mpath
    sdb 8:16 0 7.3T 0 disk
    sdk 8:160 0 1T 0 disk
    ??mpathc 253:4 0 1T 0 mpath
    sdi 8:128 0 1T 0 disk
    ??mpathd 253:5 0 1T 0 mpath
    sdg 8:96 0 1T 0 disk
    ??mpathc 253:4 0 1T 0 mpath
    sde 8:64 0 1T 0 disk
    ??mpathd 253:5 0 1T 0 mpath
    sdc 8:32 0 7.2T 0 disk
    sda 8:0 0 64G 0 disk
    ??sda2 8:2 0 63G 0 part
    ? ??fedora-swap 253:1 0 6.4G 0 lvm [SWAP]
    ? ??fedora-root 253:0 0 15G 0 lvm /
    ??sda1 8:1 0 1G 0 part /boot
    sdj 8:144 0 1T 0 disk
    ??mpathb 253:3 0 1T 0 mpath
    sdh 8:112 0 1T 0 disk
    ??mpatha 253:2 0 1T 0 mpath
    
    The devices should now have a multipath.
  5. Enter the following command to list all multipath devices attached to the system:
    multipath -l