CN100405310C - Fast photographic system and method - Google Patents

Fast photographic system and method Download PDF

Info

Publication number
CN100405310C
CN100405310C CNB2005100838607A CN200510083860A CN100405310C CN 100405310 C CN100405310 C CN 100405310C CN B2005100838607 A CNB2005100838607 A CN B2005100838607A CN 200510083860 A CN200510083860 A CN 200510083860A CN 100405310 C CN100405310 C CN 100405310C
Authority
CN
China
Prior art keywords
volume
logical
snapshot
snapped
logical volume
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
CNB2005100838607A
Other languages
Chinese (zh)
Other versions
CN1896960A (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.)
Institute of Computing Technology of CAS
Original Assignee
Institute of Computing Technology of CAS
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 Institute of Computing Technology of CAS filed Critical Institute of Computing Technology of CAS
Priority to CNB2005100838607A priority Critical patent/CN100405310C/en
Publication of CN1896960A publication Critical patent/CN1896960A/en
Application granted granted Critical
Publication of CN100405310C publication Critical patent/CN100405310C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

A snapshot system comprises processing unit of read/write request, physical storage resource of logic roll, basic roll recording and said logic roll with its interactive interface unit, snapshot roll recording and said logic roll with its interactive interface unit. It is featured as not only supporting to create snapshot on normal logic roll but also supporting to create snapshot on snapshot itself.

Description

A kind of fast photographic system and method
Technical field
The present invention relates to the technical field of memory of computing machine, relate in particular to a kind of snapshot of both having supported based on primary data, support fast photographic system and method thereof again based on the snapshot of snapshot map itself.
Background technology
In computer memory technical field, the application demand of data mapping of obtaining a certain moment is very general.This instant data mapping is called " snapshot " again, and snapshot is widely applied in fields such as the backup of data and recovery, data statistics and analyses.
A kind of technology of obtaining snapshot that is widely adopted is to write copy (Copy-On-Write) technology.When creating snapshot, writing duplication technology is not that all the elements that are created the primary data of snapshot are all duplicated to obtain a data map copy, but create data structure and snapshot space of preserving data that a record primary data is revised situation, so the constructive process of snapshot is very of short duration.When application program is carried out write operation to primary data, if data block to be written also has not been modified since snapshot creation, then former data block is copied to snapshot space earlier, and data block just is written into, and these data blocks of mark are modified in the data structure of snapshot simultaneously; If data block to be written is marked as and revises, then the write operation of data block is identical with normal condition, directly data block is done write operation and gets final product.When application program reads snapshot, if being marked as, the data block that reads do not revise, then data block reads from primary data, otherwise data block reads from snapshot.Snapshot shows as primary data by such mode and is creating that frozen images constantly of snapshot.
Snapshot also can be the data mapping that can write.The mode that snapshot writes be if data block to be written in snapshot, do not exist, then from primary data with this block copy in snapshot, then the data block in the snapshot is done write operation.The meaning that can write snapshot no longer is the instant map of primary data, but the data mapping that on the basis of this instant map, changes.
People such as Armangau proposed on Dec 2nd, 1999, name is called the United States Patent (USP) the 6th of " a kind of snapping technique that allows to continue the read and write access data-storage system ", 434, No. 681 (" Snapshot copy facility fora data storage system permitting continued host read/write access ") relates to and writes the copy snapping technique.The background information that this patent conduct is relevant with snapping technique is listed, for your guidance.
Present snapping technique mainly is that primary data is created instant reflection.Instant reflection can satisfy read-only application such as data backup, also can support read-write to use.But in general fast photographic system, only there is one-level snapshot logic, do not have the snapshot structure of iteration.Fig. 1 is an example of the snapshot logical constitution of general fast photographic system.Logical volume 100 has two snapshots, is respectively logical volume 101 and logical volume 102.And logical volume 101 has been a snapshot with logical volume 102, can not create snapshot to them again.
Yet, in the application that can write snapshot, the same demand that can write the instant reflection of snapshot creation to this that exists.How snapping technique is applied on these data mappings by the snapping technique generation once more, i.e. " based on the snapshot of snapshot ", the iteration of especially this snapshot logic (for example " based on the snapshot of snapshot " being created snapshot once more) does not also have good method to solve this problem.
In addition, some snapshot logical volume is in the prior art only supported read operation, and this can limit the application mode of snapshot.
Summary of the invention
An object of the present invention is to provide a kind of fast photographic system, create to the snapshot of primary data with to the snapshot of snapshot.
To achieve these goals, the invention provides a kind of fast photographic system, can be the snapshot creation snapshot, form by General Logic volume that comprises primary data and the snapshot logical volume that comprises snapshot, it is characterized in that, the General Logic volume is identical with the structure of snapshot logical volume, and logical volume comprises: read-write requests processing unit 301, logical block corresponding tables unit 302, logical volume physical store resource 303, basic volume record and this logical volume and its interactive interface unit 304, snapped volume record and this logical volume and its interactive interface unit 305; Read-write requests processing unit 301 is used to handle the read-write operation to logical volume; Employed logical block number (LBN) and this logical block corresponding relation between actual physics piece that logical volume is stored number when logical block corresponding tables unit 302 is used for identifying applications access logic volume; Basis volume record and this logical volume and its interactive interface unit 304 are used to write down the basis volume of local logical volume, and provide and the basic interactive interface of rolling up; Snapped volume record and this logical volume and its interactive interface unit 305 are used to write down the snapped volume of local logical volume, and the interactive interface with snapped volume is provided.
In the technique scheme, the list item of described logical block corresponding tables unit 302 stored logical block corresponding tables comprises logical block number (LBN) 401 and physical storage block numbers 402.
The present invention also provides a kind of method of supporting the polymorphic type snapshot, comprising:
1) snapshot creation step is an establishing logical volume snapshot, and on behalf of this basis, the snapshot of being created twist in snapshot creation data mode constantly;
2) read the snapshot step, read the data in the logical volume of snapshot place;
3) write the snapshot step, snapshot place logical volume is write data;
4) snapshot deletion step, the deletion snapshot reclaims the shared resource of this snapshot;
In the described step 1), snapshot creation comprises:
1-1, utilize existing storage resources to create a new logical volume, be this logical volume memory allocated resource, described logical volume comprises read-write requests processing unit 301, logical block corresponding tables unit 302, basic volume record and this logical volume and its interactive interface unit 304, snapped volume record and this logical volume and its interactive interface unit 305;
1-2, utilize logical block corresponding tables unit 302 to create the logical block corresponding tables, when impinging upon initial creation soon, the logical block corresponding tables be empty showing;
1-3, in the new logical volumes of creating, the basic volume record in basic volume record and the Switch Interface Unit 304 is set to the relevant information of basis volume;
1-4, add a snapshot record in the snapped volume record of basis volume and the snapped volume record in the Switch Interface Unit 305, newly the logical volume of Chuan Jianing is set to the snapshot that roll up on the basis;
Described step 2) in, read the snapshot step and comprise:
2-1, read-write requests processor unit 301 obtain logical block number (LBN) after receiving read request to data block from read request;
2-2, according to the logical block number (LBN) in the request, in the logical block corresponding tables of logical volume, do inquiry, check logical block number (LBN) that read request comprises whether in the logical block corresponding tables, if inquire, execution in step 2-4 if do not have, carries out next step;
2-3, read request is forwarded to the interactive interface of this logical volume and its basis volume; After the snapped volume interactive interface of basis volume receives this read request, read request is transmitted to the read-write requests processing unit that roll up on the basis, and execution in step 2-1;
2-4, search actual storage piece number in the logical block corresponding tables, number finish read operation according to the actual storage piece according to the logical block number (LBN) of being asked;
In the described step 3), write the snapshot step and comprise:
After 3-1, read-write requests processing unit 301 are received write request to data block, from write request, obtain the logical block number (LBN) of logical volume logical block to be written, in write request, also comprise the data that will write logical volume;
3-2, according to logical block number (LBN), obtain the legacy data of logical block to be written by the read operation step;
3-3, to each snapped volume of the logical volume that will finish write operation, by with the interactive interface unit inquiry snapped volume of snapped volume in whether had the legacy data of logical block to be written, if exist, execution in step 3-5, otherwise carry out next step;
The legacy data of 3-4, the logical block to be written that will read copies in the snapped volume by the interactive interface unit with snapped volume, and adds the list item of logical block corresponding tables in the snapped volume;
3-5, judge whether that all snapshots all dispose, if, carry out next step, if not, execution in step 3-3;
Logical block corresponding tables in 3-6, the local logical volume of inquiry judges whether to exist the data block that will write, if execution in step 3-8 if not, carries out next step;
The data of 3-7, the data block that will write write in this logical volume, and add the list item of logical block corresponding tables in the logical volume;
3-8, the data of write request are written in the corresponding list item of logical block in this logical block number (LBN) corresponding physical storage block, finish the request of writing;
In the described step 4), snapshot deletion step comprises:
4-1, with all block copies in the logical volume that will delete in each snapped volume, if certain data block exists in certain snapped volume, then this data block no longer copies in this snapped volume; If the logical volume that will delete does not have snapped volume, then need not to preserve its data block;
4-2, to all snapped volumes, the snapshot relation of setting up these snapped volumes and will deleting the basis volume of logical volume, the basis volume of these snapped volumes is changed into the basis volume of all deletion logical volumes, if what the logical volume that will delete was preserved is primary data, this logical volume does not have the basis volume, and then the basis volume with snapped volume is made as sky;
4-3, elimination will be deleted the snapshot relation between logical volume and the basis volume;
The storage resources of 4-4, the recovery logical volume of deleting.
The invention has the advantages that:
1, the present invention not only supports the General Logic volume is created snapshot, and can create snapshot to snapshot self, has expanded the application mode and the range of application of snapshot.
2, each logical volume can both support read-write to use in the fast photographic system of the present invention, compares with the logical volume of supporting read-only application, and the more applications mode is arranged.
Description of drawings
Fig. 1 is the structural drawing of common snapshot;
Fig. 2 is the structural drawing of snapshot of the present invention;
Fig. 3 is the building-block of logic of logical volume;
Fig. 4 is the structural drawing of the list item of logical block corresponding tables;
Fig. 5 is the process flow diagram of snapshot creation;
Fig. 6 is the processing flow chart of read-write requests processing unit to the logical volume read request;
Fig. 7 is the processing flow chart of read-write requests processing unit to the logical volume write request;
Fig. 8 is the process flow diagram to logical volume deletion step.
Embodiment
Below in conjunction with the drawings and specific embodiments the present invention is elaborated.
A kind of fast photographic system of the present invention.Fig. 2 is an example of the snapshot logical organization of fast photographic system of the present invention.Logical volume 200 has two snapshots, is respectively logical volume 201 and logical volume 202.There are two snapshots again in logical volume 201 as the snapshot of logical volume 200, is respectively logical volume 203 and logical volume 204.Similarly, have a snapshot again as the logical volume 203 of the snapshot of logical volume 201, it is a logical volume 205; Also there is a snapshot in logical volume 204 as the snapshot of logical volume 201, and it is a logical volume 206.In fast photographic system of the present invention, the snapshot logic is can iteration, that is to say as the logical volume of snapshot and also can create snapshot, and fast photographic system of the present invention iteration repeatedly, as for logical volume 206, also can create new snapshot based on it.
It is unified that logical volume in the fast photographic system of the present invention is formed structure.Logical volume structure 300 shown in Figure 3 has provided the composition structure of the logical volume of fast photographic system of the present invention, comprising: read-write requests processing unit 301, logical block corresponding tables unit 302, logical volume physical store resource 303, basic volume record and this logical volume and its interactive interface unit 304, snapped volume record and this logical volume and its interactive interface unit 305.For convenience of description, described logical volume is called local logical volume, if local logical volume is the snapshot of first logical volume, first logical volume is the basis volume of local logical volume, abbreviate the basis volume as, if second logical volume is the snapshot of local logical volume, then second logical volume is the snapped volume of local logical volume, abbreviates snapped volume as.
In this fast photographic system, logical volume no matter be snapshot whether, can both support read-write, and be not only read-only type logical volume.Read-write requests processing unit 301 is used to handle the read-write operation to local logical volume, an available read processing modules implement commonly used.
Employed logical block number (LBN) and this logical block corresponding relation between actual physics piece that logical volume is stored number when logical block corresponding tables unit 302 is used for identifying applications access logic volume.The logical block corresponding tables is made of the corresponding list item 400 of logical block of form shown in Figure 4.The structure of the corresponding list item 400 of logical block is that logical block number (LBN) 401 adds its corresponding physical storage block numbers 402.
Logical volume physical store resource 303 is physical blocks of actual storage data.
Read-write requests processor unit 301 is responsible for handling the request of local logical volume data write.When read-write requests arrives, read-write requests processor unit 301 search whether exist in the logical block corresponding tables unit 302 with this read-write requests in the consistent corresponding list item 400 of logical block of logical block number (LBN) that comprises.The mode of searching is: sequential search is collected corresponding list item of each logical block of piece corresponding tables unit 302, if the logical block number (LBN) of a certain list item 401 equate with the logical block number (LBN) that read-write requests carries, then find the list item of unanimity; If the logical block number (LBN) that carries without any the logical block number (LBN) 401 and the read-write requests of list item equates, then there is not consistent list item in the corresponding tables unit 302.
If find the corresponding list item 400 of the logical block consistent with the logical block number (LBN) that comprises in this read-write requests, then read and write according to corresponding physical storage block in numbers 402 pairs logical volume physical store resources 303 of the physical storage block in the list item, finish read-write requests.If do not find consistent list item, then this read-write requests processor unit 301 will be finished read-write requests in conjunction with basic volume record and this logical volume and its interactive interface unit 304, snapped volume record and this logical volume and its interactive interface unit 305.
Which logical volume the basis volume that basis volume record and this logical volume and its interactive interface unit 304 are used to write down local logical volume is, and the interactive interface that provides local logical volume and basis to roll up, this interface is used for the basis volume to be inquired about and revises the logical block record of local logical volume; Send data block from the basis volume to local logical volume and write request; Also being used for local logical volume send data block to read request to basis curly hair.
Which logical volume the snapped volume that snapped volume record and this logical volume and its interactive interface unit 305 are used to write down local logical volume is, and interactive interface with these snapped volumes is provided, this interface is used for local logical volume to be inquired about and revises the logical block record of snapped volume; Send data block from local logical volume to snapped volume and write request; Also be used for snapped volume and read request to local logical volume transmission data block.
The basic volume record of General Logic volume is empty, does not promptly have the basis volume; Simultaneously all logical blocks of logical volume have all distributed physical storage block, have promptly deposited all logical block corresponding physical pieces number in the logical block corresponding tables.
In fast photographic system of the present invention, the workflow that this fast photographic system is complete comprises:
Step 10, establishment snapshot.Be an establishing logical volume snapshot in the fast photographic system, this logical volume is called the basis volume, and on behalf of this basis, the snapshot of being created twist in snapshot creation data mode constantly.As shown in Figure 5, the method for establishment snapshot comprises:
Step 11, in fast photographic system, utilize existing storage resources to create a new logical volume, be this logical volume memory allocated resource.Described logical volume comprises read-write requests processor unit, logical block corresponding tables unit, basic volume record and interactive interface unit, snapped volume record and interactive interface unit.
Step 12, utilize logical block corresponding tables unit to create the logical block corresponding tables, when impinging upon initial creation soon, the logical block corresponding tables be empty showing.
Step 13, in the new logical volumes of creating, the basic volume record in basic volume record and the Switch Interface Unit is set to the relevant information of basis volume.
Step 14, add a snapshot record in the snapped volume record of basis volume and the snapped volume record in the Switch Interface Unit, newly the logical volume of Chuan Jianing is set to the snapshot that roll up on the basis.
According to the creation method of snapshot, be the establishing logical volume snapshot, as shown in Figure 2, logical volume 200 is General Logic volume A, for a snapshot of this establishing logical volume is to be numbered 201 logical volume B.Logical volume 201 is snapped volumes of logical volume 200, and logical volume 200 is basis volumes of logical volume 201.A logical volume can be created a plurality of snapshots, and according to the difference of snapshot creation time, on behalf of the basis, snapped volume twist in different data modes constantly.As shown in Figure 2, to being numbered 200 General Logic volume A, after creating snapshot B, created snapshot C again, snapshot C is numbered 202 logical volume.At this moment, logical volume 201 and logical volume 202 all are the snapped volumes of logical volume 100, logical volume 200 is basis volumes of logical volume 201 and logical volume 202, when asynchronism(-nization) that snapshot B and snapshot C are created, the data mode of both represented General Logics volume A may be different, and the content of the data of being preserved among snapshot B and the snapshot C also may be different.Because it is different that basis volume and the logical volume structure of snapped volume there is no, therefore not only can be to General Logic volume establishment snapshot, also can be to the snapshot creation snapshot.As shown in Figure 2, after creating snapshot B for General Logic volume 200, for snapshot B creates snapshot D, snapshot D is numbered 203 logical volume D again, and snapshot D has reflected that snapshot B creates data mode constantly at snapshot D.Same, can also be respectively logical volume D and logical volume E be created being numbered 205 and be numbered 206 logical volume F and logical volume G.
After the user creates snapshot, when user accesses data, can be subjected to the influence of snapshot.Visit to data block in the fast photographic system is to realize that by the read-write requests processing unit in the logical volume read-write requests processing unit is different to the treatment scheme of read request and write request, is described respectively below.
Step 20, user read the data in the logical volume.As shown in Figure 6, the read-write requests processing unit comprises the treatment scheme of logical volume read request:
Step 21, read-write requests processor unit obtain logical block number (LBN) after receiving read request to data block from read request;
Step 22, according to the logical block number (LBN) in the request, in the logical block corresponding tables of logical volume, do inquiry, check logical block number (LBN) that read request comprises whether in the logical block corresponding tables, if inquire, execution in step 24 if do not have, is carried out next step;
Step 23, read request is forwarded to the interactive interface of this logical volume and its basis volume; After the snapped volume interactive interface of basis volume receives this read request, read request is transmitted to the read-write requests processing unit that roll up on the basis, and execution in step 21;
Step 24, search actual storage piece number in the logical block corresponding tables, number finish read operation according to the actual storage piece according to the logical block number (LBN) of being asked.
Because the scope of the logical block number (LBN) of a snapshot and its basis volume is identical, and the logical block corresponding tables of General Logic volume includes the list item of whole logical block number (LBN)s of this logical volume, therefore above-mentioned read operation step is bound to find logical block number (LBN) corresponding physical piece, finally finishes reading of data.
Step 30, user finish write operation to the data in the logical volume.As shown in Figure 7, the read-write requests processing unit comprises the treatment scheme of logical volume write request:
After step 31, read-write requests processing unit are received write request to data block, from write request, obtain the logical block number (LBN) of logical volume logical block to be written, in write request, also comprise the data that will write logical volume;
Step 32, according to logical block number (LBN), obtain the legacy data of logical block to be written by the read operation step;
Step 33, to each snapped volume of the logical volume that will finish write operation, by with the interactive interface unit inquiry snapped volume of snapped volume in whether had the legacy data of logical block to be written, if exist, execution in step 35, otherwise carry out next step;
The legacy data of step 34, the logical block to be written that will read copies in the snapped volume by the interactive interface unit with snapped volume, and adds the list item of logical block corresponding tables in the snapped volume;
Step 35, judge whether that all snapshots all dispose, if, carry out next step, if not, execution in step 33;
Logical block corresponding tables in step 36, the local logical volume of inquiry judges whether to exist the data block that will write, if execution in step 38 if not, is carried out next step;
The data of step 37, the data block that will write write in this logical volume, and add the list item of logical block corresponding tables in the logical volume;
Step 38, be written in the corresponding list item of logical block in this logical block number (LBN) corresponding physical storage block, finish the request of writing according to the data in the write request.
Pass through above-mentioned steps, after a logical block is written into, the snapped volume of this logical volume or originally had data before this logical block writes, the logical block data before perhaps will having write copies in the snapped volume, so the snapped volume data block before this logical volume request is revised again not.The change of data block can not impact relevant snapshot, thereby has guaranteed the data correctness of relevant snapshot.
When the user no longer needs snapshot, realize deletion to snapshot.Because in fast photographic system, the logical volume at the logical volume at snapshot place and primary data place structurally is the same, therefore can unify to be deletion to logical volume to the deletion of snapshot.
Step 40, is as shown in Figure 8 deleted a logical volume and is made up of following steps;
Step 41, with all block copies in the logical volume that will delete in each snapped volume, if certain data block exists in certain snapped volume, then this data block no longer copies in this snapped volume; If the logical volume that will delete does not have snapped volume, then need not to preserve its data block;
Step 42, to all snapped volumes, the snapshot relation of setting up these snapped volumes and will deleting the basis volume of logical volume, the basis volume of these snapped volumes is changed into the basis volume of all deletion logical volumes, if what the logical volume that will delete was preserved is primary data, this logical volume does not have the basis volume, and then the basis volume with snapped volume is made as sky;
Step 43, elimination will be deleted the snapshot relation between logical volume and the basis volume;
The storage resources of step 44, the recovery logical volume of deleting.
In above-mentioned deletion step, since in the deleted logical volume might all be copied in the snapped volume by the data that its snapped volume is visited, and after snapped volume and basis volume set up the snapshot relation, snapped volume obtained the data that need read in can directly rolling up by the basis.Therefore delete step and guaranteed snapshot logical correctness between logical volume.
In sum, the logical volume of the present invention by same structure comes all types logical volume (General Logic volume, based on the snapshot logical volume of a logical volume) in the expression system, and realize snapshot entity (comprising writing and reading of the establishment of snapshot and deletion, snapshot) by unified method, thereby realized a kind of snapshot mechanism, the system that makes not only supports the General Logic volume is created snapshot, and can create snapshot to snapshot self; And each logical volume can both support read-write to use in the fast photographic system.System has adopted unified Snapshot Method to various logic volume, but makes this snapshot logic iteration (promptly no matter the snapshot logical volume is based on the snapshot which kind of logical volume generates, and fast photographic system can be created snapshot again based on this snapshot logical volume).Fast photographic system of the present invention has been expanded the application mode and the range of application of snapshot.

