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

    XOSTOR hyperconvergence preview

    Scheduled Pinned Locked Moved XOSTOR
    446 Posts 47 Posters 481.3k Views 48 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
      jmm
      last edited by

      Hi team,
      I'm currently testing xostor on a three nodes xcp-8.2.1 pool
      Before adding any new vm, i replaced a node (xcp-hc3)
      Since everything seems to be ok, i've added two vms.
      But I think that a diskless resource is missing for "xcp-persistent-database"
      Is there a way to resolve this situation ?

      [10:23 xcp-hc1 ~]# linstor resource list
      ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
      ┊ ResourceName ┊ Node ┊ Port ┊ Usage ┊ Conns ┊ State ┊ CreatedOn ┊
      ╞════════════════════════════════════════════════════════════════════════════════════════════════════════════════════╡
      ┊ xcp-persistent-database ┊ xcp-hc1 ┊ 7000 ┊ InUse ┊ Ok ┊ UpToDate ┊ 2023-12-18 15:47:37 ┊
      ┊ xcp-persistent-database ┊ xcp-hc2 ┊ 7000 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-18 15:47:37 ┊
      ┊ xcp-volume-17208381-56c0-4d8a-9c16-0a2000a45e56 ┊ xcp-hc1 ┊ 7004 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-18 17:41:41 ┊
      ┊ xcp-volume-17208381-56c0-4d8a-9c16-0a2000a45e56 ┊ xcp-hc2 ┊ 7004 ┊ InUse ┊ Ok ┊ Diskless ┊ 2023-12-18 17:41:41 ┊
      ┊ xcp-volume-17208381-56c0-4d8a-9c16-0a2000a45e56 ┊ xcp-hc3 ┊ 7004 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-18 17:41:42 ┊
      ┊ xcp-volume-94af3c03-91b4-46ea-bf51-d0c50a085e6b ┊ xcp-hc1 ┊ 7002 ┊ InUse ┊ Ok ┊ Diskless ┊ 2023-12-19 10:17:15 ┊
      ┊ xcp-volume-94af3c03-91b4-46ea-bf51-d0c50a085e6b ┊ xcp-hc2 ┊ 7002 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-19 09:49:35 ┊
      ┊ xcp-volume-94af3c03-91b4-46ea-bf51-d0c50a085e6b ┊ xcp-hc3 ┊ 7002 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-19 09:49:35 ┊
      ┊ xcp-volume-a395bb01-76a2-4e9a-a082-f18b3287afb2 ┊ xcp-hc1 ┊ 7005 ┊ Unused ┊ Ok ┊ Diskless ┊ 2023-12-19 10:17:16 ┊
      ┊ xcp-volume-a395bb01-76a2-4e9a-a082-f18b3287afb2 ┊ xcp-hc2 ┊ 7005 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-19 09:49:45 ┊
      ┊ xcp-volume-a395bb01-76a2-4e9a-a082-f18b3287afb2 ┊ xcp-hc3 ┊ 7005 ┊ Unused ┊ Ok ┊ UpToDate ┊ 2023-12-19 09:49:45 ┊

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmm @jmm
        last edited by

        @jmm Self answer :
        linstor resource create xcp-hc3 xcp-persistent-database --drbd-diskless

        🙂

        1 Reply Last reply Reply Quote 0
        • J john.c referenced this topic on
        • G Offline
          gb.123
          last edited by

          I am getting :

            WARNING: Pool zeroing and 1.00 MiB large chunk size slows down thin provisioning.
            WARNING: Consider disabling zeroing (-Zn) or using smaller chunk size (<512.00 KiB).
          

          How do I change Chunk Size and/or zeroing ?

          Can this be done 'on the fly' (without loosing data) ?

          1 Reply Last reply Reply Quote 0
          • G Offline
            gb.123
            last edited by gb.123

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • B Offline
              BHellman 3rd party vendor
              last edited by

              This thread has grown quite large and has a lot of information in it. Is there an official documentation chapter on XOSTOR available anywhere?

              ronan-aR 1 Reply Last reply Reply Quote 0
              • olivierlambertO Offline
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                For now it's within this thread 🙂 Feel free to tell us what's missing in the first post!

                1 Reply Last reply Reply Quote 0
                • ronan-aR Offline
                  ronan-a Vates 🪐 XCP-ng Team @BHellman
                  last edited by

                  @BHellman The first post has a FAQ that I update each time I meet users with a common/recurring problem. 😉

                  1 Reply Last reply Reply Quote 2
                  • B Offline
                    BHellman 3rd party vendor
                    last edited by

                    Thanks for the replies. My issues are currently with the GUI so I don't know if that applies here. This is all from the GUI, so please let me know if that's outside the scope of this post and I can post elsewhere.

                    One issue is upon creating a new XOSTOR SR, the packages are installed, however the SR creation fails due to one of the package, sm-rawhba, that needs updating. You have to apply patched through the GUI then reboot the node, or execute "xe-restart-toolstack" on each node. You can then go back and create a new SR, but only after wiping the disks that you originally tried to create the SR on; vgremove and pvremove.

                    I'm planning on doing some more testing, please let me know if GUI issues are appropriate to post here.

                    ronan-aR 1 Reply Last reply Reply Quote 0
                    • ronan-aR Offline
                      ronan-a Vates 🪐 XCP-ng Team @BHellman
                      last edited by

                      @BHellman It's fine to post simple issues in this thread. For complex problems a ticket is probably better. 🙂

                      One issue is upon creating a new XOSTOR SR, the packages are installed, however the SR creation fails due to one of the package, sm-rawhba, that needs updating.

                      Not totally that, sm-rawhba is added to the list because the UI installs a modified version of sm with LINSTOR support.
                      The real issue is that xe-toolstack-restart is not called during the initial setup, a method is missing in our updater plugin to check if a package is present or not, I will add this method for the XOA team. 😉

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        BHellman 3rd party vendor
                        last edited by

                        I'm not sure what the expected behavior is but....

                        I have xcp1, xcp2, xcp3 as hosts in my XOSTOR pool, using an XOSTOR repository. I had a VM running on xcp2, unplugged the power from it and left it uplugged for about 5 minutes. The VM remained "running" according to XOA, however it wasn't.

                        What is the expected behavior when this happens and how do you go about recovering from a temporarily failed/powered off node?

                        My expectation was that my vm would move to xcp1 (where there is a replica) and start, then outdate xcp2. I have "auto start" enabled under advanced on the VM.

                        L 1 Reply Last reply Reply Quote 0
                        • L Offline
                          limezest @BHellman
                          last edited by

                          @BHellman
                          "auto start" means that when you power up the cluster or host node that VM will be automatically started.

                          I think you're describing high availability, which needs to be enabled at the cluster level. Then you need to define a HA policy for the vm

                          ronan-aR 1 Reply Last reply Reply Quote 1
                          • ronan-aR Offline
                            ronan-a Vates 🪐 XCP-ng Team @limezest
                            last edited by

                            @limezest Exactly. Auto start feature is only checked during host boot.

                            @BHellman To automatically restart a VM in case of failure:

                            xe vm-param-set uuid=<VM_UUID> ha-restart-priority=restart order=1 
                            xe pool-ha-enable heartbeat-sr-uuids=<SR_UUID> 
                            
                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              BHellman 3rd party vendor @ronan-a
                              last edited by

                              @ronan-a @limezest

                              Thank you for the replies 🙂

                              Sorry for all the newb questions - I'm diving into this when time permits. Appreciate the help and understanding.

                              1 Reply Last reply Reply Quote 1
                              • B Offline
                                BHellman 3rd party vendor
                                last edited by

                                I did those commands on xcp1 (pool master) and on the SR that was XOSTOR (linstor) and powered off xcp2. At that point the pool disappeared.

                                Now I'm getting the following on the xcp servers console:

                                Broadcast message from systemd-journald@xcp3 (Thu 2024-02-08 14:03:12 EST):
                                
                                xapi-nbd[5580]: main: Failed to log in via xapi's Unix domain socket in 300.000000 seconds
                                
                                
                                Broadcast message from systemd-journald@xcp3 (Thu 2024-02-08 14:03:12 EST):
                                
                                xapi-nbd[5580]: main: Caught unexpected exception: (Failure
                                
                                
                                Broadcast message from systemd-journald@xcp3 (Thu 2024-02-08 14:03:12 EST):
                                
                                xapi-nbd[5580]: main:   "Failed to log in via xapi's Unix domain socket in 300.000000 seconds")
                                
                                

                                After powering up xcp2 the pool never comes back in the XOA interface.

                                I'm seeing this on
                                xcp1:

                                [14:04 xcp1 ~]# drbdadm status
                                xcp-persistent-database role:Secondary
                                  disk:Diskless quorum:no
                                  xcp2 connection:Connecting
                                  xcp3 connection:Connecting
                                
                                

                                xcp2 and 3

                                [14:10 xcp2 ~]# drbdadm status
                                # No currently configured DRBD found.
                                

                                Seems like I hosed this thing up really good. I assume this broke because XOSTOR isn't a shared disk technically.

                                [14:15 xcp1 /]# xe sr-list
                                The server could not join the liveset because the HA daemon could not access the heartbeat disk.
                                

                                Is HA + XOSTOR something that should work?

                                M olivierlambertO 2 Replies Last reply Reply Quote 0
                                • J Offline
                                  Jonathon
                                  last edited by Jonathon

                                  Hello!

                                  I am attempting to update our hosts, starting with the pool controller. But I am getting a message that I wanted to ask about.

                                  The following happens when I attempt a yum update

                                  --> Processing Dependency: sm-linstor for package: xcp-ng-linstor-1.1-3.xcpng8.2.noarch
                                  --> Finished Dependency Resolution
                                  Error: Package: xcp-ng-linstor-1.1-3.xcpng8.2.noarch (xcp-ng-updates)
                                             Requires: sm-linstor
                                  You could try using --skip-broken to work around the problem
                                             You could try running: rpm -Va --nofiles --nodigest
                                  

                                  Only reference I am finding is here: https://koji.xcp-ng.org/buildinfo?buildID=3044
                                  My best guess is I need to do two updates, the first one skip broken. But wanted to ask to be sure as to not put things in a weird state.

                                  Thanks in advance!

                                  stormiS 2 Replies Last reply Reply Quote 0
                                  • M Offline
                                    Midget @BHellman
                                    last edited by

                                    @BHellman I have the EXACT same errors and scrolling logs now. I made a thread here...

                                    1 Reply Last reply Reply Quote 0
                                    • olivierlambertO Offline
                                      olivierlambert Vates 🪐 Co-Founder CEO @BHellman
                                      last edited by

                                      @BHellman Yes it should. @ronan-a will take a look around when he can 🙂

                                      1 Reply Last reply Reply Quote 0
                                      • stormiS Offline
                                        stormi Vates 🪐 XCP-ng Team @Jonathon
                                        last edited by

                                        @Jonathon Never use --skip-broken.

                                        1 Reply Last reply Reply Quote 0
                                        • stormiS Offline
                                          stormi Vates 🪐 XCP-ng Team @Jonathon
                                          last edited by

                                          @Jonathon What's the output of yum repolist?

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

                                            @stormi said in XOSTOR hyperconvergence preview:

                                            yum repolist

                                            lol glad I checked then

                                            # yum repolist
                                            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-linstor: mirrors.xcp-ng.org
                                            Excluding mirror: updates.xcp-ng.org
                                             * xcp-ng-updates: mirrors.xcp-ng.org
                                            repo id                                                                                                                        repo name                                                                                                                                            status
                                            !xcp-ng-base                                                                                                                   XCP-ng Base Repository                                                                                                                               2,161
                                            !xcp-ng-linstor                                                                                                                XCP-ng LINSTOR Repository                                                                                                                              142
                                            !xcp-ng-updates                                                                                                                XCP-ng Updates Repository                                                                                                                            1,408
                                            !zabbix/x86_64                                                                                                                 Zabbix Official Repository - x86_64                                                                                                                     79
                                            !zabbix-non-supported/x86_64                                                                                                   Zabbix Official Repository non-supported - x86_64                                                                                                        6
                                            repolist: 3,796
                                            
                                            J 1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post