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 10

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these 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).
swap remote_replication

swap remote_replication

Function

The swap remote_replication command is used to implement primary/secondary resource switchover of a remote replication pair. 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 pair.

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

Level

Administrator

Usage Guidelines

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

Example

Swap the primary and secondary resources for remote replication pair "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-04-04

Document ID: EDOC1000084195

Views: 306493

Downloads: 1561

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