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).
swap remote_replication

swap remote_replication

Function

The swap remote_replication command is used to implement primary/secondary resource switchover of a remote replication. Use this command when you need to copy the data at the secondary resource to the primary resource using remote replication.

Format

swap remote_replication remote_replication_id=?

Parameters

Parameter

Description

Value

remote_replication_id=? ID of a remote replication task.

To obtain the value, run "show remote_replication unified".

Level

Administrator

Usage Guidelines

  • Running this command switches the roles of the primary and secondary resources.
  • Before performing this operation, ensure that the selected remote replication task is correct.
  • Primary/secondary switchover cannot be performed when the secondary resource is not in the "Consist" state..
  • In a synchronous remote replication, primary/secondary switchover can be performed only in two situation: when it is in Normal state; when it is in Split state and the secondary resource can be written.
  • In an asynchronous remote replication, primary/secondary switchover can be performed only when it is in Split state and the secondary resource can be written.
  • You cannot perform primary/secondary switchover for a remote replication task if the task has been added to a consistency group.

Example

Performing primary/secondary switchover for remote replication "9747215445131264".

 
admin:/>swap remote_replication remote_replication_id=9747215445131264
DANGER: You are about to perform a primary-secondary switchover for remote replication .This operation will exchange the roles of the primary and secondary resources.If the primary resource capacity is not equal to the secondary resource capacity, possible risks are as follows:
1. If the primary resource capacity is greater than the secondary resource capacity, remote replication I/Os may become abnormal, remote replication pairs may be in the abnormal interruption state, or data of the primary and secondary resources may be inconsistent.
2. If the primary resource capacity is smaller than the secondary resource capacity, remaining capacity of the secondary resource is not fully used.
Suggestion:Before performing this operation, ensure that the selected primary and secondary resources are correct.
Have you read danger alert message carefully?(y/n)y
Are you sure you really want to perform the operation?(y/n)y
Command executed successfully.
 
 

System Response

None

Translation
Download
Updated: 2019-07-22

Document ID: EDOC1000106139

Views: 314843

Downloads: 204

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