CN105718377B - The method and device of data in magnetic disk is copied in virtualization applications - Google Patents

The method and device of data in magnetic disk is copied in virtualization applications Download PDF

Info

Publication number
CN105718377B
CN105718377B CN201410736272.8A CN201410736272A CN105718377B CN 105718377 B CN105718377 B CN 105718377B CN 201410736272 A CN201410736272 A CN 201410736272A CN 105718377 B CN105718377 B CN 105718377B
Authority
CN
China
Prior art keywords
disk
subregion
carry
data
partition
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
CN201410736272.8A
Other languages
Chinese (zh)
Other versions
CN105718377A (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 CN201410736272.8A priority Critical patent/CN105718377B/en
Publication of CN105718377A publication Critical patent/CN105718377A/en
Application granted granted Critical
Publication of CN105718377B publication Critical patent/CN105718377B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present embodiments relate to the method and devices that data in magnetic disk is copied in a kind of virtualization applications, comprising: the partition table of virtual platform reading disk;The content of the partition table is parsed, the disk partition information of the disk is obtained;According to the disk partition information, the source disk subregion of data to be copied is chosen from the disk partition of the disk;Source disk subregion described in carry, will be in the target disk subregion of the data copy of the source disk subregion of carry to carry.Thus, it is possible to solve to need the data by the entire disk where disk partition to copy in the prior art in copying disk when the data of disk partition, caused by extra consumption memory space, and the problem that elapsed time is long.

Description

The method and device of data in magnetic disk is copied in virtualization applications
Technical field
The present invention relates to disk number is copied in computer virtualized applied technical field more particularly to a kind of virtualization applications According to method and device.
Background technique
In virtualization applications scene, there are many business to need to copy the data of disk, such as template portion The business of administration's virtual machine and virtual machine clone usually require to copy the data of disk.
Currently, the copy of the data of disk refers to as unit of entire disk, by all numbers of source disk a period of time According to copying in target disk, when needing the data by some disk partition in disk to be copied, the prior art can only be incited somebody to action The data in disk where disk partition are copied, and since the data of disk partition would generally be than the data of entire disk It measures much smaller, when as a result, being copied the data of the entire disk where disk partition, it is empty to will lead to extra consumption storage Between, and the problem that elapsed time is long.
Summary of the invention
The embodiment of the invention provides the method and devices that data in magnetic disk is copied in a kind of virtualization applications, can solve existing There is technology when the data of disk partition, the data by the entire disk where disk partition to be needed to copy in copying disk Shellfish, caused by occupy the problem that memory space is big, elapsed time is long.
In a first aspect, a kind of method that data in magnetic disk is copied in virtualization applications is provided, this method comprises:
The partition table of virtual platform reading disk;
The content of the partition table is parsed, the disk partition information of the disk is obtained;
According to the disk partition information, the source disk point of data to be copied is chosen from the disk partition of the disk Area;
Source disk subregion described in carry, by the target disk subregion of the data copy of the source disk subregion of carry to carry In.
With reference to first aspect, in the first implementation of first aspect, the disk partition information includes the magnetic The size and starting location offset amount of disk subregion;
It is described according to the disk partition information, the source disk of data to be copied is chosen from the disk partition of the disk Subregion includes:
According to the size of the disk partition and starting location offset amount, choose from the disk partition of the disk wait copy The source disk subregion of shellfish data.
The first implementation with reference to first aspect, it is described to be copied in second of implementation of first aspect The source disk subregion of data is multiple;
Source disk subregion described in carry, the target disk of the data copy of the source disk subregion by carry to carry Include: in subregion
The data of the multiple source disk subregion are individually copied to the one of carry by the multiple source disk subregion of carry In multiple target disk subregions of a target disk;Alternatively,
The data of the multiple source disk subregion are individually copied to the more of carry by the multiple source disk subregion of carry In the target disk subregion of a target disk.
With reference to first aspect or second of implementation of the first implementation of first aspect or first aspect, In the third implementation of one side, the target disk of data copy to the carry of the source disk subregion by carry divides Include: in area
As unit of the size of preset data block, by the target of the data copy of the source disk subregion of carry to carry In disk partition.
With reference to first aspect or second of implementation of the first implementation of first aspect or first aspect, In 4th kind of implementation of one side, the target disk of data copy to the carry of the source disk subregion by carry divides Include: in area
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
Second aspect, provides the device that data in magnetic disk is copied in a kind of virtualization applications, the device include: read it is single Member, resolution unit, selection unit and copy cell;
The reading unit, the partition table for reading disk;
The content of the resolution unit, the partition table for reading to the reading unit parses, and obtains institute State the disk partition information of disk;
The selection unit, the disk partition information for being parsed according to the resolution unit, from the magnetic The source disk subregion of data to be copied is chosen in the disk partition of disk;
The copy cell, for the source disk subregion that selection unit described in carry is chosen, by the source disk of carry The data copy of subregion is into the target disk subregion of carry.
In conjunction with second aspect, in the first implementation of second aspect, the copy cell is specifically used for:
According to the size of the disk partition and starting location offset amount, choose from the disk partition of the disk wait copy The source disk subregion of shellfish data.
It is described to be copied in second of implementation of second aspect in conjunction with the first implementation of second aspect The source disk subregion of data is multiple;
The copy cell is specifically used for:
The data of the multiple source disk subregion are individually copied to the one of carry by the multiple source disk subregion of carry In multiple target disk subregions of a target disk;Alternatively,
The data of the multiple source disk subregion are individually copied to the more of carry by the multiple source disk subregion of carry In the target disk subregion of a target disk.
In conjunction with the first of second aspect or second aspect implementation or second of implementation of second aspect, Two aspect the third implementation in, the copy cell also particularly useful for:
As unit of the size of preset data block, by the target of the data copy of the source disk subregion of carry to carry In disk partition.
In conjunction with the first of second aspect or second aspect implementation or second of implementation of second aspect, Two aspect the 4th kind of implementation in, the copy cell also particularly useful for:
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
The method and device of data in magnetic disk is copied in virtualization applications provided in an embodiment of the present invention, virtual platform passes through The content of the partition table of disk is parsed, the disk partition information of the disk is obtained;According to the disk partition information, The source disk subregion of data to be copied is chosen from the disk partition of the disk;Source disk subregion described in carry, by carry The data copy of source disk subregion is into the target disk subregion of carry.Thus, it is possible to solve in the prior art in copy magnetic In disk when the data of disk partition, the data by the entire disk where disk partition is needed to copy, caused by it is additional Expend memory space, and the problem that elapsed time is long.
Detailed description of the invention
The method flow diagram of data in magnetic disk is copied in the virtualization applications that Fig. 1 provides for the embodiment of the present invention one;
Fig. 2 is the MBR partition table parsing result schematic diagram of virtual disk;
Fig. 3 is the correspondence diagram of source disk subregion and target disk subregion;
Fig. 4 is the schematic device that data in magnetic disk is copied in virtualization applications provided by Embodiment 2 of the present invention;
The schematic device of data in magnetic disk is copied in the virtualization applications that Fig. 5 provides for the embodiment of the present invention three.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
In order to facilitate understanding of embodiments of the present invention, it is further explained below in conjunction with attached drawing with specific embodiment Bright, embodiment does not constitute the restriction to the embodiment of the present invention.
The present invention is mainly the partition table that disk is parsed by virtual platform, obtains the disk partition of each disk partition Size and starting location offset amount choose the source magnetic of data to be copied according to the size of disk partition and starting location offset amount Disk subregion, and source disk subregion described in carry, thus completed by virtual platform source disk subregion to carry target magnetic Data copy between disk subregion.Thus, it is possible to solve to need in the prior art in copying disk when the data of disk partition The data of entire disk where disk partition are copied, caused by extra consumption memory space, and elapsed time Long problem.
The method flow diagram of data in magnetic disk is copied in the virtualization applications that Fig. 1 provides for the embodiment of the present invention one.Such as Fig. 1 institute Show, the method specifically includes:
S110, the partition table of virtual platform reading disk.
Disk can be virtual disk or physical disk, in this specification, be said so that disk is virtual disk as an example It is bright.Partition table can be master boot record (Master Boot Record, MBR) partition table of disk, or GUID points Area's table (GUID Part i t ion Table, GPT) is said so that partition table is MBR partition table as an example in this description It is bright.
It should be noted that the number of virtual disk herein can be one or more.Virtual platform is also referred to as Hypervisor, is a kind of intermediate software layer operated between basic physics server and operating system, it can read simultaneously Parse the MBR partition table of virtual disk.MBR partition table is located at No. 0 magnetic pole of virtual disk, No. 0 magnetic head, No. 1 sector, also referred to as Master boot sector, it is made of three parts: main bootstrap program, hard disk partition table (Disk Part i t ion Table, DPT) and subregion effective marker, wherein the size and starting location offset amount of disk partition are had recorded in hard disk partition table.
It should be noted that the content of above-mentioned MBR partition table is by operating system tool (e.g., kpartx tool) initial It is written when changing virtual disk.
S120 parses the content of the partition table, obtains the disk partition information of the disk.
The MBR partition table parsing result schematic diagram of virtual disk shown in Figure 2, in Fig. 2,255heads indicates virtual Disk has 255 magnetic surfaces, and 63 sectors/track indicate that a magnetic surface has 63 sectors), 261 cyl inders indicate empty Quasi- disk has 261 magnetic poles, and the capacity of each magnetic pole is 16065*512 (sector number * sector-size)=8225280bytes, First magnetic pole (i.e. No. 0 magnetic pole) is occupied by MBR partition table, and subregion, the numerical value of Start (beginning) are carried out since No. 1 magnetic pole Indicate the beginning magnetic pole number of subregion, End (end) indicates the end magnetic pole number of subregion, for example, " 1 " and " 65 " in Fig. 2 is respectively Indicate that first subregion terminates since No. 1 magnetic pole to No. 65 magnetic poles;The numerical value of Blocks indicates the capacity of disk partition, list Position is K, and the value of a subregion capacity is from following formula: Blocks=(respective partition End numerical value-respective partition Start numerical value) x unit magnetic pole capacity.
It as above, is parsing result to the content of the MBR partition table of a virtual disk, i.e. a virtual disk can be drawn It is divided into multiple disk partition;In addition, a virtual disk can also only divide a disk partition;When the number of virtual disk is When multiple, then the disk partition information of multiple virtual disks is obtained, wherein the disk partition number of each virtual disk can be It is one or more.
S130 chooses the source magnetic of data to be copied according to the disk partition information from the disk partition of the disk Disk subregion.
Herein, disk partition information may include the size and starting location offset amount of disk partition.
In order to reduce the additional occupancy of memory space, and the copy time of the data of virtual disk is reduced, the present invention is not The data of entire virtual disk are copied, but first choose the disk partition of data to be copied, is i.e. source disk subregion, it is only right Data in source disk subregion are copied.Specifically, according to the size of disk partition and starting location offset amount, from disk The source disk subregion of data to be copied is chosen in disk partition.
For example, it is divided to obtain disk partition 1, disk partition 2 and disk partition 3, and magnetic by the same virtual disk The data of operating system are described in disk subregion 1, therefore, when needing to back up system, then only need to copy disk point The data in area 1, namely according to the size and location offset of disk partition 1, disk point is chosen from above three disk partition Area 1 is used as source disk subregion;And when needing individually to manage the data of above three disk partition respectively, so as to individually into Row attended operation, and when the service flexibility of enhancing virtual disk, then it needs respectively to copy the data of above three disk partition Shellfish is into three independent target virtual disks, namely respectively according to the size of disk partition 1, disk partition 2 and disk partition 3 And position offset, disk partition 1, disk partition 2 and disk partition 3 are chosen for source disk subregion, wherein Fig. 3 is source magnetic The correspondence diagram of disk subregion and target disk subregion, virtual disk 1 are disk belonging to source disk subregion, virtual disk 2, virtual disk 3 and virtual disk 4 are three target virtual disks, wherein each target virtual disk includes a target Disk partition, and above-mentioned target disk subregion carry on virtual platform.
Among the above, disk partition 1, disk partition 2 and disk partition 3 are also possible to be drawn by two or three virtual disks Get, when aforementioned three disk partition are to divide to obtain by two or three virtual disks, and need virtual to reducing Number of disks, when reducing maintenance cost, by can be by the data copy of above three disk partition to a destination virtual magnetic In three disk partition of disk.
S140, source disk subregion described in carry, by the target magnetic of the data copy of the source disk subregion of carry to carry In disk subregion.
The process of carry is that source disk subregion is mapped as the operable equipment of virtual platform.For example, in l inux In system, the carry of source disk subregion can be realized by order " mount ".
Referring to above-mentioned example, so that it may complete the multiple source disk subregions or multiple virtual magnetics to a virtual disk The carry of the source disk subregion of disk.
After the carry for completing above-mentioned disk partition, virtual platform can carry out copy behaviour to the data of disk partition Make.
Optionally, the source disk subregion of the data to be copied is multiple;
Source disk subregion described in carry, the target disk of the data copy of the source disk subregion by carry to carry Include: in subregion
The data of the multiple source disk subregion are individually copied to the one of carry by the multiple source disk subregion of carry In multiple target disk subregions of a target disk;Alternatively,
The data of the multiple source disk subregion are individually copied to the more of carry by the multiple source disk subregion of carry In the target disk subregion of a target disk.
Preferably, above-mentioned target disk is virtual disk.It should be noted that the target disk subregion of preceding aim disk Carry mode it is similar with the mode of carry source disk subregion in S140, therefore not to repeat here.
Further, the data copy of the source disk subregion by carry is wrapped into the target disk subregion of carry It includes:
As unit of the size of preset data block, by the target of the data copy of the source disk subregion of carry to carry In disk partition.
Example as the aforementioned is regarding disk partition 1 as source disk subregion, by data copy therein to target disk point Qu Shi, it is assumed that the size of disk partition 1 be 522081KB, and the size of preset data block be 512KB when, then every time from source magnetic The size of data copied in disk subregion is 512KB, needs to copy (522081/512) in total secondary.
Further, it will be gone back in the target disk subregion of the data copy of the source disk subregion of carry to carry in S140 May include:
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
Herein, the file system for parsing the host of source disk subregion described in carry belongs to the prior art, so illustrating herein It is no longer described in detail in book.Wherein, the content of the listed files of the host got can be as follows:
Filename a b c d e f
Assuming that the file stored in source disk subregion includes a and b, then by the content copy in file a and b to target disk Subregion.Wherein, in l inux system, the copy that order " cp " completes file content can be used.
To sum up, the method that data in magnetic disk is copied in virtualization applications provided in an embodiment of the present invention, virtual platform pass through The content of the partition table of disk is parsed, the disk partition information of the disk is obtained;According to the disk partition information, The source disk subregion of data to be copied is chosen from the disk partition of the disk;Source disk subregion described in carry, by carry The data copy of source disk subregion is into the target disk subregion of carry.Thus, it is possible to solve in the prior art in copy magnetic In disk when the data of disk partition, the data by the entire disk where disk partition is needed to copy, caused by it is additional Expend memory space, and the problem that elapsed time is long.
Fig. 4 is the schematic device that data in magnetic disk is copied in virtualization applications provided by Embodiment 2 of the present invention.The dress It sets and can be used for executing method described in Fig. 1.In Fig. 4, which includes: reading unit 401, resolution unit 402, selection unit 403 and copy cell 404.
Reading unit 401, the partition table for reading disk.
The content of resolution unit 402, the partition table for reading to reading unit 401 parses, described in acquisition The disk partition information of disk.
Selection unit 403, for parsing the obtained disk partition information according to resolution unit 402, from the disk Disk partition in choose the source disk subregions of data to be copied.
Copy cell 404, for the source disk subregion that carry selection unit 403 is chosen, by the source disk of carry point The data copy in area is into the target disk subregion of carry.
Copy cell 404 is specifically used for: according to the size of the disk partition and starting location offset amount, from the disk Disk partition in choose the source disk subregions of data to be copied.
Optionally, the source disk subregion of the data to be copied is multiple;
Copy cell 404 is specifically used for:
The data of the multiple source disk subregion are individually copied to the one of carry by the multiple source disk subregion of carry In multiple target disk subregions of a target disk;Alternatively,
The data of the multiple source disk subregion are individually copied to the more of carry by the multiple source disk subregion of carry In the target disk subregion of a target disk.
Optionally, copy cell 404 also particularly useful for:
As unit of the size of preset data block, by the target of the data copy of the source disk subregion of carry to carry In disk partition.
Optionally, copy cell 404 also particularly useful for:
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
The device that data in magnetic disk is copied in virtualization applications provided in an embodiment of the present invention, can solve and exist in the prior art When copying the data of the disk partition of disk, the data by the entire disk where disk partition is needed to copy, and caused Extra consumption memory space, and the problem that elapsed time is long.
Device provided by Embodiment 2 of the present invention implants the method for the offer of the embodiment of the present invention one, and therefore, the present invention mentions The specific work process of the device of confession, does not repeat again herein.
In the embodiment of the present invention two, the partition table of 401 reading disk of reading unit;Resolution unit 402, to described in reading The content of partition table is parsed, and the disk partition information of the disk is obtained;Selection unit 403, according to the disk partition Information chooses the source disk subregion of data to be copied from the disk partition of the disk;Copy cell 404, source described in carry Disk partition, will be in the target disk subregion of the data copy of the source disk subregion of carry to carry.It can solve existing skill In art when copying the data of disk partition of disk, the data by the entire disk where disk partition is needed to copy, Caused by extra consumption memory space, and the problem that elapsed time is long.
The schematic device of data in magnetic disk is copied in the virtualization applications that Fig. 5 provides for the embodiment of the present invention three.Such as Fig. 5 institute Show, described device includes: network interface 501, processor 502 and memory 503.System bus 504 is for connecting network interface 501, processor 502 and memory 503.
For example, processor 502 can be CPU.
Network interface 501 with other equipment for communicating.
Memory 503 can be permanent memory, such as hard disk drive and flash memory, have software mould in memory 503 Block and device driver.Software module is able to carry out the various functional modules of the above method of the present invention;Device driver can To be network and interface drive program.
On startup, these component softwares are loaded into memory 503, are then accessed and are executed such as by processor 502 It gives an order:
The partition table of reading disk;
The content of the partition table is parsed, the disk partition information of the disk is obtained;
According to the disk partition information, the source disk point of data to be copied is chosen from the disk partition of the disk Area;
Source disk subregion described in carry, by the target disk subregion of the data copy of the source disk subregion of carry to carry In.
Further, the disk partition information includes the size and starting location offset amount of the disk partition;
The application program further includes that can be used for that the processor 502 and described device is made to execute the instruction of following procedure:
According to the size of the disk partition and starting location offset amount, choose from the disk partition of the disk wait copy The source disk subregion of shellfish data.
Optionally, the source disk subregion of the data to be copied is multiple;
The application program further includes that can be used for that the processor 502 and described device is made to execute the instruction of following procedure:
The data of the multiple source disk subregion are individually copied to the one of carry by the multiple source disk subregion of carry In multiple target disk subregions of a target disk;Alternatively,
The data of the multiple source disk subregion are individually copied to the more of carry by the multiple source disk subregion of carry In the target disk subregion of a target disk.
Further, the application program further includes that can be used for that the processor 502 and described device is made to execute following mistake The instruction of journey:
As unit of the size of preset data block, by the target of the data copy of the source disk subregion of carry to carry In disk partition.
Further, the application program further includes that can be used for that the processor 502 and described device is made to execute following mistake The instruction of journey:
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
The device that data in magnetic disk is copied in virtualization applications provided in an embodiment of the present invention, can solve and exist in the prior art When copying the data of the disk partition of disk, the data by the entire disk where disk partition is needed to copy, and caused Extra consumption memory space, and the problem that elapsed time is long.
Professional should further appreciate that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, hard in order to clearly demonstrate The interchangeability of part and software generally describes each exemplary composition and step according to function in the above description. These functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution. Professional technician can use different methods to achieve the described function each specific application, but this realization It should not be considered as beyond the scope of the present invention.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can be executed with hardware, processor The combination of software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described specific embodiment has carried out further the purpose of the present invention, technical scheme and beneficial effects It is described in detail, it should be understood that being not intended to limit the present invention the foregoing is merely a specific embodiment of the invention Protection scope, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (8)

