Ask Your Question

How to import existing volumes in Cinder

asked 2015-02-20 17:44:23 -0500

Prakash Sompura gravatar image
I have Nimble NAS box. There are multiple volumes created on that and they are already attached to KVM virtual machines. I want to import these volumes in Cinder. I want to migrate those virtual machines to which they are connected, to openstack instances. I cannot recreate those volumes as they contain data. Please help.
edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2015-02-24 16:26:30 -0500

Prakash Sompura gravatar image
I already have volumes on Nimble storage. These volumes are mounted on other VMs. I want to see the same volumes insider Cinder. I do not want to re-create this volumes. After I create the instances to replace those non-openstack VMs I want to attached the same volumes to the instances created.
edit flag offensive delete link more


Then i think the only solution would be to create a new cinder volume of same size within the nimble storage for each of your volumes. Then try to alter the association between cinder volume and nimble volume in the database so that the created cinder volume points to the already existing volume.

schegi gravatar imageschegi ( 2015-02-25 02:52:01 -0500 )edit

But i think this is only possible by modifying the database. If this works you could manually delete the nimble volumes created by cinder in nimble.

schegi gravatar imageschegi ( 2015-02-25 02:53:24 -0500 )edit

answered 2015-02-21 00:23:33 -0500

Cinder supports backup and restore of volumes:

But since your KVM VMs are not managed by Openstack and therefore are not true cinder volumes you can not use the cinder backup and restore function to migrate from a non cinder volume to a cinder volume.

Your best best is to create new VMs on Openstack, attach a cinder volume to those VMs then copy the data over the network.

edit flag offensive delete link more

answered 2015-02-22 05:16:50 -0500

schegi gravatar image

updated 2015-02-22 05:17:32 -0500

What is your storage backend?? Got an similar problem and for an environment with cinder / ceph as backend this did the job for me. Maybe something similar is possible for LVM based storage.

Greets Stefan

edit flag offensive delete link more

answered 2015-03-19 10:15:02 -0500

Duncan Thomas gravatar image

Cinder has a 'manage' command to enable exactly this use case. I'm not sure if it works with nimble at the moment, but worth investigating.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2015-02-20 17:44:23 -0500

Seen: 2,504 times

Last updated: Mar 19 '15