openstack nova-compute节点配置使用本地磁盘

参考:https://docs.openstack.org/nova/stein/admin/file-backed-memory.html#top

本地磁盘: /dev/sdb

  1. 创建文件系统
    mkfs.ext4 /dev/sdb
  2. 挂载 
    临时挂在:mount /dev/sdb /var/lib/novae
    开机自动挂载:
  3. 配置/etc/nova/nova.conf
    [libvirt]
    file_backed_memory=1048576(磁盘大小M)
    修改lock_path=/var/lib/novae/tmp
    修改state_path=/var/lib/novae
  4. 重启nova-compute
    systemctl restart openstack-nova-compute

你可能感兴趣的:(openstack)