Commands for deferred deletion of Ceph volumes
This article mainly explains "the command of delaying deletion of Ceph volume". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor to take you to learn the "Ceph Volume delay deletion order"!
View the volumes in the specified pool:
Rbd ls-p {pool_name} for example: # rbd ls-p imageslun
Throw the volume to the Recycle Bin:
Rbd trash move/mv {images_name}-p {pool_name} for example: # rbd trash move lun-p images
View the volumes stored in the Recycle Bin:
Rbd trash list/ls-p {pool_name} for example: # rbd trash list-p imagesb422e3f2dba31 lun
Restore the volume of the Recycle Bin (ID is the ID found by the above rbd trash list):
Rbd trash restore {ID}-p {pool_name} for example: # rbd trash restore b422e3f2dba31-p images or rename # rbd trash restore images/b422e3f2dba31-- image lun2 while restoring
Clear volumes from the Recycle Bin:
Rbd trash remove/rm {ID}-p {pool_name} for example: # rbd trash remove b422e3f2dba31-p imagesRemoving image: 100% complete...done so far, I believe you have a better understanding of the "command for delayed deletion of Ceph volumes", you might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!