programmatically connect SR (NFS)
-
I'm somewhat new to xcpng and am trying to figure out a way to connect an NFS SR (or several) once an NFS server comes online.
Use Case:
Following a power outage there is a race condition between xcpng and my NAS. Typically the xcpng hosts start first.
The SR does not connect to the NAS as it is unavailable at that time
Any VMs hosted on the NFS server fail to start
SR remains disconnected even once the NAS is upCurrently I need to manually reconnect the SR and start the VMs
I'm trying to understand how I can have the NAS make an API call to XO to reconnect the SRs and trigger the VMs to boot.
Using the xo-cli I'm able to issue
xo-cli sr.connectAllPbds id={SRUID}
but I'm not sure how to automate this on XO or call it via an API call from the NAS.
Can anyone help guide me here?
Cheers
-
The details are here -- https://xcp-ng.org/forum/post/70075
-
-
The details are here -- https://xcp-ng.org/forum/post/70075
-
@Danp That worked a treat thanks for the link!
-
Perfect, excellent news Enjoy XCP-ng!
-
-