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 04

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 remote_replication general

create remote_replication general

Function

The create remote_replication general command is used to create a remote replication pair.

Format

create remote_replication general <name> <primary_resource_name> <secondary_resource_name> <channel_id> [secondary_snapshot_expire_type=by_time] [secondary_snapshot_expire_unit=?] [secondary_snapshot_expire_value=?] [recovery_policy=?] [sync_rate=?] [synchronize_type=auto_start_timing\auto_end_timing] [sync_cycle=?]

create remote_replication general <name> <primary_resource_name> <secondary_resource_name> <channel_id> [secondary_snapshot_expire_type=never] [recovery_policy=?] [sync_rate=?] [synchronize_type=manual] [sync_cycle=?]

Parameters

Parameter

Description

Value

name Pair name.

The value is a combination of numbers, letters, hyphens (-), dot (.), and underscores (_) and is 1 to 39 characters in length.

primary_resource_name Local directory.

The value must start with a slash (/), and is 1 to 511 characters in length. Replace spaces, question marks (?), and bars (|) with '\s', '\q', and '\|' respectively.

secondary_resource_name Remote directory.

The value must start with a slash (/), and is 1 to 511 characters in length. Replace spaces, question marks (?), and bars (|) with '\s', '\q', and '\|' respectively.

channel_id Channel ID.

The value is an integer between "0" and "4294967294".

secondary_snapshot_expire_type Secondary directory snapshot retention type.

never: Secondary directory snapshot never ages.

by_time: Secondary directory snapshot ages with time.

secondary_snapshot_expire_unit Secondary directory snapshot retention unit.

The secondary_snapshot_expire_unit must be set when secondary_snapshot_expire_type is set as by_time.

day: The unit is day.

week: The unit is week.

month: The unit is month.

secondary_snapshot_expire_value Secondary directory snapshot retention size.

The secondary_snapshot_expire_value must be set when secondary_snapshot_expire_type is set as by_time.

The value is an integer between "1" and "360" when secondary_snapshot_expire_unit is day;

The value is an integer between "1" and "51" when secondary_snapshot_expire_unit is week;

The value is an integer between "1" and "12" when secondary_snapshot_expire_unit is month.

recovery_policy Recovery policy.

auto: Automatic recovery policy.

manual: Manual recovery policy.

sync_rate Speed.

Low: Slow speed.

Middle: Medium speed.

High: Fast speed.

Highest: Extremely fast speed.

synchronize_type Synchronization method.

manual: Replication pair must be started manually.

auto_start_timing: The synchronization automatically starts when a cycle starts.

auto_end_timing: The synchronization automatically starts when a cycle ends.

sync_cycle Interval.

The sync_cycle must be set when synchronize_type is set as auto_start_timing or auto_end_timing.

The value is an integer between "15" and "1440".

Level

Resource administrator

Usage Guidelines

None

Example

Create a remote replication pair.

admin:/>create remote_replication general ass /aa /bb 0 secondary_snapshot_expire_type=by_time day 30 recovery_policy=manual sync_rate=Middle synchronize_type=auto_start_timing 20
DANGER: You are about to create a replication mapping.
The data on the secondary resource will be overwritten by that on the primary resource after copy.
Before performing this operation, ensure that you select the right primary and secondary resources.
Have you read danger alert message carefully?(y/n)y
 
Are you sure you want to perform the operation?(y/n)y
Command executed successfully.

System Response

None

Download
Updated: 2019-07-25

Document ID: EDOC1100067955

Views: 27466

Downloads: 7

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