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

    Recover a local drive used for a SR

    Scheduled Pinned Locked Moved Xen Orchestra
    1 Posts 1 Posters 1.3k Views 1 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.
    • bill.gertzB Offline
      bill.gertz
      last edited by bill.gertz

      Hello,

      Hey, for future, um, not well informed, admins. If you hose your local attached storage used by an SR, you may need to drop back and punt. This was a development xcp-ng host with an XOA instance using the locally attached storage for backups.

      So, no significant loss if I need to drop the SR and re-set up a VDI for xoa-backups.

      After forcing a reboot during an xcp-ng upgrade, I failed to repair the disk. I will not argue foreign the host to hardware reboot was stupid. That failed miserably; the LVM partition would not fsck, even after leaving it for days. Nor from GUI could I delete the SR - it would just spin and do nothing - not even an error message in the GUI logs.

      So after a bit of research hand find a helpful post by @olivierlambert logging into the xcp-ng instance and:

      xe sr-forget uuid=<<UUID of screwed up storage>>
      

      I then recreated the VDI for the XOA instance. Finally, I checked to ensure the new VDI was attached, created a new ext4 partition for the xoa-backups, verified it mounted, and restarted the backups.

      Please ask if you find yourself stuck and need any clarification on any of this.

      Regards,

      Bill

      1 Reply Last reply Reply Quote 1

      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