CN111475350A - Method, system and equipment for testing configuration of remote copy function under MCS - Google Patents
Method, system and equipment for testing configuration of remote copy function under MCS Download PDFInfo
- Publication number
- CN111475350A CN111475350A CN202010162908.8A CN202010162908A CN111475350A CN 111475350 A CN111475350 A CN 111475350A CN 202010162908 A CN202010162908 A CN 202010162908A CN 111475350 A CN111475350 A CN 111475350A
- Authority
- CN
- China
- Prior art keywords
- script
- mcs
- remote copy
- cluster
- configuration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 73
- 238000000034 method Methods 0.000 title claims description 22
- 230000006870 function Effects 0.000 claims abstract description 67
- 238000004806 packaging method and process Methods 0.000 claims abstract description 13
- 238000013507 mapping Methods 0.000 claims abstract description 12
- 239000013307 optical fiber Substances 0.000 claims abstract description 7
- 238000004590 computer program Methods 0.000 claims description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 230000008901 benefit Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2247—Verification or detection of system hardware configuration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
According to the configuration testing method, system and equipment for the remote copy function under the MCS, the two MCS clusters are built, and the optical fiber switches are interconnected; configuring a plurality of volumes at one MCS cluster storage end, and mapping the volumes to a host through fc; defining a script for configuration test and packaging functions in the script; starting a main program of the script, and creating and starting remote copying; the ssh login linux host side executes the script for configuration test to the main storage side; after the script is executed, if the script of the host end has no error, the test is finished. Therefore, the automatic configuration test of the remote copy function of the storage system node is realized, the test efficiency is high, and the practicability and the effectiveness are higher.
Description
Technical Field
The invention relates to the technical field of computers, in particular to a method, a system and equipment for testing configuration of a remote copy function under MCS.
Background
With the continuous development of the technology in the IT field and the arrival of the big data era, the storage and processing of data are more and more important. The advantage of the unified storage system is the ability to plan the overall storage capacity, and by deploying one unified storage system, the separate planning of the file storage capacity and the data block storage capacity can be omitted. Moreover, the utilization rate can be improved, the capacity is not limited by standards, the unified storage can avoid the problem of capacity utilization rate related to the support of data block and file storage respectively, and users do not need to worry about buying more storage supporting one protocol and buying less storage supporting the other protocol.
In addition, the storage resource pool has flexibility, and a user can freely allocate storage to meet the requirements of an application environment without knowing whether the application needs data blocks or file data access. Server virtualization can also be actively supported, and many times users will demand bare device mapping (RDM) based on data blocks due to performance requirements when deploying their server virtualization environment. Unified storage provides the user with an option of how to store their virtual machines without having to purchase Storage Area Network (SAN) and Network Attached Storage (NAS) devices separately as before. Developing new functional modules and performing efficient testing on storage systems is a considerable problem.
At present, a manual mode is generally adopted for configuration testing of a remote copy function of a storage system node, and the manual mode is low in testing efficiency, poor in practicability and difficult to judge validity.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide a method, a system, and a device for testing configuration of remote copy function under MCS, which can effectively solve the problems in the prior art that the configuration test of remote copy function of storage system nodes adopts a manual mode, the test efficiency is low, the practicability is poor, and the validity is difficult to judge.
In order to achieve the purpose, the invention is realized by the following technical scheme: a method for testing the configuration of a remote copy function under MCS comprises the following steps:
building two MCS clusters and interconnecting the two MCS clusters through an optical fiber switch;
configuring a plurality of volumes at one MCS cluster storage end, and mapping the volumes to a host through fc;
defining a script for configuration test and packaging functions in the script;
starting a script main program for configuration test, creating and starting remote copy;
the ssh login linux host side executes the script for configuration test to the main storage side;
after the script is executed, if the script of the host end has no error, the test is finished.
Further, the defining a script for configuration testing and encapsulating functions in the script includes:
respectively defining a function for acquiring two cluster names, a function for creating a cluster partnership, a function for creating an auxiliary volume and a function for creating a remote copy relationship between a main volume and the auxiliary volume; and judging and packaging the query and creation operation commands under the MCS, and then calling by a main program.
Further, after the script main program for configuration test is executed, the following steps can be realized:
creating a partnership of a cluster;
acquiring all volumes in a main cluster;
creating the same secondary volume in another cluster;
remote copy is created and initiated.
Further, the script for configuration test includes the following parameters: the number of volumes that need to be copied remotely, the ip address of the primary volume mcs cluster, and the ip address of the secondary volume mcs cluster.
Further, the functions in the script for configuration testing include:
a function for obtaining information of a volume;
a function for creating a cluster partnership;
a function for creating a remotely replicated secondary volume;
a function for creating a remote copy relationship.
Correspondingly, the invention also discloses a system for testing the configuration of the remote copy function under the MCS, which comprises: the testing environment building unit is used for building two MCS clusters and interconnecting the MCS clusters through an optical fiber switch;
the mapping unit is used for configuring a plurality of volumes at one MCS cluster storage end and mapping the volumes to the host through fc;
the packaging unit defines a script for configuration test and packages functions in the script;
the starting unit is used for starting a script main program for configuration test, and creating and starting remote copying;
and the execution unit is used for executing the script for the configuration test from the ssh login linux host to the main storage end.
Further, the encapsulation unit includes:
the defining module is used for respectively defining a function for acquiring two cluster names, a function for creating a cluster partnership, a function for creating an auxiliary volume and a function for creating a remote copy relationship of a main volume and the auxiliary volume; and the calling module is used for judging and packaging the query and creation operation commands under the MCS, and then calling the operation commands by the main program.
Further, the script main program for configuration test comprises:
the relation establishing module is used for establishing a partnership of a cluster;
the volume acquisition module is used for acquiring all volumes in the main cluster;
a volume creation module for creating the same auxiliary volume in another cluster;
and the remote copy module is used for creating and starting remote copy. Correspondingly, the invention also discloses a configuration test device of the remote copy function under the MCS, which comprises:
a memory for storing a computer program;
a processor for implementing the steps of the configuration testing method of the remote copy function under MCS as described above when executing the computer program.
Compared with the prior art, the invention has the beneficial effects that: the invention provides a configuration test method, a system and equipment of a remote copy function under MCS, wherein two MCS clusters are built and an optical fiber switch is interconnected; configuring a plurality of volumes at one MCS cluster storage end, and mapping the volumes to a host through fc; defining a script for configuration test and packaging functions in the script; starting a main program of the script, and creating and starting remote copying; the ssh login linux host side executes the script for configuration test to the main storage side; after the script is executed, if the script of the host end has no error, the test is finished. Therefore, the automatic configuration test of the remote copy function of the storage system node is realized, the test efficiency is high, and the practicability and the effectiveness are higher.
The invention can quickly obtain enough test data to be obtained, and has flexible test mode and easy realization.
Therefore, compared with the prior art, the invention has prominent substantive features and remarkable progress, and the beneficial effects of the implementation are also obvious.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a flow chart of the method of the present invention.
Fig. 2 is a system block diagram of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made with reference to the accompanying drawings.
The method for testing the configuration of the remote copy function under the MCS shown in fig. 1 includes the following steps:
s101: and (4) building two MCS clusters and interconnecting the MCS clusters through a fiber switch.
S102: and configuring a plurality of volumes at one MCS cluster storage end, and mapping the volumes to the host through fc.
S103: a script for configuration testing is defined and functions in the script are encapsulated.
The method specifically comprises the following steps: the method comprises the following steps: acquiring two cluster names, creating a cluster partnership, creating an auxiliary volume, and creating a remote copy relationship between a main volume and the auxiliary volume; and judging and packaging the query and creation operation commands under the MCS, and then calling by a main program.
S104: and starting a main program of the script, and creating and starting remote copying.
The specific process is as follows: creating a partnership of a cluster; acquiring all volumes in a main cluster; creating the same secondary volume in another cluster; remote copy is created and initiated.
The script contains the following parameters:
remote _ copy — no _ vdisks — to _ copy the number of volumes that need to be copied remotely;
-cluster _ ip1 ═ cluster _ for _ master _ vdisks ] primary volume mcs cluster ip address;
-cluster _ ip2 ═ cluster _ for _ aux _ vdisks ] auxiliary volume mcs cluster ip address;
[--help]
s105: and the ssh login linux host terminal executes the script for the configuration test to the main storage terminal.
The method specifically comprises the following steps: remote _ copy — no _ vdisks ═ 20 — cluster _ ip1 ═ cluster _ ip2 ═ this input is: on the primary cluster 1, a total of 20 volumes are remotely copied to the cluster 2, that is, 20 secondary volumes are created on the cluster 2, and are in one-to-one correspondence with the 20 primary volumes on the cluster 1, so as to form a remote copy relationship.
S106: after the script is executed, if the script of the host end has no error, the test is finished.
After the script is executed, if the script is not reported in error at the host end, the normal execution is finished, and the remote copy relationship is finally established successfully, namely the configuration test of the function is completed.
Correspondingly, as shown in fig. 2, the present invention also discloses a system for testing the configuration of the remote copy function under MCS, comprising:
and the test environment building unit is used for building two MCS clusters and interconnecting the MCS clusters through the optical fiber switch.
And the mapping unit is used for configuring a plurality of volumes at one MCS cluster storage end and mapping the volumes to the host through the fc.
And the packaging unit defines a script for configuration test and packages the functions in the script. The package unit includes: the creating module is used for acquiring two cluster names, creating a cluster partnership, creating an auxiliary volume and creating a remote copy relationship between the main volume and the auxiliary volume; and the calling module is used for judging and packaging the query and creation operation commands under the MCS, and then calling the operation commands by the main program.
The starting unit is used for starting a script main program for configuration test, and creating and starting remote copying; the starting unit includes: the relation establishing module is used for establishing a partnership of a cluster; the volume acquisition module is used for acquiring all volumes in the main cluster; a volume creation module for creating the same auxiliary volume in another cluster;
and the remote copy module is used for creating and starting remote copy. And the execution unit is used for executing the script for the configuration test from the ssh login linux host to the main storage end.
Correspondingly, the invention also discloses a configuration test device of the remote copy function under the MCS, which comprises: a memory for storing a computer program;
a processor for implementing the steps of the configuration testing method of the remote copy function under MCS as described above when executing the computer program.
In addition, based on the above MCS-based configuration test method for remote copy function, the specific script content is as follows:
main program
3. Creating a function of a cluster partnership
4. Function to create remotely replicated secondary volumes
5. Creating functions of remote copy relationships
6. Obtaining cluster names
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in the form of a software product, where the computer software product is stored in a storage medium, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and the like, and the storage medium can store program codes, and includes instructions for enabling a computer terminal (which may be a personal computer, a server, or a second terminal, a network terminal, and the like) to perform all or part of the steps of the method in the embodiments of the present invention. The same and similar parts in the various embodiments in this specification may be referred to each other. Especially, for the terminal embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant points can be referred to the description in the method embodiment.
In the embodiments provided by the present invention, it should be understood that the disclosed system, system and method can be implemented in other ways. For example, the above-described system embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, systems or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each module may exist alone physically, or two or more modules are integrated into one unit.
The invention is further described with reference to the accompanying drawings and specific embodiments. It should be understood that these examples are for illustrative purposes only and are not intended to limit the scope of the present invention. Further, it should be understood that various changes or modifications of the present invention may be made by those skilled in the art after reading the teaching of the present invention, and these equivalents also fall within the scope of the present application.
Claims (9)
1. A method for testing the configuration of a remote copy function under MCS is characterized by comprising the following steps:
building two MCS clusters and interconnecting the two MCS clusters through an optical fiber switch;
configuring a plurality of volumes at one MCS cluster storage end, and mapping the volumes to a host through fc;
defining a script for configuration test and packaging functions in the script;
starting a script main program for configuration test, creating and starting remote copy;
the ssh login linux host side executes the script for configuration test to the main storage side;
after the script is executed, if the script of the host end has no error, the test is finished.
2. The method for configuration testing of remote copy functions under MCS according to claim 1, wherein the defining a script for configuration testing and encapsulating functions in the script comprises:
respectively defining a function for acquiring two cluster names, a function for creating a cluster partnership, a function for creating an auxiliary volume and a function for creating a remote copy relationship between a main volume and the auxiliary volume; and judging and packaging the query and creation operation commands under the MCS, and then calling by a main program of the script.
3. The method for testing the configuration of the remote copy function under MCS according to claim 1, wherein the script main program for the configuration test is executed to implement the following steps:
creating a partnership of a cluster;
acquiring all volumes in a main cluster;
creating the same secondary volume in another cluster;
remote copy is created and initiated.
4. The method for testing the configuration of the remote copy function under MCS according to claim 1, wherein the script for the configuration test includes the following parameters: the number of volumes that need to be copied remotely, the ip address of the primary volume mcs cluster, and the ip address of the secondary volume mcs cluster.
5. The method of claim 1, wherein the function in the script for configuration testing comprises:
a function for obtaining information of a volume;
a function for creating a cluster partnership;
a function for creating a remotely replicated secondary volume;
a function for creating a remote copy relationship.
6. A configuration test system for remote copy function under MCS, comprising:
the testing environment building unit is used for building two MCS clusters and interconnecting the MCS clusters through an optical fiber switch;
the mapping unit is used for configuring a plurality of volumes at one MCS cluster storage end and mapping the volumes to the host through fc;
the packaging unit defines a script for configuration test and packages functions in the script;
the starting unit is used for starting a script main program for configuration test, and creating and starting remote copying;
and the execution unit is used for executing the script for the configuration test from the ssh login linux host to the main storage end.
7. The system for testing the configuration of the under-MCS remote copy function of claim 6, wherein the encapsulating unit comprises:
the defining module is used for respectively defining a function for acquiring two cluster names, a function for creating a cluster partnership, a function for creating an auxiliary volume and a function for creating a remote copy relationship of a main volume and the auxiliary volume;
and the calling module is used for judging and packaging the query and creation operation commands under the MCS, and then calling the operation commands by the main program.
8. The method for configuration testing of remote copy function under MCS according to claim 6, wherein the script main program for configuration testing comprises:
the relation establishing module is used for establishing a partnership of a cluster;
the volume acquisition module is used for acquiring all volumes in the main cluster;
a volume creation module for creating the same auxiliary volume in another cluster;
and the remote copy module is used for creating and starting remote copy.
9. A configuration test device for remote copy function under MCS, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the configuration testing method for the remote copy under MCS function according to any of claims 1 to 5 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010162908.8A CN111475350A (en) | 2020-03-10 | 2020-03-10 | Method, system and equipment for testing configuration of remote copy function under MCS |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010162908.8A CN111475350A (en) | 2020-03-10 | 2020-03-10 | Method, system and equipment for testing configuration of remote copy function under MCS |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111475350A true CN111475350A (en) | 2020-07-31 |
Family
ID=71748142
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010162908.8A Withdrawn CN111475350A (en) | 2020-03-10 | 2020-03-10 | Method, system and equipment for testing configuration of remote copy function under MCS |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111475350A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113691414A (en) * | 2021-07-22 | 2021-11-23 | 苏州浪潮智能科技有限公司 | Bandwidth performance testing method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302475A (en) * | 2017-07-06 | 2017-10-27 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of Based on Distributed storage cluster |
CN108683567A (en) * | 2018-05-30 | 2018-10-19 | 郑州云海信息技术有限公司 | A kind of switch port fault testing method and system based on MCS and server |
CN108959044A (en) * | 2018-06-08 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of method and system of the verifying MCS last volume migration validity based on perl |
-
2020
- 2020-03-10 CN CN202010162908.8A patent/CN111475350A/en not_active Withdrawn
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107302475A (en) * | 2017-07-06 | 2017-10-27 | 郑州云海信息技术有限公司 | The method of testing and device of a kind of Based on Distributed storage cluster |
CN108683567A (en) * | 2018-05-30 | 2018-10-19 | 郑州云海信息技术有限公司 | A kind of switch port fault testing method and system based on MCS and server |
CN108959044A (en) * | 2018-06-08 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of method and system of the verifying MCS last volume migration validity based on perl |
Non-Patent Citations (1)
Title |
---|
佚名: "HP远程快照复制卷详解", 《HTTPS://BLOG.CSDN.NET/WEIXIN_34228387/ARTICLE/DETAILS/92263225》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113691414A (en) * | 2021-07-22 | 2021-11-23 | 苏州浪潮智能科技有限公司 | Bandwidth performance testing method, device and system |
CN113691414B (en) * | 2021-07-22 | 2023-08-11 | 苏州浪潮智能科技有限公司 | Bandwidth performance test method, device and system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11516283B2 (en) | Multi-tenant-cloud-aggregation and application-support system | |
US8621051B2 (en) | End-to end provisioning of storage clouds | |
US20190044823A1 (en) | Management of a cloud-computing facility through a virtual infrastructure management server | |
US10212045B2 (en) | Method and system for testing and analyzing management servers | |
US10057377B2 (en) | Dynamic resolution of servers in a distributed environment | |
CN103064742A (en) | Automatic deployment system and method of hadoop cluster | |
CN103049317B (en) | Based on the high concurrent data no write de-lay system and method for queue under cloud environment | |
CN111722786A (en) | Storage system based on NVMe equipment | |
US10225142B2 (en) | Method and system for communication between a management-server and remote host systems | |
JP2021524104A (en) | Master / Standby Container System Switching | |
CN104216801A (en) | Data copying method oriented to virtual environment and data copying system oriented to virtual environment | |
CN104731907A (en) | NOSQL-based data storage method | |
CN109032757B (en) | System framework automatic deployment time optimization method based on cloud platform | |
CN105095103A (en) | Storage device management method and device used for cloud environment | |
US10592169B2 (en) | Methods and systems that efficiently store metric data to enable period and peak detection | |
CN114564339A (en) | Disk image file cross-platform migration method and system | |
CN109302494A (en) | A kind of configuration method of network store system, device, equipment and medium | |
CN104202359A (en) | NVMe SSD virtualization design method based on blade server | |
CN111475350A (en) | Method, system and equipment for testing configuration of remote copy function under MCS | |
US11184244B2 (en) | Method and system that determines application topology using network metrics | |
CN109032753A (en) | A kind of isomery virtual hard disk trustship method, system, storage medium and Nova platform | |
CN112202855A (en) | Communication device for storing bare metal server and elastic block, intelligent network card and system | |
CN110908783A (en) | Management and control method, system and equipment for virtual machine of cloud data center | |
CN103109515A (en) | Business deploy method and device | |
CN107515725B (en) | Method and device for sharing disk by core network virtualization system and network management MANO system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20200731 |