API Doc
Search Docs...
⌘ K
OverviewDeploymentManagementOperationReferenceGlossary
    ACOS 6.3.0
  • Arcfra Cloud Operating System>
  • CLI command>
  • Managing the recycle bin

Cleaning trash volumes from the recycle bin

Cleaning all expired trash volumes in the recycle bin

Procedure

Run the following command on any node in the cluster:

zbs-meta recycle_bin sweep_immediate

Output example

None

Cleaning all trash volumes in the recycle bin

Clean all trash volumes, regardless of the expiration status.

Note:

Only one task is allowed to run at a time and cannot be terminated while in progress.

Procedure

Run the following command on any node in the cluster:

zbs-meta recycle_bin start_cleaner

Output example

$ zbs-meta recycle_bin start_cleaner
---------------  ------------------------------------
Cleaner Running  True
Task UUID        4922e9b2-8b34-4d52-a9f8-3b97b5ae5609
Volume Count     0
Clean Type       ALL
---------------  ------------------------------------

Output note

ParameterDescription
Cleaner RunningWhether a cleaning task is currently running.
Task UUID The UUID of the latest task. If the task is not running, it refers to the UUID of the previous task. If the task is running, it refers to the UUID of the current task.
Volume Count The number of volumes included in the task.
Clean Type The cleaning type, defaults to full cleanup.

Batch cleaning trash volumes that have not yet expired

Procedure

Run the following command on any node in the cluster:

zbs-meta recycle_bin batch_sweep_volumes <volume_ids>
ParameterDescription
<volume_ids>The IDs of the trash volumes to be cleaned. Multiple IDs must be separated by commas (,).

Output note

The cleaning command itself has no output. You can check whether the cleaned objects still exist in the recycle bin by running zbs-meta recycle_bin list_volumes.

Viewing the status of the current cleaning task

Procedure

Run the following command on any node in the cluster:

zbs-meta recycle_bin show_cleaner

Output example

$ zbs-meta recycle_bin show_cleaner
---------------  ------------------------------------
Cleaner Running  False
Task UUID        4922e9b2-8b34-4d52-a9f8-3b97b5ae5609
Volume Count     0
Clean Type       ALL
---------------  ------------------------------------

Output note

ParameterDescription
Cleaner RunningWhether a cleaning task is currently running.
Task UUID The UUID of the latest task. If the task is not running, it refers to the UUID of the previous task. If the task is running, it refers to the UUID of the current task.
Volume Count The number of volumes included in the task.
Clean Type The cleaning type, defaults to full cleanup.