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.
- upgrade your nova install to folsom
- upgrade your nova database using `nova-manage db sync`
- install the folsom version of cinder
- 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 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"`
- restart nova-api
- start cinder-api