1. copying the method for data in magnetic disk in a kind of virtualization applications, which is characterized in that the described method includes:
The partition table of virtual platform reading disk;
The content of the partition table is parsed, the disk partition information of the disk is obtained, the disk includes N number of disk Subregion, each subregion include multiple sectors, and the disk partition information includes size and the initial position of N number of disk partition Offset, N are positive integer;
According to the size and starting location offset amount of at least one disk partition in N number of disk partition, from N number of disk The source disk subregion of data to be copied is chosen in subregion;
Source disk subregion described in carry, will be in the target disk subregion of the data copy of the source disk subregion of carry to carry.
2. the method according to claim 1, wherein the source disk subregion of the data to be copied is multiple;
Source disk subregion described in carry, the target disk subregion of the data copy of the source disk subregion by carry to carry In include:
The data of the multiple source disk subregion are individually copied to a mesh of carry by the multiple source disk subregion of carry In the multiple target disk subregions for marking disk;Alternatively,
The data of the multiple source disk subregion, are individually copied to multiple mesh of carry by the multiple source disk subregion of carry In the target disk subregion for marking disk.
3. method according to claim 1 or 2, which is characterized in that the data copy of the source disk subregion by carry Include: into the target disk subregion of carry
As unit of the size of preset data block, by the target disk of the data copy of the source disk subregion of carry to carry In subregion.
4. method according to claim 1 or 2, which is characterized in that the data copy of the source disk subregion by carry Include: into the target disk subregion of carry
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
5. copying the device of data in magnetic disk in a kind of virtualization applications, which is characterized in that described device includes: reading unit, solution Analyse unit, selection unit and copy cell;
The reading unit, the partition table for reading disk;
The content of the resolution unit, the partition table for reading to the reading unit parses, and obtains the magnetic The disk partition information of disk, the disk include N number of disk partition, and each subregion includes multiple sectors, the disk partition letter Breath includes the size and starting location offset amount of N number of disk partition;
The selection unit, at least one disk in N number of disk partition for being parsed according to the resolution unit The size and starting location offset amount of subregion, choose the source disk subregion of data to be copied from N number of disk partition;
The copy cell, for the source disk subregion that selection unit described in carry is chosen, by the source disk subregion of carry Data copy into the target disk subregion of carry.
6. device according to claim 5, which is characterized in that the source disk subregion of the data to be copied is multiple;
The copy cell is specifically used for:
The data of the multiple source disk subregion are individually copied to a mesh of carry by the multiple source disk subregion of carry In the multiple target disk subregions for marking disk;Alternatively,
The data of the multiple source disk subregion, are individually copied to multiple mesh of carry by the multiple source disk subregion of carry In the target disk subregion for marking disk.
7. device according to claim 5 or 6, which is characterized in that the copy cell also particularly useful for:
As unit of the size of preset data block, by the target disk of the data copy of the source disk subregion of carry to carry In subregion.
8. device according to claim 5 or 6, which is characterized in that the copy cell also particularly useful for:
The file system for parsing the host of source disk subregion described in carry, obtains the listed files of the host;
The file for being stored in the source disk subregion is obtained from the listed files;
It will be in the target disk subregion of the content copy of the file to carry.
CN201410736272.8A 2014-12-05 2014-12-05 The method and device of data in magnetic disk is copied in virtualization applications Active CN105718377B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410736272.8A CN105718377B (en) 2014-12-05 2014-12-05 The method and device of data in magnetic disk is copied in virtualization applications

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410736272.8A CN105718377B (en) 2014-12-05 2014-12-05 The method and device of data in magnetic disk is copied in virtualization applications

