CN113535465A - Method and device for establishing base line of disk image and storage medium - Google Patents

Method and device for establishing base line of disk image and storage medium Download PDF

Info

Publication number
CN113535465A
CN113535465A CN202010307237.XA CN202010307237A CN113535465A CN 113535465 A CN113535465 A CN 113535465A CN 202010307237 A CN202010307237 A CN 202010307237A CN 113535465 A CN113535465 A CN 113535465A
Authority
CN
China
Prior art keywords
disk
disk block
data
baseline
establishing
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.)
Pending
Application number
CN202010307237.XA
Other languages
Chinese (zh)
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.)
Guangdong Zhongxing Newstart Technology Co ltd
Original Assignee
Guangdong Zhongxing Newstart Technology 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 Guangdong Zhongxing Newstart Technology Co ltd filed Critical Guangdong Zhongxing Newstart Technology Co ltd
Priority to CN202010307237.XA priority Critical patent/CN113535465A/en
Publication of CN113535465A publication Critical patent/CN113535465A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1458Management of the backup or restore process

Abstract

The invention discloses a method, a device and a storage medium for establishing a baseline of a disk mirror image, wherein the method comprises the following steps: acquiring first coding information of a first disk block and second coding information of a second disk block in sequence; comparing the first coding information with the second coding information, and if the comparison is the same, judging that the data content of the first disk block is the same as that of the second disk block; otherwise, backing up the second disk block according to the data content of the first disk block; judging whether all the first coding information is acquired, if so, acquiring a base line of the disk mirror image; otherwise, returning to execute the first step; the first disk block is a disk block on a production machine, and the second disk block is a disk block on a backup machine. The invention adopts the mode of sending the coded information to replace the traditional mode of directly sending the disk data, reduces the data volume of transmission, improves the efficiency of establishing the base line, and can be widely applied to the technical field of computer clusters.

Description

Method and device for establishing base line of disk image and storage medium
Technical Field
The invention relates to the technical field of computer clusters, in particular to a method and a device for establishing a baseline of a disk image and a storage medium.
Background
With the rapid development of information technology and the coming of data era, the requirements of key fields such as telecommunication, finance, e-government affairs and the like on the high availability of servers and data are higher and higher, and in order to avoid serious service interruption and data destruction caused by disasters such as flood, earthquake, fire, storm or terrorist attack, a remote high-availability cluster or remote disaster recovery system needs to be constructed to provide the capability of resisting the disasters, so that the loss caused by the disasters is reduced.
In the implementation and deployment process, a base line of a disk image is generally established first, that is, full disk data synchronization is performed on a remote two-place data disk under the condition that the disk has no IO writing and modification, so as to ensure the complete consistency of data on two sides; and recording the change of the production machine to the disk as a difference value every time, and transmitting the difference value data to the backup machine by the production machine. Considering the practical situation, the farther the two places are, the longer the time delay comes, and the slow data copying and transmission is; on the other hand, the bandwidth of a private network of two places is limited, and the data is explosively increased due to informatization, so that the capacity of a magnetic disk is increasingly large; initializing the full disk data synchronization problem thus introduces additional effort and time to the project.
In the existing processing method, most of the whole disk data of the disk is debugged locally and then the disk is deployed remotely. The method still takes more time in the synchronous debugging process, has low synchronous efficiency and also increases the transportation cost. In addition, if the time for constructing the two places is different, the method cannot be applied; in the operation process, if the field disk fails and needs to be replaced, the whole disk data synchronization of the two local data disks must be carried out again.
The noun explains:
baseline of disk image: meaning that the byte values of different computer data disks located at different locations are identical at a particular time.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a method, an apparatus, and a storage medium for establishing a baseline of a disk image, which can quickly establish the baseline of the disk image under the condition of limited remote distance and bandwidth.
The technical scheme adopted by the invention is as follows:
a method for establishing a baseline of a disk image comprises the following steps:
s1, acquiring first coding information of the first disk block and second coding information of the second disk block in sequence;
s2, comparing the first coding information with the second coding information, and if the comparison is the same, judging that the data content of the first disk block is the same as the data content of the second disk block; otherwise, backing up the second disk block according to the data content of the first disk block;
s3, judging whether all the first coding information is acquired, if so, acquiring a baseline of the disk mirror image; otherwise, return to step S1;
the first disk block is a disk block on a production machine, and the second disk block is a disk block on a backup machine.
Further, before step S1, the method further includes the following steps:
and carrying out zero setting processing on the disk blocks of the production machine and the disk blocks of the backup machine.
Further, the first encoding information includes a feature code, a sector number, a data type, data length information, and encoding information of the first disk block.
Further, the coded information is an MD5 value.
Further, the sequentially acquiring the first encoding information of the first disk block includes:
the production machine reads byte data of the first disk block in sequence, and encodes the byte data to obtain an MD5 value;
and acquiring the feature code, the sector number, the data type and the data length information of the first disk block, and packaging the feature code, the sector number, the data type, the data length information and the MD5 value to acquire first encoding information.
Further, the step S2 specifically includes the following steps:
after the backup machine receives the first coding information, comparing the first coding information with the second coding information, and feeding back a comparison result to the production machine;
if the comparison is the same, determining that the data content of the first disk block is the same as the data content of the second disk block, and continuing to execute step S3; otherwise, acquiring and sending the data content of the first disk block to the backup machine;
and after the backup machine receives the data content of the first disk block, backing up the second disk block according to the data content.
Further, the acquiring and sending the data content of the first disk block to the backup machine includes:
the production machine acquires and packages the data content of the first disk block, and acquires and sends a first data packet to the backup machine;
the first data packet comprises a feature code, a sector number, a data type, data length information and data content of the first disk block.
Further, the method also comprises the following steps:
after the baseline of the disk mirror image is obtained, the production machine records the changed data on the disk block as a difference value, and generates and sends a second data packet to the backup machine according to the difference value;
and the backup machine acquires and backs up the corresponding disk block according to the second data packet.
The other technical scheme adopted by the invention is as follows:
an apparatus for establishing a baseline of a disk image, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method described above.
The other technical scheme adopted by the invention is as follows:
a storage medium having stored therein processor-executable instructions for performing the method as described above when executed by a processor.
The invention has the beneficial effects that: the invention adopts the mode of sending the coded information to replace the traditional mode of directly sending the disk data, greatly reduces the data volume of transmission and further improves the efficiency of establishing the base line.
Drawings
FIG. 1 is a flowchart illustrating steps of a method for establishing a baseline of a disk image according to an embodiment of the present invention;
FIG. 2 is a flow chart illustrating a process of zeroing a disk block according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of the steps performed by the manufacturing machine in establishing a baseline process in an embodiment of the invention;
FIG. 4 is a diagram illustrating steps performed by the backup machine in establishing a baseline process according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention.
In the description of the present invention, it should be understood that the orientation or positional relationship referred to in the description of the orientation, such as the upper, lower, front, rear, left, right, etc., is based on the orientation or positional relationship shown in the drawings, and is only for convenience of description and simplification of description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number. If the first and second are described for the purpose of distinguishing technical features, they are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
In the description of the present invention, unless otherwise explicitly limited, terms such as arrangement, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the specific contents of the technical solutions.
As shown in fig. 1, the present embodiment provides a method for establishing a baseline of a disk image, including the following steps:
s101, carrying out zero setting processing on the disk blocks of the production machine and the disk blocks of the backup machine.
Before the production machine and the backup machine are deployed, the content zero values of the data disks of the production machine and the backup machine are set. This step is not essential, and the subsequent steps can be performed directly if both the production machine and the backup machine used have undergone a zeroing process at the time of production of the product. Referring to fig. 2, the step of performing the zeroing process on the production machine or the backup machine includes steps S1011 to S1013:
s1011, acquiring the disk data of the disk block on the disk according to the sequence;
s1012, placing a disk data zero value of the disk block;
s1013, judging whether the end of the disk is reached, if so, completing zero setting processing; otherwise, the process returns to step S1011.
After the zeroing process, the data content on the production machine and the backup machine is approximately the same. In order to ensure that the data of the production machine can be completely copied to the backup machine, the storage space of the backup machine is larger than or equal to the storage space of the production machine.
In some embodiments, only the backup machine needs to be zeroed, and a "snapshot" is created for the disk of the production machine, which may be a copy or a replica of the data it represents.
S102, acquiring first coding information of a first disk block and second coding information of a second disk block in sequence. The first disk block is a disk block on a production machine, and the second disk block is a disk block on a backup machine.
And when synchronous deployment is carried out, the production machine acquires the first coding information of the first disk block in sequence, and the backup machine acquires the second coding information of the second disk block. The first encoding information includes a feature code, a sector number, a data type, data length information and encoding information of the first disk block, and the encoding information is information obtained by an MD5 value (including 32 characters) or other encoding modes. The step of the production machine acquiring the first coding information is as steps S1021 to S1022:
s1021, the production machine reads byte data of the first disk block in sequence, and codes the byte data to obtain an MD5 value;
s1022, the feature code, the sector number, the data type and the data length information of the first disk block are obtained, and the feature code, the sector number, the data type, the data length information and the MD5 value are packaged to obtain first coding information.
In some embodiments, the production machine sends the first encoded information to the backup machine after obtaining the first encoded information. After receiving and recognizing the first coding information, the backup machine acquires a corresponding second disk block (for example, according to the feature code and the sector number of the first disk block), and then acquires second coding information.
In some embodiments, the backup machine sends the second encoded information to the production machine after obtaining the second encoded information. And after the production machine receives and identifies the second coding information, acquiring corresponding first coding information according to the second coding information.
In some embodiments, according to a preset program, the production machine acquires the first coding information and the backup machine acquires the second coding information synchronously, and sends the acquired first coding information and the acquired second coding information to a preset server, and after the server compares the first coding information with the second coding information, the server feeds back a comparison result to the production machine and the backup machine.
S103, comparing the first coding information with the second coding information, and if the first coding information and the second coding information are the same, judging that the data content of the first disk block is the same as the data content of the second disk block; and otherwise, backing up the second disk block according to the data content of the first disk block.
In some embodiments, the production machine sends the first encoded information to the backup machine, the backup machine compares the first encoded information with the second encoded information, and the comparison result is fed back to the production machine. If the comparison result is the same, that is, the data content of the first disk block is the same as the data content of the second disk block, at this time, the first disk block and the second disk block have already implemented mirroring. If the comparison result is different, the production machine packs the data content of the first disk block and sends the data content to the backup machine, so that the backup machine writes the received data content into the second disk block, and the mirroring of the first disk block and the second disk block is realized. The specific steps are as steps S1031-S1033:
s1031, after the backup machine receives the first coding information, comparing the first coding information with the second coding information, and feeding back a comparison result to the production machine;
s1032, if the comparison is the same, judging that the data content of the first disk block is the same as that of the second disk block, and returning to execute the step S104; otherwise, acquiring and sending the data content of the first disk block to the backup machine;
and S1033, after the backup machine receives the data content of the first disk block, backing up the second disk block according to the data content.
The step of acquiring and sending the data content of the first disk block to the backup machine specifically includes steps a1-a 2:
a1, the production machine acquires the data content of the first disk block, packs the data content, and acquires and sends a first data packet to the backup machine;
a2, the first data packet includes the characteristic code, sector number, data type, data length information and data content of the first disk block.
In some embodiments, the backup machine sends the second encoded information to the production machine, and the production machine compares the first encoded information with the second encoded information. And if the comparison is the same, namely the data content of the first disk block is the same as the data content of the second disk block, sending the trigger information to the backup machine so that the backup machine can acquire and send the second coding information of the next second disk block to the production machine. And if the comparison result is different, the production machine directly acquires and sends the data content of the first disk block to the backup machine so that the backup machine writes the data content into the second disk block to realize the mirroring of the first disk block and the second disk block.
In some embodiments, the production machine and the backup machine simultaneously send the first encoded information and the second encoded information to a third server, the server compares the first encoded information and the second encoded information, and if the comparison is the same, the server sends a comparison success information to the production machine and the backup machine, so that the production machine and the backup machine send the encoded information of the next disk block. And if the comparison is different, sending information to the production machine so that the production machine can acquire and send the data content of the first disk block to the backup machine. And after receiving the data content, the backup machine writes the data content into the second disk block to realize the mirror image of the first disk block and the second disk block.
S104, judging whether all the first coding information is acquired, if so, acquiring a base line of the disk mirror image; otherwise, the process returns to step S1012.
And when the production machine judges that all the first coding information is acquired, sending the information to the backup machine, and finishing the establishment of the baseline. And if the first coding information of other first disk blocks still exists, continuously acquiring and sending the first coding information.
The mode of sending the coded information is adopted to replace the traditional mode of directly sending the disk data, so that the data volume of transmission can be greatly saved. In the conventional mirroring process, one disk is used as a source end and covers the data of a destination end in a whole disk manner, which means that the data of the source end disk is transmitted through a network and written into the disk of the destination end, and one copy of the data of the source end needs to be transmitted and covers the data of the destination end. In a remote environment, the time delay is large, if the distance between two places is 300KM, the round trip delay of a private line is 10-20 ms (the optical transmission rate is 300x1000kM/ms, considering the time delay of an intermediate device), and the maximum data volume transmitted by tcp one-time handshake is 64kB, the transmission rate is ideally 64kB (1000ms/20ms) ═ 3.2MB/s to 6.4 MB/s. According to the calculation, for a 4TB disk, the time is about 360-180 hours, and the time is quite long, so that the method cannot be suitable for production and deployment.
By adopting the baseline establishing method of the embodiment, after the content of the data disks of the production machine and the backup machine is set to be zero, most of the content of the disks is the same, the content does not need network transmission, the bottleneck of establishing the mirror image baseline of the disks is converted from insufficient network bandwidth into calculation of MD5 codes, obviously, the content is not in a quantity level, the MD5 coding speed can reach 200MB/s generally, and the efficiency can be improved by adopting a multithreading technology and calculating the codes simultaneously; by evaluation (taking into account disk IO read and write times, etc.), establishing a baseline for a 4TB disk image can be completed within 30 hours. In summary, in the method of the present embodiment, under the condition that the remote distance and the bandwidth are limited, the baseline of the disk image can still be quickly established, and the initial deployment time of the remote high-availability cluster and the remote disaster recovery system can be significantly reduced.
Further as an optional implementation, the method further comprises the following steps:
after the baseline of the disk mirror image is obtained, the production machine records the changed data on the disk block as a difference value, and generates and sends a second data packet to the backup machine according to the difference value;
and the backup machine acquires and backs up the corresponding disk block according to the second data packet.
After the initial base line of the mirror image is established, the change of the disk by the production machine every time is recorded as a difference value, the production machine packs the data such as the difference value and the like and transmits the data to the backup machine through a tcp network protocol, and the backup machine processes the data packets such as the difference value and the like and finally writes the data packets into the corresponding disk area to be used as backup.
The embodiment also provides a method for establishing a baseline of a disk image, which includes, but is not limited to, the following steps:
s201, when the deployment is started for the first time, setting the content zero values of the data disks of the production machine and the backup machine;
s202, reading bytes of respective disk blocks by the production machine and the backup machine for coding, comparing the codes, and marking the codes as the same data if the codes are consistent; if the codes are inconsistent, the bytes of the disk blocks are used as a difference value, the production machine packs the data such as the difference value and transmits the data to the backup machine through a tcp network protocol, and the backup machine processes the data packets such as the difference value and finally writes the data packets into a corresponding disk area to be used as a backup;
s203, reading the next disk block, and repeating the step 2 until the disk block comparison of a certain computer is completed; this is the initial baseline for completing mirroring;
s204, after the initial base line of the mirror image is established, recording the change of the disk by the production machine every time as a difference value, and packaging the data such as the difference value and the like by the production machine and transmitting the data to the backup machine through a tcp (transmission control protocol) network protocol;
s205, the backup machine processes the data packets such as the difference value and the like, and finally writes the corresponding disk area as backup.
The embodiment also provides a method for establishing a baseline of a disk image, which includes, but is not limited to, the following steps:
s301, in the production process, comparing the sizes of the data disk spaces of the production machine and the backup machine of the foreign network, wherein the space of the backup machine is not smaller than that of the production machine, and the data of the production machine can be completely copied to the backup machine;
s302, creating a 'snapshot' for the disk of the production machine, and setting zero for the byte content of the disk of the backup machine;
s303, the production machine reads the contents of the 'snapshot' disk blocks, the backup machine reads the contents of the disk blocks, the contents are respectively coded, the codes are compared, and if the codes are consistent, the codes are marked as the same data; if the codes are inconsistent, taking the contents of the 'snapshot' disk blocks as a difference value, packaging the data such as the difference value and the like by the production machine, transmitting the data to the backup machine through a tcp (transmission control protocol) network protocol, processing the data packets such as the difference value and the like by the backup machine, and finally writing the data packets into a corresponding disk area as a backup;
s304, reading the next disk block of the 'snapshot' disk, and repeating the step 3; until the comparison of the magnetic disk blocks of the production machine is completed; this is the initial baseline for completing mirroring;
s305, after an initial base line of the mirror image is established, recording the change of the disk of the production machine every time as a difference value, and packaging the data such as the difference value and the like by the production machine and transmitting the data to the backup machine through a tcp (transmission control protocol) network protocol;
s306, the backup machine processes the data packets such as the difference value and the like, and finally writes the corresponding disk area into the backup.
The embodiment also provides a method for establishing the baseline of the disk image, which comprises the following steps:
the first step, when the deployment is started for the first time, setting the content zero values of the data disks of the production machine and the backup machine; referring to fig. 2, this step is a single thread completion.
Step two, the production machine and the backup machine establish an initial baseline of the disk mirror image; and recording the change of the production machine to the disk as a difference value every time, and only transmitting the difference value data to the backup machine by the production machine.
In establishing the baseline, referring to fig. 3, the production machine mainly performs the following steps: the production machine raw reads the data content of the specified disk block and carries out MD5 encoding on the data content to obtain an MD5 value of 32 characters. Packaging the MD5 value to obtain an MD5 packet, wherein the structure of the MD5 packet comprises: feature code (or magic number), sector number, data type, data length, MD5 value; the MD5 package is transmitted to the backup machine over the tcp network. Receiving a comparison result of the backup machine, and marking the comparison result as the same data if the comparison result is consistent; if the codes are not consistent, the production machine packs the data such as the disk block content and the like (the packet structure comprises a feature code, a sector number, a data type, a data length and the block content) and transmits the data to the backup machine through a tcp network protocol; judging whether the current position reaches the end of the disk, if so, sending a message to inform a backup machine, comparing the end of the disk, and establishing an initial baseline completion of the disk image; otherwise, the content of the next disk block is read by continuing to loop raw.
In establishing the baseline, referring to fig. 4, the backup machine mainly performs the following steps: the backup machine receives the data packet of the production machine and judges the data type: if the package is MD5, reading the contents of the designated disk blocks by using raw, encoding by using MD5, comparing the contents with the encoding of a production machine, and sending the result to the production machine; if the data type is the disk block content, writing the content raw into the specified disk block of the backup machine; judging whether the current position reaches the end of the disk, if so, sending a message to inform a production machine, comparing the end of the disk, and establishing an initial baseline completion of the disk image; otherwise, the data packet of the production machine is continuously received.
The embodiment further provides a device for establishing a baseline of a disk image, including:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, cause the at least one processor to implement the method described above.
The device for establishing the baseline of the disk image can execute the method for establishing the baseline of the disk image provided by the method embodiment of the invention, can execute any combination of the implementation steps of the method embodiment, and has corresponding functions and beneficial effects of the method.
The present embodiments also provide a storage medium having stored therein processor-executable instructions, which when executed by a processor, are configured to perform the method as described above.
The storage medium of this embodiment may execute the method for establishing a baseline of a disk image according to the method embodiment of the present invention, may execute any combination of the implementation steps of the method embodiment, and has corresponding functions and advantages of the method.
It will be understood that all or some of the steps, systems of methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (10)

