After the recycle bin is enabled, all deleted volumes are first marked as Trash and moved to the zbs-trash-pool storage pool.
Procedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin enableOutput example
$ zbs-meta recycle_bin enable
Enabled RecycleBin, Check RecycleBin config by show_configAfter the recycle bin is disabled, all volumes inside are immediately cleaned.
Procedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin disableOutput example
$ zbs-meta recycle_bin disable
Disabled RecycleBin, Check RecycleBin config by show_configProcedure
Run the following command on any node in the cluster:
zbs-meta recycle_bin update_default_expired_hours <hours>| Parameter | Description |
|---|---|
hours | The expiration time in hours. The range is from 1 to 8760 hours (maximum 365 days). |
Output example
$ zbs-meta recycle_bin update_default_expired_hours 24
Check RecycleBin config by show_config