Commands for Obtaining the Current Releases
Function
The get-current-disaster command is used to obtain the current release list.
Syntax
python3 $GPHOME/script/DisasterFineGrained.py -t get-current-disaster --current-disaster-file <currentDisasterFile> --config-file <configFile>
Parameter Description
Long Option |
Short Option |
Data Type |
Description |
Value Type |
Default Value |
Example |
---|---|---|---|---|---|---|
-t |
N/A |
String |
The interface supports multiple functions. get-current-disaster obtains the current DR objects. |
|
N/A |
-t get-current-disaster |
--current-disaster-file |
N/A |
String |
Path of the current DR object list file |
N/A |
N/A |
--current-disaster-file /home/userA/current.txt |
--config-file |
N/A |
String |
Path of the dual-cluster DR configuration file.
NOTE:
|
N/A |
N/A |
--config-file /home/userA/config.ini |
Usage Guide
- The get-current-disaster command must be executed on the active node of the active cluster. It is used to obtain the current DR objects and export the result in a file. The output path is the path specified by the input parameter --current-disaster-file.
- If no DR object is available, the current DR object list file is not generated after the command is executed.
- The format of the --current-disaster-file file is as follows:
db_name //DB level db_name.schema_name //Schema level Level db_name.schema_name.table_name //Table level
Example Command
Obtain the current DR list.
python3 $GPHOME/script/DisasterFineGrained.py -t get-current-disaster --current-disaster-file $HOME/current.txt --config-file /home/mpp/mppcases_c10/cluster/gs_rch_DR-v6/test/backupRestore.ini
System Response
[perfadm@ecs-env-2988 config]$ python3 $GPHOME/script/DisasterFineGrained.py -t get-current-disaster --current-disaster-file $HOME/current.txt --config-file /home/mpp/mppcases_c10/cluster/gs_rch_DR-v6/test/backupRestore.ini [Start ESL disaster fine grained process] current disaster object num: 1. [Finished ESL disaster fine grained process]
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot