openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #23707
Re: Changing the location of Nova's instances
-
To:
Daniel Ellison <daniel@xxxxxxxxxx>
-
From:
"Mac Innes, Kiall" <kiall@xxxxxx>
-
Date:
Wed, 15 May 2013 13:08:14 +0000
-
Accept-language:
en-IE, en-US
-
Cc:
OpenStack Users <openstack@xxxxxxxxxxxxxxxxxxx>
-
Thread-index:
AQHOUWxb4JBOCgomwkiP0zze2h97RA==
-
Thread-topic:
[Openstack] Changing the location of Nova's instances
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:
On May 15, 2013, at 8:52 AM, Robert van Leeuwen <Robert.vanLeeuwen@xxxxxxxxxxxxx><mailto:Robert.vanLeeuwen@xxxxxxxxxxxxx> 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 directory needs to be relocated, not just /var/lib/nova/instances. Got it.
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? Also, the various libvirt.xml files have references to /var/lib/nova/instances. Is it a >manual process to change these references? Or is there some magical migration command that would fix everything >for me? :)
I don't think there is a tool for that but a bash one-liner should be able to search and replace this in the XML files :)
This is true. And it's exactly what I'll do. :) Thanks for your help!
Regards,
Daniel
_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to : openstack@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help : https://help.launchpad.net/ListHelp
Follow ups
References