CN102385542A - Method and device for RAID0 data backup - Google Patents

Method and device for RAID0 data backup Download PDF

Info

Publication number
CN102385542A
CN102385542A CN2011104165160A CN201110416516A CN102385542A CN 102385542 A CN102385542 A CN 102385542A CN 2011104165160 A CN2011104165160 A CN 2011104165160A CN 201110416516 A CN201110416516 A CN 201110416516A CN 102385542 A CN102385542 A CN 102385542A
Authority
CN
China
Prior art keywords
pos
data
write
read
disk
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
CN2011104165160A
Other languages
Chinese (zh)
Other versions
CN102385542B (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.)
BEIHAI YUNSHENG TECHNOLOGY CO.,LTD.
COOLCLOUDZ INFORMATION TECHNOLOGY (WUXI) CO LTD
Original Assignee
SHENZHEN CHUANGXINKE INFORMATION TECHNOLOGY Co Ltd
Clouds Creators Information Technology (wuxi) 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 SHENZHEN CHUANGXINKE INFORMATION TECHNOLOGY Co Ltd, Clouds Creators Information Technology (wuxi) Co Ltd filed Critical SHENZHEN CHUANGXINKE INFORMATION TECHNOLOGY Co Ltd
Priority to CN 201110416516 priority Critical patent/CN102385542B/en
Publication of CN102385542A publication Critical patent/CN102385542A/en
Application granted granted Critical
Publication of CN102385542B publication Critical patent/CN102385542B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method and a device for RAID0 data backup, wherein the method is that every disk in RAID0 is detected according to a set method, so as to determine a high-risk disk in RAID0; data with preset size datasize is sequentially read from the high-risk disk, and a read data position read_pos of the high-risk disk is recorded; the data with the size datasize is stored in a backup disk for backup, a write data position write_pos of the high-risk disk is recorded, an the read data position read_pos is moved to the write data position write_pos; and when external data required to be written into the high risk disk, the external data is determined to be written into the high-risk disk or a backup disk according to the position relationship between the position pos where the external data is required to be written and the write_pos and the read_pos+datasize. Compared with the prior art, the method and the device for RAID0 data backup can effectively replace the high-risk disk in RAID0 under the circumstance that the data written into the high-risk disk of RAID0 is not influenced.

Description

