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

    xcp-ng server crashed/rebooted due to issues with drbd/linstor?

    Scheduled Pinned Locked Moved Unsolved XOSTOR
    29 Posts 4 Posters 1.9k 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.
    • J Offline
      Jonathon @Jonathon
      last edited by

      For now I have upgraded all hosts to use --enablerepo=xcp-ng-linstor-testing to get kmod-drbd.x86_64 0:9.2.18-2.0.xcpng8.3
      That way it is there to be picked up if the host crashes again.
      https://github.com/xcp-ng-rpms/drbd/blob/master/SPECS/kmod-drbd.spec
      https://koji.xcp-ng.org/buildinfo?buildID=5747

      [12:15 ovbh-pprod-xen04 ~]# yum upgrade --enablerepo=xcp-ng-linstor-testing
      Loaded plugins: fastestmirror
      Loading mirror speeds from cached hostfile
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-base: mirrors.xcp-ng.org
      Excluding mirror: updates.xcp-ng.org
       * xcp-ng-updates: mirrors.xcp-ng.org
      grafana/signature                                                                                                                                                                                                                      |  810 B  00:00:00     
      grafana/signature                                                                                                                                                                                                                      | 3.0 kB  00:00:00 !!! 
      xcp-ng-linstor-testing/signature                                                                                                                                                                                                       |  473 B  00:00:00     
      xcp-ng-linstor-testing/signature                                                                                                                                                                                                       | 3.0 kB  00:00:00 !!! 
      zabbix                                                                                                                                                                                                                                 | 3.0 kB  00:00:00     
      zabbix-non-supported                                                                                                                                                                                                                   | 2.9 kB  00:00:00     
      (1/3): grafana/primary_db                                                                                                                                                                                                              | 879 kB  00:00:00     
      (2/3): xcp-ng-linstor-testing/primary_db                                                                                                                                                                                               | 2.4 kB  00:00:00     
      (3/3): zabbix/x86_64/primary_db                                                                                                                                                                                                        | 114 kB  00:00:00     
      Resolving Dependencies
      --> Running transaction check
      ---> Package kmod-drbd.x86_64 0:9.2.16-1.0.xcpng8.3 will be updated
      ---> Package kmod-drbd.x86_64 0:9.2.18-2.0.xcpng8.3 will be an update
      ---> Package zabbix-agent.x86_64 0:7.0.27-release1.el7 will be updated
      ---> Package zabbix-agent.x86_64 0:7.0.28-release1.el7 will be an update
      --> Finished Dependency Resolution
      
      Dependencies Resolved
      
      ==============================================================================================================================================================================================================================================================
       Package                                                    Arch                                                 Version                                                           Repository                                                            Size
      ==============================================================================================================================================================================================================================================================
      Updating:
       kmod-drbd                                                  x86_64                                               9.2.18-2.0.xcpng8.3                                               xcp-ng-linstor-testing                                               2.8 M
       zabbix-agent                                               x86_64                                               7.0.28-release1.el7                                               zabbix                                                               660 k
      
      Transaction Summary
      ==============================================================================================================================================================================================================================================================
      Upgrade  2 Packages
      
      Total download size: 3.4 M
      Is this ok [y/d/N]: y
      Downloading packages:
      Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
      (1/2): zabbix-agent-7.0.28-release1.el7.x86_64.rpm                                                                                                                                                                                     | 660 kB  00:00:00     
      (2/2): kmod-drbd-9.2.18-2.0.xcpng8.3.x86_64.rpm                                                                                                                                                                                        | 2.8 MB  00:00:01     
      --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Total                                                                                                                                                                                                                         2.8 MB/s | 3.4 MB  00:00:01     
      Running transaction check
      Running transaction test
      Transaction test succeeded
      Running transaction
        Updating   : kmod-drbd-9.2.18-2.0.xcpng8.3.x86_64                                                                                                                                                                                                       1/4 
        Updating   : zabbix-agent-7.0.28-release1.el7.x86_64                                                                                                                                                                                                    2/4 
        Cleanup    : kmod-drbd-9.2.16-1.0.xcpng8.3.x86_64                                                                                                                                                                                                       3/4 
        Cleanup    : zabbix-agent-7.0.27-release1.el7.x86_64                                                                                                                                                                                                    4/4 
        Verifying  : zabbix-agent-7.0.28-release1.el7.x86_64                                                                                                                                                                                                    1/4 
        Verifying  : kmod-drbd-9.2.18-2.0.xcpng8.3.x86_64                                                                                                                                                                                                       2/4 
        Verifying  : kmod-drbd-9.2.16-1.0.xcpng8.3.x86_64                                                                                                                                                                                                       3/4 
        Verifying  : zabbix-agent-7.0.27-release1.el7.x86_64                                                                                                                                                                                                    4/4 
      
      Updated:
        kmod-drbd.x86_64 0:9.2.18-2.0.xcpng8.3                                                                                       zabbix-agent.x86_64 0:7.0.28-release1.el7                                                                                      
      
      Complete!
      
      poddingueP 1 Reply Last reply Reply Quote 0
      • poddingueP Online
        poddingue Vates 🪐 @Jonathon
        last edited by poddingue

        Oopsie, I was wrong.
        I owe you a correction on the version, and that one is on me. I said 8.3 ships 9.2.18, but I was reading the spec file on the branch rather than what you actually get from the stable repo. 🤷
        Your yum check-update output answers it better than I did: stable leaves you on 9.2.16, and 9.2.18 only turns up once xcp-ng-linstor-testing is enabled.

        The screenshot in that same post is the part the still puzzles me. XO says "All good, patches up to date" while the module underneath is two point releases back, which I assume is what everyone else running XOSTOR sees too. If the connection-teardown fixes you found really are in 9.2.19, that is three releases of distance on the exact code path your traces land in, not the single bump I described.

        1 Reply Last reply Reply Quote 0
        • M Offline
          Mathieu L Vates 🪐 XCP-ng Team
          last edited by

          Hello,

          Indeed this is a known issue with XOSTOR, when causing a sync of too many resources at once it's possible for a DRBD resource to leak memory during the resync. A patch on the 9.2.18 fixes this by throttling the number of resources that can be synced at once to mitigate the issue.

          The 9.2.18 update should be in the main xcp-ng-linstor repo very soon.

          What you can do too is give more RAM to the dom0 of your hosts. How many RAM have been allocated to dom0 at the moment? We advise 16GB or 32GB depending on the number of volumes.

          J 1 Reply Last reply Reply Quote 1
          • J Offline
            Jonathon @Mathieu L
            last edited by

            @Mathieu-L https://xcp-ng.org/forum/post/106873 I had increased it to 16G and it still crashed.

            M 1 Reply Last reply Reply Quote 1
            • M Offline
              Mathieu L Vates 🪐 XCP-ng Team @Jonathon
              last edited by

              @Jonathon Have you rebooted after the update? I should have specified it but the kmod-drbd update is only effective after a reboot.

              If the 9.2.16 drbd module was still loaded (i.e. host not rebooted) 16GB would still have been filled quickly with the memory leak unfortunately. 16GB and 9.2.18 should be safe now though.

              If unsure you can check the output of modinfo drbd.

              J 1 Reply Last reply Reply Quote 1
              • J Offline
                Jonathon @Mathieu L
                last edited by

                @Mathieu-L Yes, the hosts had been restarted after the updates were installed which included 9.2.16

                M 1 Reply Last reply Reply Quote 1
                • M Offline
                  MajorP93 @Jonathon
                  last edited by

                  @Jonathon I think @mathieu-l asked it you rebooted after installing drbd 9.2.18 from test repository. Your message sounds like you rebooted after installing 9.2.16 but not after applying the 9.2.18 update from test repository.

                  J 1 Reply Last reply Reply Quote 0
                  • poddingueP poddingue marked this topic as a question
                  • J Offline
                    Jonathon @MajorP93
                    last edited by

                    @MajorP93 My mistake. No I have not rebooted the hosts yet. https://xcp-ng.org/forum/post/107164 I am aware that the reboot is needed for it to be picked up, I went ahead and installed from test so that if host crashes again it is there.

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      Mathieu L Vates 🪐 XCP-ng Team @Jonathon
                      last edited by

                      @Jonathon Indeed I missed that part in your message, my bad.
                      If the hosts still crash even after the 9.2.18 module has been loaded (update + reboot), please keep us informed.

                      Thanks!

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jonathon @Mathieu L
                        last edited by Jonathon

                        New crash, this time xen02. The time is different because I updated the velero backup schedules to not all be in the middle of the night. Also still happened with the openvas schedule removed, which makes sense.
                        Xen02 now has 9.2.18 loaded. Will restart other hosts now.
                        I also uploaded logs if those are desired.
                        8087b412-eff0-4f2e-9d98-8c87a94e7aad-image.jpeg

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post