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

    Edit Storage host info after creation?

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    2 Posts 2 Posters 1.7k 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.
    • D Offline
      dustbro
      last edited by dustbro

      I have to admit, I'm a complete noob. I've been learning the basics by watching videos and thumbing through the manual...
      My tiny setup consists of Xen Server and TrueNAS connected via UniFi gateway/switch. My machines are up and running and I'm successfully able to share storage from TrueNAS for my VMs. yay!
      I've been reading that a common setup is to create a separate network just for storage by directly connecting Xen to TrueNAS via 10gb NIC, so that's what I'm attempting to do. Hardware is installed on both machines, single SFP+ cable connecting the two, and static IPs are assigned. I can create a new Storage Repository using the newly assigned static IP address , so all is good there. The main question is How do I go about changing the Server address for an already existing SR?
      xen storage.png
      The IP address for TrueNAS was 192.168.1.169, and I need to change that to 192.168.10.2. Is that even possible? Or do I need to create a new SR with the new IP and then migrate all of my data?
      I hope this is making sense to someone 😆

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

        Hi!

        That's is possible, you just need to shutdown all VMs using disks in there.

        Then, 4 steps:
        0. Find the PBD currently connected to this SR via xe pbd-list

        1. Save the PBD information somewhere (xe pbd-param-list uuid=<PBD UUID>
        2. Unplug and remove the PBD (xe pbd-unplug and xe pbd-destroy
        3. Recreate the PBD by just changing the information using xe pbd-create

        In short, the PBD is like the "cable" between your host and your SR. Removing it won't remove any actual data, just the link between them. If you recreate it, and replug it, you'll find everything back 🙂

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