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

    xapi seems to broken after a Power Failure

    Scheduled Pinned Locked Moved Compute
    58 Posts 3 Posters 22.1k Views 3 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.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      What kind of drives do you have inside?

      If you don't have any backup, you are clear to reinstall. You still have your VM data, but it will be more or less easy to recover stuff, depending if you lose a member of a pool or if your host was a pool by itself.

      So you have no idea if you had a pool with multiple machines?

      LunarstarPonyL 1 Reply Last reply Reply Quote 0
      • LunarstarPonyL Offline
        LunarstarPony @olivierlambert
        last edited by

        @olivierlambert Not sure anyway I can check that on my other machine?

        LunarstarPonyL 1 Reply Last reply Reply Quote 0
        • LunarstarPonyL Offline
          LunarstarPony @LunarstarPony
          last edited by

          @LunarstarPony That one is still running atm

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

            In Xen Orchestra, you can see go to Home/host view, clear the search field to display all hosts (even those halted). What do you see there?

            Alternatively, you can type xe host-list from the working host.

            LunarstarPonyL 1 Reply Last reply Reply Quote 0
            • LunarstarPonyL Offline
              LunarstarPony @olivierlambert
              last edited by

              @olivierlambert Seems like it only shows up itself and due to XOA is hosted on the server that's currently down I do not have access of that
              59c312be-087e-463a-9be8-8d54b990b741-image.png

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

                So to recap: you had 2 different hosts not in the same pool, without any backup (metadata or VM data backup).

                I suppose you also used only local storage?

                LunarstarPonyL 1 Reply Last reply Reply Quote 0
                • LunarstarPonyL Offline
                  LunarstarPony @olivierlambert
                  last edited by

                  @olivierlambert Well, yes both servers are running on Local Storage But I sometimes do transfer VMs between them

                  LunarstarPonyL 1 Reply Last reply Reply Quote 0
                  • LunarstarPonyL Offline
                    LunarstarPony @LunarstarPony
                    last edited by

                    @LunarstarPony That's probably all I did between them

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

                      Hopefully, since there's no backup nor power protection on drives nor on the server, it's likely a lab so no big deal 🙂 Just reinstall XCP-ng on the damaged host.

                      If you really want to salvage the VM data on that host, then you'll need to be careful and not remove the previous storage partition, you'll be able to rescan the SR and then have "unknown" disks (no name but usable to attach to a new VM).

                      If you want more security, you need to think as defense in depth: power protection, better drives, metadata and data backup, or replication etc. There's so many ways to avoid data loss. If you need custom training related to your future production usage, please contact us on https://xcp-ng.com 🙂

                      LunarstarPonyL E 2 Replies Last reply Reply Quote 0
                      • LunarstarPonyL Offline
                        LunarstarPony @olivierlambert
                        last edited by

                        @olivierlambert Well, Is there any tutorial or some sort to tell me how to reinstall XOA without losing VM data?

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

                          Reinstall XCP-ng, not XOA. You can redeploy a fresh XOA on your working host, it's not a problem 🙂

                          I'm not sure there's a tutorial like this around, the goal is basically to not reformat your partition/disks where you had your SR. Since I have no idea on your setup, it's a bit hard to give you directions.

                          LunarstarPonyL 1 Reply Last reply Reply Quote 0
                          • LunarstarPonyL Offline
                            LunarstarPony @olivierlambert
                            last edited by

                            @olivierlambert Maybe I can take some pics while I'm doing it, So I just do a clean install of XCP-ng?

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

                              You have first to get a clear idea on your existing setup. You still did not answer regarding the disk setup: is the SR on a dedicated disk or partition?

                              In any case, you'll have to be certain to not modify the previous existing SR. If your install was already an upgrade, you might salvage the XAPI.

                              There's so many ways to do it, but also depending on so many different setup, there's no universal answer 🙂

                              LunarstarPonyL 2 Replies Last reply Reply Quote 0
                              • LunarstarPonyL Offline
                                LunarstarPony @olivierlambert
                                last edited by

                                @olivierlambert I'm pretty sure these server are upgraded from older XenServer.
                                And since it only shows up one drive in BIOS It should be partition

                                LunarstarPonyL 1 Reply Last reply Reply Quote 0
                                • LunarstarPonyL Offline
                                  LunarstarPony @LunarstarPony
                                  last edited by

                                  @LunarstarPony If I remember correctly I think it's update from XenServer 5.6 to XCP-ng 7.0 and then XCP-ng 8.2.

                                  1 Reply Last reply Reply Quote 0
                                  • LunarstarPonyL Offline
                                    LunarstarPony @olivierlambert
                                    last edited by

                                    @olivierlambert I haven't reinstall yet but when I'm wondering around I do see that there's a backup for the 7.0 XCP-ng. Is it possible to get the database from there?

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

                                      Yes but the database will be outdated and will work only for the version it was installed on (eg XenServer 7.0).

                                      BTW, there's no such thing as XCP-ng 7.0 😉

                                      LunarstarPonyL 1 Reply Last reply Reply Quote 0
                                      • LunarstarPonyL Offline
                                        LunarstarPony @olivierlambert
                                        last edited by

                                        @olivierlambert What will happened if I restore the backup? And update it again?

                                        LunarstarPonyL 1 Reply Last reply Reply Quote 0
                                        • LunarstarPonyL Offline
                                          LunarstarPony @LunarstarPony
                                          last edited by

                                          @LunarstarPony Oh and maybe it's 7.5 xD

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

                                            If you restore the backup, you'll have your XAPI DB as it was before you made the upgrade 🙂

                                            LunarstarPonyL 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post