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

Configuring the recycle bin

Enabling the recycle bin

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 enable

Output example

$ zbs-meta recycle_bin enable
Enabled RecycleBin, Check RecycleBin config by show_config

Disabling the recycle bin

After 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 disable

Output example

$ zbs-meta recycle_bin disable
Disabled RecycleBin, Check RecycleBin config by show_config

Updating the default expiration time for trash volumes in the recycle bin

Procedure

Run the following command on any node in the cluster:

zbs-meta recycle_bin update_default_expired_hours <hours>
ParameterDescription
hoursThe 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