Cómo crear un dispositivo multiruta

Cómo crear un dispositivo multiruta

Ejecutando un servidor Red Hat Enterprise Linux versión 6.6.

Creé un nuevo LUN, volví a escanear el bus, creé PV en uno de los 4 nuevos dispositivos creados y luego creé VG-LV en el mismo. El LUN tiene múltiples rutas, pero olvidé modificar multipah.conf en la sección blacklist_exceptions y multipaths para el LUN. Entonces terminé con:

PV Name               /dev/sdbq

/dev/disk/by-id

lrwxrwxrwx 1 root root 10 Oct 13 17:56 scsi-360002ac00000000055000b01000071a6 -> ../../sdbq
lrwxrwxrwx 1 root root 10 Oct 13 17:56 wwn-0x60002ac00000000055000b01000071a6 -> ../../sdbq

/dev/disk/by-path

lrwxrwxrwx 1 root root 10 Oct 13 17:52 pci-0000:04:00.1-fc-0x20210002ac0071a6-lun-16 -> ../../sdbn
lrwxrwxrwx 1 root root 10 Oct 13 17:34 pci-0000:04:00.1-fc-0x21210002ac0071a6-lun-16 -> ../../sdbo
lrwxrwxrwx 1 root root 10 Oct 13 17:34 pci-0000:07:00.1-fc-0x24220002ac0071a6-lun-16 -> ../../sdbp
lrwxrwxrwx 1 root root 10 Oct 13 17:56 pci-0000:07:00.1-fc-0x25220002ac0071a6-lun-16 -> ../../sdbq

Entonces, ¿cómo puedo crear en este punto el dispositivo mpath que apunte al LUN? ¿Y cómo puedo asociar el dispositivo multiruta al PV?

Respuesta1

  • crear multipath.confentrada para 0x60002ac00000000055000b01000071a6,
  • la entrada siguiente aliasle dará/dev/mapper/name

  • volver a ejecutar múltiples rutas

    echo reconfigure | multipath -k
    
  • esto se mantendrásdbq

  • ejecutar pvscanesto debería crear un enlace en/dev/mapper

información relacionada