Jump to: navigation, search

Difference between revisions of "MigrateToCinder"

 
Line 10: Line 10:
 
# copy data from nova database using `cinder-manage migrate import_db --src=$NOVA_SQL_CONN --dest=$CINDER_SQL_CONN`
 
# copy data from nova database using `cinder-manage migrate import_db --src=$NOVA_SQL_CONN --dest=$CINDER_SQL_CONN`
 
# copy persistent tgt files using `cinder-manage copy_ptgt_files --src=/var/lib/nova/volumes/ --dest=/var/lib/cinder/volumes/`
 
# copy persistent tgt files using `cinder-manage copy_ptgt_files --src=/var/lib/nova/volumes/ --dest=/var/lib/cinder/volumes/`
# disable the nova-volume-api in enabled apis in /etc/nova/nova.conf `sed -i "s/osapi_volume,// /etc/nova/nova.conf"
+
# disable the nova-volume-api in enabled apis in /etc/nova/nova.conf `sed -i "s/osapi_volume,// /etc/nova/nova.conf"`
 
# restart nova-api
 
# restart nova-api
 
# start cinder-api
 
# start cinder-api

Revision as of 00:30, 29 September 2012

Migrate From Nova-Volumes to Cinder

The process for migrating from nova-volumes to cinder is as follows.

  1. upgrade your nova install to folsom
  2. upgrade your nova database using `nova-manage db sync`
  3. install the folsom version of cinder
  4. create a cinder database using `cinder-manage db sync`
  5. copy data from nova database using `cinder-manage migrate import_db --src=$NOVA_SQL_CONN --dest=$CINDER_SQL_CONN`
  6. copy persistent tgt files using `cinder-manage copy_ptgt_files --src=/var/lib/nova/volumes/ --dest=/var/lib/cinder/volumes/`
  7. disable the nova-volume-api in enabled apis in /etc/nova/nova.conf `sed -i "s/osapi_volume,// /etc/nova/nova.conf"`
  8. restart nova-api
  9. start cinder-api