CN106843764A - Soft raid-array creation method and system - Google Patents
Soft raid-array creation method and system Download PDFInfo
- Publication number
- CN106843764A CN106843764A CN201710045346.7A CN201710045346A CN106843764A CN 106843764 A CN106843764 A CN 106843764A CN 201710045346 A CN201710045346 A CN 201710045346A CN 106843764 A CN106843764 A CN 106843764A
- Authority
- CN
- China
- Prior art keywords
- array
- configuration information
- raid
- soft
- soft raid
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0614—Improving the reliability of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Stored Programmes (AREA)
Abstract
The present disclosure discloses a kind of soft raid-array creation method and system, methods described includes:The first soft raid-array configuration information is obtained from the hard disk of soft raid-array to be created;The second soft raid-array configuration information is obtained from non-volatile memory mnemon, the non-volatile memory mnemon is different from the hard disk of the soft raid-array to be created;In the described first soft raid-array configuration information and the second soft raid-array accordant configuration information, the soft raid-array is created according to the described first soft raid-array configuration information or the second soft raid-array configuration information.
Description
Technical field
This disclosure relates to computer realm, more particularly to a kind of soft raid-array creation method and system.
Background technology
With electronic technology popularization and application field increasingly extensively, it is access speed, security to data storage, steady
Qualitative and capacity requirement more and more higher.Redundant array of inexpensive disk technology be improve data access speed, prevent loss of data with
And improve the effective means of memory space.Redundant array of inexpensive disk is divided into hard raid-array and soft independent redundancy disk battle array
Two kinds of row.Because hard raid-array needs magnetic disc array card, current magnetic disc array card prevailing price is expensive, so
Realize that redundant array of inexpensive disk turns into a kind of feasible program using software approach using existing system.
Soft raid-array is the technology that redundant array of inexpensive disk function is realized by operating system software mode.
Because, in itself without firmware, its configuration information storage is in a hard disk for soft raid-array.But, once service
After device there occurs CMOS power down or BIOS factory resets, the configuration information of soft raid-array can be caused to be broken
It is bad, ultimately result in loss of data.
The content of the invention
Disclosure first aspect provides a kind of soft raid-array creation method, and methods described includes:From treating
The hard disk for creating soft raid-array obtains the first soft raid-array configuration information;From non-volatile memory note
Recall unit and obtain the second soft raid-array configuration information, the non-volatile memory mnemon is waited to create different from described
Build the hard disk of soft raid-array;The described first soft raid-array configuration information and it is described second it is soft solely
It is soft solely according to the described first soft raid-array configuration information or second during vertical redundant array of inexpensive disk accordant configuration information
Vertical redundant array of inexpensive disk configuration information creates the soft raid-array.
Alternatively, confidence is matched somebody with somebody in the first soft raid-array configuration information and the second soft raid-array
When ceasing consistent, confidence is matched somebody with somebody according to the described first soft raid-array configuration information or the second soft raid-array
Breath creates the soft raid-array, including:It is soft solely in the first soft raid-array configuration information and second
During vertical redundant array of inexpensive disk accordant configuration information, whether the mode of operation for determining south bridge SATA controller is independent redundancy disk battle array
Row pattern;It is superfluous according to the described first soft independence when south bridge SATA controller mode of operation is raid-array pattern
Residual magnetism disk array configuration information or the second soft raid-array configuration information create the soft raid-array.
Alternatively, confidence is matched somebody with somebody in the first soft raid-array configuration information and the second soft raid-array
When ceasing consistent, confidence is matched somebody with somebody according to the described first soft raid-array configuration information or the second soft raid-array
Breath creates the soft raid-array, also includes:It is not independent redundancy magnetic in the mode of operation of south bridge SATA controller
During disk array pattern, prompt message is exported, and wait user instruction to be received;Receiving the modification south bridge SATA controller work
Operation mode to raid-array pattern user instruction when, the south bridge SATA controller mode of operation is modified as solely
Vertical redundant array of inexpensive disk pattern;When the user instruction for keeping the south bridge SATA controller mode of operation constant is received, clearly
Except the described first soft raid-array configuration information and the second soft raid-array configuration information.
Alternatively, soft raid-array creation method also includes:In the described first soft raid-array
When configuration information and the inconsistent second soft raid-array configuration information, by the first soft raid-array
Configuration information is revised as the second soft raid-array configuration information;Matched somebody with somebody according to the described first soft raid-array
Confidence ceases or the second soft raid-array configuration information creates the soft raid-array.
Alternatively, soft raid-array creation method also includes:Receiving modification raid-array
During the user instruction of configuration information, by the described first soft raid-array configuration information and the second soft independent redundancy disk
Array configuration information is revised as the raid-array configuration information of user input.
The second aspect of the disclosure provides a kind of soft raid-array and creates system, and the system includes:The
One configuration information acquisition module, the first soft raid-array is obtained from the hard disk of soft raid-array to be created
Configuration information;Second configuration information acquisition module, the second soft raid-array is obtained from non-volatile memory mnemon
Configuration information, the non-volatile memory mnemon is different from the hard disk of the soft raid-array to be created;Create
Module, in the described first soft raid-array configuration information and the second soft raid-array configuration information
When consistent, according to the described first soft raid-array configuration information or the second soft raid-array configuration information
Create the soft raid-array.
The third aspect of the disclosure provides a kind of soft raid-array and creates system, and the system includes:Extremely
Few two hard disks, for set up into be stored with respectively on raid-array, and at least two hard disk first it is soft solely
Vertical redundant array of inexpensive disk configuration information;At least one non-volatile memory mnemon, for storing the second soft independent redundancy disk
Array configuration information;At least one processor, by performing executable instruction, to realize from soft independent redundancy disk battle array to be created
The hard disk of row obtains the first soft raid-array configuration information;The second soft independence is obtained from non-volatile memory mnemon
Redundant array of inexpensive disk configuration information, the non-volatile memory mnemon is different from the soft raid-array to be created
Hard disk;Match somebody with somebody confidence in the described first soft raid-array configuration information and the second soft raid-array
When ceasing consistent, confidence is matched somebody with somebody according to the described first soft raid-array configuration information or the second soft raid-array
The method that breath creates the soft raid-array.
The fourth aspect of the disclosure provides a kind of soft raid-array and creates system, and the system includes:Extremely
Few two hard disks, for set up into be stored with respectively on raid-array, and at least two hard disk first it is soft solely
Vertical redundant array of inexpensive disk configuration information;At least one non-volatile memory mnemon, for storing the second soft independent redundancy disk
Array configuration information;At least one processor, for by performing executable instruction, realized during BIOS startup self-detections from
The hard disk of soft raid-array to be created obtains the first soft raid-array configuration information;From non-volatile memory
Mnemon obtains the second soft raid-array configuration information, and the non-volatile memory mnemon is different from described treating
Create the hard disk of soft raid-array;In the described first soft raid-array configuration information and described second soft
It is soft according to the described first soft raid-array configuration information or second during raid-array accordant configuration information
The method that raid-array configuration information creates the soft raid-array, is additionally operable in os starting
Afterwards by performing executable instruction, realize when the user instruction of modification raid-array configuration information is received, will
The first soft independent redundancy disk configuration information and the second soft raid-array configuration information are revised as user input
Raid-array configuration information method.
Brief description of the drawings
In order to be more fully understood from the disclosure and its advantage, referring now to the following description with reference to accompanying drawing, wherein:
Fig. 1 diagrammatically illustrates the flow chart of the soft raid-array creation method according to the embodiment of the present disclosure.
Fig. 2 is diagrammatically illustrated in the soft raid-array creation method according to the embodiment of the present disclosure, when two
The flow chart of performed step during accordant configuration information.
Fig. 3 is diagrammatically illustrated in the soft raid-array creation method according to another embodiment of the disclosure, when
The flow chart of performed step during two accordant configuration informations.
Fig. 4 diagrammatically illustrates the flow of the soft raid-array creation method according to another embodiment of the disclosure
Figure.
Fig. 5 diagrammatically illustrates the flow chart of the modification configuration information according to the embodiment of the present disclosure.
Fig. 6 diagrammatically illustrates the structural frames that system is created according to the soft raid-array of the embodiment of the present disclosure
Figure.
Fig. 7 diagrammatically illustrates the structured flowchart of the creation module according to the embodiment of the present disclosure.
Fig. 8 shows the structured flowchart that system is created according to the raid-array of the embodiment of the present disclosure.
Fig. 9 shows the structured flowchart that system is created according to the raid-array of another embodiment of the disclosure.
Specific embodiment
According to reference to accompanying drawing to the described in detail below of disclosure exemplary embodiment, the other side of the disclosure, advantage
Be will become obvious for those skilled in the art with prominent features.
In the disclosure, term " including " and " containing " and its derivative mean including and it is unrestricted;Term "or" is bag
Containing property, mean and/or.
In this manual, following is explanation for describing the various embodiments of disclosure principle, should not be with any
Mode is construed to limit scope of disclosure.Referring to the drawings described below is used to help comprehensive understanding by claim and its equivalent
The exemplary embodiment of the disclosure that thing is limited.It is described below to help understand including various details, but these details should
Think what is be merely exemplary.Therefore, it will be appreciated by those of ordinary skill in the art that without departing substantially from the scope of the present disclosure and spirit
In the case of, embodiment described herein can be made various changes and modifications.Additionally, for clarity and brevity,
Eliminate the description of known function and structure.Additionally, running through accompanying drawing, same reference numbers are used for identity function and operation.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart
Frame or its combination can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer,
The processor of special-purpose computer or other programmable data processing units, so that these instructions can be with when by the computing device
Create the device for realizing illustrated function/operation in these block diagrams and/or flow chart.
Therefore, the technology of the disclosure can be realized in the form of hardware and/or software (including firmware, microcode etc.).Separately
Outward, the technology of the disclosure can take the form of the computer program product on the computer-readable medium of the instruction that is stored with, should
Computer program product is available for instruction execution system to use.In the context of the disclosure, computer-readable medium can be energy
Enough include, store, transmit, propagate or transmit the arbitrary medium of instruction.For example, computer-readable medium can be included but is not limited to
Electricity, magnetic, optical, electromagnetic, infrared or semiconductor system, device, device or propagation medium.The specific example bag of computer-readable medium
Include:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-ROM);Memory, such as arbitrary access are deposited
Reservoir (RAM) or flash memory;And/or wire/wireless communication link.
At present, it is using the way of soft raid-array (software PLC) technology:It is (substantially defeated in server B IOS
Enter/output system) set in, south bridge SATA (serial port hard disk pattern) controllers by the AHCI patterns given tacit consent to are changed to RAID (only
Vertical redundant array of inexpensive disk) pattern.Because software PLC is in itself without firmware, it is functional all in operating system drive layer with software
Mode realizes, therefore, the configuration information of software PLC can only be stored in the afterbody of physical hard disk.Meanwhile, the server of current main flow
BIOS always intelligently detects the integrality of GPT (disk partition table) on hard disk during startup self-detection, when discovery hard disc head
Primary partition table and hard disk afterbody backup partition table it is inconsistent when, can prompt the user whether to attempt repairation partition table.If this
When user according to prompting attempt repairation partition table, may result in RAID configuration informations be destroyed, ultimately result in loss of data.It is existing
In technology, when using software PLC, south bridge SATA controller is set to RAID mode, BIOS during server startup self-detection
It is seen that RAID logic disk, and a small block data area of hard disk afterbody can be hidden, for preserve RAID with confidence
Breath.But, after server there occurs CMOS power down or BIOS factory resets, the setting meeting of south bridge SATA controller
Become the AHCI patterns of acquiescence again.At this moment, physical hard disk afterbody to be immediately seen during server startup self-detection hidden for BIOS
The software PLC configuration information of Tibetan, and think that it is inconsistent with the primary partition table of hard disc head.
Regarding to the issue above, present disclose provides a kind of method that soft raid-array is created, the method will be soft
The configuration information of RAID is stored in hard disk and one piece of non-volatile memory mnemon simultaneously.Creating soft independent redundancy disk
During array, no matter which kind of pattern south bridge SATA is in, configuration information all is read from hard disk and non-volatile memory mnemon, when
During two accordant configuration informations for reading, soft raid-array is created according to the configuration information.Even if additionally, the method
In the case of the RAID configuration informations during user misoperation causes hard disk are impaired, can still be remembered by non-volatile memory
Configuration information in unit recovers.
Fig. 1 diagrammatically illustrates the flow chart of the soft raid-array creation method of the embodiment of the present disclosure.
As shown in figure 1, the method comprises the following steps S110-S130.
In step s 110, the first soft independent redundancy disk battle array is obtained from the hard disk of soft raid-array to be created
Row configuration information.
In the step s 120, the second soft raid-array configuration information is obtained from non-volatile memory mnemon,
The non-volatile memory mnemon is different from the hard disk of the soft raid-array to be created.
In step s 130, in the described first soft raid-array configuration information and the second soft independent redundancy
During disk array accordant configuration information, according to the described first soft raid-array configuration information or the second soft independent redundancy
Disk array configuration information creates the soft raid-array.
In this embodiment, store in hard disk simultaneously and non-volatile deposit by by soft raid-array configuration information
In storage mnemon, and when soft raid-array is created, from the hard disk of soft raid-array to be created and
The first soft raid-array configuration information and the second soft independent redundancy disk battle array are obtained in non-volatile memory mnemon
Row configuration information, and in the case where both are consistent, soft raid-array is set up using one of them.The disclosure is implemented
Whether the soft raid-array configuration information that example is obtained by judging from hard disk and in non-volatile memory mnemon
Unanimously so that soft independent redundancy disk battle array is directly created during accordant configuration information on hard disk and non-volatile memory mnemon
Row, and when inconsistent, can be configured according to the actual requirements, user is for example pointed out and inquires, selected according to user intention
Whether soft raid-array is created, in case user's maloperation in the case of unclear damages configuration information etc..
In the disclosed embodiments, read in the hard disk that step S110 is equipped with from the system for creating raid-array
The configuration information for creating raid-array of the hard-disc storage is used as the first soft raid-array configuration
Information.According to the embodiment of the present disclosure, the system for creating raid-array includes the server system that can be furnished with hard disk
System, cloud storage system, desktop computer, portable computer, PAD etc..The soft raid-array to be created it is hard
Disk is used for according to the pattern data storage of raid-array, and the afterbody of the hard disk is stored with raid-array
Configuration information.The pattern of the raid-array includes RAID0, RAID1, RAID3, RAID5, RAID7 and RAID0
+ 1 etc..Wherein, each system for creating raid-array at least configures two hard disks, and the quantity of hard disk can be according to soft
The mode adjustment of independent redundancy magnetic disk array initialization.For example:, it is necessary at least two pieces hard disks under RAID1 patterns;Under RAID5 patterns,
Need at least three pieces hard disks etc..The first soft raid-array configuration information be storage in a hard disk with confidence
Breath, the configuration information includes:The shape of the data stored in soft raid-array setting data, hard disk in systems
Position of data stored in formula and the hard disk etc..For example, the configuration information of certain hard disk includes the hard disk is set to RAID5
Stored in the system settings data of pattern, the hard disk be verification data or initial data and the data storage hard disk point
The information such as area, wherein verification data represent the relation between the data stored in two other hard disk, for example, being stored in hard disk 1
Data A, data storage B in hard disk 2, store verification data C, C=A+B or C=A-B in hard disk 3, but the disclosure is not limited to
Corresponding relation is stated, the verification data associated between other two data of expression can also be included.
In the step s 120, creating the system of raid-array, to read this from non-volatile memory mnemon non-
The configuration information for creating raid-array stored in volatile store-memory unit is used as the second soft independent redundancy
Disk array configuration information, the non-volatile memory mnemon is different from the hard of the soft raid-array to be created
Disk.According to embodiments of the present invention, while the configuration information of soft raid-array is stored in hard disk, also this is configured
Information Store is in one piece of non-volatile memory mnemon.For example, can be drawn on the existing non-volatile memory device of equipment
Divide one piece of non-volatile memory cognitive domains, or one non-volatile memory mnemon equipment of special setting, believe for storage configuration
Breath, facilitates software layer to access.The second soft raid-array configuration information is storage different from the non-easy of hard disk
The configuration information in store-memory unit is lost, the configuration information is including the raid-array in each hard disk with confidence
Breath.For example, the system for creating raid-array is set to RAID5 patterns, then by each hard disk under the mode of operation
Configuration information store in non-volatile memory mnemon, including soft raid-array in each hard disk is in system
In setting data, each hard disk in store user data form and corresponding hard disk in store user data position
Put.The configuration information for storing soft raid-array using non-volatile memory mnemon can ensure that user data is pacified
Entirely, when the raid-array configuration information on hard disk is lost or damages, still can be by from non-volatile memory
Configuration information in mnemon recovers.
In step s 130, the first soft raid-array configuration information and the second soft independent redundancy for obtaining are judged
Whether disk array configuration information is consistent, when above-mentioned two accordant configuration information, then according to the described first soft independent redundancy magnetic
Disk array configuration information or the second soft raid-array configuration information create the soft raid-array.Configuration
Information can represent that the configuration information in hard disk is not lost when consistent, also not damage, in this case, according to the configuration
The soft raid-array of information creating.
According to the embodiment of the present disclosure, in implementation process, the above method can be by the driving of soft raid-array
Program is realized.BIOS is during server startup self-detection, no matter which kind of pattern mainboard south bridge SATA controller is set to, begins
The driver of the soft raid-array of loading, for example, load uEFI driver or legacy OpROM, and lead to eventually
The driver is crossed from the hard disk of soft raid-array to be created and is obtained in non-volatile memory mnemon and matched somebody with somebody
Confidence ceases, and then by judging whether both unanimously create soft raid-array.
Fig. 2 is diagrammatically illustrated in the soft raid-array creation method according to the embodiment of the present disclosure, when two
The flow chart of step S130 performed during accordant configuration information.
As shown in Fig. 2 step S130 may include steps of S1301-S1302.
In step S1301, in the first soft raid-array configuration information and the second soft independent redundancy disk battle array
During row accordant configuration information, whether the mode of operation for determining south bridge SATA controller is raid-array pattern.
In step S1302, when south bridge SATA controller mode of operation is raid-array pattern, according to institute
State the first soft raid-array configuration information or the second soft raid-array configuration information creates described soft only
Vertical redundant array of inexpensive disk.
In the above-mentioned technical proposal of the disclosure, it is determined that soft raid-array to be created hard disk and it is non-easily
In the case of losing the accordant configuration information in store-memory unit, whether the mode of operation for also determining south bridge SATA controller is only
Vertical redundant array of inexpensive disk pattern, if the mode of operation of south bridge SATA controller is raid-array pattern, further according to
The first soft raid-array configuration information or the second soft raid-array configuration information create described soft
Raid-array.In this way, prevent that exception occurs because of situations such as system so that south bridge SATA controller
Mode of operation is recovered as the AHCI patterns of default mode, so as to cause soft raid-array to create failure.
In above-described embodiment of the disclosure, step S1301 is it is determined that the first soft raid-array configuration information
After the second soft raid-array accordant configuration information, the mode of operation of south bridge SATA controller is judged.According to this
Open embodiment, south bridge SATA controller acquiescence works under AHCI patterns, if under soft raid-array pattern
Work by south bridge SATA controller, it is necessary to be set to RAID mode.
Step S1302 is obtained after it is determined that the mode of operation of south bridge SATA controller is RAID mode according to from hard disk
The first configuration information or the second configuration information for being obtained from non-volatile memory mnemon create soft independent redundancy disk
Array.Can represent that the configuration information in hard disk is not lost according to the embodiment of the present disclosure, during accordant configuration information, also not damage
Ruin;And south bridge SATA controller is RAID mode, in this case, soft independent redundancy disk is created according to the configuration information
Array.
Fig. 3 is diagrammatically illustrated in the soft raid-array creation method according to another embodiment of the disclosure, when
The flow chart of step S130 performed during two accordant configuration informations.The difference of flow shown in Fig. 3 and flow shown in Fig. 2
It is the mode of operation difference of south bridge SATA controller.
As shown in figure 3, the step S130 may include steps of S1311-S1313.
It is defeated when the mode of operation of south bridge SATA controller is not raid-array pattern in step S1311
Go out prompt message, and wait user instruction to be received.
In step S1312, the modification south bridge SATA controller mode of operation to independent redundancy disk battle array is being received
During the user instruction of row pattern, the south bridge SATA controller mode of operation is modified as raid-array pattern.
In step S1313, when the user instruction for keeping the south bridge SATA controller mode of operation constant is received,
Remove the described first soft raid-array configuration information and the second soft raid-array configuration information.
In the above-mentioned technical proposal of the disclosure, it is determined that soft raid-array to be created hard disk and it is non-easily
In the case of losing the accordant configuration information in store-memory unit, if the mode of operation of south bridge SATA controller is not independent superfluous
Residual magnetism disk array pattern, it is likely that because causing the mode of operation of south bridge SATA controller to be resumed situations such as system exception
It is the AHCI patterns of acquiescence, it is also possible to be that user is voluntarily arranged to AHCI patterns, therefore prompt message is exported by user,
To be chosen whether for the mode of operation of south bridge SATA controller to be revised as RAID mode by user, so as to be created according to user intention
Soft raid-array is built, if a user indicate that the mode of operation of south bridge SATA controller need not be changed, then institute is removed
The first soft raid-array configuration information and the second soft raid-array configuration information are stated, and is no longer created
Build soft raid-array.By the above-mentioned technical proposal of the present embodiment, soft independent redundancy is in acquired configuration
Disk array configuration information, and in the case that the mode of operation of south bridge SATA controller is not RAID mode, selected by user
Whether continuation creates soft raid-array, in case user performs maloperation in the case of unclear.
In above-described embodiment of the disclosure, step S1311 is it is determined that the first soft raid-array configuration information
After the second soft raid-array accordant configuration information, whether the mode of operation for determining south bridge SATA controller is independent
Redundant array of inexpensive disk pattern, when the mode of operation of south bridge SATA controller is not raid-array pattern, output is carried
Show information, and wait user instruction to be received.The prompt message includes that the current mode of operation of prompting user is not that soft independence is superfluous
Residual magnetism disk array pattern, and ask the user whether that change mode of operation is soft raid-array pattern.
Step S1312 receives prompting as user, and when wishing to be worked under raid-array pattern, system
The user instruction of the modification south bridge SATA controller mode of operation to raid-array pattern can be received, according to
South bridge SATA controller mode of operation is modified as raid-array pattern by family instruction.In the disclosed embodiments, when
After receiving the user instruction of modification, the mode of operation of south bridge SATA controller is reset, and by amended Working mould
Formula record reenters startup self-detection process in CMOS, after modification.
Step S1313 receives prompting as user, and wishes that system is continued to operate in when under AHCI patterns, and without wound
When building soft raid-array, system can refer to the constant user of holding south bridge SATA controller mode of operation is received
Order, the first soft raid-array configuration information and the second soft independent redundancy disk are removed according to user instruction
Array configuration information.In the disclosed embodiments, the removing configuration information includes disposing hard disk and non-volatile memory memory
The configuration information all about the soft raid-array of establishment stored in unit.
Fig. 4 diagrammatically illustrates the flow chart of the soft raid-array creation method of another embodiment of the disclosure.
As shown in figure 4, the method also includes on the basis of the soft raid-array creation method shown in Fig. 1
Step S140-S150, step S110-S130 is identical with the method that Fig. 1 is described, and is not repeated herein.
In step S140, in the first soft raid-array configuration information and the second soft raid-array
When configuration information is inconsistent, the first soft raid-array configuration information is revised as the second soft raid-array
Configuration information.
It is superfluous according to the described first soft raid-array configuration information or the second soft independence in step S150
Residual magnetism disk array configuration information creates the soft raid-array.
In above-described embodiment of the disclosure, judging that the first soft raid-array configuration information is soft with second
When raid-array configuration information is inconsistent, it may be determined that the configuration information in hard disk may be lost or damage, lead to
Cross and use the configuration information in the configuration information recovery hard disk stored in non-volatile memory mnemon, it is ensured that hard disk matches somebody with somebody confidence
The safety of breath.
In above-described embodiment of the disclosure, step S140 is when the first soft raid-array obtained from hard disk
When configuration information and inconsistent the second soft raid-array configuration information obtained from non-volatile memory mnemon,
By in the configuration information write-in hard disk in non-volatile memory mnemon.According to the embodiment of the present disclosure, the configuration information differs
The situation of cause includes:Hard disk corruptions, original configuration information is lost in hard disk;Or new hard disk has been changed, do not have in the hard disk
There is original configuration information.For example, when configuration information is inconsistent, exporting prompt message, and wait user instruction.User's root
Judge that such as user changed new hard disk according to actual conditions so that when configuration information is inconsistent, then user instruction be will it is non-easily
Configuration information in mistake store-memory unit is write in new hard disk;Or user needs to check whether and is hard disk failure or receives
Damage, then user instruction after determination reason to be checked, restarts to close electronic equipment.
Step S150 by step S140 modification cause hard disk in non-volatile memory mnemon in configuration information
Unanimously, in this case, soft raid-array is created according to the configuration information.
Fig. 5 diagrammatically illustrates the flow chart of the modification configuration information according to the embodiment of the present disclosure.
As shown in figure 5, the method is on the basis of the soft raid-array creation method shown in Fig. 1, including step
Rapid S201-S203.The method of Fig. 5 descriptions can be parallel with the method that Fig. 1 is described, it is also possible to after the method for Fig. 1 descriptions, opens
Carried out after dynamic operating system.
As shown in figure 5, receiving modification instruction in step S201,150.In process of self-test, user can be according to reality for BIOS
Border demand modification raid-array configuration information, BIOS is rung by the driver of the raid-array for loading
User instruction is answered, configuration information is changed.According to the embodiment of the present disclosure, BIOS is according in hard disk and non-volatile memories mnemon
Configuration information create soft raid-array after, start-up operation system, user can be with during operating system
Raid-array configuration information is changed according to the actual requirements, and operating system is receiving modification raid-array
After the user instruction of configuration information, the driver of the raid-array loaded on startup by operating system is responded
The user instruction.The user instruction includes modification instruction and new raid-array configuration information.For example:By mesh
Preceding RAID0 patterns are changed to RAID1 patterns.
In step S202, the first configuration information is changed.According to the embodiment of the present disclosure, the driving journey of raid-array
The first soft raid-array configuration information that sequence will be stored on hard disk according to the instruction of user is revised as user input
New raid-array configuration information.That is, the new raid-array configuration information of user input is write
Enter in hard disk, while deleting original configuration information in hard disk.
In step S203, the second configuration information is changed.According to the embodiment of the present disclosure, the driving journey of raid-array
Sequence will be stored in the second soft raid-array configuration information modification in nonvolatile memory unit according to the instruction of user
It is the new raid-array configuration information of user input.That is, by the new raid-array of user input
Configuration information is written in non-volatile memory mnemon, while original with confidence in deleting non-volatile memory mnemon
Breath.
According to the embodiment of the present disclosure, in implementation process, BIOS is in system boot process of self-test, no matter mainboard south bridge
Which kind of pattern SATA controller is set to, and the driver of soft raid-array is loaded all the time, for example, load uEFI
Driver or legacy OpROM, and by the driver from the hard disk of soft raid-array to be created with
And configuration information, and the method soft independent redundancy magnetic of establishment in the embodiment of the present disclosure are obtained in non-volatile memory mnemon
Disk array.After startup self-detection terminates, start-up operation system, operating system is RAID moulds in the mode of operation of current south bridge SATA
During formula, operating system also loads the driver of soft raid-array all the time, for example load uEFI driver or
Legacy OpROM, so that user is configured by the driver of soft raid-array to soft raid-array
The operations such as information modification.
Fig. 6 diagrammatically illustrates the structured flowchart of the soft raid-array establishment system of the embodiment of the present disclosure.
As shown in fig. 6, soft raid-array creates system includes the first configuration information acquisition module 310, second
Configuration information acquisition module 320, creation module 330, configuration information modified module 340 and configuration information update module 350;Its
In:
First configuration information acquisition module 310 is configured as obtaining the from the hard disk of soft raid-array to be created
One soft raid-array configuration information.
Second configuration information acquisition module 320 is configured as obtaining the second soft independent redundancy from non-volatile memory mnemon
Disk array configuration information, the non-volatile memory mnemon is different from the hard of the soft raid-array to be created
Disk.
Creation module 330 be configured as the described first soft raid-array configuration information and it is described second it is soft solely
It is soft solely according to the described first soft raid-array configuration information or second during vertical redundant array of inexpensive disk accordant configuration information
Vertical redundant array of inexpensive disk configuration information creates the soft raid-array.
In the above-mentioned technical proposal of the disclosure, stored hard simultaneously by by soft raid-array configuration information
In disk and non-volatile memory mnemon, and when soft raid-array is created, from soft independent redundancy disk to be created
In the hard disk and non-volatile memory mnemon of array obtain the first soft raid-array configuration information and second it is soft solely
Vertical redundant array of inexpensive disk configuration information, and in the case where both are consistent, soft independent redundancy disk battle array is set up using one of them
Row.Disclosed technique scheme passes through to judge the soft independent redundancy disk battle array obtained from hard disk and in non-volatile memory mnemon
Whether row configuration information is consistent so that directly create soft during accordant configuration information on hard disk and non-volatile memory mnemon
Raid-array, and when inconsistent, can be configured according to the actual requirements, user is for example pointed out and inquires, root
Choose whether to create soft raid-array according to user intention, in case user's maloperation in the case of unclear is damaged and matched somebody with somebody
Confidence breath etc..
In the disclosed embodiments, system of the first configuration information acquisition module 310 from establishment raid-array
The configuration information for creating raid-array of the hard-disc storage is read in the hard disk of outfit as the first soft independence
Redundant array of inexpensive disk configuration information.According to the embodiment of the present disclosure, the system for creating raid-array includes matching somebody with somebody
There are server system, cloud storage system, desktop computer, portable computer, PAD of hard disk etc..The soft independence to be created
The hard disk of redundant array of inexpensive disk is used for according to the pattern data storage of raid-array, and the afterbody of the hard disk is stored with solely
The configuration information of vertical redundant array of inexpensive disk.The pattern of the raid-array include RAID0, RAID1, RAID3,
RAID5, RAID7 and RAID0+1 etc..Wherein, each system for creating raid-array at least configures two hard disks,
The quantity of hard disk can be according to the mode adjustment of soft independent redundancy magnetic disk array initialization.For example:, it is necessary at least under RAID1 patterns
Two pieces of hard disks;, it is necessary at least three pieces hard disks etc. under RAID5 patterns.The first soft raid-array configuration information is
Storage configuration information in a hard disk, the configuration information includes:Soft raid-array setting data in systems, should
Position of data stored in the form and the hard disk of the data stored in hard disk etc..For example, the configuration information bag of certain hard disk
Include that the hard disk is set to store in the system settings data of RAID5 patterns, the hard disk is verification data or initial data
And the information such as the subregion of the data storage hard disk, wherein verification data represented between the data stored in two other hard disk
Relation, for example, data storage A in hard disk 1, data storage B in hard disk 2, store verification data C, C=A+B or C in hard disk 3
=A-B, but the disclosure is not limited to above-mentioned corresponding relation, can also include the check number associated between other two data of expression
According to.
Second configuration information acquisition module 320 is configured as creating the system of raid-array from non-volatile memory
The configuration information for creating raid-array stored in the non-volatile memory mnemon is read in mnemon
Used as the second soft raid-array configuration information, the non-volatile memory mnemon is different from described to be created soft only
The hard disk of vertical redundant array of inexpensive disk.According to embodiments of the present invention, the configuration information in soft raid-array is stored hard
While disk, also by configuration information storage in one piece of non-volatile memory mnemon.For example, can be existing non-in equipment
One piece of non-volatile memory cognitive domains is divided in volatile storage devices, or the special non-volatile memory mnemon that sets sets
It is standby, for storage configuration information, facilitate software layer to access.The second soft raid-array configuration information exists for storage
Different from the configuration information in the non-volatile memory mnemon of hard disk, the configuration information includes the independent redundancy in each hard disk
The configuration information of disk array.For example, the system for creating raid-array is set to RAID5 patterns, then by the work
Configuration information in each hard disk is stored in non-volatile memory mnemon under pattern, including soft independence in each hard disk is superfluous
Stored in the form and corresponding hard disk of the user data stored in residual magnetism disk array setting data, each hard disk in systems
User data position.The configuration information for storing soft raid-array using non-volatile memory mnemon can be protected
Card secure user data, when the raid-array configuration information on hard disk is lost or damages, still can pass through
Recover from the configuration information in non-volatile memory mnemon.
Creation module 330, judges the first soft raid-array configuration information and the second soft independent redundancy for obtaining
Whether disk array configuration information is consistent, when above-mentioned two accordant configuration information, then according to the described first soft independent redundancy magnetic
Disk array configuration information or the second soft raid-array configuration information create the soft raid-array.Configuration
Information can represent that the configuration information in hard disk is not lost when consistent, also not damage, in this case, according to the configuration
The soft raid-array of information creating.
According to the embodiment of the present disclosure, in implementation process, above-mentioned module can be by the driving of soft raid-array
Program is realized.BIOS is during server startup self-detection, no matter which kind of pattern mainboard south bridge SATA controller is set to, begins
The driver of the soft raid-array of loading, for example, load uEFI driver or legacy OpROM, and lead to eventually
The driver is crossed from the hard disk of soft raid-array to be created and is obtained in non-volatile memory mnemon and matched somebody with somebody
Confidence ceases, and then by judging whether both unanimously create soft raid-array.
Configuration information modified module 340 is configured as soft solely in the first soft raid-array configuration information and second
When vertical redundant array of inexpensive disk configuration information is inconsistent, by the first soft raid-array configuration information be revised as second it is soft solely
Vertical redundant array of inexpensive disk configuration information.
According to the embodiment of the present disclosure, judging that the first soft raid-array configuration information is superfluous with the second soft independence
When residual magnetism disk array configuration information is inconsistent, it may be determined that the configuration information in hard disk may be lost or damage, by using
Configuration information in the configuration information recovery hard disk stored in non-volatile memory mnemon, it is ensured that the peace of hard disk configuration information
Entirely.
In above-described embodiment of the disclosure, configuration information modified module 340, when the first soft independence obtained from hard disk
Redundant array of inexpensive disk configuration information and the second soft raid-array configuration obtained from non-volatile memory mnemon
When information is inconsistent, by the configuration information write-in hard disk in non-volatile memory mnemon.It is described according to the embodiment of the present disclosure
The inconsistent situation of configuration information includes:Hard disk corruptions, original configuration information is lost in hard disk;Or changed new hard
Disk, does not have original configuration information in the hard disk.For example, when configuration information is inconsistent, exporting prompt message, and wait stand-by
Family instructs.User judges that such as user has changed new hard disk so that when configuration information is inconsistent, then use according to actual conditions
Family instruction is by the configuration information new hard disk of write-in in non-volatile memory mnemon;Or user needs check whether it is hard
Disk failure is impaired, then user instruction after determination reason to be checked, restarts to close electronic equipment.
Creation module 330 causes to remember single with non-volatile memory in hard disk by the modification of configuration information modified module 340
Accordant configuration information in unit, in this case, soft raid-array is created according to the configuration information.
Configuration information update module 350 is configured as receiving the user of modification raid-array configuration information
During instruction, the described first soft raid-array configuration information and the second soft raid-array configuration information are repaiied
It is changed to the raid-array configuration information of user input.In process of self-test, user can be according to the actual requirements for BIOS
Modification raid-array configuration information, BIOS responds user by the driver of the raid-array for loading
Instruction, changes configuration information.According to the embodiment of the present disclosure, BIOS is in matching somebody with somebody in hard disk and non-volatile memories mnemon
After confidence breath creates soft raid-array, start-up operation system, user can basis during operating system
Raid-array configuration information is changed in actual demand, and operating system is receiving modification raid-array configuration
After the user instruction of information, the driver of the raid-array loaded on startup by operating system responds the use
Family instructs.The user instruction includes modification instruction and new raid-array configuration information.For example:Will be current
RAID0 patterns are changed to RAID1 patterns.
According to the embodiment of the present disclosure, the driver of raid-array will be stored in hard disk according to the instruction of user
On the first soft raid-array configuration information be revised as user input new raid-array match somebody with somebody confidence
Breath.That is, the new raid-array configuration information of user input is written in hard disk, while original in deleting hard disk
Configuration information.
According to the embodiment of the present disclosure, the driver of raid-array according to the instruction of user will be stored in it is non-easily
Lose the new independent redundancy disk that the second soft raid-array configuration information in mnemon is revised as user input
Array configuration information.That is, the new raid-array configuration information of user input is written to non-volatile memory memory
In unit, while deleting original configuration information in non-volatile memory mnemon.
According to the embodiment of the present disclosure, in implementation process, BIOS is in system boot process of self-test, no matter mainboard south bridge
Which kind of pattern SATA controller is set to, and the driver of soft raid-array is loaded all the time, for example, load uEFI
Driver or legacy OpROM, and by the driver from the hard disk of soft raid-array to be created with
And configuration information, and the method soft independent redundancy magnetic of establishment in the embodiment of the present disclosure are obtained in non-volatile memory mnemon
Disk array.After startup self-detection terminates, start-up operation system, operating system is RAID moulds in the mode of operation of current south bridge SATA
During formula, operating system also loads the driver of soft raid-array all the time, for example load uEFI driver or
Legacy OpROM, so that user is configured by the driver of soft raid-array to soft raid-array
The operations such as information modification.
Fig. 7 diagrammatically illustrates the structured flowchart of the creation module according to the embodiment of the present disclosure.
As shown in fig. 7, creation module 330 also includes following submodule:Mode of operation judging submodule 331, soft independence are superfluous
Residual magnetism disk array creates submodule 332.
Mode of operation judging submodule 331 is configured as soft in the first soft raid-array configuration information and second
During raid-array accordant configuration information, whether the mode of operation for determining south bridge SATA controller is independent redundancy disk
Array pattern.
Soft raid-array creates submodule 332 and is configured as in south bridge SATA controller mode of operation being independent
During redundant array of inexpensive disk pattern, according to the described first soft raid-array configuration information or the second soft independent redundancy disk
Soft raid-array described in array configuration information creating.
In the above-mentioned technical proposal of the disclosure, it is determined that soft raid-array to be created hard disk and it is non-easily
In the case of losing the accordant configuration information in store-memory unit, whether the mode of operation for also determining south bridge SATA controller is only
Vertical redundant array of inexpensive disk pattern, if the mode of operation of south bridge SATA controller is raid-array pattern, further according to
The first soft raid-array configuration information or the second soft raid-array configuration information create described soft
Raid-array.In this way, prevent that exception occurs because of situations such as system so that south bridge SATA controller
Mode of operation is recovered as the AHCI patterns of default mode, so as to cause soft raid-array to create failure.
In above-described embodiment of the disclosure, mode of operation judging submodule 331 is it is determined that the first soft independent redundancy disk
After array configuration information and the second soft raid-array accordant configuration information, the work of south bridge SATA controller is judged
Pattern.According to the embodiment of the present disclosure, south bridge SATA controller acquiescence works under AHCI patterns, if in soft independent redundancy disk
Worked under array pattern, it is necessary to south bridge SATA controller is set into RAID mode.
Soft raid-array creates submodule 332 it is determined that the mode of operation of south bridge SATA controller is RAID moulds
After formula, second obtained according to the first configuration information obtained from hard disk or from non-volatile memory mnemon matches somebody with somebody confidence
Breath creates soft raid-array.According to the embodiment of the present disclosure, the configuration in hard disk can be represented during accordant configuration information
Information is not lost, and is not also damaged;And south bridge SATA controller is RAID mode, in this case, according to the configuration
The soft raid-array of information creating.
In an embodiment of the disclosure, as shown in fig. 7, the creation module 330 also includes following submodule:Prompting letter
Breath output sub-module 333, mode of operation modification submodule 334 and configuration information remove submodule 335.
It is not independent redundancy magnetic that prompt message output sub-module 333 is configured as in the mode of operation of south bridge SATA controller
During disk array pattern, prompt message is exported, and wait user instruction to be received.
Mode of operation modification submodule 334 is configured as receiving the modification south bridge SATA controller mode of operation extremely
During the user instruction of raid-array pattern, the south bridge SATA controller mode of operation is modified as independent redundancy magnetic
Disk array pattern.
Configuration information removes submodule 335 and is configured as receiving the holding south bridge SATA controller mode of operation not
During the user instruction of change, the first soft raid-array configuration information and the second soft independent redundancy disk are removed
Array configuration information.
In the above-mentioned technical proposal of the disclosure, it is determined that soft raid-array to be created hard disk and it is non-easily
In the case of losing the accordant configuration information in store-memory unit, if the mode of operation of south bridge SATA controller is not independent superfluous
Residual magnetism disk array pattern, it is likely that because causing the mode of operation of south bridge SATA controller to be resumed situations such as system exception
It is the AHCI patterns of acquiescence, it is also possible to be that user is voluntarily arranged to AHCI patterns, therefore prompt message is exported by user,
To be chosen whether for the mode of operation of south bridge SATA controller to be revised as RAID mode by user, so as to be created according to user intention
Soft raid-array is built, if a user indicate that the mode of operation of south bridge SATA controller need not be changed, then institute is removed
The first soft raid-array configuration information and the second soft raid-array configuration information are stated, and is no longer created
Build soft raid-array.By the above-mentioned technical proposal of the present embodiment, soft independent redundancy is in acquired configuration
Disk array configuration information, and in the case that the mode of operation of south bridge SATA controller is not RAID mode, selected by user
Whether continuation creates soft raid-array, in case user performs maloperation in the case of unclear.
In above-described embodiment of the disclosure, prompt message output sub-module 333 is it is determined that the first soft independent redundancy disk
After array configuration information and the second soft raid-array accordant configuration information, the Working mould of south bridge SATA controller is determined
Whether formula is raid-array pattern, is not raid-array mould in the mode of operation of south bridge SATA controller
During formula, prompt message is exported, and wait user instruction to be received.The prompt message includes the current mode of operation of prompting user not
It is soft raid-array pattern, and asks the user whether that change mode of operation is soft raid-array mould
Formula.
Mode of operation changes submodule 334, when user receives prompting, and wishes in raid-array pattern
During lower work, system can receive the use of the modification south bridge SATA controller mode of operation to raid-array pattern
Family is instructed, and south bridge SATA controller mode of operation is modified as into raid-array pattern according to user instruction.In this public affairs
Open in embodiment, after the user instruction of modification is received, reset the mode of operation of south bridge SATA controller, and will repair
Mode of operation record after changing reenters startup self-detection process in CMOS, after modification.
Configuration information removes submodule 335, when user receives prompting, and wishes that system continues to operate in AHCI patterns
When lower, and when need not create soft raid-array, system can keep south bridge SATA controller mode of operation receiving
Constant user instruction, the first soft raid-array configuration information and described second soft is removed according to user instruction
Raid-array configuration information.In the disclosed embodiments, the removing configuration information includes disposing hard disk and non-
The configuration information all about the soft raid-array of establishment stored in volatile store-memory unit.
It is understood that the first configuration information acquisition module 310, the second configuration information acquisition module 320, creation module
330th, any number of modules in configuration information modified module 340 and configuration information update module 350 may be incorporated in one
Realized in module, or any one module therein can be split into multiple modules.Or, one in these modules or
At least part of function of multiple modules can be combined with least part of function phase of other modules, and be realized in a module.
In accordance with an embodiment of the present disclosure, the first configuration information acquisition module 310, the second configuration information acquisition module 320, creation module
330th, at least one in configuration information modified module 340 and configuration information update module 350 can at least by partly real
It is now hardware circuit, such as on field programmable gate array (FPGA), programmable logic array (PLA), on-chip system, substrate
System, application specific integrated circuit (ASIC) in system, encapsulation, or can for circuit is carried out it is integrated or encapsulation it is any its
The hardware such as his rational method or firmware realize, or with software, three kinds of implementations of hardware and firmware it is appropriately combined come
Realize.Or, the first configuration information acquisition module 310, the second configuration information acquisition module 320, creation module 330, with confidence
At least one in breath modified module 340 and configuration information update module 350 can at least be implemented partly as computer
Program module, when the program is run by computer, can perform the function of corresponding module.
Fig. 8 shows the structural frames that system 500 is created according to the raid-array of another embodiment of the disclosure
Figure.
As shown in figure 8, the raid-array creates system 500 including:At least two hard disks 510, at least one
The processor 530 of individual non-volatile memory mnemon 520 and at least one.
At least two hard disks 510 are used to set up into deposited respectively on raid-array, and at least two hard disk
Contain the first soft raid-array configuration information;
At least one non-volatile memory mnemon 520 is used to store the second soft raid-array configuration information;
At least one processor 530 is only in disclosure above-described embodiment to realize by performing executable instruction
Vertical redundant array of inexpensive disk creation method.
In embodiment disclosed above, at least two hard disk is the hard disk for setting up raid-array,
Particular number is set according to actual conditions.The non-volatile memory mnemon is for storing the second soft independent redundancy disk battle array
The mnemon of row configuration information.The processor is, for example, general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, application specific integrated circuit (ASIC)), etc..Processor 530 can also be included for caching use
The onboard storage device on way.Processor 530 can be performed for the side according to the embodiment of the present disclosure referring to figs. 1 to Fig. 5 descriptions
The single treatment unit or multiple processing units of the different actions of method flow.
The non-volatile memories mnemon for example can include, store, transmit, propagate or transmit data
Non-volatile memory device.For example, the non-volatile memory mnemon can include but is not limited to electricity, magnetic, optical, electromagnetic, red
Outer or semiconductor system, device, device or propagation medium.
In accordance with an embodiment of the present disclosure, raid-array creates system can also include readable storage medium storing program for executing 540,
For storing computer program 541, the computer program 541 includes code/computer-readable instruction, and it is by processor 530
Allow that processor 530 is performed for example above in conjunction with the method flow described by Fig. 1 to Fig. 5 and its any deformation during execution.
The readable storage medium storing program for executing 540 for example can be the arbitrary medium that can be included, store, transmit, propagate or transmit;For example, can
The specific example for reading storage medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-
ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Computer program 541 can be configured with such as computer program code including computer program module.Example
Such as, in the exemplary embodiment, the code in computer program 541 can include one or more program modules, such as including mould
Block 541A, module 541B ... module 541D.It should be noted that the dividing mode and number of module are not fixed, this area
Technical staff can be combined according to actual conditions using suitable program module or program module, when these program modules combine quilt
When processor 530 is performed so that processor 530 can perform for example above in conjunction with the method flow described by Fig. 1 to Fig. 5 and its
Any deformation.
In accordance with an embodiment of the present disclosure, raid-array creates system and can also include for being connect from other entities
The input block 550 of the collection of letters number and the output unit 560 for providing signal to other entities.Input block 550 and output
Unit 560 can be arranged to the entity of single entities or separation.
With reference to shown in Fig. 6 and Fig. 7, in accordance with an embodiment of the present disclosure, the first configuration information acquisition module 310, second is configured
Data obtaining module 320, creation module 330, configuration information modified module 340 and configuration information update module 350 can be real
It is now the computer program module described with reference to Fig. 8, it by processor 530 when being performed, it is possible to achieve described above corresponding
Operation.
Fig. 9 shows the structured flowchart that system is created according to the raid-array of another embodiment of the disclosure.
As shown in figure 9, the raid-array creates system 600 including:At least two hard disks 610, at least one
The processor 630 of individual non-volatile memory mnemon 620 and at least one.
At least two hard disks 610 are used to set up into deposited respectively on raid-array, and at least two hard disk
Contain the first soft raid-array configuration information;
At least one non-volatile memory mnemon 620 is used to store the second soft raid-array configuration information;
At least one processor 630 is used for during BIOS startup self-detections by performing executable instruction, to realize root
According to the raid-array creation method in disclosure above-described embodiment, it is additionally operable to after os starting by that can hold
Row instruction, to realize changing soft raid-array with confidence according to user instruction in disclosure above-described embodiment
Breath method.
In embodiment disclosed above, at least two hard disk is the hard disk for setting up raid-array,
Particular number is set according to actual conditions.The non-volatile memory mnemon is for storing the second soft independent redundancy disk battle array
The mnemon of row configuration information.The processor is, for example, general purpose microprocessor, instruction set processor and/or related chip group
And/or special microprocessor (for example, application specific integrated circuit (ASIC)), etc..Processor 630 can also be included for caching use
The onboard storage device on way.Processor 630 can be that the basis referring to figs. 1 to Fig. 4 descriptions is performed during BIOS startup self-detections
The single treatment unit or multiple processing units of the different actions of the method flow of the embodiment of the present disclosure, can also be in behaviour
Make the single treatment list of the different actions of the method flow according to the embodiment of the present disclosure that reference Fig. 5 descriptions are performed after system starts
Unit or multiple processing units.
The non-volatile memories mnemon for example can include, store, transmit, propagate or transmit data
Non-volatile memory device.For example, the non-volatile memory mnemon can include but is not limited to electricity, magnetic, optical, electromagnetic, red
Outer or semiconductor system, device, device or propagation medium.
In accordance with an embodiment of the present disclosure, raid-array creates system can also include readable storage medium storing program for executing 640,
For storing computer program 641, the computer program 641 includes code/computer-readable instruction, and it is by processor 630
Allow that processor 630 is performed for example above in conjunction with the method flow described by Fig. 1 to Fig. 5 and its any deformation during execution.
The readable storage medium storing program for executing 640 for example can be the arbitrary medium that can be included, store, transmit, propagate or transmit;For example, can
The specific example for reading storage medium includes:Magnetic memory apparatus, such as tape or hard disk (HDD);Light storage device, such as CD (CD-
ROM);Memory, such as random access memory (RAM) or flash memory;And/or wire/wireless communication link.
Computer program 641 can be configured with such as computer program code including computer program module.Example
Such as, in the exemplary embodiment, the code in computer program 641 can include one or more program modules, for example, include
641A, module 641B ... module 641D.It should be noted that the dividing mode and number of module are not fixed, this area skill
Art personnel can be combined according to actual conditions using suitable program module or program module, when the combination of these program modules is located
When reason device 630 is performed so that processor 630 can be performed for example above in conjunction with the method flow described by Fig. 1 to Fig. 5 and its appointed
What deforms.
In accordance with an embodiment of the present disclosure, raid-array creates system and can also include for being connect from other entities
The input block 650 of the collection of letters number and the output unit 660 for providing signal to other entities.Input block 650 and output
Unit 660 can be arranged to the entity of single entities or separation.
With reference to shown in Fig. 6 and Fig. 7, in accordance with an embodiment of the present disclosure, the first configuration information acquisition module 310, second is configured
Data obtaining module 320, creation module 330, configuration information modified module 340 and configuration information update module 350 can be real
It is now the computer program module described with reference to Fig. 8, it by processor 630 when being performed, it is possible to achieve described above corresponding
Operation.
Although the certain exemplary embodiments with reference to the disclosure have shown and described the disclosure, art technology
Personnel it should be understood that in the case of the spirit and scope of the present disclosure limited without departing substantially from appended claims and its equivalent,
The various changes in form and details can be carried out to the disclosure.Therefore, the scope of the present disclosure should not necessarily be limited by above-described embodiment,
But not only should be determined by appended claims, also it is defined by the equivalent of appended claims.
Claims (10)
1. a kind of soft raid-array creation method, methods described includes:
The first soft raid-array configuration information is obtained from the hard disk of soft raid-array to be created;
The second soft raid-array configuration information, the non-volatile memory memory are obtained from non-volatile memory mnemon
Unit is different from the hard disk of the soft raid-array to be created;
In the described first soft raid-array configuration information and the second soft raid-array configuration information
When consistent, according to the described first soft raid-array configuration information or the second soft raid-array configuration information
Create the soft raid-array.
2. method according to claim 1, wherein, it is described in the first soft raid-array configuration information and second
During soft raid-array accordant configuration information, according to the described first soft raid-array configuration information or second
Soft raid-array configuration information creates the soft raid-array, including:
In the first soft raid-array configuration information and the second soft raid-array accordant configuration information, really
Whether the mode of operation of Dingnan County's bridge SATA controller is raid-array pattern;
When south bridge SATA controller mode of operation is raid-array pattern, according to the described first soft independent redundancy magnetic
Disk array configuration information or the second soft raid-array configuration information create the soft raid-array.
3. method according to claim 2, wherein, it is described in the first soft raid-array configuration information and second
During soft raid-array accordant configuration information, according to the described first soft raid-array configuration information or second
Soft raid-array configuration information creates the soft raid-array, also includes:
When the mode of operation of south bridge SATA controller is not raid-array pattern, prompt message is exported, and wait
Receive user instruction;
Receive the modification south bridge SATA controller mode of operation to raid-array pattern user instruction when,
The south bridge SATA controller mode of operation is modified as raid-array pattern;
When the user instruction for keeping the south bridge SATA controller mode of operation constant is received, the first soft independence is removed
Redundant array of inexpensive disk configuration information and the second soft raid-array configuration information.
4. method according to claim 1, wherein, also include:
In the described first soft raid-array configuration information and the second soft raid-array configuration information
When inconsistent, the first soft raid-array configuration information is revised as the second soft raid-array with confidence
Breath;
Confidence is matched somebody with somebody according to the described first soft raid-array configuration information or the second soft raid-array
Breath creates the soft raid-array.
5. method according to claim 1, wherein, also include:
When the user instruction of modification raid-array configuration information is received, by the described first soft independent redundancy disk
Array configuration information and the second soft raid-array configuration information are revised as the raid-array of user input
Configuration information.
6. a kind of soft raid-array creates system, and the system includes:
First configuration information acquisition module, the first soft independent redundancy magnetic is obtained from the hard disk of soft raid-array to be created
Disk array configuration information;
Second configuration information acquisition module, obtains the second soft raid-array and matches somebody with somebody confidence from non-volatile memory mnemon
Breath, the non-volatile memory mnemon is different from the hard disk of the soft raid-array to be created;
Creation module, in the described first soft raid-array configuration information and the second soft raid-array
During accordant configuration information, according to the described first soft raid-array configuration information or the second soft raid-array
Configuration information creates the soft raid-array.
7. system according to claim 6, wherein, the creation module, including:
Mode of operation judging submodule, in the first soft raid-array configuration information and the second soft independent redundancy disk battle array
During row accordant configuration information, whether the mode of operation for determining south bridge SATA controller is raid-array pattern;
Soft raid-array creates submodule, is raid-array mould in south bridge SATA controller mode of operation
During formula, according to the described first soft raid-array configuration information or the second soft raid-array configuration information wound
Build the soft raid-array.
8. system according to claim 7, wherein, the creation module also includes:
Prompt message output sub-module, when the mode of operation of south bridge SATA controller is not raid-array pattern,
Output prompt message, and wait user instruction to be received;
Mode of operation changes submodule, is receiving the modification south bridge SATA controller mode of operation to independent redundancy disk battle array
During the user instruction of row pattern, the south bridge SATA controller mode of operation is modified as raid-array pattern;
Configuration information removes submodule, is receiving the constant user instruction of the holding south bridge SATA controller mode of operation
When, remove the first soft raid-array configuration information and the second soft raid-array configuration
Information.
9. a kind of soft raid-array creates system, and the system includes:
At least two hard disks, be stored with respectively on raid-array, and at least two hard disk for setting up into
One soft raid-array configuration information;
At least one non-volatile memory mnemon, for storing the second soft raid-array configuration information;
At least one processor, by performing executable instruction, to realize the side according to any one of Claims 1 to 5
Method.
10. a kind of soft raid-array creates system, and the system includes:
At least two hard disks, be stored with respectively on raid-array, and at least two hard disk for setting up into
One soft raid-array configuration information;
At least one non-volatile memory mnemon, for storing the second soft raid-array configuration information;
At least one processor, for during BIOS startup self-detections, by performing executable instruction, realizing will according to right
The method any one of 1~4 is sought, is additionally operable to after os starting, by performing executable instruction, realize according to power
Profit requires the method described in 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710045346.7A CN106843764B (en) | 2017-01-22 | 2017-01-22 | Method and system for creating soft independent redundant disk array |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710045346.7A CN106843764B (en) | 2017-01-22 | 2017-01-22 | Method and system for creating soft independent redundant disk array |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106843764A true CN106843764A (en) | 2017-06-13 |
CN106843764B CN106843764B (en) | 2020-02-21 |
Family
ID=59120090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710045346.7A Active CN106843764B (en) | 2017-01-22 | 2017-01-22 | Method and system for creating soft independent redundant disk array |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106843764B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577435A (en) * | 2017-09-14 | 2018-01-12 | 郑州云海信息技术有限公司 | The method and its device of a kind of information in removing memory chip |
CN107608633A (en) * | 2017-09-25 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of storage device memory management method and relevant apparatus |
CN114079616A (en) * | 2021-11-02 | 2022-02-22 | 中国船舶重工集团公司第七0三研究所 | Database redundancy method for non-hot standby disk array server |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101313283A (en) * | 2005-12-22 | 2008-11-26 | 英特尔公司 | Method for dynamically exposing backup and restore volumes |
CN101751231A (en) * | 2009-12-17 | 2010-06-23 | 成都市华为赛门铁克科技有限公司 | Method and device for writing in and reading out data and virtual tape library device |
CN102662877A (en) * | 2012-04-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for preventing loss of raid (redundant array of independent discs) information on condition with multiple damaged hard discs |
CN102831030A (en) * | 2011-06-16 | 2012-12-19 | 鸿富锦精密工业(深圳)有限公司 | Data backup and recovery system and method |
CN103838643A (en) * | 2012-11-23 | 2014-06-04 | 杭州星纬物联技术有限公司 | Novel mutual backing-up method based on system disk and RAID |
US20140181579A1 (en) * | 2012-12-21 | 2014-06-26 | Zetta, Inc. | Systems and methods for on-line backup and disaster recovery |
CN104317674A (en) * | 2014-11-04 | 2015-01-28 | 浪潮(北京)电子信息产业有限公司 | Disk data backup method and device |
US20160034492A1 (en) * | 2012-12-21 | 2016-02-04 | Zetta, Inc. | Systems and methods for on-demand data storage |
US20160371161A1 (en) * | 2015-06-22 | 2016-12-22 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Raid logical stripe backup to non-volatile memory in response to raid storage device media errors |
-
2017
- 2017-01-22 CN CN201710045346.7A patent/CN106843764B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101313283A (en) * | 2005-12-22 | 2008-11-26 | 英特尔公司 | Method for dynamically exposing backup and restore volumes |
CN101751231A (en) * | 2009-12-17 | 2010-06-23 | 成都市华为赛门铁克科技有限公司 | Method and device for writing in and reading out data and virtual tape library device |
CN102831030A (en) * | 2011-06-16 | 2012-12-19 | 鸿富锦精密工业(深圳)有限公司 | Data backup and recovery system and method |
CN102662877A (en) * | 2012-04-20 | 2012-09-12 | 浪潮电子信息产业股份有限公司 | Method for preventing loss of raid (redundant array of independent discs) information on condition with multiple damaged hard discs |
CN103838643A (en) * | 2012-11-23 | 2014-06-04 | 杭州星纬物联技术有限公司 | Novel mutual backing-up method based on system disk and RAID |
US20140181579A1 (en) * | 2012-12-21 | 2014-06-26 | Zetta, Inc. | Systems and methods for on-line backup and disaster recovery |
US20160034492A1 (en) * | 2012-12-21 | 2016-02-04 | Zetta, Inc. | Systems and methods for on-demand data storage |
CN104317674A (en) * | 2014-11-04 | 2015-01-28 | 浪潮(北京)电子信息产业有限公司 | Disk data backup method and device |
US20160371161A1 (en) * | 2015-06-22 | 2016-12-22 | Lenovo Enterprise Solutions (Singapore) Pte. Ltd. | Raid logical stripe backup to non-volatile memory in response to raid storage device media errors |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107577435A (en) * | 2017-09-14 | 2018-01-12 | 郑州云海信息技术有限公司 | The method and its device of a kind of information in removing memory chip |
CN107608633A (en) * | 2017-09-25 | 2018-01-19 | 郑州云海信息技术有限公司 | A kind of storage device memory management method and relevant apparatus |
CN107608633B (en) * | 2017-09-25 | 2020-09-18 | 苏州浪潮智能科技有限公司 | Storage management method and related device for storage equipment |
CN114079616A (en) * | 2021-11-02 | 2022-02-22 | 中国船舶重工集团公司第七0三研究所 | Database redundancy method for non-hot standby disk array server |
CN114079616B (en) * | 2021-11-02 | 2023-11-03 | 中国船舶重工集团公司第七0三研究所 | Redundancy method for database of non-hot standby disk array server |
Also Published As
Publication number | Publication date |
---|---|
CN106843764B (en) | 2020-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI546818B (en) | Green nand device (gnd) driver with dram data persistence for enhanced flash endurance and performance | |
US7401249B2 (en) | Method for backing up and recovering data in a hard disk | |
CN101593083B (en) | device, computer and method for protecting and restoring computer configuration information | |
CN103729220A (en) | Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM | |
US9817600B2 (en) | Configuration information backup in memory systems | |
US20160085445A1 (en) | Method operating raid system and data storage systems using write command log | |
CN106843764A (en) | Soft raid-array creation method and system | |
CN108027757A (en) | Recover the system and method for data for never transparent data backup stream | |
TW201301016A (en) | System and method for performing data backup and recovery | |
CN106776133A (en) | A kind of system and method for operating system recovery | |
US9501362B2 (en) | RAID configuration management device and RAID configuration management method | |
CN102622281A (en) | Intelligent terminal and method of data backup and restore thereof | |
CN107861693A (en) | The OSD procedure deployments method, apparatus and medium of a kind of distributed block storage system | |
CN106648970A (en) | File backup method and distributed file system | |
CN110221940A (en) | Power loss recovery method, system and medium based on stacked documents system | |
CN101136940B (en) | Method and system for backup of hierarchically structured storage pools | |
CN104050014A (en) | Efficient storage management method based on virtualization platform | |
CN103530206A (en) | Data recovery method and device | |
CN104866397A (en) | Computer System And Control Method | |
KR102277731B1 (en) | Method for operating storage system and storage controller | |
CN108762790A (en) | Unmanned machine battery reboot process method, apparatus and storage medium | |
CN104615387A (en) | Vehicle-mounted equipment based on XPE system and design method of vehicle-mounted equipment | |
CN103617010B (en) | Date storage method and storage device | |
CN107608633A (en) | A kind of storage device memory management method and relevant apparatus | |
CN103677875A (en) | Method for starting electronic equipment, method for controlling permission and electronic equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |