No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference 06

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands."
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
change file_system worm

change file_system worm

Function

The change file_system worm command is used to modify the parameters of a WORM file such as the maximum protection period, minimum protection period, default protection period, and automatic lock.

Format

change file_system worm file_system_id=? [ auto_lock_enabled=? | auto_delete_enabled=? | auto_lock_time=? | auto_lock_time_unit=? | default_protect_period=? | default_protect_period_unit=? | max_protect_period=? | max_protect_period_unit=? | min_protect_period=? | min_protect_period_unit=? ] *

Parameters

Parameter

Description

Value

file_system_id=? File system ID.

The value is an integer between 0 and 65535.

auto_lock_enable=? Whether to enable automatic lock.

The value is "yes" or "no", where:

  • "yes": to enable automatic lock.
  • "no": not to enable automatic lock.
auto_lock_time=? Automatical locking wait time.

The value ranges between 2 and 168. The default value is 2.

auto_delete_enabled=? Whether to enable automatic deletion.

The value is "yes" or "no", where:

  • "yes": to enable automatic deletion.
  • "no": not to enable automatic deletion.
The default value is "no".
max_protect_period=? Maximum protection period.

The value ranges between 0 and 70. If the value is not specified, the protection period is eternal. The default value is 70.

max_protect_period_unit=? Unit of the maximum protection period.

The unit can be year, month, or day. The default unit is year.

default_protect_period=? Default protection period.

The value ranges between 0 and 70. If the value is not specified, the protection period is eternal. The default value is 70.

default_protect_period_unit=? Unit of the default protection period.

The unit can be year, month, or day. The default unit is year.

min_protect_period=? Minimum protection period.

The value ranges between 0 and 70. If the value is not specified, the protection period is eternal. The default value is 3.

min_protect_period_unit=? Unit of the minimum protection period.

The unit can be year, month, or day. The default unit is year.

auto_lock_time_unit=? Unit of the automatical locking wait time.

The unit can be hour, day. The default is hour.

Level

Super administrator

Usage Guidelines

  • The units of "max_protect_period=?", "default_protect_period=?", and "min_protect_period=?" can be specified only when the parameters are specified.
  • This command does not support OceanStor 2200 V3 storage system.

Example

  • To check the current parameters of a WORM file system, run the following command:

    admin:/>show file_system worm file_system_id=0
    ID : 0 
    Name : fsWorm 
    Capacity : 16.000PB 
    Type : Thin 
    Worm Type : Compliance 
    Worm Minimal Protect Period : 3 Year(s) 
    Worm Maximal Protect Period : 70 Year(s) 
    Worm Default Protect Period : 70 Year(s) 
    Worm Auto Lock : Yes 
    Worm Auto Lock Time : 2 Hour(s) 
    Worm Auto Delete : No 
    Worm Clock Time : 2014-10-14/21:27:10 UTC+08:00 
    Worm Expired Time : --
  • To modify the parameters of automatic lock, automatic lock time, automatic deletion, maximum protection period, minimum protection period, and default protection period, run the following command:

    admin:/>change file_system worm file_system_id=0 auto_lock_enabled=yes auto_delete_enabled=yes max_protect_period=60 max_protect_period_unit=year default_protect_period=50 default_protect_period_unit=year min_protect_period=5 min_protect_period_unit=year auto_lock_time=3 auto_lock_time_unit=hour
    CAUTION: You are about to enable the automatic deletion function, which will automatically delete expired files in the system. 
    Suggestion: Before performing this operation, ensure that you have selected the correct file system.
    Do you wish to continue?(y/n)y
    Command executed successfully.
  • To check the parameters of a WORM file system after being modified, run the following command:

    admin:/>show file_system worm file_system_id=0 
    ID : 0 
    Name : fsWorm 
    Capacity : 16.000PB 
    Type : Thin 
    Worm Type : Compliance 
    Worm Minimal Protect Period : 5 Year(s) 
    Worm Maximal Protect Period : 60 Year(s) 
    Worm Default Protect Period : 50 Year(s) 
    Worm Auto Lock : Yes 
    Worm Auto Lock Time : 3 Hour(s) 
    Worm Auto Delete : Yes 
    Worm Clock Time : 2014-10-14/21:37:00 UTC+08:00 
    Worm Expired Time : --

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000106139

Views: 317507

Downloads: 210

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next