import existing cinder volumes from ceph into newly installed openstack

asked 2020-04-23 01:52:09 -0500

gtr_kebab gravatar image

Hi I wiped my install of openstack, so basically its showing no instances, volumes, images anymore, basically factory reset. However the ceph cluster has not been touched and still has a few cinder volumes that I would like to re-import and use on some instances as data drives.

I can't seem to find a way to import an existing cinder volume from ceph which I can see still exists as an RBD image in there.

I know it probably possible to mount the drives to the host and copy data manually but I thought there might be a more elegant way of just telling cinder to re-import them.

Many thanks,


edit retag flag offensive close merge delete


Not sure if it works with Ceph, but this is the API you are looking for:

This is equivalent to the command cinder manage as far as I know.

Bernd Bausch gravatar imageBernd Bausch ( 2020-04-23 03:31:06 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2020-04-23 16:17:07 -0500

gtr_kebab gravatar image

Was easier than I thought! Just had to do the following,

cinder manage --name=newdata300 p70@rbd-1#rbd-1 volume-5029f6d0-753b-417d-991d-2ea4f61bbe96 where volume-5029f6d0-753b-417d-991d-2ea4f61bbe96 is the name of the existing rbd image I wanted to import (found that in the ceph UI).

p70@rbd-1#rbd-1 I just got from running OpenStack volume list and OpenStack volume show on one of the volumes. It's basically stating the ceph host and the rbd pool name.

Cheers! Jon.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2020-04-23 01:52:09 -0500

Seen: 107 times

Last updated: Apr 23