Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Daniel Ellison
On May 15, 2013, at 9:36 AM, "Mac Innes, Kiall" wrote: > Yup - Or, you could just bind mount /var/lib/nova/instances, leaving the > rest on the local disks (I have *no clue* if Nova will handle that > nicely.. But bind mounts certainly will ;)) That worked beautifully, Kiall. Nova seems very happ

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Razique Mahroua
Just use sed and some bashing :  virsh shutdown virsh edit X sed -> /var/lib/nova/instances -> /your/new/dir cd /var/lib/nova/instances/ sed every libvirt.xml file qemu img-convert -> /var/lib/nova/instances/_base/ -f qcow2 -O /your/new/dir cp /var/lib/nova/instances/instance-XXX/disk /yo

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Mac Innes, Kiall
On 15/05/13 14:22, Daniel Ellison wrote: > On May 15, 2013, at 9:08 AM, "Mac Innes, Kiall" wrote: >> Personally, I would make use of a bind mount[1] rather than trying to >> relocate.. >> >> A bind mount is just like a symlink, with the exception of AppArmor (and I >> presume SELinux) will handl

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Daniel Ellison
On May 15, 2013, at 9:08 AM, "Mac Innes, Kiall" wrote: > Personally, I would make use of a bind mount[1] rather than trying to > relocate.. > > A bind mount is just like a symlink, with the exception of AppArmor (and I > presume SELinux) will handle it "correctly".. Ok, so I would move the ent

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Mac Innes, Kiall
Personally, I would make use of a bind mount[1] rather than trying to relocate.. A bind mount is just like a symlink, with the exception of AppArmor (and I presume SELinux) will handle it "correctly".. Thanks, Kiall [1]: http://docs.1h.com/Bind_mounts On 15/05/13 14:02, Daniel Ellison wrote:

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Daniel Ellison
On May 15, 2013, at 8:52 AM, Robert van Leeuwen wrote: >> I would like to move all instances into /home/storage/nova/instances. > The following value in nova.conf specifies where the images are located: > state_path Ah, ok! That's the info I was looking for. So the entire /var/lib/nova directo

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Robert van Leeuwen
> I would like to move all instances into /home/storage/nova/instances. The following value in nova.conf specifies where the images are located: state_path >Of course, I would shut down all instances and copy everything to the new >location. But how do I convince Nova >that things have changed?

Re: [Openstack] Changing the location of Nova's instances

2013-05-15 Thread Razique Mahroua
Hey Daniel,I think there is a flag you can put inside nova.conf but I don' recall it...Regards, Razique Mahroua - Nuage & Corazique.mahr...@gmail.comTel : +33 9 72 37 94 15 Le 15 mai 2013 à 14:24, Daniel Ellison a écrit :Hey all,Is there a method for changing where Nova looks f

[Openstack] Changing the location of Nova's instances

2013-05-15 Thread Daniel Ellison
Hey all, Is there a method for changing where Nova looks for its instances? When setting up my Openstack system I don't recall there being a choice as to where instances would be stored. As it happens, they're in /var/lib/nova/instances. My server is set up such that /home is a 6TB LVM volume,