Double-machine volume mirror image management method, device, equipment and readable storage medium

文档序号:67722 发布日期:2021-10-01 浏览:16次 中文

阅读说明:本技术 一种双机卷镜像管理方法、装置、设备及可读存储介质 (Double-machine volume mirror image management method, device, equipment and readable storage medium ) 是由 李奋翔 于 2021-06-24 设计创作,主要内容包括:本发明公开了一种双机卷镜像管理方法,该方法将原本主机侧的管理移到存储设备端执行,在本端设备与远端设备之间直接建立设备之间的认证关系以及镜像链路,在两存储设备之间进行镜像副本的卷镜像数据同步,该方法在存储设备侧直接管理镜像卷,这样就可以避免主机端管理复杂的问题,同时管理过程没有调用LVM,因此也可以避免对于操作人员的高技术性要求,可以使得用户可以方便有效的进行双机卷镜像的管理、快速故障处理及数据恢复,提升系统的高可靠性、易用性和灵活性。本发明还公开了一种双机卷镜像管理装置、设备及可读存储介质,具有相应的技术效果。(The invention discloses a double-machine volume mirror image management method, which moves the management of the original host side to a storage device side for execution, directly establishes an authentication relationship and a mirror image link between the local device and a remote device, and synchronizes the volume mirror image data of a mirror image copy between the two storage devices. The invention also discloses a double-machine volume mirror image management device, equipment and a readable storage medium, which have corresponding technical effects.)

1. A dual-volume mirror management method is characterized by comprising the following steps:

establishing an equipment authentication relationship between the local equipment and the remote equipment;

building a mirror image link between the local terminal equipment and the remote terminal equipment;

establishing a volume mirror image relationship between the first mirror image copy and the second mirror image copy; the first mirror image copy is stored in the local terminal equipment, and the second mirror image copy is stored in the remote terminal equipment;

determining the read-write priority of the first mirror image copy and the second mirror image copy, taking the copy with high priority as the first copy, and taking the copy with low priority as the second copy;

and if an I/O request is received, calling the first copy to respond to the I/O request, and synchronously writing copy change data corresponding to the I/O request into the second copy.

2. The dual-computer volume mirror management method according to claim 1, further comprising, before the establishing the volume mirror relationship between the first mirror copy and the second mirror copy:

judging whether the capacities of the first mirror image copy and the second mirror image copy are consistent;

and if so, executing the step of establishing the volume mirror relationship between the first mirror image copy and the second mirror image copy.

3. The dual-volume mirror image management method according to claim 1, further comprising, before the establishing a device authentication relationship between the local device and the remote device:

receiving a remote device addition request;

determining equipment information of equipment to be added; wherein the device information includes: authentication name, IP and login information;

and determining the remote equipment according to the equipment information.

4. The dual-volume mirror image management method according to claim 1, wherein the establishing of the device authentication relationship between the local device and the remote device includes:

determining user information and port information of the remote equipment;

and adding the user information and the port information as remote equipment information to the local equipment.

5. The dual-volume mirror image management method according to claim 1, wherein the establishing of the mirror image link between the local device and the remote device includes:

determining port information and IP of the local terminal equipment and the remote terminal equipment;

determining whether the local terminal equipment and the remote terminal equipment are in the same network segment according to the IP;

and if so, generating a data exchange link between the local terminal equipment and the remote terminal equipment according to the port information, and using the data exchange link as the mirror image link.

6. The dual-volume mirror management method according to claim 1, further comprising, after the step of using the high-priority copy as a first copy and the low-priority copy as a second copy:

if a volume mirror image deleting instruction is received, removing the volume mirror image relationship between the first mirror image copy and the second mirror image copy;

reducing the read-write priority of the first copy to the read-write priority corresponding to the second copy;

deleting the virtual block device, the data management metadata volume, the configuration file, and the database record describing the first mirror copy and the second mirror copy.

7. The dual-volume mirror management method according to claim 1, further comprising:

