Remove VM without remove CEPH rbd image

francis

New Member
Oct 15, 2014
1
0
1
I have created a second ceph rbd image on a vm, this image have a lot of data, but i want disconnect this rbd image from this vm and attach to other vm.

How can I do this?

And how remove vm without remove the image, sometimes i want access that image on other vm.
 
I usually do this by renaming the image. For example if existing vm image is vm-101-disk-1 and i want to use it with VM102, i would rename the image to vm-102-disk-1 and attach it to the new VM.
You have to use Ceph command in order to rename the image name.
This command will list all images in your RBD pool: #rbd ls <pool_name>
To rename an image: rbd mv <pool_name>/<old_image> <pool_name/<new_image>.