xenserver使用cli进行主机池添加

来源:互联网 发布:姚明新秀赛季各场数据 编辑:程序博客网 时间:2024/06/07 03:04


使用 CLI 将 XenServer 主机 host1 和 host2 加入到资源池
1. 在 XenServer 主机 host2 中打开控制台。
2. 运行以下命令,指示 XenServer 主机 host2 加入位于 XenServer 主机 host1 上的池中:
xe pool-join master-address=<host1> master-username=<administrators_username> \
master-password=<password>
master-address 必须设置为 XenServer 主机 host1 的完全限定域名,password 必须是安装
XenServer 主机 host1 时设置的管理员密码。
命名资源池

默认情况下,XenServer 主机属于未命名池。要创建您的第一个资源池,请重命名现有的无名称的
池。使用 tab-complete 查找 pool_uuid:
xe pool-param-set name-label=<"New Pool"> uuid=<pool_uuid>




使用 xe CLI 将异类 XenServer 主机添加到资源池
1. 运行 xe host-get-cpu-features 命令,获取池主服务器的 CPU 功能。
2. 在新服务器上,运行 xe host-set-cpu-features 命令,然后将池主服务器的功能复制并粘贴到
features 参数中。例如:
xe host-set-cpu-features features=<pool_master's_cpu_ features>
3. 重新启动新服务器。
4. 在新服务器上运行 xe pool-join 命令以加入池。
要使屏蔽了 CPU 功能的服务器恢复其正常功能,请运行 xe host-reset-cpu-features 命令。
注意:
要显示主机中 CPU 的所有属性的列表,请运行 xe host-cpu-info 命令。
0 0
原创粉丝点击