if a copy priority interchange instruction is received, interchanging the read-write priorities of the first mirror image copy and the second mirror image copy;

and updating the read-write priority of the first mirror image copy and the second mirror image copy to the metadata volume.

8. A dual-volume mirror management device is characterized by comprising:

the authentication establishing unit is used for establishing an equipment authentication relationship between the local equipment and the remote equipment;

the link building unit is used for building a mirror image link between the local terminal equipment and the remote terminal equipment;

a volume mirror image establishing unit, configured to establish a volume mirror image relationship between the first mirror image copy and the second mirror image copy; the first mirror image copy is stored in the local terminal equipment, and the second mirror image copy is stored in the remote terminal equipment;

the priority determining unit is used for determining the read-write priority of the first mirror image copy and the second mirror image copy, taking the copy with high priority as the first copy and taking the copy with low priority as the second copy;

and the request synchronous response unit is used for calling the first copy to respond to the I/O request and synchronously writing copy change data corresponding to the I/O request into the second copy if the I/O request is received.

9. A computer device, comprising:

a memory for storing a computer program;

a processor, configured to implement the steps of the dual-volume image management method according to any one of claims 1 to 7 when executing the computer program.

10. A readable storage medium, having stored thereon a computer program which, when being executed by a processor, implements the steps of the dual-volume image management method according to any one of claims 1 to 7.

Technical Field

The present invention relates to the field of storage technologies, and in particular, to a dual-volume mirror management method, apparatus, device, and readable storage medium.

Background

The storage network provides basic hardware resources for mass storage and data sharing of data, and is a foundation for IT infrastructure construction. Meanwhile, the explosive growth of data puts higher demands on the storage technology, and data loss and damage can cause great influence on enterprise business, so that a data protection strategy and a disaster recovery backup technology are very important.

Volume mirroring provides a mirrored volume for a local or external volume, a mirrored volume being a dynamic volume with fault tolerance capabilities, providing data redundancy by replicating data stored on a volume using two copies or mirrors of the volume. All data written into the mirror volume is written into two mirror copies on an independent physical disk, if any copy in the mirror volume fails, the host can still normally access the mirror volume, and the host side service has no influence. Meanwhile, after the fault copy is recovered from the fault, the mirror image volume can automatically synchronize the data of the fault copy, finally the data of the two copies are consistent, continuous data protection is continuously provided for the mirror image volume, and the disaster tolerance risk and the operation and maintenance cost are reduced.

