Procedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin sweep_immediateOutput example
None
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_cleanerOutput 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
| Parameter | Description |
|---|---|
Cleaner Running | Whether 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. |
Procedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin batch_sweep_volumes <volume_ids>| Parameter | Description |
|---|---|
| <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.
Procedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin show_cleanerOutput 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
| Parameter | Description |
|---|---|
Cleaner Running | Whether 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. |