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.2k 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

      Well, it's like the file couldn't be read correctly or corrupted. Can you try while the VM is off?

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

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • LunarstarPonyL Offline
          LunarstarPony @olivierlambert
          last edited by

          @olivierlambert Turn it off doesn't really help

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

            Can you try to copy this VDI on the same SR?

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

              @olivierlambert Like Migrate VDI to the same SR? or

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

                xe vdi-copy in the same destination SR.

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

                  @olivierlambert So xe vdi-copy {VDIUUID} ? Is this the command I should type in the console? I rarely go in there, or what would be the command I'll need to type

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

                    Use the UUID of your the current SR: https://xcp-ng.org/docs/cli_reference.html#vdi-copy

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

                      @olivierlambert It also failed with the same error
                      [22:46 xcp-ng-ksu-secondary ~]# xe vdi-copy uuid=cb81808d-69c3-43a1-bc3e-c6c3b0f61a39 sr-uuid=7a50c3d0-cce3-f98f-5685-664b02ff542f
                      The VDI copy action has failed
                      <extra>: End_of_file

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

                        So your VHD might be corrupted. You should use vhd-util to see what's going on on this VDI 🤔

                        https://support.citrix.com/article/CTX139224

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

                          @olivierlambert Hm My Local SR doesn't seems to be in that location I'm still trying to find it

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

                            @olivierlambert Are there supposed to be a mount point for it? I tried to use cat /proc/mounts but didn't find anything

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

                              @LunarstarPony There's mount point for my new remote storage and that's pretty much all

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

                                @olivierlambert Any Idea?

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

                                  @LunarstarPony Apparently that's not the only VDI that can't be moved as well, some does move without any issue some seems no problem at all

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

                                    What's the result of vhd-utils?

                                    1 Reply Last reply Reply Quote 0
                                    • E Offline
                                      eswaran @olivierlambert
                                      last edited by

                                      @olivierlambert same issue for me , after power outage xcp not booting . reinstalled xcp now , i can see the exisiting vm disks on storge . how can i restore the vms or import vm's from the disk file?

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

                                        If it's only the XAPI that was damaged, you can restore metadata from your XO/Pool metadata backup. Alternatively, if you forgot to make metadata backup, you can introduce SR to find back all your previous disks (but you will lose the medata data with it).

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