The traditional dual-machine (two-equipment) Volume mirroring technology is mostly realized based on a Logical Volume Manager (LVM) mirror technology, in order to realize a dual-machine Volume mirroring function, a user needs to log in a host system, first, a first mirror image copy and a second mirror image copy (PV (Physical Volume) which need to be mirrored are converted into a single VG through a LVM command, then, the first mirror image copy and the second mirror image copy are assembled into a Volume Group (VG), finally, a related operation of creating a Volume mirror image is executed, the first mirror image copy and the second mirror image copy form a mirror Volume, management, fault processing and data recovery of the Volume mirror image are realized based on the LVM related command, data is written into a plurality of copies of the mirror Volume in real time, and service continuity and data reliability are guaranteed. The technology depends on the configuration of a host system, and the management mode is complex; and when managing volume mirror image, processing storage failure and data recovery, need to execute a large amount of LVM relevant commands, have higher technical requirement to the technical staff, have defects such as function singleness, management complicacy, maintenance difficulty.

In summary, how to simplify the dual-volume mirror management and reduce the difficulty of use is a technical problem that needs to be solved urgently by those skilled in the art at present.

Disclosure of Invention

The invention aims to provide a double-machine volume mirror image management method, a double-machine volume mirror image management device, double-machine volume mirror image management equipment and a readable storage medium, which can simplify double-machine volume mirror image management and reduce use difficulty.

In order to solve the technical problems, the invention provides the following technical scheme:

a dual-volume mirror image management method comprises the following steps:

establishing an equipment authentication relationship between the local equipment and the remote equipment;

building a mirror image link between the local terminal equipment and the remote terminal equipment;

establishing a volume mirror image relationship between the first mirror image copy and the second mirror image copy; the first mirror image copy is stored in the local terminal equipment, and the second mirror image copy is stored in the remote terminal equipment;

determining the read-write priority of the first mirror image copy and the second mirror image copy, taking the copy with high priority as the first copy, and taking the copy with low priority as the second copy;

and if an I/O request is received, calling the first copy to respond to the I/O request, and synchronously writing copy change data corresponding to the I/O request into the second copy.

Optionally, before the establishing the volume mirroring relationship between the first mirror copy and the second mirror copy, the method further includes:

judging whether the capacities of the first mirror image copy and the second mirror image copy are consistent;

and if so, executing the step of establishing the volume mirror relationship between the first mirror image copy and the second mirror image copy.

Optionally, before the establishing the device authentication relationship between the local device and the remote device, the method further includes:

receiving a remote device addition request;

determining equipment information of equipment to be added; wherein the device information includes: authentication name, IP and login information;

and determining the remote equipment according to the equipment information.

Optionally, the establishing a device authentication relationship between the local device and the remote device includes:

determining user information and port information of the remote equipment;

and adding the user information and the port information as remote equipment information to the local equipment.

Optionally, the building a mirror image link between the local device and the remote device includes:

determining port information and IP of the local terminal equipment and the remote terminal equipment;

determining whether the local terminal equipment and the remote terminal equipment are in the same network segment according to the IP;

and if so, generating a data exchange link between the local terminal equipment and the remote terminal equipment according to the port information, and using the data exchange link as the mirror image link.

Optionally, after the taking the high-priority copy as the first copy and the low-priority copy as the second copy, the method further includes:

if a volume mirror image deleting instruction is received, removing the volume mirror image relationship between the first mirror image copy and the second mirror image copy;

reducing the read-write priority of the first copy to the read-write priority corresponding to the second copy;

deleting the virtual block device, the data management metadata volume, the configuration file, and the database record describing the first mirror copy and the second mirror copy.

Optionally, the method for managing a dual-machine volume mirror image further includes:

if a copy priority interchange instruction is received, interchanging the read-write priorities of the first mirror image copy and the second mirror image copy;

and updating the read-write priority of the first mirror image copy and the second mirror image copy to the metadata volume.

A dual-volume mirror management device comprises:

the authentication establishing unit is used for establishing an equipment authentication relationship between the local equipment and the remote equipment;

the link building unit is used for building a mirror image link between the local terminal equipment and the remote terminal equipment;

a volume mirror image establishing unit, configured to establish a volume mirror image relationship between the first mirror image copy and the second mirror image copy; the first mirror image copy is stored in the local terminal equipment, and the second mirror image copy is stored in the remote terminal equipment;

the priority determining unit is used for determining the read-write priority of the first mirror image copy and the second mirror image copy, taking the copy with high priority as the first copy and taking the copy with low priority as the second copy;

and the request synchronous response unit is used for calling the first copy to respond to the I/O request and synchronously writing copy change data corresponding to the I/O request into the second copy if the I/O request is received.

A computer device, comprising:

a memory for storing a computer program;

and the processor is used for realizing the steps of the double-machine volume mirror image management method when executing the computer program.

A readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the steps of the dual-volume mirror management method described above.

The method provided by the embodiment of the invention moves the management of the original host side to the storage equipment side for execution, directly establishes the authentication relationship and the mirror image link between the local equipment and the remote equipment, and synchronizes the volume mirror image data of the mirror image copy between the two storage equipment.

Accordingly, embodiments of the present invention further provide a dual-volume mirror management apparatus, a device, and a readable storage medium corresponding to the dual-volume mirror management method, which have the above technical effects and are not described herein again.

Drawings

In order to more clearly illustrate the embodiments of the present invention or technical solutions in related arts, the drawings used in the description of the embodiments or related arts will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart illustrating an implementation of a dual-volume mirror management method according to an embodiment of the present invention;

fig. 2 is a schematic structural diagram of a dual-volume mirror management apparatus according to an embodiment of the present invention;

fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present invention.

Detailed Description

The core of the invention is to provide a double-machine volume mirror image management method, which can simplify double-machine volume mirror image management and reduce use difficulty.

In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the 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.

Referring to fig. 1, fig. 1 is a flowchart of a dual-volume mirror management method according to an embodiment of the present invention, where the method includes the following steps:

s101, establishing an equipment authentication relationship between local equipment and remote equipment;

the home device is an executing device of the dual-volume mirror image management method provided in this embodiment, and the remote device is a device synchronized with a remote mirror image of the home device.

The method comprises the steps of determining local equipment and remote equipment, establishing an equipment authentication relationship between the local equipment and the remote equipment, and after equipment authentication is established, performing equipment management on the remote equipment at the local equipment, wherein the equipment management comprises deletion of the remote equipment, equipment information check and the like, so that mirror image management based on the equipment is realized. In the application, the original host side management of the volume mirror image is moved to the storage device side for execution, so that the problem of complex host side management can be avoided. For the establishment process of the device authentication relationship, this embodiment is not limited, and reference may be made to implementation of related technologies. Optionally, the process of establishing the device authentication relationship between the home device and the remote device may specifically include the following steps:

(1) determining user information and port information of the remote equipment;

(2) and adding the user information and the port information as remote equipment information to the local equipment.

In the foregoing manner, establishing the device authentication relationship between the home device and the remote device includes: the user information and the port information of the remote equipment are added to the local equipment, and the authentication between the equipment can be simply and efficiently realized by the method. In addition, in response to receiving the instruction for deleting the device authentication relationship, the method can further delete the user information and the port information of the remote device in the local device, and delete the user information and the port information of the remote device in the local device, so as to establish and release the device authentication relationship, and facilitate management of the device authentication relationship.

In addition, the determining method of the remote device is not limited in this embodiment, and for convenience of management, before the device authentication relationship between the local device and the remote device is established, an adding procedure of the user to the remote device may be responded, which is specifically as follows:

(1) receiving a remote device addition request;

(2) determining equipment information of equipment to be added;

wherein the device information includes: authentication name, IP and login information;

(3) and determining the remote equipment according to the equipment information.

When the remote device is added, the information of the remote device to be added is obtained, the name of device authentication, the IP of the remote device and login information (such as a user name and a password) for logging in the remote device are required to be input, and the remote device to be subjected to mirror image synchronous management is determined according to the information. The user adding mode of the remote equipment can facilitate the management of a user on the dual-volume mirror image, in addition, in order to ensure the data consistency of the local first mirror image copy and the remote second mirror image copy, the management interface can check the information of the remote equipment, including the equipment authentication name, the IP of the remote equipment, the state information of the remote equipment and the like, and the addition and the deletion of the remote equipment are realized.

S102, establishing a mirror image link between the local terminal equipment and the remote terminal equipment;

and establishing a mirror image link between the local device and the remote device so as to realize data synchronization between the local device and the remote device. Specifically, the process of establishing the mirror link is not limited in this embodiment, and may be implemented according to the following steps:

(1) determining port information and IP of local equipment and remote equipment;

(2) determining whether the local terminal equipment and the remote terminal equipment are in the same network segment according to the IP;

(3) if so, generating a data exchange link between the local terminal equipment and the remote terminal equipment according to the port information, and using the data exchange link as a mirror image link.

In the foregoing manner, establishing a mirror link between the local device and the remote device includes: when creating a mirror image link, the port and IP information of the local terminal equipment are required to be input, the port and IP information of the remote terminal equipment are input, and the two ends of the IP are in the same network segment, and then a data exchange link from the local terminal equipment to the remote terminal equipment is formed and used as the mirror image link. The method can ensure that the devices are in the same network segment, thereby ensuring the normal data interaction between the devices. If the links are not in the same network segment, the embodiment does not limit this, and prompt information of link establishment failure can be generated.

Further, in addition to the establishment of the link, the management of the mirror link may further include other aspects, such as the release of the link and the check of the link status, to ensure the availability of the data exchange link, for example, the release of the link may be in response to receiving an instruction to delete the mirror link, release the data exchange link from the local device to the remote device, and delete the IP of the local device and the remote device in the same network segment.

S103, establishing a volume mirror image relationship between the first mirror image copy and the second mirror image copy;

the first mirror image copy is stored in the local device, the second mirror image copy is stored in the remote device, and the local device establishes mirror image synchronization with the second mirror image copy in the remote device through the first mirror image copy.

The establishment method of the volume mirror relationship between the two mirror image copies can refer to implementation in related technologies, for example, after determining mirror image information such as a local device storage pool, a first mirror image copy, device authentication, a remote device storage pool, a second mirror image copy, a mirror image link, a mirror image copy priority role, and the like, the establishment of the dual-volume mirror relationship is performed.

To further enhance understanding, a method for establishing a volume mirroring relationship is introduced, which includes the following steps: determining a storage pool of local equipment, a first mirror image copy in the local equipment, equipment authentication relationship data between the local equipment and remote equipment, a storage pool of the remote equipment, a second mirror image copy in the remote equipment, a mirror image link and a mirror image copy priority role, calling an interface for creating a volume mirror image, wherein interface information comprises a volume mirror image creating command and parameter information of the remote equipment, and writing the volume mirror image and the parameter information into a configuration file after receiving the information by a rear end; judging whether the capacity of the first mirror image copy is consistent with the capacity of the second mirror image copy, if not, throwing an exception, and deleting the generated configuration file; the equipment to which the second mirror image copy belongs calls an interface for creating the volume mirror image and writes information into a configuration file; the local end and the remote end device create a metadata volume according to the configuration file, create a mirror image relationship, successfully create a double-volume mirror image relationship between the local end device and the remote end device, and write the double-volume mirror image relationship into a database. In addition, the mirror image management information of the dual-computer volume can be checked, wherein the mirror image management information comprises the name of a first mirror image copy of the local terminal, the local storage pool, the information of a second mirror image copy, equipment authentication, a mirror image link, a connection state, a health state and synchronous progress information.

S104, determining the read-write priority of the first mirror image copy and the second mirror image copy, taking the copy with high priority as the first copy, and taking the copy with low priority as the second copy;

and determining the read-write priority of the first mirror image copy and the second mirror image copy, wherein the copy with high priority is used as a main response copy, and the copy with low priority is used as a standby response copy and is subjected to data synchronization with the main response copy. The read-write priorities of the first mirror image copy and the second mirror image copy can be set correspondingly according to actual use requirements, the read-write priorities of the two copies are not limited in this embodiment, and in order to distinguish the two copies, a high-priority copy of the first mirror image copy and a high-priority copy of the second mirror image copy are used as the first copy, and a low-priority copy of the first mirror image copy and the second mirror image copy are used as the second copy.

And S105, if the I/O request is received, calling the first copy to respond to the I/O request, and synchronously writing copy change data corresponding to the I/O request into the second copy.

And responding to the priority roles of the first copy and the second copy, starting the initial data synchronization of the first copy and the second copy, calling the first copy to respond to the I/O request if the I/O request is received, and writing the changed data into the second copy to realize the data synchronization between the second copy and the first copy.

It should be noted that the change data may be determined in real time and updated to the second copy, or may be determined at preset time intervals, which is not limited in this embodiment.

To further the understanding, a process for simultaneous writing of I/O requests to change data is presented herein, comprising: in response to the first mirror image copy receiving the command of the host side I/O request, the local side equipment writes the I/O requested to be written into the first mirror image copy, and simultaneously forwards the I/O requested to be written into the second mirror image copy of the remote side equipment, after the second mirror image copy is successfully written, the writing success information is returned to the first mirror image copy, and after the first mirror image copy is completely written, the writing success information is returned to the host side to complete the mirror image of the data. The host end sends an I/O request to the first mirror image copy, after the first mirror image copy receives the I/O request, the device to which the first mirror image copy belongs forwards the I/O request to the device to which the second mirror image copy belongs through a mirror image link, the second mirror image copy returns write-in success information to the first mirror image copy after write-in success is successful, the first mirror image copy returns write-in success information to the host side after write-in is completed, so that mirroring of data is completed, complete consistency of the data is guaranteed, and metadata information is synchronized.

Based on the introduction, the technical scheme provided by the embodiment of the invention moves the management of the original host side to the storage device side for execution, directly establishes the authentication relationship and the mirror image link between the local device and the remote device, and synchronizes the volume mirror image data of the mirror image copy between the two storage devices.

It should be noted that, based on the above embodiments, the embodiments of the present invention also provide corresponding improvements. In the preferred/improved embodiment, the same steps as those in the above embodiment or corresponding steps may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the preferred/improved embodiment herein.

On the basis of the above embodiment, in order to ensure normal writing of data after the read-write priority conversion of the two mirror image copies, before establishing the volume mirror relationship between the first mirror image copy and the second mirror image copy, it may be further determined whether the capacities of the first mirror image copy and the second mirror image copy are consistent; and if so, executing the step of establishing the volume mirror relationship between the first mirror image copy and the second mirror image copy. If the capacity is inconsistent with the capacity of the configuration file, the subsequent steps may not be executed, or corresponding capacity inconsistency prompt information may be output, an exception is thrown, and the generated configuration file is deleted.

Further, in addition to the above volume mirror management manner, in order to implement the replacement and deletion of the volume mirror and meet the use requirement of the user in transferring the second mirror copy to another mirror copy, in the above embodiment, after the high-priority copy is used as the first copy and the low-priority copy is used as the second copy, the following steps may be further performed:

(1) if a volume mirror image deleting instruction is received, removing the volume mirror image relationship between the first mirror image copy and the second mirror image copy;

(2) reducing the read-write priority of the first copy to the read-write priority corresponding to the second copy;

(3) the virtual block device, data management metadata volume, configuration file, and database record describing the first mirror copy and the second mirror copy are deleted.

A user selects a volume mirror image deleting function on a management interface, and the management interface issues a deleting command to a background; the background removes the mirror image function of the dual-machine volume; reducing the first mirror image copy to a second mirror image copy, and disconnecting the connection relation between the first mirror image copy and the second mirror image copy; deleting the virtual block device describing the first mirror image copy and the second mirror image copy, deleting the data management metadata volume, deleting the configuration file, and deleting the database record.

The steps can realize that the relation of the volume mirror image of the first mirror image copy and the second mirror image copy is released in response to the received command of deleting the volume mirror image.

In addition, in addition to the above volume mirroring management manner, in order to facilitate switching of the data copy responding to the I/O request and to implement data management conversion between the two synchronized mirroring copies, the following steps may be further performed:

(1) if a copy priority interchange instruction is received, interchanging the read-write priorities of the first mirror image copy and the second mirror image copy;

(2) and updating the read-write priority of the first mirror image copy and the second mirror image copy to the metadata volume.

The user selects a priority switching function on the management interface, the background responds to a command for switching the priorities of the first mirror image copy and the second mirror image copy, calls a priority switching interface, firstly determines parameters of volume upgrading and degrading sent by the storage receiving interface, namely the read-write priority before the two mirror image copies are switched, executes a command to convert the read-write priority of the first mirror image copy into the level of the second mirror image copy, catches the read-write priority of the second mirror image copy into the level of the original first mirror image copy, and writes priority role information into the metadata volume.

The steps can ensure the quick switching of the two mirror image copies when the first copy is abnormal, and ensure the continuous normal response of the I/O request.

In addition, in addition to the above volume mirroring management manner, in order to facilitate cancellation of a mirroring link between the first mirroring copy and the second mirroring copy, in some embodiments of the present invention, the following steps may be further performed: in response to receiving an instruction of disconnecting the first mirror image copy from the second mirror image copy, the management interface selects the first mirror image copy to be disconnected from the second mirror image copy, and calls a disconnection interface of the first mirror image copy and the second mirror image copy; and the back end stores a disconnection command of the first mirror image copy and the second mirror image copy sent by the receiving interface, executes the disconnection command of the first mirror image copy and the second mirror image copy, releases the mirror relationship of the first mirror image copy and the second mirror image copy, and writes the state information into the metadata volume. The above steps may disconnect the first mirror copy from the second mirror copy.

In addition, in addition to the above volume mirror management manner, in order to respond to a service requirement, in some embodiments of the present invention, in the technology of the above embodiments, a splitting processing script may be further executed in response to receiving a splitting processing instruction when splitting occurs, so as to solve the splitting problem. Specifically, when the splitting problem occurs, an interface for executing splitting processing by calling the first mirror image copy and the second mirror image copy; and the back end stores the execution splitting processing instruction issued by the receiving interface, calls the splitting processing script, restores the dual-computer mirror image volume to be in a normal state, and writes the state information into the metadata volume. The steps can realize the splitting processing of the mirror image copy and meet the mirror image splitting requirement of a user.

Corresponding to the above method embodiment, an embodiment of the present invention further provides a dual-volume mirror management device, and the dual-volume mirror management device described below and the dual-volume mirror management method described above may be referred to in a corresponding manner.

Referring to fig. 2, the apparatus includes the following modules:

the authentication establishing unit 110 is mainly used for establishing an equipment authentication relationship between the local equipment and the remote equipment;

the link establishing unit 120 is mainly used for establishing a mirror link between the local device and the remote device;

the volume mirror image establishing unit 130 is mainly used for establishing a volume mirror image relationship between the first mirror image copy and the second mirror image copy; the first mirror image copy is stored in the local terminal equipment, and the second mirror image copy is stored in the remote terminal equipment;

the priority determining unit 140 is mainly configured to determine read-write priorities of the first mirror image copy and the second mirror image copy, use a high-priority copy as the first copy, and use a low-priority copy as the second copy;

the request synchronization response unit 150 is mainly configured to, if an I/O request is received, invoke the first copy to respond to the I/O request, and synchronously write copy change data corresponding to the I/O request into the second copy.

Corresponding to the above method embodiment, an embodiment of the present invention further provides a computer device, and a computer device described below and the above dual-volume mirror management method may be referred to in a corresponding manner.

The computer device includes:

a memory for storing a computer program;

and the processor is used for realizing the steps of the dual-volume mirror image management method of the embodiment of the method when executing the computer program.

Specifically, referring to fig. 3, a specific structural diagram of a computer device provided in this embodiment is a schematic diagram of a computer device, which may generate relatively large differences due to different configurations or performances, and may include one or more processors (CPUs) 322 (e.g., one or more processors) and a memory 332, where the memory 332 stores one or more computer applications 342 or data 344. Memory 332 may be, among other things, transient or persistent storage. The program stored in memory 332 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a data processing device. Still further, the central processor 322 may be configured to communicate with the memory 332 to execute a series of instruction operations in the memory 332 on the computer device 301.

The computer device 301 may also include one or more power supplies 326, one or more wired or wireless network interfaces 350, one or more input-output interfaces 358, and/or one or more operating systems 341.

The steps in the dual-volume mirror management method described above may be implemented by the structure of a computer device.

Corresponding to the above method embodiment, an embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and the above dual-volume mirror management method may be referred to in a corresponding manner.

A readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the dual-volume mirror management method of the above-mentioned method embodiment.

The readable storage medium may be 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 various other readable storage media capable of storing program codes.

Those of skill would further appreciate that the various illustrative components and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据处理方法、装置、电子设备及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类