CN109558273B - Disk array backup method, electronic equipment and disk array - Google Patents

Disk array backup method, electronic equipment and disk array Download PDF

Info

Publication number
CN109558273B
CN109558273B CN201811223394.1A CN201811223394A CN109558273B CN 109558273 B CN109558273 B CN 109558273B CN 201811223394 A CN201811223394 A CN 201811223394A CN 109558273 B CN109558273 B CN 109558273B
Authority
CN
China
Prior art keywords
lun
disk array
data
characteristic information
electronic device
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.)
Active
Application number
CN201811223394.1A
Other languages
Chinese (zh)
Other versions
CN109558273A (en
Inventor
赵桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201811223394.1A priority Critical patent/CN109558273B/en
Publication of CN109558273A publication Critical patent/CN109558273A/en
Application granted granted Critical
Publication of CN109558273B publication Critical patent/CN109558273B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Signal Processing For Digital Recording And Reproducing (AREA)

Abstract

The invention discloses a disk array backup method, which is used for solving the technical problem that a heterogeneous disk array cannot realize double-activity. The method comprises the following steps: when a first LUN and a second LUN mapped by a first disk array are received, modifying the characteristic information of the second LUN to be the same as the first LUN according to a stored mapping conversion table so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays; and configuring the first LUN as a main LUN to send data to a disk array corresponding to the main LUN. The invention also discloses another disk array backup method, electronic equipment and a disk array.

Description

Disk array backup method, electronic equipment and disk array
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a disk array backup method, an electronic device, and a disk array.
Background
For the purpose of disaster recovery backup, a general disk array requires dual activities, that is, two disk arrays (or called data centers) are established in different failure areas, and the two disk arrays can back up each other. When one disk array fails and cannot provide service, the other disk array can continue to work so as to continue the work.
The present disk array dual active scheme is mainly to disguise LUNs (logical unit numbers) reported to the host by the disk array, so that the host can identify LUNs reported by two arrays as the same LUN. And simultaneously, the data is synchronously copied between the two arrays so as to ensure the consistency of the data. Herein, a LUN is generally used to refer to a disk storage unit (local unit device).
The current double-activity protocol, roughly follows the steps:
1. the disk array A takes the LUN _ A of the disk array A as a main LUN;
2. the disk array B takes the LUN _ B of the disk array B as a slave LUN;
3. the user establishes a remote copy relationship between the LUN _ A and the LUN _ B, and the data of the two LUNs are ensured to be completely consistent;
4. and the user sends instructions to the disk array A and the disk array B simultaneously so that the disk array A and the disk array B map the LUN _ A and the LUN _ B to the host respectively at the same time. In addition, in the process of mapping the LUN _ B to the host, the disk array B disguises the characteristic information of the LUN _ B to be the same as that of the LUN _ a.
5. After the multi-path software of the host scans the LUN _ a and LUN _ B, the host considers that the two are different paths of the same LUN and takes over the same LUN because the characteristic information of the two is the same.
6. The service at the host end is randomly sent to a LUN through the forwarding of multi-path software. Data between two LUNs can be automatically synchronized.
Then, when a disk array where one LUN is located fails, the LUN can be switched to another LUN through a multi-path switching mechanism to continue the service.
The disadvantages of this technique are:
the main technical points of the existing dual-active schemes are concentrated on the disk array end, which means that the functions related to the dual-active are required to be implemented inside two disk arrays which form the dual-active. Therefore, the existing dual-active scheme is limited to be only suitable for the situation that the two disk arrays are the same manufacturer, and special requirements are required for the architectures, software versions and the like of the two disk arrays, and the architectures, software versions and the like of the two disk arrays are generally ensured to be the same or similar as much as possible.
Therefore, in the prior art, dual activities cannot be temporarily realized for heterogeneous disk arrays (i.e., different manufacturers, or different architectures, different software versions, etc.), and better disaster recovery backup cannot be performed.
Disclosure of Invention
The embodiment of the invention provides a disk array backup method, electronic equipment and a disk array, and aims to solve the technical problem that a heterogeneous disk array cannot realize double activities.
In a first aspect of the present invention, a disk array backup method is provided, where the method is applicable to an electronic device, and the method includes:
when a first LUN and a second LUN mapped by a first disk array are received, modifying the characteristic information of the second LUN into the same characteristic information as the first LUN according to a stored mapping conversion table so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays;
and configuring the first LUN as a main LUN to send data to a disk array corresponding to the main LUN.
With reference to the first aspect, in a first possible implementation manner of the first aspect, after configuring the first LUN as a primary LUN, the method further includes:
and sending the first data to the first disk array and the second disk array corresponding to the main LUN.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, after configuring the first LUN as a primary LUN, the method further includes:
second data is issued to the first disk array and the second disk array corresponding to the main LUN;
receiving an error report aiming at the second data, and determining the first disk array fault according to the error report;
and sending the second data to the second disk array corresponding to the second LUN again.
With reference to the first aspect, or the first possible implementation manner of the first aspect, or the second possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, the feature information includes one or more of a WWN, a product ID, and a renderer ID.
In a second aspect of the present invention, a disk array backup method is provided, which is applied to a first disk array, and the method includes:
receiving a second LUN mapped by a second disk array and belonging to the second disk array; the first disk array and the second disk array are heterogeneous disk arrays;
the second LUN and a third LUN belonging to the first disk array are established as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship;
and mapping the first LUN and the second LUN to an electronic device, wherein the first LUN and the second LUN are used for the electronic device to issue data to a corresponding disk array.
With reference to the second aspect, in a first possible implementation manner of the second aspect, after mapping the first LUN and the second LUN to an electronic device, the method further includes:
receiving first data issued by the electronic equipment through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, after mapping the first LUN and the second LUN to an electronic device, the method further includes:
receiving second data issued by the electronic equipment through the first LUN;
and feeding back an error report to the electronic equipment, wherein the error report is used for informing the electronic equipment that the first disk array fails.
In a third aspect of the present invention, there is provided an electronic apparatus comprising:
the disguise module is used for modifying the characteristic information of the second LUN into the same characteristic information as the first LUN according to a stored mapping conversion table when receiving the first LUN and the second LUN mapped by the first disk array, so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays;
and the configuration module is used for configuring the first LUN as a main LUN so as to issue data to the disk array corresponding to the main LUN.
With reference to the third aspect, in a first possible implementation manner of the third aspect, the electronic device further includes a sending module, configured to: after the configuration module configures the first LUN as a master LUN, first data is sent to the first disk array and the second disk array corresponding to the master LUN.
With reference to the third aspect or the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the electronic device further includes a sending module and a receiving module;
the sending module is used for: after the configuration module configures the first LUN as a main LUN, second data is sent to the first disk array and the second disk array corresponding to the main LUN;
the receiving module is used for: receiving an error report aiming at the second data, and determining the first disk array fault according to the error report;
the sending module is further configured to: and sending the second data to the second disk array corresponding to the second LUN again.
With reference to the third aspect or the first possible implementation manner of the third aspect or the second possible implementation manner of the third aspect, in a third possible implementation manner of the third aspect, the feature information includes one or more of WWN, product ID, and renderer ID.
In a fourth aspect of the present invention, there is provided a disk array comprising:
the receiving module is used for receiving a second LUN which is mapped by a second disk array and belongs to the second disk array; the first disk array and the second disk array are heterogeneous disk arrays;
the establishing module is used for establishing the second LUN and a third LUN belonging to the first disk array as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship;
and the mapping module is used for mapping the first LUN and the second LUN to the electronic equipment, and the first LUN and the second LUN are used for the electronic equipment to issue data to the corresponding disk array.
With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the receiving module is further configured to: after the mapping module maps the first LUN and the second LUN to the electronic device, receiving first data sent by the electronic device through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
With reference to the fourth aspect or the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the disk array further includes a sending module;
the receiving module is further configured to receive second data sent by the electronic device through the first LUN;
the sending module is configured to feed back an error report to the electronic device, where the error report is used to notify the electronic device that the first disk array fails.
In a fifth aspect of the present invention, there is provided an electronic apparatus comprising a memory, a processor, an input device, and an output device connected to the same bus; wherein the content of the first and second substances,
the memory to store instructions;
the processor is configured to execute the instruction, and when the first LUN and the second LUN mapped by the first disk array are received through the input device, modify feature information of the second LUN into feature information identical to that of the first LUN according to a stored mapping translation table, so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays; and configuring the first LUN as a main LUN so as to issue data to a disk array corresponding to the main LUN through the output device.
With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the output device is further configured to: and after the processor configures the first LUN as a main LUN, sending first data to the first disk array and the second disk array corresponding to the main LUN.
With reference to the fifth aspect or the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the output device is further configured to: after the processor configures the first LUN as a main LUN, second data is sent to the first disk array and the second disk array corresponding to the main LUN;
the processor is further configured to: executing the instruction, receiving an error report aiming at the second data through the input device, and determining the first disk array fault according to the error report;
the output device is further configured to: and sending the second data to the second disk array corresponding to the second LUN again.
With reference to the fifth aspect or the first possible implementation manner of the fifth aspect or the second possible implementation manner of the fifth aspect, in a third possible implementation manner of the fifth aspect, the feature information includes one or more of WWN, product ID, and renderer ID.
A sixth aspect of the present invention provides a disk array comprising a memory, a processor, an input device, and an output device connected to the same bus; wherein the content of the first and second substances,
the memory to store instructions;
the input device is used for receiving a second LUN which is mapped by a second disk array and belongs to the second disk array; the first disk array and the second disk array are heterogeneous disk arrays;
the processor is configured to execute the instruction, and configure the second LUN and a third LUN belonging to the first disk array as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship;
the output device is configured to map the first LUN and the second LUN to an electronic device, where the first LUN and the second LUN are used for the electronic device to issue data to a corresponding disk array.
With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the input device is further configured to: after the output device maps the first LUN and the second LUN to an electronic device, receiving first data issued by the electronic device through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
With reference to the sixth aspect or the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect,
the input device is further configured to: after the output device maps the first LUN and the second LUN to an electronic device, receiving second data issued by the electronic device through the first LUN;
the output device is further configured to: and feeding back an error report to the electronic equipment, wherein the error report is used for informing the electronic equipment that the first disk array fails.
In the embodiment of the present invention, the electronic device (i.e., the host) receives the second LUN and the first LUN with the mirror structure, and the host can masquerade the first LUN and the second LUN as the same LUN, so that the masquerading processing on the LUN is transferred from the array side to the host side through the processing at the host side, thereby reducing the dependency relationship between the active disk arrays and achieving the purpose of using the heterogeneous array to implement active disk.
In addition, in the embodiment of the present invention, the first LUN is a mirror LUN, and the host configures the first LUN as a master LUN, so that when both the two disk arrays operate normally, the first disk array can be used as a master disk array to send data to the master disk array, and what constitutes the first LUN is the second LUN and the third LUN, because the two LUNs are mirror relationships, data can be completely synchronized. In addition, because the first LUN and the second LUN are mapped to the host by the first disk array, when the first disk array fails, the host can continue to divert the service to the second LUN, so that the service is continued, the dual-active purpose is better achieved, and the heterogeneous array can also complete disaster recovery backup.
Drawings
FIG. 1 is a diagram of a system architecture in an embodiment of the present invention;
FIG. 2 is a main flowchart of a disk array backup method on the host side according to an embodiment of the present invention;
FIG. 3 is a main flowchart of a disk array backup method at the disk array side according to an embodiment of the present invention;
FIG. 4 is a block diagram of the main structure of an electronic device according to an embodiment of the present invention;
FIG. 5 is a block diagram of the main structure of a first disk array according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a main structure of an electronic device according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of a main structure of a first disk array according to an embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a disk array backup method, which can be applied to electronic equipment and comprises the following steps: when a first disk storage unit LUN and a second LUN mapped by a first disk array are received, modifying the characteristic information of the second LUN into the same characteristic information as the first LUN according to a stored mapping conversion table so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays; and configuring the first LUN as a main LUN to send data to a disk array corresponding to the main LUN.
In the embodiment of the present invention, the electronic device (i.e., the host) receives the second LUN and the first LUN with the mirror structure, and the host can masquerade the first LUN and the second LUN as the same LUN, so that the masquerading processing on the LUN is transferred from the array side to the host side through the processing at the host side, thereby reducing the dependency relationship between the active disk arrays and achieving the purpose of using the heterogeneous array to implement active disk.
In addition, in the embodiment of the present invention, the first LUN is a mirror LUN, and the host configures the first LUN as a master LUN, so that when both the two disk arrays operate normally, the first disk array can be used as a master disk array to send data to the master disk array, and what constitutes the first LUN is the second LUN and the third LUN, because the two LUNs are mirror relationships, data can be completely synchronized. In addition, because the first LUN and the second LUN are mapped to the host by the first disk array, when the first disk array fails, the host can continue to steer the service to the second LUN, so that the service is continued, the dual-active purpose is better achieved, and the heterogeneous array can also complete disaster recovery backup.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Additionally, the terms "system" and "network" are often used interchangeably herein. The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship, unless otherwise specified.
The system architecture in the embodiment of the present invention may be as shown in fig. 1, and in the system architecture, the host 1, the host 2, the disk array 1, and the disk array 2 are included. The host 1 and the disk array 1 are located in one data center, and the host 2 and the disk array 2 are located in another data center. The embodiment of the present invention does not relate to a dual active scheme of a host, so that the functions of the host in the embodiment of the present invention may be regarded as the same, that is, the host described below may refer to any one of the hosts in fig. 1.
The embodiments of the present invention will be described in further detail with reference to the drawings.
Referring to fig. 2, an embodiment of the present invention provides a disk array backup method, where the method may be applied to an electronic device, and in the embodiment of the present invention, the electronic device may be a host, and the electronic device may be a server, a PC (personal computer), or other different devices. In this embodiment of the present invention, the function executed by the electronic device may be a function executed by multipath software installed in the electronic device. The main flow of the method is described below.
Step 201: when a first LUN and a second LUN mapped by a first disk array are received, modifying the characteristic information of the second LUN into the same characteristic information as the first LUN according to a stored mapping conversion table so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays.
For example, the first disk array is disk array 1 in fig. 1, the second disk array is disk array 2 in fig. 1, and the electronic device may be any host in fig. 1.
The first disk array may configure the second LUN and the third LUN to form a mirror LUN, which is referred to as the first LUN in the embodiment of the present invention, and the first disk array may map both the first LUN and the second LUN to the electronic device.
The electronic device stores the mapping conversion table, and the electronic device can convert the feature information of the second LUN into the same feature information as the first LUN according to the mapping conversion table.
In the embodiment of the present invention, the characteristic information of the LUN may include one or more of a WWN (World Wide Name), a product ID (product identifier), and a vendor ID (manufacturer identifier), and may also include other information for indicating an identity of one LUN.
For example, the mapping translation table is maintained inside the multipath software installed in the electronic device, and it is assumed that the WWN of the first LUN is AAA and the WWN of the second normal LUN is BBB. An entry may be added to the mapping translation table, that is: the BBB translates to AAA.
Then, when the first LUN and the second LUN are mapped to the electronic device, the multi-path software automatically converts the BBB into AAA according to the content in the mapping translation table, so that upper layer service software in the electronic device can only see one LUN whose WWN is AAA, thereby completing masquerading of the first LUN and the second LUN.
That is, for the electronic device, receiving the LUN mapped by the first array, completing masquerading the received LUN, and subsequently selecting a transmission path for data are all completed by the multi-path software, and the upper service software in the electronic device is only responsible for transmitting data to the multi-path software.
Of course, if it is necessary to convert the feature information such as product id, vendor id, etc. of the second LUN into the same feature information as the first LUN in addition to the WWN, corresponding entries may be added to the mapping conversion table, and the multi-path software may perform conversion together.
The characteristic information of the first LUN may be the same as the characteristic information of the third LUN.
Step 202: and configuring the first LUN as a main LUN to send data to a disk array corresponding to the main LUN.
After the electronic device masquerades the first LUN and the second LUN as the same LUN, the first LUN may be configured as a main LUN, and thus, when data is issued, the electronic device may first select to issue the data to a disk array corresponding to the main LUN. Because the main LUN is a mirror LUN and the main LUN actually includes the second LUN and the third LUN, when neither the first disk array nor the second disk array fails, the main LUN may be regarded as a LUN corresponding to both the first disk array and the second disk array. And the second LUN corresponds only to the second disk array.
Optionally, in this embodiment of the present invention, after configuring the first LUN as a master LUN, the method further includes:
and sending the first data to the first disk array and the second disk array corresponding to the main LUN.
When the electronic equipment issues data, upper-layer service software of the electronic equipment issues the first data to the multi-path software, and the multi-path software selects a path, because the first LUN is a main LUN, the multi-path software preferentially selects to issue the first data to the first LUN, and both the second LUN and the third LUN constituting the first LUN receive the first data, that is, the electronic equipment issues the first data to the first disk array and the second disk array, and data on the two disk arrays are synchronized.
Optionally, in this embodiment of the present invention, after configuring the first LUN as a master LUN, the method further includes:
sending second data to the first disk array and the second disk array corresponding to the main LUN;
receiving an error report aiming at the second data, and determining the first disk array fault according to the error report;
and sending the second data to the second disk array corresponding to the second LUN again.
Similarly, when the electronic device issues data, the upper layer service software of the electronic device issues the second data to the multi-path software, and the multi-path software selects a path, because the first LUN is a main LUN, the multi-path software preferentially selects to issue the second data to the first LUN. And if the first disk array fails, the electronic device receives the error report, determines that the first disk array fails, and at this time, the electronic device may issue the second data again, because the first disk array fails, the electronic device may select to issue the second data to the second disk array corresponding to the second LUN.
If the second disk array fails, the electronic device will continue to issue the second data to the disk array corresponding to the first LUN, and at this time, the disk array corresponding to the first LUN only has the first disk array left.
That is to say, the first disk array has a control effect on the first LUN, when the first disk array fails, the first LUN cannot be used any more, and when the second disk array fails, the third LUN in the first LUN can also be used continuously.
Referring to fig. 3, based on the same inventive concept, an embodiment of the present invention provides another disk array backup method, which can be applied to the first disk array as described above. The main flow of the method is as follows.
Step 301: receiving a second LUN which is mapped by a second disk array and belongs to the second disk array; the first disk array and the second disk array are heterogeneous disk arrays.
First, the second disk array maps the second LUN to the first disk array.
Step 302: the second LUN and a third LUN belonging to the first disk array are established as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship.
And after receiving the second LUN, the first disk array constructs the second LUN and the third LUN belonging to the first disk array as a mirror LUN, which is referred to as the first LUN herein.
In this embodiment of the present invention, because the first disk array and the second disk array may be heterogeneous disk arrays, the first disk array needs to complete the work of constructing the second LUN and the third LUN as mirror LUNs, which also requires that the first disk array supports a heterogeneous LUN mirroring function.
Step 303: and mapping the first LUN and the second LUN to an electronic device, wherein the first LUN and the second LUN are used for the electronic device to issue data to a corresponding disk array.
After the first disk array constructs the first LUN, the first LUN and the second LUN may be mapped to the electronic device at the same time, a mapping conversion table is stored in the electronic device, and the electronic device may convert the feature information of the second LUN into the same feature information as the first LUN according to the mapping conversion table, so as to disguise the first LUN and the second LUN as the same LUN. The specific disguising process is introduced in the flow of fig. 2, and is not described herein again.
After disguising, the electronic device may configure the first LUN as a primary LUN to send data to a disk array corresponding to the primary LUN.
After the electronic device masquerades the first LUN and the second LUN as the same LUN, the first LUN may be configured as a main LUN, and thus, when data is issued, the electronic device may first select to issue the data to a disk array corresponding to the main LUN. Because the main LUN is a mirror LUN, and the main LUN actually includes the second LUN and the third LUN, the main LUN can be regarded as a LUN corresponding to both the first disk array and the second disk array. And the second LUN corresponds only to the second disk array.
Optionally, in this embodiment of the present invention, after mapping the first LUN and the second LUN to the electronic device, the method further includes:
receiving first data issued by the electronic equipment through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
The electronic device issues the data to the main LUN, which is equivalent to issuing the data to the second LUN and the third LUN that constitute the main LUN at the same time, that is, equivalent to issuing the data to the first disk array and the second disk array at the same time, so that the data on the two disk arrays are synchronized.
Optionally, in this embodiment of the present invention, after mapping the first LUN and the second LUN to the electronic device, the method further includes:
receiving second data issued by the electronic equipment through the first LUN;
and feeding back an error report to the electronic equipment, wherein the error report is used for informing the electronic equipment that the first disk array fails.
If the first disk array fails, the first disk array reports the error report to the electronic device, the electronic device can determine that the first disk array fails after receiving the error report, and then the electronic device can issue the second data again.
Referring to fig. 4, an embodiment of the invention provides an electronic device based on the same inventive concept. The electronic device may include a disguise module 401 and a configuration module 402.
A disguising module 401, configured to modify, when receiving a first LUN and a second LUN mapped by a first disk array, feature information of the second LUN into feature information that is the same as the first LUN according to a stored mapping translation table, so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays;
a configuration module 402, configured to configure the first LUN as a master LUN, so as to issue data to a disk array corresponding to the master LUN.
Optionally, in this embodiment of the present invention, the electronic device further includes a sending module, configured to: after the configuration module 402 configures the first LUN as a primary LUN, first data is sent to the first disk array and the second disk array corresponding to the primary LUN.
Optionally, in this embodiment of the present invention, the electronic device further includes the sending module and the receiving module;
the sending module is used for: after the configuration module 402 configures the first LUN as a master LUN, second data is sent to the first disk array and the second disk array corresponding to the master LUN;
the receiving module is used for: receiving an error report aiming at the second data, and determining the first disk array fault according to the error report;
the sending module is further configured to: and sending the second data to the second disk array corresponding to the second LUN again.
Optionally, in the embodiment of the present invention, the feature information includes one or more of WWN, product ID, and finder ID.
Referring to fig. 5, based on the same inventive concept, an embodiment of the present invention provides a disk array, which may be the first disk array as described above. The disk array may include a receiving module 501, a building module 502, and a mapping module 503.
A receiving module 501, configured to receive a second LUN that belongs to a second disk array and is mapped by the second disk array; the first disk array and the second disk array are heterogeneous disk arrays;
a constructing module 502, configured to construct the second LUN and a third LUN belonging to the first disk array as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship;
the mapping module 503 is configured to map the first LUN and the second LUN to an electronic device, where the first LUN and the second LUN are used for the electronic device to issue data to a corresponding disk array.
Optionally, in this embodiment of the present invention, the receiving module 501 is further configured to: after the mapping module 503 maps the first LUN and the second LUN to the electronic device, receiving first data sent by the electronic device through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
Optionally, in this embodiment of the present invention, the disk array further includes a sending module;
the receiving module 501 is further configured to receive second data sent by the electronic device through the first LUN;
the sending module is configured to feed back an error report to the electronic device, where the error report is used to notify the electronic device that the first disk array fails.
Referring to fig. 6, based on the same inventive concept, an embodiment of the present invention provides an electronic device, which may include a memory 601 connected to a bus 600, a processor 602, an input device 603, and an output device 604.
A memory 601 for storing instructions required for the processor 602 to perform tasks;
a processor 602, configured to execute an instruction stored in the memory 601, and when receiving, through the input device 603, a first LUN and a second LUN mapped by a first disk array, modify, according to a stored mapping translation table, feature information of the second LUN into feature information identical to that of the first LUN, so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays; the first LUN is configured as a main LUN, so that data is issued to a disk array corresponding to the main LUN through the output device 604.
Optionally, in this embodiment of the present invention, the output device 604 is further configured to: after the processor 602 configures the first LUN as a primary LUN, first data is sent to the first disk array and the second disk array corresponding to the primary LUN.
Optionally, in the embodiment of the present invention,
the output device 604 is further configured to: after the processor 602 configures the first LUN as a primary LUN, sending second data to the first disk array and the second disk array corresponding to the primary LUN;
the processor 602 is further configured to: executing the instruction, receiving an error report aiming at the second data through the input device, and determining the first disk array fault according to the error report;
the output device 604 is further configured to: and sending the second data to the second disk array corresponding to the second LUN again.
Optionally, in the embodiment of the present invention, the feature information includes one or more of WWN, product ID, and finder ID.
Referring to fig. 7, based on the same inventive concept, an embodiment of the present invention provides a disk array, which may be the first disk array as described above. The disk array may include a memory 701, a processor 702, an input device 703, and an output device 704 coupled to a bus 700.
A memory 701 for storing instructions required for the processor 702 to perform tasks;
an input device 703, configured to receive a second disk storage unit LUN mapped by a second disk array and belonging to the second disk array; the first disk array and the second disk array are heterogeneous disk arrays;
a processor 702, configured to execute an instruction stored in the memory 701, and configure the second LUN and a third LUN belonging to the first disk array as a first LUN; wherein, in the first LUN, the second LUN and the third LUN are in a mirror relationship;
an output device 704, configured to map the first LUN and the second LUN to an electronic device, where the first LUN and the second LUN are used for the electronic device to issue data to a corresponding disk array.
Optionally, in this embodiment of the present invention, the input device 703 is further configured to: after the output device 704 maps the first LUN and the second LUN to the electronic device, receiving first data sent by the electronic device through the first LUN; wherein the second LUN and the third LUN that constitute the first LUN both receive the first data.
Optionally, in the embodiment of the present invention,
the input device 703 is further configured to: after the output device 704 maps the first LUN and the second LUN to the electronic device, receiving second data sent by the electronic device through the first LUN;
the output device 704 is further configured to: and feeding back an error report to the electronic equipment, wherein the error report is used for informing the electronic equipment that the first disk array fails.
In the embodiment of the present invention, the electronic devices shown in fig. 2 to fig. 7 may be the same electronic device, for example, any host shown in fig. 1.
The embodiment of the invention provides a disk array backup method, which can be applied to electronic equipment and comprises the following steps: when a first disk storage unit LUN and a second LUN mapped by a first disk array are received, modifying the characteristic information of the second LUN into the same characteristic information as the first LUN according to a stored mapping conversion table so as to disguise the first LUN and the second LUN as the same LUN; the first LUN is a mirror image LUN formed by the second LUN and a third LUN, the second LUN belongs to a second disk array, the third LUN belongs to the first disk array, and the first disk array and the second disk array are heterogeneous disk arrays; and configuring the first LUN as a main LUN to send data to a disk array corresponding to the main LUN.
In the embodiment of the present invention, the electronic device (i.e., the host) receives the second LUN and the first LUN with the mirror structure, and the host can masquerade the first LUN and the second LUN as the same LUN, so that the masquerading processing on the LUN is transferred from the array side to the host side through the processing at the host side, thereby reducing the dependency relationship between the active disk arrays and achieving the purpose of using the heterogeneous array to implement active disk.
In addition, in the embodiment of the present invention, the first LUN is a mirror LUN, and the host configures the first LUN as a master LUN, so that when both the two disk arrays operate normally, the first disk array can be used as a master disk array to send data to the master disk array, and what constitutes the first LUN is the second LUN and the third LUN, because the two LUNs are mirror relationships, data can be completely synchronized. In addition, because the first LUN and the second LUN are mapped to the host by the first disk array, when the first disk array fails, the host can continue to divert the service to the second LUN, so that the service is continued, the dual-active purpose is better achieved, and the heterogeneous array can also complete disaster recovery backup.
It will be clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional units is merely used as an example, and in practical applications, the above function distribution may be performed by different functional units according to needs, that is, the internal structure of the device is divided into different functional units to perform all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the described unit or division of units is only one type of division of logical functions, 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, devices 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 position, or may be distributed on multiple 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 units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above embodiments are only used to describe the technical solutions of the present application in detail, but the above embodiments are only used to help understanding the method and the core idea of the present invention, and should not be construed as limiting the present invention. Those skilled in the art should also appreciate that they can easily conceive of various changes and substitutions within the technical scope of the present disclosure.

Claims (12)

1. A disk array data processing method is characterized by comprising the following steps:
a first disk array receives a write request sent by electronic equipment; the write request carries data written into a first logical unit LUN of the first disk array; the second LUN and the third LUN form a mirror relationship, and the first disk array is communicated with the second disk array;
the first disk array writes the data into the second LUN and the third LUN;
before the first disk array receives the write request sent by the electronic device, the method further includes:
and mapping the first LUN and the second LUN to the electronic equipment, so that the electronic equipment modifies the characteristic information of the second LUN into the characteristic information of the first LUN according to a stored mapping conversion table, and configures the first LUN as a main LUN in which the data is written.
2. The method of claim 1, wherein the first disk array writing the data to the second LUN comprises:
and the first disk array synchronously sends the data to the second LUN.
3. The method according to claim 1 or 2, wherein a mapping relationship between the feature information of the first LUN and the feature information of the second LUN is stored in the electronic device; the method further comprises the following steps:
receiving an error report for the data;
determining the first disk array fault according to the error report;
acquiring the characteristic information of the second LUN according to the mapping relation between the characteristic information of the first LUN and the characteristic information of the second LUN;
and issuing the data to the second disk array corresponding to the second LUN according to the characteristic information of the second LUN.
4. A method for configuring storage resources, comprising:
receiving storage resource configuration information sent by a first disk array; the storage resource configuration information comprises characteristic information of a first logic unit LUN and characteristic information of a second LUN; the characteristic information of the first LUN is different from that of the second LUN, the third LUN is constructed in the first disk array, the second LUN is constructed in the second disk array, the second LUN and the third LUN are constructed into the first LUN, the second LUN and the third LUN form a mirror relationship, and the first disk array is communicated with the second disk array;
and mapping the second LUN characteristic information into the characteristic information of the first LUN.
5. A disk array backup method is applied to a first disk array and is characterized by comprising the following steps:
receiving a second logic unit LUN mapped by a second disk array, wherein the second LUN belongs to the second disk array, and the first disk array and the second disk array are heterogeneous disk arrays;
the second LUN and a third LUN belonging to the first disk array are established into a first LUN, wherein the second LUN and the third LUN are in a mirror image relationship;
mapping the first LUN and the second LUN to an electronic device; and enabling the electronic equipment to modify the characteristic information of the second LUN into the characteristic information of the first LUN according to the stored mapping conversion table, and configuring the first LUN as a main LUN of the written data.
6. The method of claim 5, wherein the method further comprises:
receiving data issued by the electronic equipment;
and feeding back an error report to the electronic equipment, wherein the error report is used for informing the electronic equipment that the first disk array fails.
7. A first disk array, comprising:
the receiving module is used for receiving a writing request sent by the electronic equipment; the write request carries data written into a first logical unit LUN of the first disk array; the second LUN and the third LUN form a mirror relationship, and the first disk array is communicated with the second disk array; a write module for writing the data into the second LUN and the third LUN;
before the first disk array receives a write request sent by the electronic device, the first disk array further includes:
and the mapping module is configured to map the first LUN and the second LUN to the electronic device, so that the electronic device modifies the feature information of the second LUN into the feature information of the first LUN according to a stored mapping translation table, and configures the first LUN as a primary LUN into which the data is written.
8. The first disk array of claim 7, wherein the write module writes the data to the second LUN, comprising:
and the write-in module synchronously sends the data to the second LUN.
9. The first disk array of claim 7 or 8, wherein the mapping relationship between the feature information of the first LUN and the feature information of the second LUN is stored in the electronic device:
the receiving module is further configured to receive an error report of the data; determining the first disk array fault according to the error report, and acquiring the characteristic information of the second LUN according to the mapping relation between the characteristic information of the first LUN and the characteristic information of the second LUN;
the first disk array further includes a sending module, configured to send the data to the second disk array corresponding to the second LUN according to the feature information of the second LUN.
10. An electronic device, comprising:
the receiving module is used for receiving the storage resource configuration information sent by the first disk array; the storage resource configuration information comprises the characteristic information of the first logic unit LUN and the characteristic information of the second LUN; the characteristic information of the first LUN is different from that of the second LUN, a third LUN is constructed in the first disk array, the second LUN is constructed in a second disk array, the second LUN and the third LUN are constructed into the first LUN, the second LUN and the third LUN form a mirror image relationship, and the first disk array is communicated with the second disk array;
and the mapping module is used for mapping the second LUN characteristic information into the characteristic information of the first LUN.
11. A first disk array, comprising:
the receiving module is used for receiving a second logic unit LUN mapped by a second disk array, wherein the second LUN belongs to the second disk array, and the first disk array and the second disk array are heterogeneous disk arrays;
a component module, configured to component the second LUN and a third LUN belonging to the first disk array as a first LUN, where the second LUN and the third LUN are in a mirror relationship;
a mapping module for mapping the first LUN and the second LUN to an electronic device; and enabling the electronic equipment to modify the characteristic information of the second LUN into the characteristic information of the first LUN according to the stored mapping conversion table, and configuring the first LUN as a main LUN for writing data.
12. The first disk array of claim 11,
the receiving module is also used for receiving data issued by the electronic equipment;
the first disk array further comprises:
and the sending module is used for feeding back an error report to the electronic equipment when the data is not successfully written, wherein the error report is used for informing the electronic equipment that the first disk array fails.
CN201811223394.1A 2014-11-21 2014-11-21 Disk array backup method, electronic equipment and disk array Active CN109558273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811223394.1A CN109558273B (en) 2014-11-21 2014-11-21 Disk array backup method, electronic equipment and disk array

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811223394.1A CN109558273B (en) 2014-11-21 2014-11-21 Disk array backup method, electronic equipment and disk array
CN201410675845.0A CN105677506B (en) 2014-11-21 2014-11-21 A kind of disk array backup method, electronic equipment and disk array

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201410675845.0A Division CN105677506B (en) 2014-11-21 2014-11-21 A kind of disk array backup method, electronic equipment and disk array

Publications (2)

Publication Number Publication Date
CN109558273A CN109558273A (en) 2019-04-02
CN109558273B true CN109558273B (en) 2022-06-14

Family

ID=56958322

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201410675845.0A Active CN105677506B (en) 2014-11-21 2014-11-21 A kind of disk array backup method, electronic equipment and disk array
CN201811223394.1A Active CN109558273B (en) 2014-11-21 2014-11-21 Disk array backup method, electronic equipment and disk array

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201410675845.0A Active CN105677506B (en) 2014-11-21 2014-11-21 A kind of disk array backup method, electronic equipment and disk array

Country Status (1)

Country Link
CN (2) CN105677506B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106528327B (en) * 2016-09-30 2019-06-21 华为技术有限公司 A kind of data processing method and backup server
CN106527972A (en) * 2016-10-09 2017-03-22 郑州云海信息技术有限公司 K1-based multi-path method for realizing dual activity of storages
CN108345515A (en) * 2017-01-22 2018-07-31 中国移动通信集团四川有限公司 Storage method and device and its storage system
WO2019071431A1 (en) * 2017-10-10 2019-04-18 华为技术有限公司 I/o request processing method and device and host
CN109445992A (en) * 2018-11-01 2019-03-08 郑州云海信息技术有限公司 A kind of dual-active System data management method and relevant apparatus
WO2020133473A1 (en) * 2018-12-29 2020-07-02 华为技术有限公司 Data backup method, apparatus and system
CN113448676A (en) * 2020-03-24 2021-09-28 阿里巴巴集团控股有限公司 Control method, device and equipment of virtual machine
CN112286446B (en) * 2020-09-17 2022-12-20 杭州华澜微电子股份有限公司 Storage device and control method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058850B2 (en) * 2002-07-31 2006-06-06 Hewlett-Packard Development Company, L.P. Method and system for preventing data loss within disk-array pairs supporting mirrored logical units
CN101840309A (en) * 2009-10-28 2010-09-22 创新科存储技术有限公司 Access control method and system of double control disk array in multipath environment
CN103827843A (en) * 2013-11-28 2014-05-28 华为技术有限公司 Method, device, and system for writing data
CN103970486A (en) * 2014-05-22 2014-08-06 浪潮(北京)电子信息产业有限公司 Method and system for data storage

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101562761B (en) * 2009-05-18 2012-02-01 杭州华三通信技术有限公司 Method and system for backup storage in optical network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7058850B2 (en) * 2002-07-31 2006-06-06 Hewlett-Packard Development Company, L.P. Method and system for preventing data loss within disk-array pairs supporting mirrored logical units
CN101840309A (en) * 2009-10-28 2010-09-22 创新科存储技术有限公司 Access control method and system of double control disk array in multipath environment
CN103827843A (en) * 2013-11-28 2014-05-28 华为技术有限公司 Method, device, and system for writing data
CN103970486A (en) * 2014-05-22 2014-08-06 浪潮(北京)电子信息产业有限公司 Method and system for data storage

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A distributed system design for next generation storage and remote replication;D. Maruthachalam;《The Fifth International Conference on the Applications of Digital Information and Web Technologies》;20140515;全文 *
基于SAN存储系统管理模块的设计与实现;刘公仆;《中国优秀硕士学位论文全文数据库信息科技辑》;20110315(第3期);全文 *

Also Published As

Publication number Publication date
CN109558273A (en) 2019-04-02
CN105677506B (en) 2018-11-16
CN105677506A (en) 2016-06-15

Similar Documents

Publication Publication Date Title
CN109558273B (en) Disk array backup method, electronic equipment and disk array
US9423956B2 (en) Emulating a stretched storage device using a shared storage device
US9250989B2 (en) Expander to control multipaths in a storage network
WO2011151222A1 (en) Path error correction in storage area networks
EP3200079A1 (en) Snapshot processing method and related device
US10331470B2 (en) Virtual machine creation according to a redundancy policy
CN109302466A (en) Data processing method, relevant device and computer storage medium
US9087162B2 (en) Using a PCI standard hot plug controller to modify the hierarchy of a distributed switch
US9442811B2 (en) Emulating a stretched storage device using a shared replicated storage device
CN105677675B (en) Method for processing business and device
US20130263130A1 (en) Virtualization system, switch controller, fiber-channel switch, migration method and migration program
CN104572243A (en) Method and system for sharing JAVA virtual machine
US20150331765A1 (en) Coordination techniques for redundant array of independent disks storage controllers
CN105635310B (en) A kind of access method and device of storage resource
USRE46770E1 (en) Computer managing method
CN107209725A (en) Method, processor and the computer of processing write requests
US10191878B2 (en) High availability of PCIe devices under multiple processors to provide redundancy
US9946493B2 (en) Coordinated remote and local machine configuration
CN104468389A (en) Message processing method, servers and server system
CN104461779A (en) Distributed data storage method, device and system
US10089198B1 (en) Data storage system with active-standby system management
US10355919B2 (en) Mobile storage configuration
CN110581848B (en) Cloud desktop multi-network isolation system and method
US20160342337A1 (en) Method and apparatus for scaling out storage devices and scaled-out storage devices
US9509658B2 (en) Method of restoring a MAC address and recording medium

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
GR01 Patent grant
GR01 Patent grant