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

Command Reference

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. 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. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions.
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 fs_snapshot schedule

create fs_snapshot schedule

Function

The create fs_snapshot schedule command is used to create a schedule of a periodic snapshot in a file system.

Format

create fs_snapshot schedule name=? file_system_id=? period=? [ day_of_week=? ] [ week_start_time=? ] [ day_of_month=? ] [ month_start_time=? ] [ hour_of_day=? ] [ minute_of_hour=? ] [ frequency_time=? ] [ frequency_snap_max_num=? ] [ daily_snap_max_num=? ] [ weekly_snap_max_num=? ] [ monthly_snap_max_num=? ]

Parameters

Parameter

Description

Value

name=?

Indicates the name of the schedule of a periodic snapshot.

The value consists of 1 and 31 ASCII characters including number, letters, periods (.), underscores (_), and hyphens (-).

file_system_id=?

Indicates the ID of a file system.

The value is an integer between 0 and 65535.

period=?

Indicates the policy of a schedule.

The value can be "daily", "weekly", "monthly" , or "frequency", where,

  • daily: to create a periodic snapshot on a daily basis
  • weekly: to create a periodic snapshot on a weekly basis
  • monthly: to create a periodic snapshot on a monthly basis.
  • frequency: to create a periodic snapshot on a fixed interval.

If multiple policies are selected, separate them with commas (,). For example, period=daily,weekly.

day_of_week=?

Indicates the day of a week to create a periodic snapshot.

The value can be "mon", "tue", "wed", "thu", "fri", "sat", or "sun".

If multiple days must be selected, separate them with commas (,). For example, day_of_week=mon,tue.

week_start_time=?

Indicates the time of a week to create a periodic snapshot.

The value is a time between "00:00" and 23:59" in the format of "HH:MM".

day_of_month=?

Indicates the day of a month to create a periodic snapshot.

The value is an integer between 1 and 31.

hour_of_day=?

Indicates the hour of a day to create a periodic snapshot.

The value is an integer between 0 and 23.

If multiple hours are selected, separate them with commas (,). For example, hour_of_day=1,2,3.

frequency_time=?

Indicates the fixed interval to create a periodic snapshot.

The value is an integer between 1 and 1439.

minute_of_hour=?

Indicates the minute an hour of a day to create a periodic snapshot.

The value is an integer between 0 and 59.

month_start_time=?

Indicates the time of a month to create a periodic snapshot.

The value is a time between "00:00" and 23:59" in the format of "HH:MM".

daily_snap_max_num=?

Maximum number of snapshots on a daily basis.

The value is an integer between 1 and 2048. The maximum number of snapshots of all types cannot exceed 2048.

The default value is 7.

weekly_snap_max_num=?

Maximum number of snapshots on a weekly basis.

The value is an integer between 1 and 2048. The maximum number of snapshots of all types cannot exceed 2048. The default value is 4.

monthly_snap_max_num=?

Maximum number of snapshots on a monthly basis.

The value is an integer between 1 and 2048. The maximum number of snapshots of all types cannot exceed 2048. The default value is 4.

frequency_snap_max_num=?

Maximum number of snapshots at a fixed interval.

The value is an integer between 1 and 2048. The maximum number of snapshots of all types cannot exceed 2048. The default value is 6.

Level

Administrator

Usage Guidelines

  • Before running this command, check that the ID of the file system is correct.
  • Before running this command: check whether the name of the schedule already exists.
  • Before running this command: check whether the file system already has a schedule.
  • When "period" is set to "daily", "hour_of_day,minute_of_hour" must be entered. If the "daily_snap_max_num" parameter is not specified, its default value is 7.
  • When "period" is set to "weekly", "day_of_week,week_start_time" must be entered. If the "weekly_snap_max_num" parameter is not specified, its default value is 4.
  • When "period" is set to "monthly", "day_of_month,month_start_time" must be entered. If the "monthly_snap_max_num" parameter is not specified, its default value is 4.
  • When "period" is set to "frequency", "frequency_time" must be entered. If the "frequency_snap_max_num" parameter is not specified, its default value is 6.

Example

To create a periodic snapshot schedule for file system 1, run the following command:

admin:/>create fs_snapshot schedule name=auto file_system_id=1 period=daily,weekly,monthly,frequency day_of_week=sun week_start_time=12:23 day_of_month=5 month_start_time=12:25 hour_of_day=12 minute_of_hour=20 frequency_time=10 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-11

Document ID: EDOC1000181601

Views: 309114

Downloads: 39

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