重命名服务结构节点 [英] Renaming Service Fabric Node

查看:132
本文介绍了重命名服务结构节点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


使用错误名称重命名NodeNames的最佳做法是什么?


我拼错了我们的一个节点名称并希望修复它。我尝试在主节点上更新Config JSON,但它给了我一个错误"如果你想要
来更改NodeName或NodeTypeRef,请删除旧节点并添加一个新节点。"


最佳做法是从当前群集中删除节点并将其添加回具有正确名称的群集中吗?


谢谢


 



解决方案

是的。由于错误声明您无法更新节点名称。您需要删除该节点并将其添加回群集。 


这两个命令应该为您完成:


https://docs.microsoft.com/en-us/powershell/module/ servicefabric / remove-servicefabricnode?view = azureservicefabricps


https://docs.microsoft.com/en-us/powershell/module/servicefabric/add-servicefabricnode?view=azureservicefabricps


What are the best practices for renaming NodeNames with incorrect names?

I misspelled one of our node names and want to fix it. I tried updating the Config JSON on the main node, but it gave me an error "If you want to change the NodeName or NodeTypeRef, please remove the old node and add a new one."

Would it be best practice to remove the node from it's current cluster and add it back into the cluster with the correct name?

Thanks

 

解决方案

Yes. As the error states you cannot update your node name. You need to remove the node and add it back to the cluster. 

These two commands should get it done for you:

https://docs.microsoft.com/en-us/powershell/module/servicefabric/remove-servicefabricnode?view=azureservicefabricps

https://docs.microsoft.com/en-us/powershell/module/servicefabric/add-servicefabricnode?view=azureservicefabricps


这篇关于重命名服务结构节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