XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    ISCSI mount - SR_BACKEND_FAILURE_432

    Scheduled Pinned Locked Moved Solved Management
    14 Posts 5 Posters 473 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tristis OrisT Offline
      Tristis Oris Top contributor
      last edited by

      got a error when choose LUN.
      Have no idea what else to check. Initiators on storage configured same way as already working.

      68051c50-9d31-4db0-9b18-0d09ea86d8a3-image.png

      sr.probeIscsiExists
      {
        "host": "d16abfce-a13f-4616-9565-44be734f0fb1",
        "target": "ip",
        "targetIqn": "iqn.2006-08.com.huawei:oceanstor:2100e43ec6f01acf::21f01:ip",
        "scsiId": "36e43ec6100f01acffaf29e4200000004"
      }
      {
        "code": "SR_BACKEND_FAILURE_432",
        "params": [
          "",
          "Device Mapper path missing [opterr=Device mapper path /dev/mapper/36e43ec6100f01acffaf29e4200000004 not found]",
          ""
        ],
        "call": {
          "method": "SR.probe",
          "params": [
            "OpaqueRef:9f882684-9c3e-4b0f-8051-75f63efc4b82",
            {
              "target": "ip",
              "targetIQN": "iqn.2006-08.com.huawei:oceanstor:2100e43ec6f01acf::21f01:ip",
              "SCSIid": "36e43ec6100f01acffaf29e4200000004"
            },
            "lvmoiscsi",
            {}
          ]
        },
        "message": "SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36e43ec6100f01acffaf29e4200000004 not found], )",
        "name": "XapiError",
        "stack": "XapiError: SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36e43ec6100f01acffaf29e4200000004 not found], )
          at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202408301255/packages/xen-api/_XapiError.mjs:16:12)
          at file:///opt/xo/xo-builds/xen-orchestra-202408301255/packages/xen-api/transports/json-rpc.mjs:38:21
          at runNextTicks (node:internal/process/task_queues:60:5)
          at processImmediate (node:internal/timers:454:9)
          at process.callbackTrampoline (node:internal/async_hooks:130:17)"
      }
      
      1 Reply Last reply Reply Quote 0
      • Tristis OrisT Offline
        Tristis Oris Top contributor
        last edited by

        ah got it.
        i miss the devices { block. It works now.

        devices {
            device {
                    vendor                  "HUAWEI"
                    product                 "XSG1"
                    path_grouping_policy multibus
                    path_checker            tur
                    prio                    const
                    path_selector           "round-robin 0"
                    failback                immediate
                    fast_io_fail_tmo        5
                    dev_loss_tmo            30
            }
        }
        
        1 Reply Last reply Reply Quote 0
        • DanpD Offline
          Danp Pro Support Team
          last edited by

          Have you checked with the storage vendor for their recommended multipath settings? These would need to go into the file /etc/multipath/conf.d/custom.conf on each host and then the host needs to be rebooted for the changes to take effect.

          Tristis OrisT 1 Reply Last reply Reply Quote 0
          • Tristis OrisT Offline
            Tristis Oris Top contributor @Danp
            last edited by

            @Danp Sure. I already have that storage at few pools, so use same config.

            1 Reply Last reply Reply Quote 0
            • Tristis OrisT Offline
              Tristis Oris Top contributor
              last edited by

              ah got it.
              i miss the devices { block. It works now.

              devices {
                  device {
                          vendor                  "HUAWEI"
                          product                 "XSG1"
                          path_grouping_policy multibus
                          path_checker            tur
                          prio                    const
                          path_selector           "round-robin 0"
                          failback                immediate
                          fast_io_fail_tmo        5
                          dev_loss_tmo            30
                  }
              }
              
              1 Reply Last reply Reply Quote 0
              • Tristis OrisT Tristis Oris marked this topic as a question on
              • Tristis OrisT Tristis Oris has marked this topic as solved on
              • olivierlambertO Offline
                olivierlambert Vates πŸͺ Co-Founder CEO
                last edited by

                Don't forget to configure that multipath in the .d folder to avoid problems during updates πŸ™‚ Glad to see it works anyway!

                Tristis OrisT 1 Reply Last reply Reply Quote 0
                • olivierlambertO olivierlambert has marked this topic as solved on
                • Tristis OrisT Offline
                  Tristis Oris Top contributor @olivierlambert
                  last edited by

                  @olivierlambert yep, /etc/multipath/conf.d/custom.conf .

                  1 Reply Last reply Reply Quote 1
                  • M Offline
                    m.mirzayev
                    last edited by m.mirzayev

                    I had a similar problem with a TrueNAS Server. On the host multipath was enabled and connecting to Synology iSCSI target was not a problem at all. Connecting to the TrueNAS target was not working with an error:

                    sr.probeIscsiExists
                    {
                      "host": "81e4f97f-bc48-4b11-9ece-97f395c7e24c",
                      "target": "172.16.1.21",
                      "targetIqn": "iqn.2024-11.com.truenas:target0",
                      "scsiId": "36589cfc0000000de53d4a06991332938",
                      "port": 3260
                    }
                    {
                      "code": "SR_BACKEND_FAILURE_432",
                      "params": [
                        "",
                        "Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found]",
                        ""
                      ],
                      "call": {
                        "duration": 10810,
                        "method": "SR.probe",
                        "params": [
                          "OpaqueRef:1cdb7e37-eb90-4644-8ac1-37fddfd7e58c",
                          {
                            "target": "172.16.1.21",
                            "targetIQN": "iqn.2024-11.com.truenas:target0",
                            "SCSIid": "36589cfc0000000de53d4a06991332938",
                            "port": "3260"
                          },
                          "lvmoiscsi",
                          {}
                        ]
                      },
                      "message": "SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found], )",
                      "name": "XapiError",
                      "stack": "XapiError: SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found], )
                        at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202411020002/packages/xen-api/_XapiError.mjs:16:12)
                        at file:///opt/xo/xo-builds/xen-orchestra-202411020002/packages/xen-api/transports/json-rpc.mjs:38:21
                        at runNextTicks (node:internal/process/task_queues:60:5)
                        at processImmediate (node:internal/timers:454:9)
                        at process.callbackTrampoline (node:internal/async_hooks:130:17)"
                    }
                    

                    After researching 2 days and working with chatgpt the solution was to change /etc/multipath.conf. At the end of the file there was a section with an device for TrueNAS.
                    I changed it to:

                            device {
                                    vendor                  "TrueNAS"
                                    product                 "iSCSI"
                                    path_selector           "round-robin 0"
                                    path_grouping_policy    multibus
                                    hardware_handler        "0"
                                    prio                    "const"
                                    failback                immediate
                            }
                    

                    I am not an expert on the configured settings. It was what chatgpt suggested. So maybe if someone can view this settings and maybe we can then add it to the standard configuration which comes with XCP-ng. Maybe @olivierlambert can view this and we can put it on github.

                    Does the /etc/multipath/conf.d/custom.conf override the existing device configuration in /etc/multipath.conf?

                    J 1 Reply Last reply Reply Quote 0
                    • J Offline
                      john.c @m.mirzayev
                      last edited by john.c

                      @m-mirzayev said in ISCSI mount - SR_BACKEND_FAILURE_432:

                      I had a similar problem with a TrueNAS Server. On the host multipath was enabled and connecting to Synology iSCSI target was not a problem at all. Connecting to the TrueNAS target was not working with an error:

                      sr.probeIscsiExists
                      {
                        "host": "81e4f97f-bc48-4b11-9ece-97f395c7e24c",
                        "target": "172.16.1.21",
                        "targetIqn": "iqn.2024-11.com.truenas:target0",
                        "scsiId": "36589cfc0000000de53d4a06991332938",
                        "port": 3260
                      }
                      {
                        "code": "SR_BACKEND_FAILURE_432",
                        "params": [
                          "",
                          "Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found]",
                          ""
                        ],
                        "call": {
                          "duration": 10810,
                          "method": "SR.probe",
                          "params": [
                            "OpaqueRef:1cdb7e37-eb90-4644-8ac1-37fddfd7e58c",
                            {
                              "target": "172.16.1.21",
                              "targetIQN": "iqn.2024-11.com.truenas:target0",
                              "SCSIid": "36589cfc0000000de53d4a06991332938",
                              "port": "3260"
                            },
                            "lvmoiscsi",
                            {}
                          ]
                        },
                        "message": "SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found], )",
                        "name": "XapiError",
                        "stack": "XapiError: SR_BACKEND_FAILURE_432(, Device Mapper path missing [opterr=Device mapper path /dev/mapper/36589cfc0000000de53d4a06991332938 not found], )
                          at Function.wrap (file:///opt/xo/xo-builds/xen-orchestra-202411020002/packages/xen-api/_XapiError.mjs:16:12)
                          at file:///opt/xo/xo-builds/xen-orchestra-202411020002/packages/xen-api/transports/json-rpc.mjs:38:21
                          at runNextTicks (node:internal/process/task_queues:60:5)
                          at processImmediate (node:internal/timers:454:9)
                          at process.callbackTrampoline (node:internal/async_hooks:130:17)"
                      }
                      After researching 2 days and working with chatgpt the solution was to change ```
                      

                      /etc/multipath.conf

                      . At the end of the file there was a section with an device for TrueNAS.
                      I changed it to:
                      
                      
                          device {
                                  vendor                  "TrueNAS"
                                  product                 "iSCSI"
                                  path_selector           "round-robin 0"
                                  path_grouping_policy    multibus
                                  hardware_handler        "0"
                                  prio                    "const"
                                  failback                immediate
                          }
                      
                      
                      I am not an expert on the configured settings. It was what chatgpt suggested. So maybe if someone can view this settings and maybe we can then add it to the standard configuration which comes with XCP-ng. Maybe @olivierlambert can view this and we can put it on github.
                      

                      That alteration to the /etc/multipath.conf file will be lost when XCP-ng has that file restored as part of updates or upgrades. Make the changes to /etc/multipath/conf.d/custom.conf instead.

                      Yes it does! Just make sure your using the most up to date instance of XCP-ng or the latest XCP-ng 8.2.1 (renewed installer) or 8.3.

                      M 1 Reply Last reply Reply Quote 0
                      • M Offline
                        m.mirzayev @john.c
                        last edited by

                        @john-c
                        Thanks for this information. I will put it into the custom.conf

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          john.c @m.mirzayev
                          last edited by john.c

                          @m-mirzayev said in ISCSI mount - SR_BACKEND_FAILURE_432:

                          @john-c
                          Thanks for this information. I will put it into the custom.conf

                          Having it in this file will also enable it to be placed as part of automated installation processes and infrastructure as code.

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            m.mirzayev @john.c
                            last edited by

                            @john-c
                            As i mentioned i am not a pro in regard of iscsi and multipath.conf. If you are, can you just look over the settings and give your opinion on it?

                            And do i just put this into the custom.conf:

                                    device {
                                            vendor                  "TrueNAS"
                                            product                 "iSCSI"
                                            path_selector           "round-robin 0"
                                            path_grouping_policy    multibus
                                            hardware_handler        "0"
                                            prio                    "const"
                                            failback                immediate
                                    }
                            

                            without the outer devices {}

                            J 1 Reply Last reply Reply Quote 0
                            • J Offline
                              john.c @m.mirzayev
                              last edited by

                              @m-mirzayev said in ISCSI mount - SR_BACKEND_FAILURE_432:

                              @john-c
                              As i mentioned i am not a pro in regard of iscsi and multipath.conf. If you are, can you just look over the settings and give your opinion on it?

                              And do i just put this into the custom.conf:

                                      device {
                                              vendor                  "TrueNAS"
                                              product                 "iSCSI"
                                              path_selector           "round-robin 0"
                                              path_grouping_policy    multibus
                                              hardware_handler        "0"
                                              prio                    "const"
                                              failback                immediate
                                      }
                              

                              without the outer devices {}

                              The structure of custom.conf must be a valid structure configuration file for multipath. As even though its overriding the multipath.conf file it still needs to be valid so that the software, can parse it correctly.

                              M 1 Reply Last reply Reply Quote 0
                              • M Offline
                                m.mirzayev @john.c
                                last edited by

                                @john-c
                                Would you mind to post your custom.conf so i have a reference?

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  john.c @m.mirzayev
                                  last edited by john.c

                                  @m-mirzayev said in ISCSI mount - SR_BACKEND_FAILURE_432:

                                  @john-c
                                  Would you mind to post your custom.conf so i have a reference?

                                  @m-mirzayev I don’t use multipath personally however, though managed to get Microsoft Copilot to put what you gave above into a valid structure. I also remember people in the past having trouble with multipath, so Vates employees implemented this /etc/multipath/conf.d/custom.conf to fix these issues.

                                  # /etc/multipath/conf.d/custom.conf
                                  defaults {
                                      user_friendly_names yes
                                  }
                                  
                                  multipaths {
                                      multipath {
                                          wwid                    "your_device_wwid_here"
                                          alias                   "truenas_iscsi"
                                          path_selector           "round-robin 0"
                                          path_grouping_policy    multibus
                                          path_checker            tur
                                          prio                    const
                                          failback                immediate
                                      }
                                  }
                                  
                                  devices {
                                      device {
                                          vendor                  "TrueNAS"
                                          product                 "iSCSI"
                                          path_selector           "round-robin 0"
                                          path_grouping_policy    multibus
                                          hardware_handler        "0"
                                          prio                    const
                                          failback                immediate
                                      }
                                  }
                                  

                                  Please replace "your_device_wwid_here" with the WWID of the device on your network.

                                  1 Reply Last reply Reply Quote 0
                                  • First post
                                    Last post