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

    Recovery from lost node

    Scheduled Pinned Locked Moved Solved XOSTOR
    5 Posts 3 Posters 191 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.
    • A Offline
      acp
      last edited by

      I had a node failure due to hardware. I fixed the hardware issue and brought the system back up and instead of

      linstor node restore 
      

      I did

      linstor node lost
      

      The node was removed.

      Is there any recovery for this? (like getting the VHD of the VM).

      Thanks,

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

        Ping @Team-Storage

        1 Reply Last reply Reply Quote 0
        • A Offline
          anthoineb XCP-ng Team @acp
          last edited by

          @acp Here is the procedure to re-insert your host in the SR.

          Make sure you have the required packages by running these commands on it:

          yum install -y xcp-ng-release-linstor
          yum install -y xcp-ng-linstor
          

          It should be the case because the node was running the services before, but better to check.

          And then restart the toolstack to detect the LINSTOR driver:

          xe-toolstack-restart
          

          Ensure you have the same configuration on each PBD of your XOSTOR SR using this command.

          xe pbd-list sr-uuid=<UUID>
          

          All device-config must be the same.

          Then, use this command with the correct <GROUP_NAME> and <HOST_UUID> to add the node to the SR:

          xe host-call-plugin host-uuid=<HOST_UUID> plugin=linstor-manager fn=addHost args:groupName=<GROUP_NAME>
          

          For a short description, this command (re)create a PBD, open DRBD/LINSTOR ports, start specific services and add the node in the LINSTOR database.

          A storage layer is not directly added to this node. You can verify the storage state like this:

          linstor sp list
          

          You shouldn't see the storage pool of your node yet.

          Run the correct command where the controller is running to add the volume group in the LINSTOR database:

          # For thin:
          linstor storage-pool create lvmthin <NODE_NAME> <SP_NAME> <VG_NAME>
          
          # For thick:
          linstor storage-pool create lvm <NODE_NAME> <SP_NAME> <VG_NAME>
          

          A new linstor sp list should show you the node now.

          A 1 Reply Last reply Reply Quote 2
          • A Offline
            acp @anthoineb
            last edited by

            @anthoineb Thank you for the assist. Was able to restore the storage to migrate to another storage device.

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

              Excellent news, thanks!

              1 Reply Last reply Reply Quote 0
              • olivierlambertO olivierlambert marked this topic as a question
              • olivierlambertO olivierlambert has marked this topic as solved
              • First post
                Last post