First delete all instances using the "Nova Delete" command and free up disk space.
To stop the Nova service:
Service LIBVIRTD Stop
Service Openstack-nova-compute Stop
Empty directory:
rm-rf/var/lib/nova/instances/*
Mount NFS:
Mount 168.5.22.100:/instances/var/lib/nova/instances
Chown-r nova:nova/var/lib/nova/instances
chmod 755/var/lib/nova/instances
To modify the Fstab file:
Vi/etc/fstab
Add to:
168.5.22.100:/instances/var/lib/nova/instances NFS Defaults 0 0
Backup configuration file:
Cp-a/etc/nova/nova.conf/etc/nova/nova.conf.bak
Cat/etc/nova/nova.conf.bak|grep-v ' # ' |grep-v ' ^$ ' >/etc/nova/nova.conf
To modify a configuration file:
[Libvirt]
...
Disk_cachemodes= "File=directsync,block=none"
Switch
Disk_cachemodes= "File=none,block=none"
To start the Nova service:
Service LIBVIRTD Start
Service Openstack-nova-compute Start
To test a dynamic migration instance:
Nova Live-migration 6a8e949c-66d1-460d-a2fa-c16473b70953 node-5.evecom.net
Configure Nova instances to use the NFS backend