Ask Your Question
0

How to import existing volumes in Cinder

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

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
1

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

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

Comments

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 -0600 )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 -0600 )edit
0

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

Cinder supports backup and restore of volumes:

http://docs.openstack.org/admin-guide...

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
0

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

schegi gravatar image

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

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

Greets Stefan

edit flag offensive delete link more
-1

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

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

Seen: 1,759 times

Last updated: Mar 19 '15