CN107391396A - The data partition method and writeable fast photographing device of a kind of writeable fast photographing device - Google Patents

The data partition method and writeable fast photographing device of a kind of writeable fast photographing device Download PDF

Info

Publication number
CN107391396A
CN107391396A CN201710625184.4A CN201710625184A CN107391396A CN 107391396 A CN107391396 A CN 107391396A CN 201710625184 A CN201710625184 A CN 201710625184A CN 107391396 A CN107391396 A CN 107391396A
Authority
CN
China
Prior art keywords
data
writeable
photographing device
space
fast photographing
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.)
Granted
Application number
CN201710625184.4A
Other languages
Chinese (zh)
Other versions
CN107391396B (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710625184.4A priority Critical patent/CN107391396B/en
Publication of CN107391396A publication Critical patent/CN107391396A/en
Application granted granted Critical
Publication of CN107391396B publication Critical patent/CN107391396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/02Addressing or allocation; Relocation
    • G06F12/06Addressing a physical block of locations, e.g. base addressing, module addressing, memory dedication
    • G06F12/0646Configuration or reconfiguration
    • G06F12/0653Configuration or reconfiguration with centralised address assignment

Abstract

The invention discloses a kind of data partition method of writeable fast photographing device and writeable fast photographing device, this method to include:Receive the data of default logical block addresses;If writing copy data headed by data, the head in the space of writeable fast photographing device writes space data storage corresponding to the distribution of copy area, and establishes the mapping that logical block addresses write the corresponding space of copy area distribution with head;If data, which are main frame application, writes data, space data storage corresponding to the host services area distribution in the space of writeable fast photographing device, and establish the mapping in the corresponding space that logical block addresses are distributed with host services area;The present invention utilizes the logical partition inside writeable fast photographing device, head is write into copy data and writes data partition storage with main frame application, and the logically mapping of partitioned organization metadata, the data acquisition system of snapshot time is done so as to ensure that writeable fast photographing device can both store first copy data of writing, while data can be write with storage host application again.

Description

The data partition method and writeable fast photographing device of a kind of writeable fast photographing device
Technical field
The present invention relates to data center's calamity for technical field, more particularly to a kind of data partition method of writeable fast photographing device And writeable fast photographing device.
Background technology
Snapshot is a kind of calamity for technology, and on specifying a completely available copy of data acquisition system, the copy includes corresponding Image of the data at some time point (time point that copy starts).Snapshot can be a copy of the data represented by it, Can also be a duplicate of data.
In the prior art, industry writes the snapshot in copy implementation in head, receives to write for the first time after snapshot is created and asks Ask rear, it is necessary to first carry out the data read-out of correspondence position, be then stored in other positions and go, finally again write new write request Go.So, for writeable fast photographing device, if same position is accessed by main frame application write request, main frame application will be made to write data Covering head writes copy data, causes first copy data of writing completely to preserve the data acquisition system for doing snapshot time.Therefore, how to protect The first data acquisition system write copy data and do snapshot time can both have been stored by demonstrate,proving writeable fast photographing device, while can be answered again with storage host With data are write, be now urgent need to resolve the problem of.
The content of the invention
It is an object of the invention to provide a kind of data partition method of writeable fast photographing device and writeable fast photographing device, to utilize Logical partition inside writeable fast photographing device, head is write into copy data and writes data partition storage with main frame application, is improved in data The performance of heart snapshot, improve the competitiveness of data center.
In order to solve the above technical problems, the present invention provides a kind of data partition method of writeable fast photographing device, including:
Receive the data of default logical block addresses;
If writing copy data headed by the data, it is corresponding that the head in the space of writeable fast photographing device writes copy area distribution Space store the data, and establish the logical block addresses and write reflecting for the corresponding space distributed copy area with the head Penetrate;
If the data, which are main frame application, writes data, the host services in the space of the writeable fast photographing device are distinguished The data are stored with corresponding space, and establish the corresponding sky that the logical block addresses are distributed with the host services area Between mapping.
Optionally, before the data for receiving default logical block addresses, in addition to:
Logical partition is carried out to the space of the writeable fast photographing device, the space of the writeable fast photographing device is divided into institute State head and write copy area and the host services area.
Optionally, the space of the writeable fast photographing device is specially linear address space.
In addition, present invention also offers a kind of writeable fast photographing device, including:
Receiving module, for receiving the data of default logical block addresses;
First memory module, if for writing copy data headed by the data, in the space of writeable fast photographing device Head writes the storage data in space corresponding to the distribution of copy area, and establishes the logical block addresses and write copy differentiation with the head The mapping in the corresponding space matched somebody with somebody;
Second memory module, if being that data are write in main frame application for the data, in the sky of the writeable fast photographing device Between in the distribution of host services area corresponding to space store the data, and establish the logical block addresses and taken with the main frame The mapping in the corresponding space of business area distribution.
Optionally, the device also includes:
Division module, for carrying out logical partition to the space of the writeable fast photographing device, by the writeable fast photographing device Space be divided into the head and write copy area and the host services area.
A kind of data partition method of writeable fast photographing device provided by the present invention, including:Receive default logical blocks The data of address;If writing copy data headed by data, it is corresponding that the head in the space of writeable fast photographing device writes copy area distribution Space data storage, and establish the mapping in logical block addresses and the first corresponding space for writing copy area distribution;If data are Data are write in main frame application, then space data storage corresponding to the host services area distribution in the space of writeable fast photographing device, and Establish the mapping in the corresponding space that logical block addresses are distributed with host services area;
Distribute and correspond to it can be seen that the present invention writes copy area or host services area by the head in the space of writeable fast photographing device Space storage head write copy data or main frame application write data, can utilize writeable fast photographing device inside logical partition, will Head writes copy data and writes data partition storage with main frame application;By establishing, logical block addresses write copy area with head or main frame takes Be engaged in area's distribution corresponding space mapping, can logically partitioned organization metadata mapping, so as to ensure writeable snapshot Device can both store first copy data of writing and do the data acquisition system of snapshot time, while can write data with storage host application again, The performance of data center's snapshot is improved, improves the competitiveness of data center.To be filled in addition, present invention also offers a kind of writeable snapshot Put, equally with above-mentioned beneficial effect.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this The embodiment of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis The accompanying drawing of offer obtains other accompanying drawings.
A kind of flow chart of the data partition method for writeable fast photographing device that Fig. 1 is provided by the embodiment of the present invention;
A kind of data storage signal of the data partition method for writeable fast photographing device that Fig. 2 is provided by the embodiment of the present invention Figure;
A kind of structure chart for writeable fast photographing device that Fig. 3 is provided by the embodiment of the present invention.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is Part of the embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
It refer to Fig. 1, a kind of stream of the data partition method for writeable fast photographing device that Fig. 1 is provided by the embodiment of the present invention Cheng Tu.This method can include:
Step 101:Receive the data of default logical block addresses.
Wherein, for the concrete mode of this step, can voluntarily be set according to practical scene and user's request by designer Put, such as can be by the way of similar to prior art, the present embodiment does not do any restrictions to this.
Step 102:If writing copy data headed by data, the head in the space of writeable fast photographing device writes copy area distribution Corresponding space data storage, and establish the mapping that logical block addresses write the corresponding space of copy area distribution with head.
Wherein, the space of writeable fast photographing device can be a linear address space, can carry out this linear address space Logical partition, copy area and host services area are write headed by division;Other subregions can also be marked off.Can as long as can mark off To store the Liang Ge areas that head writes copy data and data are write in main frame application respectively, for specific dividing mode and the sky marked off Between size, can voluntarily be set according to practical scene and user's request by designer, the present embodiment does not do any limit to this System.
Step 103:If data, which are main frame application, writes data, the host services in the space of writeable fast photographing device are distinguished With corresponding space data storage, and establish the mapping in the corresponding space that logical block addresses are distributed with host services area.
It is understood that step 102 and step 103 can be with as shown in Fig. 2 snapshot (writeable fast photographing device) ought be established Afterwards, when the head for receiving default logical block addresses Lba1 writes copy data, space corresponding to the distribution of copy area can be write in head P1 storages head writes copy data, and establishes Lba1->P1 mapping.Similarly, can when main frame application writes data to Lba1 To write data in space p4 storage host applications corresponding to the distribution of host services area, and establish lba1->P4 mapping, so may be used So that head writes copy data and data are write in main frame application by isolating, the data of snapshot time are done so as to ensure that snapshot can both store Set can receive main frame application write access simultaneously again.
In the present embodiment, the embodiment of the present invention writes copy area by the head in the space of writeable fast photographing device or main frame takes Space storage head writes copy data corresponding to the distribution of business area or data are write in main frame application, can utilize inside writeable fast photographing device Logical partition, head is write into copy data and writes data partition storage with main frame application;Write by establishing logical block addresses and copied with head The mapping in the corresponding space of Bei Qu or the distribution of host services area, can logically partitioned organization metadata mapping, so as to Ensure that writeable fast photographing device can both store the first data acquisition system write copy data and do snapshot time, while again can be with storage host Using data are write, the performance of data center's snapshot is improved, improves the competitiveness of data center.
It refer to Fig. 3, a kind of structure chart for writeable fast photographing device that Fig. 3 is provided by the embodiment of the present invention.The device can With including:
Receiving module 100, for receiving the data of default logical block addresses;
First memory module 200, if for writing copy data headed by data, the head in the space of writeable fast photographing device Space data storage corresponding to the distribution of copy area is write, and establishes the corresponding space that logical block addresses write copy area distribution with head Mapping;
Second memory module 300, if being that data are write in main frame application for data, in the space of writeable fast photographing device Space data storage corresponding to the distribution of host services area, and establish the corresponding sky that logical block addresses are distributed with host services area Between mapping.
Optionally, the device can also include:
Division module, for carrying out logical partition to the space of writeable fast photographing device, the space of writeable fast photographing device is drawn It is divided into head and writes copy area and host services area.
In the present embodiment, the embodiment of the present invention is by the first memory module 200 and the second memory module 300, writeable fast According to the head in the space of device write copy area or host services area distribution corresponding to space storage head write copy data or main frame should With data are write, the logical partition inside writeable fast photographing device can be utilized, head is write into copy data and writes data point with main frame application Deposit in area;, can by establishing logical block addresses and the first mapping for writing the corresponding space that copy area or host services area distribute With the mapping of logically partitioned organization metadata, done soon so as to ensure that writeable fast photographing device can both store head and write copy data According to the data acquisition system at moment, while data can be write with storage host application again, improve the performance of data center's snapshot, improve data The competitiveness at center.
Each embodiment is described by the way of progressive in specification, and what each embodiment stressed is and other realities Apply the difference of example, between each embodiment identical similar portion mutually referring to.For device disclosed in embodiment Speech, because it is corresponded to the method disclosed in Example, so description is fairly simple, related part is referring to method part illustration .
Professional further appreciates that, with reference to the unit of each example of the embodiments described herein description And algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, in order to clearly demonstrate hardware and The interchangeability of software, the composition and step of each example are generally described according to function in the above description.These Function is performed with hardware or software mode actually, application-specific and design constraint depending on technical scheme.Specialty Technical staff can realize described function using distinct methods to each specific application, but this realization should not Think beyond the scope of this invention.
Directly it can be held with reference to the step of method or algorithm that the embodiments described herein describes with hardware, processor Capable software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The data partition method to writeable fast photographing device provided by the present invention and writeable fast photographing device have been carried out in detail above It is thin to introduce.Specific case used herein is set forth to the principle and embodiment of the present invention, and above example is said It is bright to be only intended to help the method and its core concept for understanding the present invention.It should be pointed out that the ordinary skill for the art For personnel, under the premise without departing from the principles of the invention, some improvement and modification, these improvement can also be carried out to the present invention Also fallen into modification in the protection domain of the claims in the present invention.

Claims (5)

  1. A kind of 1. data partition method of writeable fast photographing device, it is characterised in that including:
    Receive the data of default logical block addresses;
    If writing copy data headed by the data, the head in the space of writeable fast photographing device writes empty corresponding to the distribution of copy area Between store the data, and establish the mapping that the logical block addresses and the head write the corresponding space of copy area distribution;
    If the data, which are main frame application, writes data, the host services in the space of the writeable fast photographing device distinguish pairing The space answered stores the data, and establishes the corresponding space that the logical block addresses are distributed with the host services area Mapping.
  2. 2. the data partition method of writeable fast photographing device according to claim 1, it is characterised in that the reception is default Before the data of logical block addresses, in addition to:
    Logical partition is carried out to the space of the writeable fast photographing device, the space of the writeable fast photographing device is divided into the head Write copy area and the host services area.
  3. 3. the data partition method of writeable fast photographing device according to claim 2, it is characterised in that the writeable snapshot dress The space put is specially linear address space.
  4. A kind of 4. writeable fast photographing device, it is characterised in that including:
    Receiving module, for receiving the data of default logical block addresses;
    First memory module, if for writing copy data headed by the data, the head in the space of writeable fast photographing device writes Space corresponding to the distribution of copy area stores the data, and establishes the logical block addresses and write copy area distribution with the head The mapping in corresponding space;
    Second memory module, if being that data are write in main frame application for the data, in the space of the writeable fast photographing device The distribution of host services area corresponding to space store the data, and establish the logical block addresses and the host services area The mapping in the corresponding space of distribution.
  5. 5. writeable fast photographing device according to claim 4, it is characterised in that also include:
    Division module, for carrying out logical partition to the space of the writeable fast photographing device, by the sky of the writeable fast photographing device Between be divided into the head and write copy area and the host services area.
CN201710625184.4A 2017-07-27 2017-07-27 Data partitioning method of snapshot-writable device and snapshot-writable device Active CN107391396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710625184.4A CN107391396B (en) 2017-07-27 2017-07-27 Data partitioning method of snapshot-writable device and snapshot-writable device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710625184.4A CN107391396B (en) 2017-07-27 2017-07-27 Data partitioning method of snapshot-writable device and snapshot-writable device

Publications (2)

Publication Number Publication Date
CN107391396A true CN107391396A (en) 2017-11-24
CN107391396B CN107391396B (en) 2020-10-23

Family

ID=60342623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710625184.4A Active CN107391396B (en) 2017-07-27 2017-07-27 Data partitioning method of snapshot-writable device and snapshot-writable device

Country Status (1)

Country Link
CN (1) CN107391396B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101140542A (en) * 2007-10-19 2008-03-12 华中科技大学 Method for copying snapshot writing response time in the time of shortening writing time
CN101174231A (en) * 2006-11-03 2008-05-07 英业达股份有限公司 Snap backup method
US20110161298A1 (en) * 2009-12-29 2011-06-30 Grobman Steven L System and method for opportunistic re-imaging using cannibalistic storage techniques on sparse storage devices
US20150193315A1 (en) * 2014-01-07 2015-07-09 Electronics And Telecommunications Research Institute Method and device for managing multiple snapshots of data strorage device
CN105988895A (en) * 2015-02-10 2016-10-05 中兴通讯股份有限公司 Snapshot processing method and device
US20170139840A1 (en) * 2015-11-12 2017-05-18 International Business Machines Corporation Memory mapping for object-based storage devices

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174231A (en) * 2006-11-03 2008-05-07 英业达股份有限公司 Snap backup method
CN101140542A (en) * 2007-10-19 2008-03-12 华中科技大学 Method for copying snapshot writing response time in the time of shortening writing time
US20110161298A1 (en) * 2009-12-29 2011-06-30 Grobman Steven L System and method for opportunistic re-imaging using cannibalistic storage techniques on sparse storage devices
US20150193315A1 (en) * 2014-01-07 2015-07-09 Electronics And Telecommunications Research Institute Method and device for managing multiple snapshots of data strorage device
CN105988895A (en) * 2015-02-10 2016-10-05 中兴通讯股份有限公司 Snapshot processing method and device
US20170139840A1 (en) * 2015-11-12 2017-05-18 International Business Machines Corporation Memory mapping for object-based storage devices

Also Published As

Publication number Publication date
CN107391396B (en) 2020-10-23

Similar Documents

Publication Publication Date Title
US9298384B2 (en) Method and device for storing data in a flash memory using address mapping for supporting various block sizes
EP3115903B1 (en) File accessing method and related device
US9152349B2 (en) Automated information life-cycle management with thin provisioning
JP2017091545A (en) Multimode storage management apparatus, multimode storage apparatus, and selective underlying exposure (sue) mapping operation method therefor
US7783854B2 (en) System and method for expandable non-volatile storage devices
US9922039B1 (en) Techniques for mitigating effects of small unaligned writes
CN110187999A (en) Address mapping data backup method and device
WO2009122743A1 (en) Access device, information recording device, information recording system, file management method, and program
US6351792B1 (en) Selective remote storage copy system and methods
CN106201923A (en) Method for reading and writing data and device
CN109491605A (en) A kind of date storage method based on COW, device and medium
CN111176896A (en) File backup method and device and terminal equipment
CN107479834A (en) A kind of file memory method and device based on COS
CN107506466A (en) A kind of small documents storage method and system
US8082230B1 (en) System and method for mounting a file system on multiple host computers
US20150347320A1 (en) ENCRYPTION FOR SOLID STATE DRIVES (SSDs)
US9875190B2 (en) Delegated media translation layer in a storage appliance
US20200272520A1 (en) Stack management
US7627716B2 (en) Method, system, and program for an adaptor to read and write to system memory
CN107391396A (en) The data partition method and writeable fast photographing device of a kind of writeable fast photographing device
KR102094786B1 (en) File system and method of storing files based on the file system
CN106598475A (en) Method and device for switching partitions
CN109508150A (en) A kind of method and apparatus of memory allocation
CN108984124A (en) Reduce the method, apparatus, computer equipment and storage medium for writing amplification
CN111913664B (en) Data writing 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200922

Address after: 215100 No. 1 Guanpu Road, Guoxiang Street, Wuzhong Economic Development Zone, Suzhou City, Jiangsu Province

Applicant after: SUZHOU LANGCHAO INTELLIGENT TECHNOLOGY Co.,Ltd.

Address before: 450018 Henan province Zheng Dong New District of Zhengzhou City Xinyi Road No. 278 16 floor room 1601

Applicant before: ZHENGZHOU YUNHAI INFORMATION TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant