Get the App
SLTechnology News&Howtos  ›  Servers  › 

Commands for deferred deletion of Ceph volumes

Shulou Source: shulou.com Published: 2022-06-01 14:02:36 10月03日 Update

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!

Tags: Recycle bin commands delays content learning practical deeper interest at the same time practicality practical easy to operate methods more friends websites channels inquiries Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Xiaomi vpn Shulou Technology Docker