A kind of RAID0 method of data backup and device
Technical field
The present invention relates to data storage technology, particularly a kind of RAID0 method of data backup and device.
Background technology
Raid-array RAID (Redundant Array of Independent Disk) be a kind of polylith independently hard disk (physical hard disk) combine by different modes and form a hard disk groups (logic hard disk), be used to the memory property and the data backup ability that provide higher than single hard disk.According to the various combination mode of disk array, can RAID be divided into different ranks.RAID rank commonly used has: RAID0, RAID1, RAID2, RAID3, RAID4, RAID5, RAID6, RAID01, RAID10 etc., different RAID ranks are corresponding to different performances, capacity and reliability.
For the RAID type is that the disk array of RAID0 is the highest disk array of memory property in all RAID ranks; It is distributed to access on a plurality of disks to continuous data; Like this; When there was request of data in system, a plurality of disks can be carried out concurrently, and each disk is carried out one's own that part of request of data.This data parallel operations can make full use of bus width, significantly improves the whole access performance of disk.
Fig. 1 is a RAID0 data store organisation synoptic diagram of the prior art.As shown in Figure 1, RAID0 has comprised 4 blocks of data dishes, and they are respectively Disk1, Disk2, Disk3 and Disk4.As shown in the figure, the I/O request of data that system sends to RAID 0 disk groups that four disks are formed is converted into 4 operations, and wherein each operation is all corresponding to a physical hard disk.Through setting up RAID0, the request of data of original order is dispersed in four hard disks and carries out simultaneously, and theoretically, the parallel work-flow of four hard disks makes interior disk read-write speed of same time promote 4 times.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
In existing RAID0 date storage method, data redundancy protection can not be provided, if a disk failure among the RAID0 can't recover, thereby influence the reliability of whole data.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of RAID0 method of data backup, can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing, and replaces the high-risk disk among the RAID0 effectively.
Another object of the present invention is to provide a kind of device of RAID0 data backup, can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing, and replaces the high-risk disk among the RAID0 effectively.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of RAID0 method of data backup comprises:
According to preordering method each disk among the RAID0 is detected, confirm the high-risk disk among the said RAID0;
From said high-risk disk, read the data of preset length datasize in order successively, write down the read data position read_pos of said high-risk disk;
With said length is that the data of datasize backup in the backup diskette, writes down the write data position write_pos of said high-risk disk, and said read data position read_pos is moved to write data position write_pos;
When needs when said high-risk disk writes external data, write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.
A kind of device of RAID0 data backup comprises:
Confirm the unit, be used for detecting, confirm the high-risk disk among the said RAID0, send a reading command, comprise the unique identification of said high-risk disk in the said reading command to reading unit according to preordering method each disk to RAID0;
Said reading unit; Be used for after receiving said reading command; From said high-risk disk, reading the data of preset length datasize in order successively, write down the read data position read_pos of said high-risk disk, is that the data of datasize send to backup units with said length;
Said backup units; Being used for said length is that the data of datasize backup to backup diskette; Write down the write data position write_pos of said high-risk disk; Said read data position read_pos is moved to write data position write_pos, write data position write_pos and write data position read_pos are sent to said definite unit;
Said definite unit; Also be used for when needs when said high-risk disk writes external data; Write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.
It is thus clear that; Adopt technical scheme of the present invention; Record read data position read_pos and write data position write_pos in the high-risk disk of RAID0; When needs when said high-risk disk writes external data, write the position relation of position pos and the write_pos and the read_pos+ preset length datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.Compare with prior art, RAID0 method of data backup provided by the invention and device can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing; Replace the high-risk disk among the RAID0 effectively; In addition, the method for the invention implements simple and convenient, is convenient to popularize.
Description of drawings
Fig. 1 is a RAID0 data store organisation synoptic diagram of the prior art.
Fig. 2 is a RAID0 method of data backup process flow diagram of the present invention.
Fig. 3 is the synoptic diagram of the high-risk disk Disk4 of the present invention data back up method.
Fig. 4 is the apparatus structure synoptic diagram of RAID0 data backup of the present invention.
Embodiment
To the problem that exists in the prior art, the RAID0 method of data backup after a kind of the improvement is proposed among the present invention, can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing, and replaces the high-risk disk among the RAID0 effectively.
For make technical scheme of the present invention clearer, understand, below with reference to the accompanying drawing embodiment that develops simultaneously, scheme according to the invention is done to specify further.
Fig. 2 is a RAID0 method of data backup process flow diagram of the present invention.As shown in Figure 2, may further comprise the steps:
Step 201 detects each disk among the RAID0 according to preordering method, confirms the high-risk disk among the RAID0.
In this step, through the hard disk testing tool, for example can be SMART hard disk testing tool, disk Disk1, Disk2, Disk3 and Disk4 among the RAID0 are detected respectively, confirm to be among the RAID0 disk of high-risk status.Suppose in this step, each data disks among the RAID0 is detected, confirm that disk Disk4 is high-risk disk through SMART hard disk testing tool.
Step 202 reads the data of preset length datasize in order successively from high-risk disk, write down the read data position read_pos of high-risk disk.
Fig. 3 is the synoptic diagram of the high-risk disk Disk4 of the present invention data back up method.As shown in Figure 3, if preset length datasize is 2, at first reading of data D4 and D8 in order from high-risk disk Disk4 write down the read data position read_pos of high-risk disk Disk4.
Step 203 is that the data of datasize backup in the backup diskette with length, writes down the write data position write_pos of high-risk disk, and read data position read_pos is moved to write data position write_pos.
In this step; As shown in Figure 3; Data D4 among the high-risk disk Disk4 and D8 are backuped in the backup diskette, write down the write data position write_pos of high-risk disk, and read data position read_pos is moved to write data position write_pos; At this moment, read data position read_pos among the high-risk disk Disk4 and write data position write_pos are on same position.
Step 204, when needs when high-risk disk writes external data, write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm external data is written in high-risk disk or the backup diskette.
In this step; When needs when high-risk disk Disk4 writes external data; Write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm external data is written in high-risk disk Disk4 or the backup diskette.Particularly, when needs write the position pos of external data<write_pos, confirm external data is written in the backup diskette; Perhaps, when pos >=read_pos+datasize, confirm external data is written among the high-risk disk Disk4; Perhaps, when pos >=write_pos and pos<read_pos+datasize, confirm external data is written among the high-risk disk Disk4.
Preferably; When pos >=write_pos and pos<read_pos+datasize; After external data being written to high-risk disk Disk4, can also in high-risk disk Disk4, read again with read_pos is starting point, and length is the data of datasize; With said be starting point with read_pos, length is that the data of datasize backup in the backup diskette.
The RAID0 method of data backup that the present invention proposes; Record read data position read_pos and write data position write_pos in the high-risk disk of RAID0; When needs when said high-risk disk writes external data; Write the position relation of position pos and the write_pos and the read_pos+ preset length datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.Compare with prior art, RAID0 method of data backup provided by the invention can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing; Replace the high-risk disk among the RAID0 effectively; In addition, the method for the invention implements simple and convenient, is convenient to popularize.
Fig. 4 is the apparatus structure synoptic diagram of RAID0 data backup of the present invention.As shown in Figure 4, comprising:
Confirm unit 401, be used for detecting, confirm the high-risk disk among the said RAID0, send a reading command, comprise the unique identification of said high-risk disk in the said reading command to reading unit 402 according to preordering method each disk to RAID0;
Said reading unit 402; Be used for after receiving said reading command; From said high-risk disk, read the data of preset length datasize in order successively; Writing down the read data position read_pos of said high-risk disk, is that the data of datasize send to backup units 403 with said length;
Said backup units 403; Being used for said length is that the data of datasize backup to backup diskette; Write down the write data position write_pos of said high-risk disk; Said read data position read_pos is moved to write data position write_pos, write data position write_pos and write data position read_pos are sent to said definite unit 401;
Said definite unit 401; Also be used for when needs when said high-risk disk writes external data; Write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.
Further, said definite unit 401 specifically is used for when the position pos that need write external data<write_pos, confirms said external data is written in the said backup diskette;
Perhaps, when pos >=read_pos+datasize, confirm said external data is written in the said high-risk disk;
Perhaps, when pos >=write_pos and pos<read_pos+datasize, confirm said external data is written in the said high-risk disk.
Further; Said reading unit 402 also is used for when pos >=write_pos and pos<read_pos+datasize, after said external data is written to said high-risk disk; In said high-risk disk, reading again with read_pos is starting point; Length is the data of datasize, with said be starting point with read_pos, length is that the data of datasize send to said backup units;
Said backup units 403, also be used for said be starting point with read_pos, length is that the data of datasize backup in the said backup diskette.
The device of the RAID0 data backup that the present invention proposes; Record read data position read_pos and write data position write_pos in the high-risk disk of RAID0; When needs when said high-risk disk writes external data; Write the position relation of position pos and the write_pos and the read_pos+ preset length datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.Compare with prior art, the device of RAID0 data backup provided by the invention can guarantee that high-risk disk writes under the data conditions in RAID0 not influencing; Replace the high-risk disk among the RAID0 effectively; In addition, the method for the invention implements simple and convenient, is convenient to popularize.
The concrete workflow of device embodiment shown in Figure 4 repeats no more please with reference to the respective description among the method embodiment shown in Figure 2.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (6)

1. a RAID0 method of data backup is characterized in that, comprising:
According to preordering method each disk among the RAID0 is detected, confirm the high-risk disk among the said RAID0;
From said high-risk disk, read the data of preset length datasize in order successively, write down the read data position read_pos of said high-risk disk;
With said length is that the data of datasize backup in the backup diskette, writes down the write data position write_pos of said high-risk disk, and said read data position read_pos is moved to write data position write_pos;
When needs when said high-risk disk writes external data, write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.
2. method according to claim 1; It is characterized in that; The said position relation that writes position pos and the write_pos and the read_pos+datasize of external data is as required confirmed said external data is written in said high-risk disk or the said backup diskette, comprising:
When said needs write the position pos of external data<write_pos, confirm said external data is written in the said backup diskette;
Perhaps, when pos >=read_pos+datasize, confirm said external data is written in the said high-risk disk;
Perhaps, when pos >=write_pos and pos<read_pos+datasize, confirm said external data is written in the said high-risk disk.
3. method according to claim 2 is characterized in that,, after confirming to be written to said external data in the said high-risk disk, also comprises during as pos >=write_pos and pos<read_pos+datasize said:
In said high-risk disk, reading again with read_pos is starting point, and length is the data of datasize;
With said be starting point with read_pos, length is that the data of datasize backup in the said backup diskette.
4. the device of a RAID0 data backup is characterized in that, comprising:
Confirm the unit, be used for detecting, confirm the high-risk disk among the said RAID0, send a reading command, comprise the unique identification of said high-risk disk in the said reading command to reading unit according to preordering method each disk to RAID0;
Said reading unit; Be used for after receiving said reading command; From said high-risk disk, reading the data of preset length datasize in order successively, write down the read data position read_pos of said high-risk disk, is that the data of datasize send to backup units with said length;
Said backup units; Being used for said length is that the data of datasize backup to backup diskette; Write down the write data position write_pos of said high-risk disk; Said read data position read_pos is moved to write data position write_pos, write data position write_pos and write data position read_pos are sent to said definite unit;
Said definite unit; Also be used for when needs when said high-risk disk writes external data; Write the position relation of position pos and the write_pos and the read_pos+datasize of external data as required, confirm said external data is written in said high-risk disk or the said backup diskette.
5. device according to claim 4 is characterized in that, said definite unit specifically is used for when said needs write the position pos of external data<write_pos, confirming said external data is written in the said backup diskette;
Perhaps, when pos >=read_pos+datasize, confirm said external data is written in the said high-risk disk;
Perhaps, when pos >=write_pos and pos<read_pos+datasize, confirm said external data is written in the said high-risk disk.
6. device according to claim 5 is characterized in that, said reading unit; Also be used for when pos >=write_pos and pos<read_pos+datasize; After said external data was written to said high-risk disk, in said high-risk disk, reading again with read_pos was starting point, and length is the data of datasize; With said be starting point with read_pos, length is that the data of datasize send to said backup units;
Said backup units, also be used for said be starting point with read_pos, length is that the data of datasize backup in the said backup diskette.
CN 201110416516 2011-12-13 2011-12-13 Method and device for RAID0 data backup Active CN102385542B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201110416516 CN102385542B (en) 2011-12-13 2011-12-13 Method and device for RAID0 data backup

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201110416516 CN102385542B (en) 2011-12-13 2011-12-13 Method and device for RAID0 data backup

Publications (2)

Publication Number Publication Date
CN102385542A true CN102385542A (en) 2012-03-21
CN102385542B CN102385542B (en) 2013-09-18

Family

ID=45824973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201110416516 Active CN102385542B (en) 2011-12-13 2011-12-13 Method and device for RAID0 data backup

Country Status (1)

Country Link
CN (1) CN102385542B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060236161A1 (en) * 2005-04-15 2006-10-19 Kazuyuki Tanaka Apparatus and method for controlling disk array with redundancy
CN101609420A (en) * 2009-07-17 2009-12-23 杭州华三通信技术有限公司 Realize method and the redundant arrays of inexpensive disks and the controller thereof of rebuilding of disc redundant array
CN101840312A (en) * 2009-12-31 2010-09-22 创新科存储技术有限公司 RAID5 data writing method and device for multi-core processor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060236161A1 (en) * 2005-04-15 2006-10-19 Kazuyuki Tanaka Apparatus and method for controlling disk array with redundancy
CN101609420A (en) * 2009-07-17 2009-12-23 杭州华三通信技术有限公司 Realize method and the redundant arrays of inexpensive disks and the controller thereof of rebuilding of disc redundant array
CN101840312A (en) * 2009-12-31 2010-09-22 创新科存储技术有限公司 RAID5 data writing method and device for multi-core processor