Claims (3)

1. fast photographic system, can be the snapshot creation snapshot, it is made up of General Logic volume that comprises primary data and the snapshot logical volume that comprises snapshot, it is characterized in that, the General Logic volume is identical with the structure of snapshot logical volume, and logical volume comprises: read-write requests processing unit (301), logical block corresponding tables unit (302), logical volume physical store resource (303), basic volume record and this logical volume and its interactive interface unit (304), snapped volume record and this logical volume and its interactive interface unit (305); Read-write requests processing unit (301) is used to handle the read-write operation to logical volume; Employed logical block number (LBN) and this logical block corresponding relation between actual physics piece that logical volume is stored number when logical block corresponding tables unit (302) is used for identifying applications access logic volume; Basis volume record and this logical volume and its interactive interface unit (304) are used to write down the basis volume of local logical volume, and provide and the basic interactive interface of rolling up; Snapped volume record and this logical volume and its interactive interface unit (305) are used to write down the snapped volume of local logical volume, and the interactive interface with snapped volume is provided.
2. fast photographic system according to claim 1 is characterized in that, the list item of the stored logical block corresponding tables in described logical block corresponding tables unit (302) comprises logical block number (LBN) (401) and physical storage block number (402).
3. method of supporting the polymorphic type snapshot comprises:
1) snapshot creation step is an establishing logical volume snapshot, and on behalf of this basis, the snapshot of being created twist in snapshot creation data mode constantly;
2) read the snapshot step, read the data in the logical volume of snapshot place;
3) write the snapshot step, snapshot place logical volume is write data;
4) snapshot deletion step, the deletion snapshot reclaims the shared resource of this snapshot;
In the described step 1), snapshot creation comprises:
1-1, utilize existing storage resources to create a new logical volume, be this logical volume memory allocated resource, described logical volume comprises read-write requests processing unit (301), logical block corresponding tables unit (302), basic volume record and this logical volume and its interactive interface unit (304), snapped volume record and this logical volume and its interactive interface unit (305);
1-2, utilize logical block corresponding tables unit (302) to create the logical block corresponding tables, when impinging upon initial creation soon, the logical block corresponding tables be empty showing;
1-3, in the new logical volumes of creating, the basic volume record in basic volume record and the Switch Interface Unit (304) is set to the relevant information of basis volume;
1-4, add a snapshot record in the snapped volume record of basis volume and the snapped volume record in the Switch Interface Unit (305), newly the logical volume of Chuan Jianing is set to the snapshot that roll up on the basis;
Described step 2) in, read the snapshot step and comprise:
2-1, read-write requests processing unit (301) obtain logical block number (LBN) after receiving read request to data block from read request;
2-2, according to the logical block number (LBN) in the request, in the logical block corresponding tables of logical volume, do inquiry, check logical block number (LBN) that read request comprises whether in the logical block corresponding tables, if inquire, execution in step 2-4 if do not have, carries out next step;
2-3, read request is forwarded to the interactive interface of this logical volume and its basis volume; After the snapped volume interactive interface of basis volume receives this read request, read request is transmitted to the read-write requests processing unit that roll up on the basis, and execution in step 2-1;
2-4, search actual storage piece number in the logical block corresponding tables, number finish read operation according to the actual storage piece according to the logical block number (LBN) of being asked;
In the described step 3), write the snapshot step and comprise:
After 3-1, read-write requests processing unit (301) are received write request to data block, from write request, obtain the logical block number (LBN) of logical volume logical block to be written, in write request, also comprise the data that will write logical volume;
3-2, according to logical block number (LBN), obtain the legacy data of logical block to be written by the read operation step;
3-3, to each snapped volume of the logical volume that will finish write operation, by with the interactive interface unit inquiry snapped volume of snapped volume in whether had the legacy data of logical block to be written, if exist, execution in step 3-5, otherwise carry out next step;
The legacy data of 3-4, the logical block to be written that will read copies in the snapped volume by the interactive interface unit with snapped volume, and adds the list item of logical block corresponding tables in the snapped volume;
3-5, judge whether that all snapshots all dispose, if, carry out next step, if not, execution in step 3-3;
Logical block corresponding tables in 3-6, the local logical volume of inquiry judges whether to exist the data block that will write, if execution in step 3-8 if not, carries out next step;
The data of 3-7, the data block that will write write in this logical volume, and add the list item of logical block corresponding tables in the logical volume;
3-8, the data in the write request are written in the corresponding list item of logical block in this logical block number (LBN) corresponding physical storage block, finish the request of writing;
In the described step 4), snapshot deletion step comprises:
4-1, with all block copies in the logical volume that will delete in each snapped volume, if certain data block exists in certain snapped volume, then this data block no longer copies in this snapped volume; If the logical volume that will delete does not have snapped volume, then need not to preserve its data block;
4-2, to all snapped volumes, the snapshot relation of setting up these snapped volumes and will deleting the basis volume of logical volume, the basis volume of these snapped volumes is changed into the basis volume of all deletion logical volumes, if what the logical volume that will delete was preserved is primary data, this logical volume does not have the basis volume, and then the basis volume with snapped volume is made as sky;
4-3, elimination will be deleted the snapshot relation between logical volume and the basis volume;
The storage resources of 4-4, the recovery logical volume of deleting.
CNB2005100838607A 2005-07-12 2005-07-12 Fast photographic system and method Active CN100405310C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100838607A CN100405310C (en) 2005-07-12 2005-07-12 Fast photographic system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100838607A CN100405310C (en) 2005-07-12 2005-07-12 Fast photographic system and method

Publications (2)

Publication Number Publication Date
CN1896960A CN1896960A (en) 2007-01-17
CN100405310C true CN100405310C (en) 2008-07-23

Family

ID=37609490

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100838607A Active CN100405310C (en) 2005-07-12 2005-07-12 Fast photographic system and method

Country Status (1)

Country Link
CN (1) CN100405310C (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100541441C (en) * 2007-11-09 2009-09-16 中国科学院计算技术研究所 A kind of snapshot creation of computer file system, deletion and amending method
CN100573480C (en) * 2008-02-29 2009-12-23 中国科学院计算技术研究所 A kind of hard disk data protection method and system
JP5543026B2 (en) * 2011-02-02 2014-07-09 株式会社日立製作所 Storage system and data control method thereof
CN107179964A (en) * 2016-03-11 2017-09-19 中兴通讯股份有限公司 The reading/writing method and device of snapshot
CN107423233B (en) * 2017-07-19 2020-09-25 杭州宏杉科技股份有限公司 Writable snapshot implementation method and device
CN109117308A (en) * 2018-07-27 2019-01-01 华为技术有限公司 The method and apparatus of snapshot processing
CN110489273A (en) * 2019-07-05 2019-11-22 苏州浪潮智能科技有限公司 A kind of storage backup method, system, terminal and storage medium based on SAN
CN110502187B (en) * 2019-07-09 2020-12-04 华为技术有限公司 Snapshot rollback method and device
CN111552437B (en) * 2020-04-22 2024-03-15 上海天玑科技股份有限公司 Snapshot method and snapshot device applied to distributed storage system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003048941A1 (en) * 2001-11-29 2003-06-12 Emc Corporation Preserving a snapshot of selected data of a mass storage system
CN1435782A (en) * 2002-01-31 2003-08-13 百度在线网络技术(北京)有限公司 Method for recording and analysis of information over network by snap shot mode
CN1452738A (en) * 2000-04-24 2003-10-29 微软公司 Method and system for providing common coordination and administration of multiple snapshot providers
US20040083345A1 (en) * 2002-10-24 2004-04-29 Kim Young Ho System and method of an efficient snapshot for shared large storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1452738A (en) * 2000-04-24 2003-10-29 微软公司 Method and system for providing common coordination and administration of multiple snapshot providers
WO2003048941A1 (en) * 2001-11-29 2003-06-12 Emc Corporation Preserving a snapshot of selected data of a mass storage system
CN1435782A (en) * 2002-01-31 2003-08-13 百度在线网络技术(北京)有限公司 Method for recording and analysis of information over network by snap shot mode
US20040083345A1 (en) * 2002-10-24 2004-04-29 Kim Young Ho System and method of an efficient snapshot for shared large storage

Also Published As

Publication number Publication date
CN1896960A (en) 2007-01-17

Similar Documents

Publication Publication Date Title
CN100405310C (en) Fast photographic system and method
US20190258587A1 (en) Persistent memory for key-value storage
CN103765393B (en) Storage system
US9727452B2 (en) Distributing metadata across multiple different disruption regions within an asymmetric memory system
US6119208A (en) MVS device backup system for a data processor using a data storage subsystem snapshot copy capability
US5664160A (en) Computer program product for simulating a contiguous addressable data space
JP4028820B2 (en) Method and apparatus for selective caching of transactions in a computer system
CN105549905A (en) Method for multiple virtual machines to access distributed object storage system
CN109445685B (en) User mode file system processing method
CN105224528B (en) Big data processing method and device based on graph calculation
CN102929884A (en) Method and device for compressing virtual hard disk image file
CN101571815A (en) Information system and I/O processing method
CN101853254A (en) Method and device for mounting file or catalogue to local or remote host
US7133987B2 (en) Storage system and snapshot management method thereof
CN111007990B (en) Positioning method for quickly positioning data block references in snapshot system
JP4480479B2 (en) Storage system
JP2009245004A (en) Bidirectional data arrangement system, access analysis server, data movement server, bidirectional data arrangement method and program
JP4854973B2 (en) Storage control program, storage control method, storage control device, and storage control system
CN100403269C (en) Method, system for managing information on relationships between target volumes
EP1967968A1 (en) Sharing of database objects
US9535796B2 (en) Method, apparatus and computer for data operation
JP4394467B2 (en) Storage system, server apparatus, and preceding copy data generation method
US6996687B1 (en) Method of optimizing the space and improving the write performance of volumes with multiple virtual copies
US20100228787A1 (en) Online data volume deletion
US9690886B1 (en) System and method for a simulation of a block storage system on an object storage system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant