Skip to content

Instantly share code, notes, and snippets.

@blackwood821
Last active May 19, 2021 22:58
Show Gist options
  • Save blackwood821/4d205bc9dacaa3952f66d1904fe37caf to your computer and use it in GitHub Desktop.
Save blackwood821/4d205bc9dacaa3952f66d1904fe37caf to your computer and use it in GitHub Desktop.

While the CN is still running in the source Triton DC, follow the steps in https://docs.joyent.com/private-cloud/troubleshooting/reset but skip the factory reset step because that is what tells SmartOS to destroy the zpool. Once the CN has been forgotten from the source Triton DC then power it down, cable it up to the target DC and when it iPXE boots the first time Triton will see it as already setup so it won’t give you the option to set it up. Replace the DC name and necessary IP addresses in the following files on the CN:

/opt/smartdc/agents/etc/vm-agent.config.json
/opt/smartdc/agents/etc/net-agent.config.json
/opt/smartdc/agents/etc/cn-agent.config.json
/opt/smartdc/registrar/etc/config.json
/opt/smartdc/config/node.config
/opt/smartdc/agents/etc/smartlogin.cfg

Then restart the following agent services on the CN:

svcadm restart net-agent cmon-agent cn-agent amon-agent vm-agent smartlogin

Then recreate the NICs for each VM and update the owner UUID for each VM (if the DCs are not linked in which case they would have the same owner UUIDs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment