Edit Storage host info after creation?
-
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?
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 -
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 viaxe pbd-list
- Save the PBD information somewhere (
xe pbd-param-list uuid=<PBD UUID>
- Unplug and remove the PBD (
xe pbd-unplug
andxe pbd-destroy
- 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
- Save the PBD information somewhere (
-
-