Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-53995

[RHEL-10] failed to set port_state to marginal: Invalid argument

    • No
    • None
    • sst_logical_storage
    • ssg_filesystems_storage_and_HA
    • 5
    • 7
    • 2
    • False
    • Hide

      None

      Show
      None
    • None
    • None
    • None
    • None
    • x86_64
    • None

      What were you trying to do that didn't work?

      Added the following line to my multipath.conf on a system with both FC LUNs and NVMe-FC namespaces:

       

      marginal_pathgroups fpin

      On the  FC switch, I  send Link Integrity commands on Initiator PID like below:

       

       

      # /fabos/cliexec/ftc test --fpin 020200 -li -link_failure

      On the initiator, I am seeing the following messages:

       

      Aug 12 09:16:26 storageqe-04.fast.eng.rdu2.dc.redhat.com multipathd[365376]: /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5: failed to set port_state to marginal: Invalid argument
      Aug 12 09:16:26 storageqe-04.fast.eng.rdu2.dc.redhat.com multipathd[365376]: /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5: failed to set port_state to marginal: Invalid argument
      Aug 12 09:16:26 storageqe-04.fast.eng.rdu2.dc.redhat.com multipathd[365376]: /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5: failed to set port_state to marginal: Invalid argument
      Aug 12 09:16:26 storageqe-04.fast.eng.rdu2.dc.redhat.com multipathd[365376]: /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5: failed to set port_state to marginal: Invalid argument
      Aug 12 09:16:26 storageqe-04.fast.eng.rdu2.dc.redhat.com multipathd[365376]: /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5: failed to set port_state to marginal: Invalid argument
      

      We do seem to be setting the port_state correctly:

      # for i in `find /sys -name port_state | fgrep rport`; do echo $i; cat $i; done
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-5/fc_remote_ports/rport-1:0-5/port_state
      Marginal
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-3/fc_remote_ports/rport-1:0-3/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-1/fc_remote_ports/rport-1:0-1/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-8/fc_remote_ports/rport-1:0-8/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-6/fc_remote_ports/rport-1:0-6/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-4/fc_remote_ports/rport-1:0-4/port_state
      Marginal
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-2/fc_remote_ports/rport-1:0-2/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-0/fc_remote_ports/rport-1:0-0/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.1/host1/rport-1:0-7/fc_remote_ports/rport-1:0-7/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-8/fc_remote_ports/rport-0:0-8/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-6/fc_remote_ports/rport-0:0-6/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-4/fc_remote_ports/rport-0:0-4/port_state
      Marginal
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-2/fc_remote_ports/rport-0:0-2/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-0/fc_remote_ports/rport-0:0-0/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-7/fc_remote_ports/rport-0:0-7/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-5/fc_remote_ports/rport-0:0-5/port_state
      Marginal
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-3/fc_remote_ports/rport-0:0-3/port_state
      Online
      /sys/devices/pci0000:c0/0000:c0:01.1/0000:c4:00.0/host0/rport-0:0-1/fc_remote_ports/rport-0:0-1/port_state
      Online
      

      Please provide the package NVR for which bug is seen:

      RHEL-10.0-20240801.0

      # uname -r
      6.10.0-15.el10.x86_64
      # rpm -qa device-mapper-multipath
      device-mapper-multipath-0.9.9-1.el10.x86_64

      How reproducible: Often

            rhn-engineering-bmarzins Benjamin Marzinski
            mpatalan Marco Patalano
            Benjamin Marzinski Benjamin Marzinski
            storage-qe storage-qe
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: