cinder delete <volume_id>
--> »èÁ¦°¡ ¾ÈµÊ
# rbd list queens_volumes |grep 307d2271-a6ba-4e9a-8546-9af4a2da1361
volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
# qemu-img info rbd:queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
image: json:{"driver": "raw", "file": {"pool": "queens_volumes", "image": "volume-307d2271-a6ba-4e9a-8546-9af4a2da1361", "driver": "rbd"}}
file format: raw
virtual size: 25G (26843545600 bytes)
disk size: unavailable
cluster_size: 4194304
Snapshot list:
ID TAG VM SIZE DATE VM CLOCK
snapshot-321cae32-85e8-40a8-9845-3234c2c31654snapshot-321cae32-85e8-40a8-9845-3234c2c31654 25G 1970-01-01 09:00:00 00:00:00.000
# rbd remove queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
2019-04-16 15:57:16.930801 7f377cff9700 -1 librbd::image::RemoveRequest: 0x55d46408be70 check_image_snaps: image has snapshots - not removing
Removing image: 0% complete...failed.
rbd: image has snapshots - these must be deleted with 'rbd snap purge' before the image can be removed.
# rbd snap purge queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
Removing all snapshots: 0% complete...failed.
rbd: snapshot 'snapshot-321cae32-85e8-40a8-9845-3234c2c31654' is protected from removal.
# rbd -p queens_volumes snap ls volume-307d2271-a6ba-4e9a-8546-9af4a2da1361
SNAPID NAME SIZE TIMESTAMP
67 snapshot-321cae32-85e8-40a8-9845-3234c2c31654 25GiB Thu Apr 11 14:07:46 2019
# rbd snap rm queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654
Removing snap: 2019-04-16 16:02:20.705307 7f8c537fe700 -1 librbd::Operations: snapshot is protected0% complete...failed.
rbd: snapshot 'snapshot-321cae32-85e8-40a8-9845-3234c2c31654' is protected from removal.
# rbd snap unprotect queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654
# rbd snap rm queens_volumes/volume-307d2271-a6ba-4e9a-8546-9af4a2da1361@snapshot-321cae32-85e8-40a8-9845-3234c2c31654
Removing snap: 100% complete...done.
# cinder delete 307d2271-a6ba-4e9a-8546-9af4a2da1361
Request to delete volume 307d2271-a6ba-4e9a-8546-9af4a2da1361 has been accepted.
Á¤»ó »èÁ¦µÊ