<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Bright%3AOpenstack-config</id>
	<title>Bright:Openstack-config - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Bright%3AOpenstack-config"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Bright:Openstack-config&amp;action=history"/>
	<updated>2026-05-04T16:27:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Bright:Openstack-config&amp;diff=11661&amp;oldid=prev</id>
		<title>K mouza: Created page with &quot;== Changing default Storage directory ==  By Default, Openstack uses the &lt;tt&gt;/var&lt;/tt&gt; directory, as the storage for everything Openstack-related. To change this follow the ne...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Bright:Openstack-config&amp;diff=11661&amp;oldid=prev"/>
		<updated>2016-01-06T12:31:27Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Changing default Storage directory ==  By Default, Openstack uses the &amp;lt;tt&amp;gt;/var&amp;lt;/tt&amp;gt; directory, as the storage for everything Openstack-related. To change this follow the ne...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Changing default Storage directory ==&lt;br /&gt;
&lt;br /&gt;
By Default, Openstack uses the &amp;lt;tt&amp;gt;/var&amp;lt;/tt&amp;gt; directory, as the storage for everything Openstack-related. To change this follow the next steps.&lt;br /&gt;
&lt;br /&gt;
=== 1. Nova Path ===&lt;br /&gt;
&lt;br /&gt;
You can change the nova state path, in which the instances are saved as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@ma-b71-c7-os ~]# cmsh&lt;br /&gt;
[ma-b71-c7-os]% category roles openstack-compute-hosts&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;category[openstack-compute-hosts]-&amp;gt;roles]% use openstack::compute&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;category[openstack-compute-hosts]-&amp;gt;roles[OpenStack::Compute]]% set novastatepath /opt/nova&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;category[openstack-compute-hosts]-&amp;gt;roles[OpenStack::Compute]]% commit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After setting the path, please make sure to move all the contents from under &amp;lt;tt&amp;gt;/var/lib/nova&amp;lt;/tt&amp;gt; to &amp;lt;tt&amp;gt;/opt/nova&amp;lt;/tt&amp;gt; (or the new state path of nova) on all openstack compute hosts. Please note that you can&amp;#039;t have multiple state_path per compute host.&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s preferred not to change the nova state directory frequently as it may affect running instances.&lt;br /&gt;
&lt;br /&gt;
=== 2. Glance Path ===&lt;br /&gt;
&lt;br /&gt;
You can change the data directory for glance images as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@ma-b71-c7-os ~]# cmsh&lt;br /&gt;
[ma-b71-c7-os]% device roles master&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles]% use openstack::imageapi&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles[OpenStack::ImageApi]]% imagebackends&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles[OpenStack::ImageApi]-&amp;gt;imagebackends]% use filesystem&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles[OpenStack::ImageApi]-&amp;gt;imagebackends[filesystem]]% set filesystembackendstoragepath /cm/shared/apps/openstack/glance-images&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles[OpenStack::ImageApi]-&amp;gt;imagebackends[filesystem]]% commit&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specifying multiple data directories for glance is not possible at the moment. A workaround for this is to freeze &amp;lt;tt&amp;gt;/etc/glance/glance-api.conf&amp;lt;/tt&amp;gt; and add multiple &amp;quot;filesystem_store_datadir&amp;quot; directives specifying a data directory at each line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[root@ma-b71-c7-os ~]# grep &amp;quot;filesystem_store_datadir&amp;quot; /etc/glance/glance-api.conf&lt;br /&gt;
&lt;br /&gt;
filesystem_store_datadir=/cm/shared/apps/openstack/glance-images&lt;br /&gt;
filesystem_store_datadir=/opt/glance/images&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== 3. Cinder Block Storage ===&lt;br /&gt;
&lt;br /&gt;
For the cinder block storage, you can modify the NFS shares as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
[ma-b71-c7-os-&amp;gt;device[ma-b71-c7-os]-&amp;gt;roles[OpenStack::Volume]-&amp;gt;volumebackends[nfs]]% show&lt;br /&gt;
Parameter                        Value                                           &lt;br /&gt;
-------------------------------- ------------------------------------------------&lt;br /&gt;
Name                             nfs                                              &lt;br /&gt;
Revision                                                                          &lt;br /&gt;
Type                             OpenStackVolumeBackendNFS                        &lt;br /&gt;
Volume driver                    cinder.volume.drivers.nfs.NfsDriver              &lt;br /&gt;
NFS disk util                    df                                               &lt;br /&gt;
NFS mount point base             /var/lib/cinder/volumes                          &lt;br /&gt;
NFS sparsed volumes              yes                                              &lt;br /&gt;
NFS shares                       master:/cm/shared/apps/openstack/cinder-volumes  &lt;br /&gt;
NFS shares config                /var/lib/cinder/nfsshare&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>K mouza</name></author>
	</entry>
</feed>