Publications (2)

Publication Number Publication Date
CN105718377A CN105718377A (en) 2016-06-29
CN105718377B true CN105718377B (en) 2019-10-25

Family

ID=56143816

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410736272.8A Active CN105718377B (en) 2014-12-05 2014-12-05 The method and device of data in magnetic disk is copied in virtualization applications

Country Status (1)

Country Link
CN (1) CN105718377B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106775846B (en) * 2016-11-30 2021-02-23 三星(中国)半导体有限公司 Method and device for online migration of physical server
CN106569752B (en) * 2016-12-27 2019-07-02 哈尔滨安天科技股份有限公司 A kind of system and method for quick merging disk partition
CN106777288B (en) * 2016-12-29 2019-09-27 北京安天网络安全技术有限公司 A kind of system and method for quick fractionation virtualization disk mirroring
CN108399048A (en) * 2017-02-08 2018-08-14 杭州信核数据科技股份有限公司 A kind of data copy migration method and system based on (SuSE) Linux OS
CN109710375A (en) * 2018-12-06 2019-05-03 国云科技股份有限公司 A method of separation virtual machine system subregion
CN109614053A (en) * 2018-12-17 2019-04-12 郑州云海信息技术有限公司 A kind of method and apparatus extending KVM magnetic disk of virtual machine subregion
CN110941515B (en) * 2019-12-04 2022-05-24 深圳市科力锐科技有限公司 Host backup reconstruction method, device, server and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5974517A (en) * 1996-09-17 1999-10-26 Compaq Computer Corporation Method and system for mounting a system partition as a logical drive while an operating system is operational by modifying a partition table
CN101609393A (en) * 2009-07-21 2009-12-23 北京数帅科技有限公司 The operating system access of non-LVM is based on the method for the memory device of LV volume
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103488956A (en) * 2012-06-07 2014-01-01 亚旭电脑股份有限公司 Data protection method of portable electronic device and computer program product thereof
CN103605588A (en) * 2013-11-21 2014-02-26 上海爱数软件有限公司 Disk backup method of virtue machine

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5974517A (en) * 1996-09-17 1999-10-26 Compaq Computer Corporation Method and system for mounting a system partition as a logical drive while an operating system is operational by modifying a partition table
CN101609393A (en) * 2009-07-21 2009-12-23 北京数帅科技有限公司 The operating system access of non-LVM is based on the method for the memory device of LV volume
CN103488956A (en) * 2012-06-07 2014-01-01 亚旭电脑股份有限公司 Data protection method of portable electronic device and computer program product thereof
CN103051687A (en) * 2012-12-10 2013-04-17 浪潮(北京)电子信息产业有限公司 System and method for deploying application service to cloud-storage virtual machine
CN103605588A (en) * 2013-11-21 2014-02-26 上海爱数软件有限公司 Disk backup method of virtue machine

