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 9000 V5 7.0 Command Reference 03

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).
create worm_dir

create worm_dir

Function

The create worm_dir command is used to create a new WORM root directory.

Format

create worm_dir < file_path > [ auto_delete_flag=? ] [ autolocktime=? ] [ auto_lock_time_unit ] [ def_protectperiod=? ] [ def_protect_time_unit ] [ max_protectperiod=? ] [ max_protect_time_unit ] [ min_protectperiod=? ] [ min_protect_time_unit ]

Parameters

Parameter

Description

Value

file_path Path of the WORM root directory.

The value is a character string that must start with a slash (/) and be 1 to 4000 characters in length.

auto_delete_flag Whether the expired files in the WORM directory need to be automatically deleted. 1: TRUE: The file is automatically deleted when it expires. 2: FALSE: The file is not automatically deleted when it expires.

The value which can be TRUE or FALSE.

autolocktime Automatic lock time.

The value is a positive integer. With a unit, the value can be a period between 1 and 7200 minutes, 1 and 1080 hours, or 1 and 45 days.

auto_lock_time_unit Unit of the automatic lock time.

The value is "DAY", "HOUR", or "MINUTE".

def_protectperiod Default protection period.

The value is a positive integer. The value must not be smaller than the minimum protection period but not greater than the maximum protection period.

If the value is set to "infinite", the protection period is eternally effective.

def_protect_time_unit Unit of the default protection period.

The value is "DAY", "HOUR", or "MINUTE". If "def_protectperiod" is set to "infinite", this parameter is optional.

max_protectperiod Maximum protection period.

The value is a positive integer. The value must not be smaller than 1 hour but not greater than 70 years. If the value is set to "infinite", the protection period is eternally effective.

max_protect_time_unit Unit of the maximum protection period.

The value is "DAY", "HOUR", or "MINUTE". If "max_protectperiod" is set to "infinite", this parameter is optional.

min_protectperiod Minimum protection period.

The value is a positive integer and must be smaller than 30 years.

If the value is set to "infinite", the protection period is eternally effective.

min_protect_time_unit Unit of the minimum protection period.

The value is "DAY", "HOUR", or "MINUTE". If "min_protectperiod" is set to "infinite", this parameter is optional.

Level

Administrator

Usage Guidelines

This command sets the path you entered as the WORM root directory. You can set the automatic deletion flag for the expired files in the WORM directory, default protection period, automatic lock time, maximum protection period, and minimum protection period. If you do not specify any of the five parameters, they will be set to their default values.

Default values of the parameters:

1.Automatic deletion flag for the expired files: FALSE

2.Maximum protection period: 70 years

3.Minimum protection period: 1 year

4.Default protection period: same as the minimum protection period.

5.Automatic lock time: 2 hours.

Parameter dependency:

  • If "autolocktime" is specified, "auto_lock_time_unit" should be specified.
  • If "def_protectperiod" is specified, "def_protect_time_unit" must be specified.
  • If "max_protectperiod" is specified, "max_protect_time_unit" must be specified.
  • If "min_protectperiod" is specified, "min_protect_time_unit" must be specified.

Note:

If the soft clock is not configured, other WORM commands cannot be executed.

Example

Create a new WORM root directory.

admin:/>create worm_dir /worm001 auto_delete_flag=TRUE autolocktime=1 DAY def_protectperiod=1 YEAR max_protectperiod=30 YEAR min_protectperiod=1 YEAR
CAUTION: You are about to enable the WORM of the directory. After this operation is performed, files in the directory cannot be deleted and modified (unless administrators use special permissions).
Do you wish to continue?(y/n)y
Command executed successfully.
 

System Response

None

Translation
Download
Updated: 2019-05-07

Document ID: EDOC1100067955

Views: 24692

Downloads: 7

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