CN107562388A - Method for reading data, device and medium during a kind of RAID initialization - Google Patents
Method for reading data, device and medium during a kind of RAID initialization Download PDFInfo
- Publication number
- CN107562388A CN107562388A CN201710942565.5A CN201710942565A CN107562388A CN 107562388 A CN107562388 A CN 107562388A CN 201710942565 A CN201710942565 A CN 201710942565A CN 107562388 A CN107562388 A CN 107562388A
- Authority
- CN
- China
- Prior art keywords
- raid
- initialization
- data
- preset value
- initialized
- 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.)
- Pending
Links
Landscapes
- Signal Processing For Digital Recording And Reproducing (AREA)
Abstract
Include the invention discloses method for reading data, device and the medium during a kind of RAID initialization, the step of this method:Preset value when being initialized to RAID memory space is obtained, and initialization operation is carried out to RAID;Judge whether system carries out data read operation to RAID;If it is, by the data in the internal memory of preset value writing system to be read as system.Method for reading data during RAID provided by the present invention initialization avoids in the prior art that system reads data and needed to be suspended until the situation that RAID initialization terminates just read data occurs in RAID initialization procedures, therefore the relative execution efficiency for improving system reading disk array data, and then the relative operating efficiency for improving system entirety.In addition, the digital independent device and medium when RAID is initialized equally have the effect above.
Description
Technical field
The present invention relates to data processing field, method for reading data, device when being initialized more particularly to a kind of RAID
And medium.
Background technology
With the arrival in big data epoch, the processing for data increasingly becomes enterprise's key content of interest.
RAID disk array, it is presently most conventional data storage method.RAID disk array be by many prices compared with
For cheap disk, the huge disk group of a capacity being formed, it is whole to improve to provide data jointly using multiple disks
The efficiency of SAN disk systems.Data are stored in disk array often by the mode of redundancy protecting, the mode of redundancy protecting
Including mirror-image fashion and parity check system, but no matter which kind of mode is used, be required to after disk array creates successfully
Carrying out initialization could be by normal use.But during disk array initializes, system may be for disk array
Carry out data access, when the region for the disk array that system is accessed not yet initializes, system need temporary suspension with etc.
Treat that reading for data is completed to initialize and then realize in the region, therefore relative reduction system reading disk array data
There is the relatively low situation of the overall operating efficiency of system in execution efficiency and then result in.
As can be seen here, there is provided method for reading data during a kind of RAID initialization, with lifting system reading disk number of arrays
According to execution efficiency, and then it is relative improve the overall operating efficiency of system, be those skilled in the art's urgent problem to be solved.
The content of the invention
It is an object of the invention to provide method for reading data, device and the medium during a kind of RAID initialization, relative lifting
The execution efficiency of system reading disk array data, and then relative improve the overall operating efficiency of system.
In order to solve the above technical problems, the present invention provides method for reading data when a kind of RAID is initialized, including:
Preset value when being initialized to RAID memory space is obtained, and initialization operation is carried out to RAID;
Judge whether system carries out data read operation to RAID;
If it is, by the data in the internal memory of preset value writing system to be read as system.
Preferably, this method further comprises:
Data read operation be recorded into daily record.
Preferably, this method further comprises:
The progress of initialization operation is shown.
Preferably, RAID is specially the RAID using even-odd check storage form.
Preferably, preset value is specially 0.
In addition, the present invention also provides digital independent device when a kind of RAID is initialized, including:
Initialization module, the preset value when memory space for obtaining to RAID initializes, and RAID is carried out initial
Change operation;
Judge module, for judging whether system carries out data read operation to RAID, if it is, calling write-in mould
Block;
Writing module, for by the data in the internal memory of preset value writing system to be read as system.
Preferably, the device further comprises:
Logger module, for data read operation to recorded into daily record.
Preferably, the device further comprises:
Progress display module, for the progress of initialization operation to be shown.
In addition, the present invention also provides digital independent device when a kind of RAID is initialized, including:
Memory, for storing computer program;
Processor, the step of method for reading data when realizing RAID initialization described above during for performing computer program
Suddenly.
In addition, the present invention also provides a kind of computer-readable recording medium, meter is stored with computer-readable recording medium
Calculation machine program, the step of method for reading data when RAID described above is initialized is realized when computer program is executed by processor
Suddenly.
Method for reading data during RAID initialization provided by the present invention, due to consideration that after RAID initialization, system
The data that can be read are fixed value, therefore can preset the value after RAID is initialized in memory space, and then are worked as
During RAID is initialized, when system carries out digital independent, it can be deposited directly by the preset value after i.e. RAID initialization
Store up the value in space, there is provided to system using as the data read, therefore avoid and initialized in the prior art in RAID
System reads data and needs to be suspended and occurs up to RAID initializes the situation for terminating just read data in journey, therefore relatively
Improve the execution efficiency of system reading disk array data, and then the relative operating efficiency for improving system entirety.In addition, this
Digital independent device and medium, beneficial effect when invention also provides a kind of RAID initialization is as described above.
Brief description of the drawings
In order to illustrate the embodiments of the present invention more clearly, the required accompanying drawing used in embodiment will be done simply below
Introduce, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for ordinary skill people
For member, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
The flow chart of method for reading data when Fig. 1 is a kind of RAID initialization provided in an embodiment of the present invention;
The flow chart of method for reading data when Fig. 2 is another RAID initialization provided in an embodiment of the present invention;
Digital independent structure drawing of device when Fig. 3 is a kind of RAID initialization provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Based on this
Embodiment in invention, for those of ordinary skill in the art under the premise of creative work is not made, what is obtained is every other
Embodiment, belong to the scope of the present invention.
The core of the present invention is to provide method for reading data during a kind of RAID initialization, and the relative system that improves reads magnetic
The execution efficiency of disk array data, and then the relative operating efficiency for improving system entirety.Another core of the present invention is to provide
Digital independent device and medium during a kind of RAID initialization.
In order that those skilled in the art more fully understand the present invention program, with reference to the accompanying drawings and detailed description
The present invention is described in further detail.
Embodiment one
The flow chart of method for reading data when Fig. 1 is a kind of RAID initialization provided in an embodiment of the present invention.It refer to
The specific steps of method for reading data when Fig. 1, RAID are initialized include:
Step S10:Preset value when being initialized to RAID memory space is obtained, and initialization operation is carried out to RAID.
It should be noted that initialization operation is the guarantee that RAID is capable of normal storage data, therefore initialization needs to protect
The value demonstrate,proved in each memory space is consistent, and preset value signified in this step after to be RAID initialized each store
Value in space.Data storage format is broadly divided into even-odd check form and mirror image data form used by due to RAID,
It is emphasized that when data storage format is even-odd check form used by RAID, in order to ensure the normal of even-odd check
Perform, preset value need to be 0, and when data storage format is mirror image forms used by RAID, preset value can be according to user's need
Depending on wanting, it is not specifically limited herein.
Step S11:Judge whether system carries out data read operation to RAID, if it is, performing step S12.
Step S12:By the data in the internal memory of preset value writing system to be read as system.
Step S11 and step S12 purpose are to judge the data whether system will be read in the RAID of initialization, if
System reads data in RAID then directly by data of the preset value writing system internal memory to be read as system, due at the beginning of RAID
The value of memory space is preset by user during beginningization, and the data that system can be read after initialization are user before initializing
Set preset value, therefore system is initialized without waiting for RAID and completed, and directly can be carried the preset value set by user
Data in the RAID that feed system is read as system, and then avoid the wait that system initializes for RAID.
Method for reading data during RAID initialization provided by the present invention, due to consideration that after RAID initialization, system
The data that can be read are fixed value, therefore can preset the value after RAID is initialized in memory space, and then are worked as
During RAID is initialized, when system carries out digital independent, it can be deposited directly by the preset value after i.e. RAID initialization
Store up the value in space, there is provided to system using as the data read, therefore avoid and initialized in the prior art in RAID
System reads data and needs to be suspended and occurs up to RAID initializes the situation for terminating just read data in journey, therefore relatively
Improve the execution efficiency of system reading disk array data, and then the relative operating efficiency for improving system entirety.
Embodiment two
The flow chart of method for reading data when Fig. 2 is another RAID initialization provided in an embodiment of the present invention.In Fig. 2
Step S10 and S12 is identical with Fig. 1, will not be repeated here.
As shown in Fig. 2 as a preferred embodiment, this method further comprises:
Step S20:Data read operation be recorded into daily record.
It is understood that by after the operation note for digital independent to daily record, user can be in daily record clearly
Operating time and concrete operations content of the understanding system for RAID, and then be when subsequently being optimized to system or RAID
User provides strong reference, relative to improve optimization efficiency.
As shown in Fig. 2 as a preferred embodiment, this method further comprises:
Step S21:The progress of initialization operation is shown.
It is understood that the progress of initialization operation is shown to the execution feelings that user can be helped to understand initialization
Condition, while RAID relevant information is also enriched, improve to the comprehensive of RAID relative information displayings, and then improve user's body
Test.
In addition, as a preferred embodiment, RAID is specially the RAID using even-odd check storage form.
It should be noted that when RAID uses even-odd check storage form data storage, data are after checking treatment
Distributed storage in multiple disks, when have corrupted data or lose when can be damaged by the data in other disks or
Lose the recovery of data.For example, there are 4 disks, go to store all magnetic wherein divided equivalent to the space of a disk size
The parity information of disk.If any one disk breaks down, can be believed after failed disk is changed by even-odd check
Breath is rebuild and obtains original data, therefore uses the storage of even-odd check storage form progress data can be with relatively reliable guarantee
The security of institute's data storage.
In addition, as a preferred embodiment, preset value is specially 0.
It is understood that due to the RAID initialized when preset value is 0, while suitable for even-odd check form
The data storage of data storage and mirror image forms, therefore a variety of service conditions only are suitable for by once setting, it is relative to improve
Compatibility.
Embodiment three
The embodiment of method for reading data when hereinbefore being initialized for RAID is described in detail, the present invention
Digital independent device during a kind of RAID initialization corresponding with this method is also provided, due to the embodiment and method of device part
Partial embodiment is mutually corresponding, therefore the embodiment of device part refers to the description of the embodiment of method part, here temporarily
Do not repeat.
Digital independent structure drawing of device when Fig. 3 is a kind of RAID initialization provided in an embodiment of the present invention.It is of the invention real
Digital independent device during the RAID initialization of example offer is provided, specifically included:
Initialization module 10, the preset value when memory space for obtaining to RAID initializes, and RAID is carried out just
Beginningization operates.
Judge module 11, for judging whether system carries out data read operation to RAID, if it is, calling write-in mould
Block.
Writing module 12, for by the data in the internal memory of preset value writing system to be read as system.
Digital independent device during RAID initialization provided by the present invention, due to consideration that after RAID initialization, system
The data that can be read are fixed value, therefore can preset the value after RAID is initialized in memory space, and then are worked as
During RAID is initialized, when system carries out digital independent, it can be deposited directly by the preset value after i.e. RAID initialization
Store up the value in space, there is provided to system using as the data read, therefore avoid and initialized in the prior art in RAID
System reads data and needs to be suspended and occurs up to RAID initializes the situation for terminating just read data in journey, therefore relatively
Improve the execution efficiency of system reading disk array data, and then the relative operating efficiency for improving system entirety.
On the basis of embodiment three, the device also includes:
Logger module, for data read operation to recorded into daily record.
On the basis of embodiment three, the device also includes:
Progress display module, for the progress of initialization operation to be shown.
Example IV
The present invention also provides digital independent device during a kind of RAID initialization, including:
Memory, for storing computer program;
Processor, the step of method for reading data when realizing RAID initialization described above during for performing computer program
Suddenly.
Digital independent device during RAID initialization provided by the present invention, due to consideration that after RAID initialization, system
The data that can be read are fixed value, therefore can preset the value after RAID is initialized in memory space, and then are worked as
During RAID is initialized, when system carries out digital independent, it can be deposited directly by the preset value after i.e. RAID initialization
Store up the value in space, there is provided to system using as the data read, therefore avoid and initialized in the prior art in RAID
System reads data and needs to be suspended and occurs up to RAID initializes the situation for terminating just read data in journey, therefore relatively
Improve the execution efficiency of system reading disk array data, and then the relative operating efficiency for improving system entirety.
The present invention also provides a kind of computer-readable recording medium, it is characterised in that is deposited on computer-readable recording medium
Computer program is contained, method for reading data during RAID initialization described above is realized when computer program is executed by processor
The step of.
The computer-readable recording medium of digital independent during RAID initialization provided by the present invention, due to consideration that
After RAID initialization, the data that system can be read are fixed value, therefore are stored after can presetting RAID initialization
Value in space, and then during RAID is initialized, when system carries out digital independent, directly can preset this
Value, i.e. value after RAID initialization in memory space, there is provided to system using as the data read, therefore avoid existing skill
System reading data need to be suspended until RAID initialization terminates just read data in RAID initialization procedures in art
Situation occur, therefore the relative execution efficiency for improving system reading disk array data, and then relative to improve system whole
The operating efficiency of body.
Method for reading data, device and medium when being initialized above to a kind of RAID provided by the present invention have been carried out in detail
It is thin to introduce.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
.It should be pointed out that for those skilled in the art, under the premise without departing from the principles of the invention, also
Some improvement and modification can be carried out to the present invention, these are improved and modification also falls into the protection domain of the claims in the present invention
It is interior.
It should also be noted that, in this manual, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or equipment including a series of elements not only include that
A little key elements, but also the other element including being not expressly set out, or also include for this process, method, article or
The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged
Except other identical element in the process including the key element, method, article or equipment being also present.
Claims (10)
- A kind of 1. method for reading data during RAID initialization, it is characterised in that including:Preset value when being initialized to RAID memory space is obtained, and initialization operation is carried out to the RAID;Judge whether system carries out data read operation to the RAID;If it is, the data during the preset value to be write to the internal memory of the system to be read as the system.
- 2. according to the method for claim 1, it is characterised in that this method further comprises:The data read operation be recorded into daily record.
- 3. according to the method for claim 1, it is characterised in that this method further comprises:The progress of the initialization operation is shown.
- 4. according to the method for claim 1, it is characterised in that the RAID is specially using even-odd check storage form RAID。
- 5. according to the method described in claim 1-4 any one, it is characterised in that the preset value is specially 0.
- A kind of 6. digital independent device during RAID initialization, it is characterised in that including:Initialization module, the preset value when memory space for obtaining to RAID initializes, and the RAID is carried out initial Change operation;Judge module, for judging whether system carries out data read operation to the RAID, if it is, calling write-in mould Block;Said write module, the number in the internal memory for the preset value to be write to the system to be read as the system According to.
- 7. device according to claim 6, it is characterised in that the device further comprises:Logger module, for the data read operation to recorded into daily record.
- 8. device according to claim 6, it is characterised in that the device further comprises:Progress display module, for the progress of the initialization operation to be shown.
- A kind of 9. digital independent device during RAID initialization, it is characterised in that including:Memory, for storing computer program;Processor, when realizing that the RAID as described in any one of claim 1 to 5 is initialized during for performing the computer program Method for reading data the step of.
- 10. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realized when the computer program is executed by processor when the RAID as described in any one of claim 1 to 5 is initialized The step of method for reading data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942565.5A CN107562388A (en) | 2017-10-11 | 2017-10-11 | Method for reading data, device and medium during a kind of RAID initialization |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710942565.5A CN107562388A (en) | 2017-10-11 | 2017-10-11 | Method for reading data, device and medium during a kind of RAID initialization |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107562388A true CN107562388A (en) | 2018-01-09 |
Family
ID=60984480
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710942565.5A Pending CN107562388A (en) | 2017-10-11 | 2017-10-11 | Method for reading data, device and medium during a kind of RAID initialization |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107562388A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567214A (en) * | 2011-12-01 | 2012-07-11 | 浪潮电子信息产业股份有限公司 | Method for quickly initializing bitmap page management by RAID5 |
CN103995772A (en) * | 2014-06-10 | 2014-08-20 | 浪潮电子信息产业股份有限公司 | RAID card log completely-storing method based on LINUX operation system |
CN104461394A (en) * | 2014-12-09 | 2015-03-25 | 华为技术有限公司 | RAID (redundant array of independent disk) and method for reading data from same |
CN106354435A (en) * | 2016-08-31 | 2017-01-25 | 北京腾凌科技有限公司 | Method and device for initializing RAID |
CN107193541A (en) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | The display methods and device of tasks carrying progress |
-
2017
- 2017-10-11 CN CN201710942565.5A patent/CN107562388A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102567214A (en) * | 2011-12-01 | 2012-07-11 | 浪潮电子信息产业股份有限公司 | Method for quickly initializing bitmap page management by RAID5 |
CN103995772A (en) * | 2014-06-10 | 2014-08-20 | 浪潮电子信息产业股份有限公司 | RAID card log completely-storing method based on LINUX operation system |
CN104461394A (en) * | 2014-12-09 | 2015-03-25 | 华为技术有限公司 | RAID (redundant array of independent disk) and method for reading data from same |
CN107193541A (en) * | 2016-03-15 | 2017-09-22 | 广州市动景计算机科技有限公司 | The display methods and device of tasks carrying progress |
CN106354435A (en) * | 2016-08-31 | 2017-01-25 | 北京腾凌科技有限公司 | Method and device for initializing RAID |
Non-Patent Citations (1)
Title |
---|
张新荣等: "《计算机组成原理教程》", 31 July 2002, 北京希望电子出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107111528A (en) | System and method for storing mistake manages | |
CN102722340A (en) | Data processing method, apparatus and system | |
CN106681848B (en) | A kind of the data consistency support method and system of correcting and eleting codes RAID | |
CN102136274B (en) | Mobile hard disk with two storage media | |
US9875030B2 (en) | Media write operation | |
CN108874321A (en) | A kind of raid-array data reconstruction method, device and equipment | |
CN108062262A (en) | Operating system backup-and-restore method and its system based on storage sector data | |
CN107731262A (en) | A kind of storage disk bad block management method, device, equipment and readable storage medium storing program for executing | |
CN107678690A (en) | A kind of implementation method of solid state hard disc and its RAID array | |
US9213486B2 (en) | Writing new data of a first block size to a second block size using a write-write mode | |
US8990528B2 (en) | Method for fast format of a fully allocated volume when copied from a space efficient volume | |
CN104461373B (en) | A kind of RAID data processing method and processing device | |
CN103810440A (en) | Access system and method | |
CN107562388A (en) | Method for reading data, device and medium during a kind of RAID initialization | |
CN101382874B (en) | Data writing method and device in RAID5 magnetic disc array | |
CN106371950A (en) | Method and device for achieving RAID level conversion | |
CN104731526B (en) | The method and device that a kind of discontented band is write | |
CN106599236A (en) | Metadata storage method and apparatus for file system | |
CN206431605U (en) | A kind of device of online read-write network interface card Nonvolatile memory | |
CN104267975B (en) | A kind of processing method and device of expanded application data, card | |
CN110007875B (en) | Method, device and equipment for migrating effective data | |
CN103975309A (en) | Data recovery method, data recovery apparatus, storage and storage system | |
CN103577113B (en) | A kind of memory unit access method | |
CN106598481A (en) | Protection method for vehicle-mounted pre-allocated FAT32 video file system | |
CN104731672A (en) | Data storage 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180109 |
|
RJ01 | Rejection of invention patent application after publication |