Also Published As

Publication number Publication date
CN102385542B (en) 2013-09-18

Similar Documents

Publication Publication Date Title
KR101574844B1 (en) Implementing large block random write hot spare ssd for smr raid
CN103246478B (en) A kind of based on the disc array system of software PLC support without packet type overall situation HotSpare disk
US8930745B2 (en) Storage subsystem and data management method of storage subsystem
US9292228B2 (en) Selective raid protection for cache memory
EP2942713A1 (en) Storage system and storage apparatus
CN102024059B (en) Method and device for protecting redundant array of independent disk in file system
CN102207895B (en) Data reconstruction method and device of redundant array of independent disk (RAID)
US20060161823A1 (en) Disk array system configuring a logical disk drive having a redundancy function
CN102326141A (en) Processing method and apparatus for raid configuration information and raid controller
CN102682012A (en) Method and device for reading and writing data in file system
CN104035830A (en) Method and device for recovering data
CN103534688A (en) Data recovery method, storage equipment and storage system
CN103699457A (en) Method and device for restoring disk arrays based on stripping
CN103019623A (en) Memory disc processing method and device
CN102135862B (en) Disk storage system and data access method thereof
WO2013118189A1 (en) Storage device replacement method, and storage sub-system adopting storage device replacement method
CN102262657B (en) Method and system for storing multimedia data
CN102609223B (en) Redundant array of independent disk system and initializing method thereof
US20090216946A1 (en) Raid1 system and reading method for enhancing read performance
CN102495680A (en) Reconstruction method of RAID (Redundant Array of Independent Disks) system
JP2006252165A (en) Disk array device and computer system
CN114415968B (en) Storage system and data writing method thereof
CN101408833A (en) Method for initializing synchronous course omitting RAID1 equipment
CN102385542B (en) Method and device for RAID0 data backup
US20110296105A1 (en) System and method for realizing raid-1 on a portable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Applicant after: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Applicant after: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

Address before: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Applicant before: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Applicant before: Shenzhen Chuangxinke Information Technology Co.,Ltd.

ASS Succession or assignment of patent right

Owner name: BEIHAI UNITED INFORMATION TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: SHENZHEN ANYUN INFORMATION TECHNOLOGY CO., LTD.

Effective date: 20130726

C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20130726

Address after: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Applicant after: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Applicant after: Beihai Innovation Technology Storage Technology Co.,Ltd.

Address before: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Applicant before: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Applicant before: SHENZHEN ANYUN TECHNOLOGY CO.,LTD.

C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: BEIHAI YUNSHENG TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: COOL CLOUDZ INFORMATION TECHNOLOGY (WUXI) CO., LTD.

Effective date: 20150331

Free format text: FORMER OWNER: BEIHAI YUNSHENG TECHNOLOGY CO., LTD.

Effective date: 20150331

COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 214135 WUXI, JIANGSU PROVINCE TO: 536000 BEIHAI, GUANGXI ZHUANG AUTONOMOUS REGION

CP01 Change in the name or title of a patent holder

Address after: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Patentee after: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Patentee after: BEIHAI YUNSHENG TECHNOLOGY CO.,LTD.

Address before: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Patentee before: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Patentee before: Beihai Innovation Technology Storage Technology Co.,Ltd.

TR01 Transfer of patent right

Effective date of registration: 20150331

Address after: 536000, Taiwan Road, the Guangxi Zhuang Autonomous Region, Beihai, northeast of Jilin Road (China Electronics Beihai Industrial Park, East 14 room)

Patentee after: BEIHAI YUNSHENG TECHNOLOGY CO.,LTD.

Address before: 214135 Jiangsu New District of Wuxi, Taihu international science and Technology Parks Linghu Road No. 200 Chinese micro nano sensor network of International Innovation Park Building No. 1

Patentee before: CoolCloudz Information Technology (Wuxi) Co.,Ltd.

Patentee before: BEIHAI YUNSHENG TECHNOLOGY CO.,LTD.