1. A method for establishing a baseline of a disk image is characterized by comprising the following steps:
s1, acquiring first coding information of the first disk block and second coding information of the second disk block in sequence;
s2, comparing the first coding information with the second coding information, and if the comparison is the same, judging that the data content of the first disk block is the same as the data content of the second disk block; otherwise, backing up the second disk block according to the data content of the first disk block;
s3, judging whether all the first coding information is acquired, if so, acquiring a baseline of the disk mirror image; otherwise, return to step S1;
the first disk block is a disk block on a production machine, and the second disk block is a disk block on a backup machine.
2. The method for establishing a baseline of a disk image according to claim 1, further comprising, before step S1, the steps of:
and carrying out zero setting processing on the disk blocks of the production machine and the disk blocks of the backup machine.
3. The method of claim 1, wherein the first encoded information comprises a signature code, a sector number, a data type, a data length information, and an encoding information of the first disk block.
4. The method for establishing a baseline of a disk image of claim 2, wherein the encoded information is an MD5 value.
5. The method for establishing a baseline of a disk image according to claim 3, wherein the obtaining the first encoded information of the first disk block in sequence comprises:
the production machine reads byte data of the first disk block in sequence, and encodes the byte data to obtain an MD5 value;
and acquiring the feature code, the sector number, the data type and the data length information of the first disk block, and packaging the feature code, the sector number, the data type, the data length information and the MD5 value to acquire first encoding information.
6. The method for establishing a baseline of a disk image according to claim 1, wherein the step S2 specifically includes the following steps:
after the backup machine receives the first coding information, comparing the first coding information with the second coding information, and feeding back a comparison result to the production machine;
if the comparison is the same, determining that the data content of the first disk block is the same as the data content of the second disk block, and continuing to execute step S3; otherwise, acquiring and sending the data content of the first disk block to the backup machine;
and after the backup machine receives the data content of the first disk block, backing up the second disk block according to the data content.
7. The method for establishing the baseline of the disk image according to claim 6, wherein the obtaining and sending the data content of the first disk block to the backup machine comprises:
the production machine acquires and packages the data content of the first disk block, and acquires and sends a first data packet to the backup machine;
the first data packet comprises a feature code, a sector number, a data type, data length information and data content of the first disk block.
8. The method for establishing a baseline of a disk image according to claim 1, further comprising the steps of:
after the baseline of the disk mirror image is obtained, the production machine records the changed data on the disk block as a difference value, and generates and sends a second data packet to the backup machine according to the difference value;
and the backup machine acquires and backs up the corresponding disk block according to the second data packet.
9. An apparatus for establishing a baseline of a disk image, comprising:
at least one processor;
at least one memory for storing at least one program;
when executed by the at least one processor, the at least one program causes the at least one processor to implement the method for establishing a baseline for a disk image of any of claims 1-8.
10. A storage medium having stored therein processor-executable instructions, which when executed by a processor, are configured to perform a method of establishing a baseline for a disk image according to any one of claims 1-8.
CN202010307237.XA 2020-04-17 2020-04-17 Method and device for establishing base line of disk image and storage medium Pending CN113535465A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010307237.XA CN113535465A (en) 2020-04-17 2020-04-17 Method and device for establishing base line of disk image and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010307237.XA CN113535465A (en) 2020-04-17 2020-04-17 Method and device for establishing base line of disk image and storage medium

Publications (1)

Publication Number Publication Date
CN113535465A true CN113535465A (en) 2021-10-22

Family

ID=78123374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010307237.XA Pending CN113535465A (en) 2020-04-17 2020-04-17 Method and device for establishing base line of disk image and storage medium

Country Status (1)

Country Link
CN (1) CN113535465A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096615A (en) * 2011-01-25 2011-06-15 上海爱数软件有限公司 Remote incremental backup method and system
CN103092533A (en) * 2013-01-24 2013-05-08 上海爱数软件有限公司 Method and system for data remote synchronization

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102096615A (en) * 2011-01-25 2011-06-15 上海爱数软件有限公司 Remote incremental backup method and system
CN103092533A (en) * 2013-01-24 2013-05-08 上海爱数软件有限公司 Method and system for data remote synchronization

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杰诚文化: "《新手磁盘维修全程图解》", 中国青年出版社, pages: 75 *

Similar Documents

Publication Publication Date Title
US11232151B2 (en) Systems, methods, and software for improved video data recovery effectiveness
EP2908254A1 (en) Data redundancy implementation method and device
WO2020151323A1 (en) Data slicing-based data storage method, device, and medium
US7694177B2 (en) Method and system for resynchronizing data between a primary and mirror data storage system
CN101706802B (en) Method, device and sever for writing, modifying and restoring data
CN111107123B (en) Method and device for continuous transmission in broken network
EP1012716A4 (en) System and method for maintaining a logically consistent backup using minimal data transfer
CN109412755B (en) Multimedia data processing method, device and storage medium
CN110941514B (en) Data backup method, data recovery method, computer equipment and storage medium
US10585600B2 (en) Data access method and apparatus
KR100922584B1 (en) Distributed object-sharing system and method thereof
CN113885809B (en) Data management system and method
CN113330426B (en) Method, device and system for backing up data
CN111857603B (en) Data processing method and related device
CN102523205A (en) Determination method and device for content checksum
CN111400248B (en) Method for writing data and recovering data and file system
CN112214175A (en) Data processing method, data processing device, data node and storage medium
CN113535465A (en) Method and device for establishing base line of disk image and storage medium
JPH1127342A (en) Method and system for matching network information
CN109032536B (en) Data storage method, device, system and equipment based on distributed cluster system
CN115883533A (en) File synchronization method and device, computer equipment and storage medium
CN115129509A (en) Data transmission method, device and medium
CN113535477A (en) Method and equipment for data disaster recovery
CN114489464A (en) Data writing method and device and electronic equipment
CN109426589B (en) File repair method and device

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