Also Published As

Publication number Publication date
CN105718377A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN105718377B (en) The method and device of data in magnetic disk is copied in virtualization applications
US9063838B1 (en) Data storage device shifting data chunks of alignment zone relative to sector boundaries
CN102667740B (en) Boundary alignment by data storage device subregion Yu physical data sector
US9256474B2 (en) Automatically aligning virtual blocks to physical blocks
CN106201659B (en) A kind of method and host of live migration of virtual machine
CN102880424B (en) For RAID management, redistribute and the system and method for segmentation again
US7461198B2 (en) System and method for configuration and management of flash memory
EP2012226A3 (en) Computer system, method and program for managing volumes of storage system
US20100057818A1 (en) Performing defragment on hard disk of host machine having a virtual machine
JP2006099763A5 (en)
WO2016165597A1 (en) Processing method and device for data storage
US9354826B2 (en) Capacity expansion method and device
JP2008065445A (en) Computer system for saving storage area by integrating same data, storage systems and those control method
CN102096561A (en) Hierarchical data storage processing method, device and storage equipment
CN103020550A (en) Solid state disk and secure access method thereof as well as solid state disk system
CN104572242A (en) Method and device for expanding disk space of virtual machine and virtual machine system
US20210326207A1 (en) Stripe reassembling method in storage system and stripe server
US8566541B2 (en) Storage system storing electronic modules applied to electronic objects common to several computers, and storage control method for the same
CN104391803B (en) A kind of memory management method of partition operating system
CN104268097B (en) A kind of metadata processing method and system
JP2005196793A5 (en)
CN104572492A (en) Method and apparatus of burning data to FAT (File Allocation Table)32 partition
US20150347320A1 (en) ENCRYPTION FOR SOLID STATE DRIVES (SSDs)
US20100153678A1 (en) Memory management apparatus and method
US9535796B2 (en) Method, apparatus and computer for data operation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant