openstack instance change storage dir

在云计算openstack中以为新建的虚拟机都存放在/var/lib/nova/instances中,在新建虚拟机时内存当然不够用,所以可以将nova转移到新的存储位置

以下操作只在计算节点上进行

一:停止虚拟机
   查看虚拟机:
   $nova list
   停止将要迁移的虚拟机
   $nova stop INSTANCEID
二:数据迁移
   $cp -r /var/lib/nova/instances/  /openstack/
三:修改虚拟机存储路径

#vi /etc/nova/nova.conf

#实例路径 
    instances_path=/openstack/instances
    #nova的目录 
    state_path=/openstack/instances

四:重启compute服务和启动虚拟机

#systemctl restart openstack-nova-compute.service

启动虚拟机:    #nova start INSTANCEID

原文地址:https://www.cnblogs.com/ruiy/p/11202611.html

时间: 2024-10-19 21:03:18

openstack instance change storage dir的相关文章

【oracle】oracledba4 when you need to change storage options

In which scenarios would you rebuild an index? (Choose all that a pply.) A. when you need to disable the index usage B. when you need to change storage options C. when you need to enable index monitoring D. when you need to move the index to another 

openstack instance resize Resize error: Unable to resize disk down

Resize error: Unable to resize disk down openstack instance resize 云主机的类型基本一致

openstack instance add cinder-volumes

给instance挂载volumes[云硬盘] 步骤: 通过cinder服务创建一块硬盘volume,挂载到instance上. 一.在instance上操作: fdisk /dev/vdb                  #一般第一次挂载是在这个目录下: p n 1 回车 回车 wq mkfs.ext4 /dev/vdb1 mount /dev/vdb1 /mnt            #看个人需求挂载到一个目录下: 注意:不要随便把volume挂载到/目录下. 如果想把volume这块空间

openstack instance resize

Error: No valid host was found. No valid host found for resize allow_resize_to_same_host=True allow_migrate_to_same_host=True

openstack instance snapshort

OpenStack Block Storage安装配置use LVM

1,storage systems use LVM Ins and configuration Block Storage; apt-get install lvm2; 创建Physical volume 创建volume group add a filter entry to the devices section in the /etc/lvm/lvm.conf file to keep LVM from scanning  devices used by virtual machines;

Deploying Cloud Foundry on OpenStack Juno and XenServer (Part II)

link http://rabbitstack.github.io/deploying-cloud-foundry-on-openstack-juno-and-xenserver-part-ii/ Let's move on. We should have our OpenStack instance prepared for Cloud Foundry. The most usual way of deploying Cloud Foundry is through BOSH. For the

Deploying Cloud Foundry on OpenStack Juno and XenServer (Part I)

link http://rabbitstack.github.io/deploying-cloud-foundry-on-openstack-juno-and-xenserver-part-i/ Cloud Foundry ecosystem had been blowing my mind for a long time, and I think it really has made an IT disruption letting us focus on applications as th

How to migrate from VMware and Hyper-V to OpenStack

http://superuser.openstack.org/articles/how-to-migrate-from-vmware-and-hyper-v-to-openstack Introduction I migrated >120 VMware virtual machines (Linux and Windows) from VMware ESXi to OpenStack. In a lab environment I also migrated from Hyper-V with