Jump to: navigation, search

Difference between revisions of "MigrateToCinder"

Line 9: Line 9:
 
# create a cinder database using `cinder-manage db sync`
 
# create a cinder database using `cinder-manage db sync`
 
# 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/`
 
 
# 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 17:58, 1 October 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. disable the nova-volume-api in enabled apis in /etc/nova/nova.conf `sed -i "s/osapi_volume,// /etc/nova/nova.conf"`
  7. restart nova-api
  8. start cinder-api