云题海 - 专业文章范例文档资料分享平台

当前位置:首页 > openstack 在一个节点上调整虚拟机大小

openstack 在一个节点上调整虚拟机大小

  • 62 次阅读
  • 3 次下载
  • 2025/6/14 17:53:21

Resize a Running Instance on a Single Compute Node

One can resize a running instance in OpenStack by running the following nova command:

nova resize --poll

The default behavior of this command is to invoke the nova scheduler to determine the best compute node for the resized instance. If there is only one compute node in the environment, the resize will fail.

We need to tell nova to allow resizing on the same host by modifying /etc/nova/nova.conf .

Modify /etc/nova/nova.conf

allow_resize_to_same_host=True scheduler_default_filters=AllHostsFilter

By changing the default nova scheduler filter to AllHostsFilter , all compute hosts will be available and unfiltered. It is not a good idea to keep this setting in a multi-compute environment. Restart Services

After making the changes to nova.conf, restart scheduler and compute services:

service nova-scheduler restart service nova-compute restart

Resize Confirm

After resizing the instance, the status will change to VERIFY_RESIZE . One will see two copies of the instance in /var/lib/nova/instances : the original and the resized. Run the following command to verify the resize and delete the original instance:

nova resize-confirm

上面的文章我是转载的 我解释下

在你的所有控制节点和计算节点的/etc/nova/nova.conf 加入以下配置

allow_resize_to_same_host=True

scheduler_default_filters=AllHostsFilter

虽然文章说只重启scheduler服务和nova-compute服务。但是我发觉我重启了控制节点上所有的nova服务器 和计算节点上的openstack-nova-compute 服务才生效。。

重启nova-api服务,scheduler服务即可,无需重启Nova-computer

  • 收藏
  • 违规举报
  • 版权认领
下载文档10.00 元 加入VIP免费下载
推荐下载
本文作者:...

共分享92篇相关文档

文档简介:

Resize a Running Instance on a Single Compute Node One can resize a running instance in OpenStack by running the following nova command: nova resize --poll The default behavior of this command is to invoke the nova scheduler to determine the best compute node for the resized instance. If there is only one compute node in the environment, the resize will fail. We nee

× 游客快捷下载通道(下载后可以自由复制和排版)
单篇付费下载
限时特价:10 元/份 原价:20元
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信:fanwen365 QQ:370150219
Copyright © 云题海 All Rights Reserved. 苏ICP备16052595号-3 网站地图 客服QQ:370150219 邮箱:370150219@qq.com