CN101436152B - Method and device for data backup - Google Patents

Method and device for data backup Download PDF

Info

Publication number
CN101436152B
CN101436152B CN200810180577XA CN200810180577A CN101436152B CN 101436152 B CN101436152 B CN 101436152B CN 200810180577X A CN200810180577X A CN 200810180577XA CN 200810180577 A CN200810180577 A CN 200810180577A CN 101436152 B CN101436152 B CN 101436152B
Authority
CN
China
Prior art keywords
data
lba
group
logical block
block addressing
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.)
Expired - Fee Related
Application number
CN200810180577XA
Other languages
Chinese (zh)
Other versions
CN101436152A (en
Inventor
张宗全
申立
Original Assignee
Huawei Symantec 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 Symantec Technologies Co Ltd filed Critical Huawei Symantec Technologies Co Ltd
Priority to CN200810180577XA priority Critical patent/CN101436152B/en
Publication of CN101436152A publication Critical patent/CN101436152A/en
Application granted granted Critical
Publication of CN101436152B publication Critical patent/CN101436152B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a method and a device for data backup. The method comprises the following steps of receiving a backup commands carrying a source logic-block address set and an objective logic-block address set, storing data in the source logic-block address set to a high-speed cache memory inside a solid-state hard disk according to the backup commands, and storing the data in the high-speed cache memory to the objective logic-block address set. In the embodiment of the invention, as the internal data backup of the solid-state hard disk is realized by use of the high-speed cache memory inside the solid-state hard disk, data interaction with the cache of a host is not needed, so that the speed of data backup is raised.

Description

A kind of method and apparatus of data backup
Technical field
The present invention relates to communication technical field, relate in particular to a kind of method and apparatus of data backup.
Background technology
The advantages such as solid state hard disc has the readwrite performance height, and shock resistance is strong, and the power supply expense is little are widely used in the fields such as military affairs, vehicle-mounted, industry control, video monitoring, network monitoring, the network terminal, electric power, medical treatment, aviation etc., navigator.
Data buffer storage in the source LBA (Logical Block Addressing) group that needs will need first to back up in the process of the data in the solid state hard disc being carried out the internal data backup is in the cache memory of solid state hard disc inside, then the data in the cache memory are read out and are written in the buffer memory of main frame, and then the data of storing in the buffer memory with main frame read out and write back in the cache memory of solid state hard disc inside, at last the data in the cache memory are read out and are written in the purpose LBA (Logical Block Addressing) group of solid state hard disc.
In realizing process of the present invention, the inventor finds to exist in the prior art following shortcoming:
In the prior art, the process need that the data in the solid state hard disc are carried out internal data backup carries out data interaction by the buffer memory with main frame to be realized, has reduced the speed of data backup.
Summary of the invention
The embodiment of the invention provides a kind of method and apparatus of data backup, has improved the speed of data backup.
The embodiment of the invention provides a kind of method of data backup, may further comprise the steps:
The backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group is carried in reception;
According to described backup command the data in the LBA (Logical Block Addressing) group of described source are stored in the cache memory of solid state hard disc inside;
Data in the described cache memory are stored in the described purpose LBA (Logical Block Addressing) group, realize the internal data backup of solid state hard disc, the data backup of described realization solid state hard disc inside need not to carry out exchanges data with the buffer memory of main frame.
The embodiment of the invention provides a kind of device of realizing data backup, comprises receiving element, cache memory and processing unit, wherein
Described receiving element is used for receiving and carries the backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group;
Described processing unit, store in the cache memory of solid state hard disc inside for the data of the backup command that receives according to described receiving element with described source LBA (Logical Block Addressing) group, data in the cache memory are stored in the described purpose LBA (Logical Block Addressing) group, realize the internal data backup of solid state hard disc, the data backup of described realization solid state hard disc inside need not to carry out exchanges data with the buffer memory of main frame.
In the embodiments of the invention, utilize the cache memory of solid state hard disc inside to realize that the internal data of solid state hard disc backs up, need not to carry out data interaction with the buffer memory of main frame, improved the speed of data backup.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow diagram of a kind of data backup in the embodiment of the invention;
Fig. 2 is a kind of structure drawing of device of realizing data backup in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The embodiment of the invention provides a kind of method of data backup, as shown in Figure 1, may further comprise the steps:
Step 101 receives and carries the backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group.
Wherein, described backup command can be COPY_BACK order newly-increased in ATA (Advanced Technology Attachment, Advanced Technology Attachment) agreement.
Wherein, can in COPY_BACK order, carry each LBA (Logical Block Addressing) value in the logical address group; Also can in the COPY_BACK order, carry initial logical address value and the data length value of logical address group.
Because need to comprise at least two LBA (Logical Block Address, LBA (Logical Block Addressing)) value in the backup command, and the independent order that main frame issues can only be transmitted a LBA value to solid state hard disc, therefore the transmission of this order can not once be finished.Main frame can resolve into the COPY_BACK order two decomposition orders and issue, the command code of twice transmitting order to lower levels can be the same or different (but command code self-defining), also need simultaneously to have two of expressions to decompose the command id that order belongs to same COPY_BACK order, solid state hard disc can decompose order according to this two of command id identification and belong to same COPY_BACK order.Can set in addition two ordinal numbers that decompose order, source LBA (Logical Block Addressing) group information is carried in the decomposition order that ordinal number is lower, target logic block address group information is carried in the decomposition order that ordinal number is higher, and solid state hard disc can be according to two ordinal number identification source LBA (Logical Block Addressing) group and target logic block address groups of decomposing order.
Table 1 is that a simple COPY_BACK decomposes order.
Table 1.COPY_BACK decomposes order
Figure G200810180577XD0003180622QIETU
Wherein, PRE is the ordinal number that COPY_BACK decomposes order;
Wherein, Tag is command id, and two that belong to same COPY_BACK order are decomposed the identical command id of order needs employing;
Wherein, Sector count is for needing the data length of backup;
Wherein, LBA is LBA (Logical Block Addressing);
Wherein, F0 is the COPY_BACK command code.
The COPY_BACK that table 2 and table 3 are based on table 1 definition decomposes two decomposition orders of ordering.
Table 2. article one is decomposed order
Figure G200810180577XD00041
Table 3. second decomposes order
Figure G200810180577XD00042
Then the COPY_BACK order implication of table 2 and table 3 expression is as follows:
Be 0x0 with initial LBA address, data length is that to backup to initial LBA address be to get in the address of 0xFFFF to the data of 6 SECTOR.
Step 102 stores the data in the LBA (Logical Block Addressing) group of described source in the cache memory of solid state hard disc inside into according to backup command.
Wherein, according to comprising in the described cache memory that data in the LBA (Logical Block Addressing) group of source is stored into solid state hard disc inside of backup command:
Read the data in the LBA (Logical Block Addressing) group of described source;
The data that read are written in the described cache memory.
Step 103 stores the data in the described cache memory in the described purpose LBA (Logical Block Addressing) group into.
Wherein, described data in the cache memory are stored in the described purpose LBA (Logical Block Addressing) group comprises:
Read the data in the described cache memory;
The data that read are written in the described purpose LBA (Logical Block Addressing) group.
In the embodiments of the invention, utilize the cache memory of solid state hard disc inside to realize that the internal data of solid state hard disc backs up, need not to carry out data interaction with the buffer memory of main frame, improved the speed of data backup.
The embodiment of the invention provides a kind of device of realizing data backup, as shown in Figure 2, comprises receiving element 201, cache memory 202 and processing unit 203, wherein,
Receiving element 201 is used for receiving and carries the backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group;
Processing unit 203 stores in the cache memory 202 for the data of the backup command that receives according to receiving element 201 with described source LBA (Logical Block Addressing) group, and the data in the cache memory 202 are stored in the described purpose LBA (Logical Block Addressing) group.
Wherein, described backup command can be COPY_BACK order newly-increased in the ATA agreement.
Wherein, processing unit 203 comprises:
Read subelement 2031, be used for reading the data of described source LBA (Logical Block Addressing) group;
Write subelement 2032, be used for to read the data that subelement 2031 reads and be written to cache memory 202.
Wherein,
Read subelement 2031, also be used for reading the data of cache memory 202;
Write subelement 2032, also be used for to read the data that subelement 2031 reads and write described purpose LBA (Logical Block Addressing) group.
Wherein, the device of described realization data backup can be solid state hard disc.
In the embodiments of the invention, utilize the cache memory of solid state hard disc inside to realize that the internal data of solid state hard disc backs up, need not to carry out data interaction with the buffer memory of main frame, improved the speed of data backup.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform, based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
In a word, the above is preferred embodiment of the present invention only, is not for limiting protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (7)

1. the method for a data backup is characterized in that, may further comprise the steps:
The backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group is carried in reception, described backup command is COPY_BACK order newly-increased in Advanced Technology Attachment ATA agreement, described COPY_BACK order comprises that two are decomposed order, and described source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group are carried respectively in described two decomposition orders;
According to described backup command the data in the LBA (Logical Block Addressing) group of described source are stored in the cache memory of solid state hard disc inside;
Data in the described cache memory are stored in the described purpose LBA (Logical Block Addressing) group, realize the internal data backup of solid state hard disc, the data backup of described realization solid state hard disc inside need not to carry out exchanges data with the buffer memory of main frame.
2. the method for claim 1 is characterized in that, described two decomposition command sets have identical command id, and described command id is used for identifying described two decomposition orders and belongs to same COPY_BACK order.
3. method as claimed in claim 1 or 2 is characterized in that, comprises in the described cache memory that the data in the LBA (Logical Block Addressing) group of source is stored into solid state hard disc inside according to described backup command:
Read data in the LBA (Logical Block Addressing) group of described source according to described backup command;
The data that read are written in the described cache memory.
4. method as claimed in claim 1 or 2 is characterized in that, described data in the cache memory are stored in the described purpose LBA (Logical Block Addressing) group comprises:
Read the data in the described cache memory;
The data that read are written in the described purpose LBA (Logical Block Addressing) group.
5. a device of realizing data backup is characterized in that, comprises receiving element, cache memory and processing unit, wherein
Described receiving element, be used for receiving and carry the backup command of source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group, described backup command is COPY_BACK order newly-increased in Advanced Technology Attachment ATA agreement, described COPY_BACK order comprises that two are decomposed order, and described source LBA (Logical Block Addressing) group and purpose LBA (Logical Block Addressing) group are carried respectively in described two decomposition orders;
Described processing unit, store in the described cache memory for the data of the backup command that receives according to described receiving element with described source LBA (Logical Block Addressing) group, data in the described cache memory are stored in the described purpose LBA (Logical Block Addressing) group, realize the internal data backup of solid state hard disc, the data backup of described realization solid state hard disc inside need not to carry out exchanges data with the buffer memory of main frame.
6. device as claimed in claim 5 is characterized in that, described processing unit comprises:
Read subelement, be used for reading the data of described source LBA (Logical Block Addressing) group;
Write subelement, be used for reading the data that subelement reads and being written to described cache memory described.
7. device as claimed in claim 6 is characterized in that,
The described subelement that reads is also for the data that read described cache memory;
The said write subelement also is used for reading the data that subelement reads and writing described purpose LBA (Logical Block Addressing) group described.
CN200810180577XA 2008-12-02 2008-12-02 Method and device for data backup Expired - Fee Related CN101436152B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200810180577XA CN101436152B (en) 2008-12-02 2008-12-02 Method and device for data backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200810180577XA CN101436152B (en) 2008-12-02 2008-12-02 Method and device for data backup

Publications (2)

Publication Number Publication Date
CN101436152A CN101436152A (en) 2009-05-20
CN101436152B true CN101436152B (en) 2013-01-23

Family

ID=40710599

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200810180577XA Expired - Fee Related CN101436152B (en) 2008-12-02 2008-12-02 Method and device for data backup

Country Status (1)

Country Link
CN (1) CN101436152B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102576293B (en) * 2009-09-08 2015-08-26 国际商业机器公司 Data management in solid storage device and Bedding storage system
CN102298547A (en) * 2011-09-20 2011-12-28 杭州华三通信技术有限公司 Data backup method and device
CN102622307B (en) * 2012-02-27 2016-03-30 记忆科技(深圳)有限公司 The method of operating of hard disc data and hard disk controller
US10817202B2 (en) 2012-05-29 2020-10-27 International Business Machines Corporation Application-controlled sub-LUN level data migration
US10831727B2 (en) 2012-05-29 2020-11-10 International Business Machines Corporation Application-controlled sub-LUN level data migration
US10831728B2 (en) 2012-05-29 2020-11-10 International Business Machines Corporation Application-controlled sub-LUN level data migration
CN102929748B (en) * 2012-11-08 2015-11-25 华为技术有限公司 Data back up method and device
CN102929792B (en) * 2012-11-12 2016-03-30 华为技术有限公司 Data movement method and system, memory device and main frame
CN104281505B (en) * 2013-07-03 2017-07-28 北京联想核芯科技有限公司 Data back up method, device and electronic equipment
CN104346238B (en) * 2013-08-06 2018-12-14 联想(北京)有限公司 A kind of data back up method, device and terminal
DE112013005903T5 (en) * 2013-10-09 2015-09-10 Hitachi, Ltd. Storage system and storage control method
CN103761988B (en) 2013-12-27 2018-01-16 华为技术有限公司 Solid state hard disc and data movement method
CN105760251B (en) * 2014-12-15 2019-04-19 华为技术有限公司 A kind of method and apparatus of Backup Data
CN106528330A (en) * 2016-10-29 2017-03-22 华为技术有限公司 Data backup method, node and data backup system
CN107273306B (en) * 2017-06-19 2021-01-12 苏州浪潮智能科技有限公司 Data reading and writing method for solid state disk and solid state disk
CN111913835A (en) * 2020-07-30 2020-11-10 深圳忆联信息系统有限公司 Data multi-backup storage method and device based on cross mapping, computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1871587A (en) * 2003-10-20 2006-11-29 罗得岛及普罗维登斯属地高等教育管理委员会 Bottom-up cache structure for storage servers

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1871587A (en) * 2003-10-20 2006-11-29 罗得岛及普罗维登斯属地高等教育管理委员会 Bottom-up cache structure for storage servers

Also Published As

Publication number Publication date
CN101436152A (en) 2009-05-20

Similar Documents

Publication Publication Date Title
CN101436152B (en) Method and device for data backup
US9996466B2 (en) Apparatus, system and method for caching compressed data
US9983799B2 (en) Trim command processing method, memory control circuit unit and memory storage apparatus
US10120752B2 (en) Data storage device and data access-method
US8984373B2 (en) Method for accessing flash memory and associated flash memory controller
TWI479491B (en) Memory controlling method, memory controller and memory storage apparatus
JP6102032B2 (en) Method and apparatus for efficiently increasing command queue length for accessing storage
US8892812B2 (en) Flash memory device and data writing method for a flash memory
TW201629774A (en) Caching technologies employing data compression
US20170242787A1 (en) Methods for Scheduling Read Commands and Apparatuses using the Same
CN111061649B (en) Storage space self-adaptive allocation method of memory
CN102136274B (en) Mobile hard disk with two storage media
CN106951374A (en) Method and its device for checking block page address
US8230170B2 (en) Data storage system and control method thereof
US9575885B2 (en) Data storage apparatus for scrambled data and management method thereof
CN102867046B (en) Database optimizing method based on solid state hard disc and system
CN101667458B (en) Method for erasing solid state disk wholly and equipment thereof
CN104731710B (en) Storage management method, memorizer control circuit unit and memorizer memory devices
US20190227712A1 (en) Event-based dynamic memory allocation in a data storage device
CN106873905B (en) The method, apparatus and solid state hard disk of data storage
CN103389941A (en) Memorizer formatting method, memorizer controller and memorizer memory device
CN102543184B (en) Memorizer memory devices, its Memory Controller and method for writing data
US11934264B2 (en) ECC parity biasing for Key-Value data storage devices
CN101425111B (en) Hidden data processing method and device
US10191841B2 (en) Host device, access system, and access method

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
C56 Change in the name or address of the patentee

Owner name: HUAWEI DIGITAL TECHNOLOGY (CHENGDU) CO., LTD.

Free format text: FORMER NAME: CHENGDU HUAWEI SYMANTEC TECHNOLOGIES CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee after: Huawei Symantec Technologies Co., Ltd.

Address before: 611731 Chengdu high tech Zone, Sichuan, West Park, Qingshui River

Patentee before: Chengdu Huawei Symantec Technologies Co., Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20130123

Termination date: 20191202