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 for Block

OceanStor Dorado V3 Series V300R002

This document is applicable to OceanStor Dorado3000 V3, Dorado5000 V3, Dorado6000 V3 and Dorado18000 V3. Based on the CLI provided by the DeviceManager, 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.
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 consistency_group

swap consistency_group

Function

The swap consistency_group command is used to implement primary/secondary switchover for existing remote replication tasks in a consistency group.

Format

swap consistency_group consistency_group_id=?

Parameters

Parameter

Description

Value

consistency_group_id=?

ID of a consistency group on which primary/secondary switchover will be performed.

To obtain the value, run "show consistency_group general".

Level

Administrator

Usage Guidelines

  • Running this command swaps the roles of the primary logical unit number (LUN) and the selected secondary LUN.
  • Before running this command, ensure that the selected consistency group is exactly the one you want to perform primary/secondary switchover for its remote replication tasks.
  • Primary/secondary switchover cannot be performed when the secondary LUN is in 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 LUN can be written.
  • In an asynchronous remote replication, primary/secondary switchover can be performed only when it is in Split state and the secondary LUN can be written.

Example

To perform primary/secondary switchover for existing remote replication tasks in consistency group "9747215445131234", run the following command.

admin:/>swap consistency_group consistency_group_id=9747215445131234 
DANGER: You are about to switch over the primary and secondary resources in all remote replication tasks within consistency group.This operation will switch over roles of primary and secondary resources. 
Suggestion: Before performing this operation, ensure that the selected consistency group is 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-16

Document ID: EDOC1100049140

Views: 115025

Downloads: 134

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