CN106843764B - Method and system for creating soft independent redundant disk array - Google Patents

Method and system for creating soft independent redundant disk array Download PDF

Info

Publication number
CN106843764B
CN106843764B CN201710045346.7A CN201710045346A CN106843764B CN 106843764 B CN106843764 B CN 106843764B CN 201710045346 A CN201710045346 A CN 201710045346A CN 106843764 B CN106843764 B CN 106843764B
Authority
CN
China
Prior art keywords
configuration information
soft
disk array
independent
array
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.)
Active
Application number
CN201710045346.7A
Other languages
Chinese (zh)
Other versions
CN106843764A (en
Inventor
贺雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201710045346.7A priority Critical patent/CN106843764B/en
Publication of CN106843764A publication Critical patent/CN106843764A/en
Application granted granted Critical
Publication of CN106843764B publication Critical patent/CN106843764B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices
    • G06F3/0689Disk arrays, e.g. RAID, JBOD

Abstract

The invention discloses a method and a system for creating a soft independent redundant disk array, wherein the method comprises the following steps: acquiring configuration information of a first soft independent redundant disk array from a hard disk of a soft independent redundant disk array to be created; acquiring configuration information of a second soft independent redundant disk array from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created; and when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.

Description

Method and system for creating soft independent redundant disk array
Technical Field
The present disclosure relates to the field of computers, and in particular, to a method and a system for creating a soft redundant array of independent disks.
Background
With the popularization of electronic technology and the increasing range of application fields, the requirements on the access speed, the security, the stability and the capacity of data storage are higher and higher. Redundant disk array technology is an effective means to increase the speed of data access, prevent data loss, and increase storage space. The redundant disk array is divided into a hard independent redundant disk array and a soft independent redundant disk array. Because the hard independent redundant disk array needs a disk array card, the current disk array card is generally expensive, and the realization of the redundant disk array by using a software means by utilizing the existing system becomes a feasible scheme.
The soft independent redundant disk array is a technology for realizing the function of the redundant disk array in a software mode through an operating system. Because the soft redundant array of independent disks has no firmware in itself, its configuration information is stored in the hard disk. However, once the CMOS power failure occurs in the server or the BIOS recovers the factory setting, the configuration information of the raid is damaged, and finally data loss occurs.
Disclosure of Invention
A first aspect of the present disclosure provides a method for creating a soft redundant array of independent disks, where the method includes: acquiring configuration information of a first soft independent redundant disk array from a hard disk of a soft independent redundant disk array to be created; acquiring configuration information of a second soft independent redundant disk array from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created; and when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
Optionally, when the configuration information of the first soft redundant array of independent disks is consistent with the configuration information of the second soft redundant array of independent disks, creating the soft redundant array of independent disks according to the configuration information of the first soft redundant array of independent disks or the configuration information of the second soft redundant array of independent disks, including: when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, determining whether the working mode of the south bridge SATA controller is an independent redundant disk array mode; and when the working mode of the south bridge SATA controller is an independent redundant disk array mode, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
Optionally, when the configuration information of the first soft redundant array of independent disks is consistent with the configuration information of the second soft redundant array of independent disks, creating the soft redundant array of independent disks according to the configuration information of the first soft redundant array of independent disks or the configuration information of the second soft redundant array of independent disks, further comprising: when the working mode of the south bridge SATA controller is not the independent redundant array of independent disks mode, outputting prompt information and waiting for receiving a user instruction; when a user instruction for modifying the working mode of the south bridge SATA controller to the redundant array of independent disks mode is received, modifying the working mode of the south bridge SATA controller to the redundant array of independent disks mode; and when a user instruction for keeping the working mode of the south bridge SATA controller unchanged is received, clearing the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array.
Optionally, the method for creating a soft redundant array of independent disks further includes: when the configuration information of the first soft independent redundant disk array is inconsistent with the configuration information of the second soft independent redundant disk array, modifying the configuration information of the first soft independent redundant disk array into the configuration information of the second soft independent redundant disk array; and creating the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
Optionally, the method for creating a soft redundant array of independent disks further includes: and when a user instruction for modifying the configuration information of the independent redundant disk array is received, modifying the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array into the configuration information of the independent redundant disk array input by a user.
A second aspect of the present disclosure provides a soft redundant array of independent disks (raid) creation system, the system comprising: the first configuration information acquisition module is used for acquiring first soft independent redundant disk array configuration information from a hard disk of a soft independent redundant disk array to be created; the second configuration information acquisition module is used for acquiring second soft independent redundant disk array configuration information from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created; and the creating module is used for creating the soft independent redundant disk array according to the first soft independent redundant disk array configuration information or the second soft independent redundant disk array configuration information when the first soft independent redundant disk array configuration information is consistent with the second soft independent redundant disk array configuration information.
A third aspect of the present disclosure provides a soft redundant array of independent disks (raid) creation system, the system comprising: the system comprises at least two hard disks, a first storage unit and a second storage unit, wherein the at least two hard disks are used for building an independent redundant disk array, and first soft independent redundant disk array configuration information is stored on the at least two hard disks respectively; at least one nonvolatile memory unit for storing the configuration information of the second soft redundant array of independent disks; the at least one processor is used for acquiring configuration information of a first soft independent redundant disk array from a hard disk of a soft independent redundant disk array to be created by executing an executable instruction; acquiring configuration information of a second soft independent redundant disk array from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created; and when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
A fourth aspect of the present disclosure provides a soft redundant array of independent disks (raid) creation system, the system comprising: the system comprises at least two hard disks, a first storage unit and a second storage unit, wherein the at least two hard disks are used for building an independent redundant disk array, and first soft independent redundant disk array configuration information is stored on the at least two hard disks respectively; at least one nonvolatile memory unit for storing the configuration information of the second soft redundant array of independent disks; the system comprises at least one processor and a control unit, wherein the at least one processor is used for acquiring first soft independent redundant disk array configuration information from a hard disk of a soft independent redundant disk array to be created by executing an executable instruction in the BIOS power-on self-test process; acquiring configuration information of a second soft independent redundant disk array from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created; the method is used for establishing the soft independent redundant disk array according to the first soft independent redundant disk array configuration information or the second soft independent redundant disk array configuration information when the first soft independent redundant disk array configuration information is consistent with the second soft independent redundant disk array configuration information, and is also used for realizing the method for modifying the first soft independent redundant disk array configuration information and the second soft independent redundant disk array configuration information into the independent redundant disk array configuration information input by a user when the user instruction for modifying the independent redundant disk array configuration information is received by executing the executable instruction after the operating system is started.
Drawings
For a more complete understanding of the present disclosure and the advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart that schematically illustrates a method for soft redundant array of independent disks creation, in accordance with an embodiment of the present disclosure.
Fig. 2 is a flow chart schematically illustrating steps performed when two pieces of configuration information are consistent in a soft redundant array of independent disks creation method according to an embodiment of the present disclosure.
FIG. 3 is a flow chart schematically illustrating steps performed when two configuration information are consistent in a method for creating a RAID according to another embodiment of the present disclosure.
FIG. 4 is a flow chart that schematically illustrates a method for soft redundant array of independent disks creation, in accordance with another embodiment of the present disclosure.
FIG. 5 schematically shows a flow diagram for modifying configuration information according to an embodiment of the disclosure.
FIG. 6 is a block diagram schematically illustrating a soft redundant array of independent disks creation system according to an embodiment of the present disclosure.
Fig. 7 schematically shows a block diagram of the structure of a creation module according to an embodiment of the present disclosure.
Fig. 8 is a block diagram showing the configuration of a redundant array of independent disks creation system according to an embodiment of the present disclosure.
Fig. 9 is a block diagram showing a configuration of a redundant array of independent disks creation system according to another embodiment of the present disclosure.
Detailed Description
Other aspects, advantages, and salient features of the disclosure will become apparent to those skilled in the art from the following detailed description, which, taken in conjunction with the annexed drawings, discloses exemplary embodiments of the disclosure.
In the present disclosure, the terms "include" and "comprise," as well as derivatives thereof, mean inclusion without limitation; the term "or" is inclusive, meaning and/or.
In this specification, the various embodiments described below which are used to describe the principles of the present disclosure are by way of illustration only and should not be construed in any way to limit the scope of the disclosure. The following description with reference to the accompanying drawings is provided to assist in a comprehensive understanding of exemplary embodiments of the present disclosure as defined by the claims and their equivalents. The following description includes various specific details to aid understanding, but such details are to be regarded as illustrative only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Moreover, descriptions of well-known functions and constructions are omitted for clarity and conciseness. Moreover, throughout the drawings, the same reference numerals are used for similar functions and operations.
Some block diagrams and/or flow diagrams are shown in the figures. It will be understood that some blocks of the block diagrams and/or flowchart illustrations, or combinations thereof, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the instructions, which execute via the processor, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the techniques of this disclosure may be implemented in hardware and/or software (including firmware, microcode, etc.). Additionally, the techniques of this disclosure may take the form of a computer program product on a computer-readable medium having instructions stored thereon for use by an instruction execution system. In the context of this disclosure, a computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the instructions. For example, the computer readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. Specific examples of the computer readable medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
Currently, the approach to using soft redundant array of independent disks (soft RAID) technology is: in a server BIOS (basic input/output System) setting, a south bridge SATA (Serial hard disk mode) controller is changed from a default AHCI mode to a RAID (redundant array of independent disks) mode. Because the soft RAID does not have firmware, and all functions are implemented in the operating system driver layer in a software manner, the configuration information of the soft RAID is only stored in the tail portion of the physical hard disk. Meanwhile, the current mainstream server BIOS always intelligently detects the integrity of a GPT (disk partition table) on a hard disk in the power-on self-test process, and when it is found that a main partition table at the head of the hard disk is inconsistent with a backup partition table at the tail of the hard disk, a user is prompted whether to attempt to repair the partition table. If the user attempts to repair the partition table as prompted at this time, the RAID configuration information is destroyed, and data is eventually lost. In the prior art, when a soft RAID is used, a south bridge SATA controller is set to be in a RAID mode, a BIOS sees a RAID logical disk in a server power on self-test process, and a small data area at the tail of a hard disk is hidden to store configuration information of the RAID. However, once the CMOS power down occurs in the server or the BIOS is restored to the factory setting, the settings of the south bridge SATA controller are changed back to the default AHCI mode. At this time, the BIOS may directly see the soft RAID configuration information hidden at the tail of the physical hard disk during the server power-on self-test, and think that it is inconsistent with the main partition table at the head of the hard disk.
In order to solve the above problems, the present disclosure provides a method for creating a soft redundant array of independent disks, which stores configuration information of a soft RAID in a hard disk and a nonvolatile storage memory unit at the same time. When the soft independent redundant disk array is created, no matter what mode the south bridge SATA is in, configuration information is read from the hard disk and the nonvolatile storage memory unit, and when the two read configuration information are consistent, the soft independent redundant disk array is created according to the configuration information. In addition, the method can be recovered through the configuration information in the nonvolatile storage memory unit even if the RAID configuration information in the hard disk is damaged due to misoperation of a user.
FIG. 1 is a flow chart schematically illustrating a method for creating a soft redundant array of independent disks according to an embodiment of the present disclosure.
As shown in fig. 1, the method includes the following steps S110-S130.
In step S110, first soft redundant array of independent disks configuration information is obtained from a hard disk of a soft redundant array of independent disks to be created.
In step S120, second soft redundant array of independent disks configuration information is obtained from a nonvolatile storage memory unit, where the nonvolatile storage memory unit is different from the hard disk of the soft redundant array of independent disks to be created.
In step S130, when the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent, the soft redundant array of independent disks is created according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information.
In the embodiment, the configuration information of the soft independent redundant disk array is simultaneously stored in the hard disk and the nonvolatile storage memory unit, and when the soft independent redundant disk array is created, the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array are obtained from the hard disk and the nonvolatile storage memory unit of the soft independent redundant disk array to be created, and when the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array are consistent, the soft independent redundant disk array is created by using one of the first soft independent redundant disk array and the second soft independent redundant disk array. The soft independent redundant disk array is directly created when the configuration information on the hard disk and the nonvolatile storage memory unit is consistent by judging whether the configuration information of the soft independent redundant disk array acquired from the hard disk and the nonvolatile storage memory unit is consistent or not, and when the configuration information on the hard disk and the configuration information on the nonvolatile storage memory unit are inconsistent, the soft independent redundant disk array can be set according to actual requirements, such as prompting and inquiring a user, and selecting whether to create the soft independent redundant disk array or not according to the will of the user so as to prevent the user from mistakenly operating and damaging the configuration information and the like under an unclear condition.
In the embodiment of the present disclosure, step S110 reads configuration information stored by a hard disk for creating a redundant array of independent disks from the hard disk equipped in a system for creating a redundant array of independent disks as first soft redundant array of independent disks configuration information. According to the embodiment of the disclosure, the system for creating the redundant array of independent disks comprises a server system, a cloud storage system, a desktop computer, a portable computer, a PAD and the like, which can be provided with a hard disk. The hard disk of the soft redundant array of independent disks to be created is used for storing data according to the mode of the redundant array of independent disks, and the tail part of the hard disk stores the configuration information of the redundant array of independent disks. The patterns of the redundant array of independent disks include RAID0, RAID1, RAID3, RAID5, RAID7, RAID0+1 and the like. At least two hard disks are configured in each system for creating the independent redundant disk array, and the number of the hard disks can be adjusted according to a mode set by the soft independent redundant disk array. For example: at least two hard disks are needed in RAID1 mode; in RAID5 mode, at least three hard disks are required. The first soft redundant array of independent disks configuration information is configuration information stored in a hard disk, and the configuration information includes: the setting data of the soft redundant array of independent disks in the system, the form of the data stored in the hard disk, the position of the data stored in the hard disk and the like. For example, the configuration information of a hard disk includes system setting data that the hard disk is set to RAID5 mode, whether the hard disk stores check data or original data, and information such as a partition of the data storage hard disk, where the check data indicates a relationship between data stored in two other hard disks, for example, data a is stored in hard disk 1, data B is stored in hard disk 2, and check data C, C being a + B or C being a-B is stored in hard disk 3.
In step S120, the system for creating an raid reads configuration information for creating an raid stored in a nonvolatile storage memory unit, which is different from the hard disk of the raid to be created, from the nonvolatile storage memory unit as second soft raid configuration information. According to the embodiment of the invention, the configuration information of the soft redundant array of independent disks is stored in a nonvolatile storage memory unit while being stored in the hard disk. For example, a nonvolatile memory area may be divided on an existing nonvolatile memory device of the device, or a nonvolatile memory unit device may be specially configured to store configuration information, which facilitates software layer access. The second soft redundant array of independent disks configuration information is configuration information stored in a nonvolatile storage memory unit different from the hard disks, and the configuration information includes configuration information of the redundant array of independent disks in each hard disk. For example, if the system for creating the redundant array of independent disks is set to RAID5 mode, the configuration information in each hard disk in the operation mode is stored in the nonvolatile storage memory unit, including the setting data of the soft redundant array of independent disks in each hard disk in the system, the form of the user data stored in each hard disk, and the location of the user data stored in the corresponding hard disk. The configuration information of the soft redundant array of independent disks stored in the nonvolatile memory unit can ensure the safety of user data, and when the configuration information of the redundant array of independent disks on the hard disk is lost or damaged, the configuration information can still be recovered from the nonvolatile memory unit.
In step S130, it is determined whether the acquired first and second soft redundant array configuration information are consistent, and when the two configuration information are consistent, the soft redundant array is created according to the first or second soft redundant array configuration information. When the configuration information is consistent, it can indicate that the configuration information in the hard disk is not lost or damaged, in this case, the soft redundant array of independent disks is created according to the configuration information.
According to the embodiment of the disclosure, in the implementation process, the method may be implemented by a driver of the raid. In the process of power-on self-test of the server, no matter what mode the motherboard south bridge SATA controller is set to, the BIOS always loads a driver of the soft independent redundant disk array, such as loading a uEFI driver or a legacy OpROM, acquires configuration information from a hard disk of the soft independent redundant disk array to be created and a nonvolatile storage memory unit through the driver, and then creates the soft independent redundant disk array by judging whether the two are consistent.
Fig. 2 schematically shows a flowchart of step S130 executed when two pieces of configuration information are consistent in the method for creating a raid according to the embodiment of the present disclosure.
As shown in fig. 2, step S130 may include steps S1301-S1302 as follows.
In step S1301, when the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent, it is determined whether the operating mode of the south bridge SATA controller is the redundant array of independent disks mode.
In step S1302, when the operating mode of the south bridge SATA controller is the raid mode, the soft raid is created according to the first soft raid configuration information or the second soft raid configuration information.
In the above technical solution of the present disclosure, under the condition that it is determined that the hard disk of the soft redundant array of independent disks to be created and the configuration information in the nonvolatile storage memory unit are consistent, it is further determined whether the working mode of the south bridge SATA controller is in the redundant array of independent disks mode, and if the working mode of the south bridge SATA controller is in the redundant array of independent disks mode, the soft redundant array of independent disks is created according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information. In this way, the working mode of the south bridge SATA controller is prevented from being restored to the AHCI mode of the default mode due to the occurrence of system abnormality and the like, so that the creation of the soft redundant array of independent disks is prevented from failing.
In the above embodiment of the present disclosure, in step S1301, after determining that the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent, the operating mode of the south bridge SATA controller is determined. According to the embodiment of the disclosure, the south bridge SATA controller is defaulted to work in an AHCI mode, and if the south bridge SATA controller works in a soft redundant array of independent disks mode, the south bridge SATA controller needs to be set to a RAID mode.
Step S1302, after determining that the working mode of the southbridge SATA controller is the RAID mode, creates a soft redundant array of independent disks according to first configuration information acquired from a hard disk or second configuration information acquired from a nonvolatile storage memory unit. According to the embodiment of the disclosure, when the configuration information is consistent, the configuration information in the hard disk can be represented to be not lost or damaged; and the south bridge SATA controller is in RAID mode, in which case a soft redundant array of independent disks is created according to the configuration information.
Fig. 3 schematically shows a flowchart of step S130 performed when two pieces of configuration information are consistent in a soft redundant array of independent disks creation method according to another embodiment of the present disclosure. The difference between the flow shown in FIG. 3 and the flow shown in FIG. 2 is the operation mode of the south bridge SATA controller.
As shown in fig. 3, the step S130 may include the following steps S1311 to S1313.
In step S1311, when the operating mode of the south bridge SATA controller is not the raid mode, a notification is output and reception of a user instruction is waited for.
In step S1312, when a user command for modifying the operation mode of the south bridge SATA controller to raid mode is received, the operation mode of the south bridge SATA controller is modified to raid mode.
In step S1313, when a user instruction to keep the operating mode of the south bridge SATA controller unchanged is received, the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are cleared.
In the above technical solution of the present disclosure, in a case where it is determined that the hard disk of the soft redundant array of independent disks to be created and the configuration information in the nonvolatile storage memory unit are consistent, if the operating mode of the south bridge SATA controller is not in the redundant array of independent disks mode, it may be that the operating mode of the south bridge SATA controller is restored to the default AHCI mode due to a system abnormality or the like, or it may be that the user sets the AHCI mode by himself/herself, so that the user can create the soft redundant array of independent disks as desired by outputting a prompt message to the user so as to select whether to modify the operating mode of the south bridge SATA controller to the RAID mode, and if the user indicates that the operating mode of the south bridge SATA controller does not need to be modified, the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are cleared, and the soft redundant array of independent disks is no longer created. Through the technical scheme of the embodiment, under the condition that the acquired configurations are soft independent redundant disk array configuration information and the working mode of the south bridge SATA controller is not in a RAID mode, a user selects whether to continue to create a soft independent redundant disk array or not so as to prevent the user from executing misoperation under the unclear condition.
In the above embodiment of the present disclosure, in step S1311, after determining that the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent, determining whether the working mode of the south bridge SATA controller is in the redundant array of independent disks mode, and when the working mode of the south bridge SATA controller is not in the redundant array of independent disks mode, outputting a prompt message and waiting for receiving a user instruction. The prompt message includes a prompt to the user that the current working mode is not the soft redundant array of independent disks mode and asks the user whether to change the working mode to the soft redundant array of independent disks mode.
Step S1312, when the user receives the prompt and wants to operate in the raid mode, the system receives a user command to modify the south bridge SATA controller operating mode to the raid mode, and modifies the south bridge SATA controller operating mode to the raid mode according to the user command. In the embodiment of the disclosure, after receiving the modified user instruction, the working mode of the south bridge SATA controller is reset, the modified working mode is recorded in the CMOS, and the power-on self-test process is re-entered after modification.
Step S1313, when the user receives the prompt and wants the system to continue to operate in the AHCI mode without creating the soft redundant array of independent disks, the system receives a user instruction to keep the operating mode of the southbridge SATA controller unchanged, and clears the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information according to the user instruction. In the disclosed embodiment, the flush configuration information includes flush configuration information stored in the hard disk and the nonvolatile storage memory unit, all of which are related to creating the soft redundant array of independent disks.
FIG. 4 is a flow chart of a method for creating a RAID according to another embodiment of the present disclosure.
As shown in fig. 4, the method further includes steps S140-S150 on the basis of the method for creating a raid shown in fig. 1, and steps S110-S130 are the same as the method described in fig. 1 and will not be described again here.
In step S140, when the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are inconsistent, the first soft redundant array of independent disks configuration information is modified to the second soft redundant array of independent disks configuration information.
In step S150, the soft redundant array of independent disks is created according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information.
In the above embodiments of the present disclosure, when it is determined that the configuration information of the first soft redundant array of independent disks is inconsistent with the configuration information of the second soft redundant array of independent disks, it may be determined that the configuration information in the hard disk may be lost or damaged, and the configuration information in the hard disk is recovered by using the configuration information stored in the nonvolatile memory unit, thereby ensuring the security of the configuration information of the hard disk.
In the above embodiment of the present disclosure, step S140 writes the configuration information in the nonvolatile storage memory unit into the hard disk when the first soft redundant array of independent disks configuration information acquired from the hard disk and the second soft redundant array of independent disks configuration information acquired from the nonvolatile storage memory unit are not consistent. According to the embodiment of the present disclosure, the case where the configuration information is inconsistent includes: the hard disk is damaged, and the original configuration information in the hard disk is lost; or a new hard disk is replaced, and the original configuration information does not exist in the hard disk. For example, when the configuration information is inconsistent, a prompt message is output and a user instruction is awaited. The user judges according to the actual situation, for example, the user replaces a new hard disk, and when the configuration information is inconsistent, the user instructs to write the configuration information in the nonvolatile memory unit into the new hard disk; or the user needs to check whether the hard disk is in fault or damaged, the user instructs to close the electronic equipment, and the electronic equipment is restarted after the reason is determined to be checked.
Step S150 is modified in step S140 so that the configuration information in the hard disk and the nonvolatile memory unit is consistent, in which case the raid is created according to the configuration information.
FIG. 5 schematically shows a flow diagram for modifying configuration information according to an embodiment of the disclosure.
As shown in fig. 5, the method is based on the method for creating a raid shown in fig. 1, and includes steps S201 to S203. The method described in fig. 5 may be performed in parallel with the method described in fig. 1, or may be performed after the operating system is started after the method described in fig. 1.
As shown in fig. 5, in step S201, a modification instruction is received. In the self-checking process of the BIOS, a user can modify the configuration information of the redundant array of independent disks according to actual requirements, and the BIOS responds to a user instruction through a loaded drive program of the redundant array of independent disks to modify the configuration information. According to the embodiment of the disclosure, after the BIOS creates the soft redundant array of independent disks according to the configuration information in the hard disk and the nonvolatile memory unit, the operating system is started, a user can modify the configuration information of the redundant array of independent disks according to actual requirements during the operation of the operating system, and after the operating system receives a user instruction for modifying the configuration information of the redundant array of independent disks, a driver of the redundant array of independent disks loaded by the operating system during the start-up responds to the user instruction. The user command comprises a modification command and new configuration information of the redundant array of independent disks. For example: the current RAID0 mode is changed to a RAID1 mode.
In step S202, the first configuration information is modified. According to the embodiment of the disclosure, the driver of the redundant array of independent disks modifies the configuration information of the first soft redundant array of independent disks stored on the hard disk into the configuration information of the new redundant array of independent disks input by the user according to the instruction of the user. Namely, the new configuration information of the redundant array of independent disks input by the user is written into the hard disk, and the original configuration information in the hard disk is deleted.
In step S203, the second configuration information is modified. According to the embodiment of the disclosure, the drive program of the redundant array of independent disks modifies the second soft redundant array of independent disks configuration information stored in the nonvolatile memory unit into new redundant array of independent disks configuration information input by the user according to the instruction of the user. That is, the new RAID configuration information inputted by the user is written into the nonvolatile memory unit, and the original configuration information in the nonvolatile memory unit is deleted.
According to the embodiment of the disclosure, in the implementation process, the BIOS always loads a driver of the soft redundant array of independent disks, such as the urefidriver or legacy OpROM, no matter what mode the motherboard southbridge SATA controller is set to, and obtains configuration information from the hard disk of the soft redundant array of independent disks to be created and the nonvolatile storage memory unit through the driver, and creates the soft redundant array of independent disks according to the method in the embodiment of the disclosure. After the power-on self-test is finished, the operating system is started, and when the operating mode of the operating system in the current south bridge SATA is the RAID mode, the operating system also always loads a driver of the RAID, for example, a uEFI driver or a legacy OpROM, so that a user can modify configuration information of the RAID through the driver of the RAID.
FIG. 6 is a block diagram schematically illustrating a soft redundant array of independent disks creation system according to an embodiment of the present disclosure.
As shown in fig. 6, the system for creating a raid includes a first configuration information obtaining module 310, a second configuration information obtaining module 320, a creating module 330, a configuration information modifying module 340, and a configuration information updating module 350; wherein:
the first configuration information obtaining module 310 is configured to obtain first soft redundant array of independent disks configuration information from a hard disk of a soft redundant array of independent disks to be created.
The second configuration information obtaining module 320 is configured to obtain second soft redundant array of independent disks configuration information from a nonvolatile storage memory unit, which is different from the hard disk of the soft redundant array of independent disks to be created.
The creating module 330 is configured to create the soft redundant array of independent disks according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information when the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent.
In the technical scheme of the disclosure, the configuration information of the soft independent redundant disk array is simultaneously stored in the hard disk and the nonvolatile storage memory unit, when the soft independent redundant disk array is created, the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array are obtained from the hard disk and the nonvolatile storage memory unit of the soft independent redundant disk array to be created, and the soft independent redundant disk array is created by using one of the first soft independent redundant disk array and the second soft independent redundant disk array under the condition that the first soft independent redundant disk array and the second soft independent redundant disk array are consistent. According to the technical scheme, whether the configuration information of the soft independent redundant disk array acquired from the hard disk and the nonvolatile storage memory unit is consistent or not is judged, so that the soft independent redundant disk array is directly created when the configuration information on the hard disk and the nonvolatile storage memory unit is consistent, and when the configuration information on the hard disk and the configuration information on the nonvolatile storage memory unit are inconsistent, the setting can be carried out according to actual requirements, such as prompting and inquiring a user, and selecting whether to create the soft independent redundant disk array or not according to the intention of the user, so that the configuration information is prevented from being damaged by misoperation under the unclear condition of the user, and the like.
In the embodiment of the present disclosure, the first configuration information obtaining module 310 reads, from a hard disk equipped in a system for creating an raid, configuration information stored in the hard disk and used for creating the raid as first soft raid configuration information. According to the embodiment of the disclosure, the system for creating the redundant array of independent disks comprises a server system, a cloud storage system, a desktop computer, a portable computer, a PAD and the like, which can be provided with a hard disk. The hard disk of the soft redundant array of independent disks to be created is used for storing data according to the mode of the redundant array of independent disks, and the tail part of the hard disk stores the configuration information of the redundant array of independent disks. The patterns of the redundant array of independent disks include RAID0, RAID1, RAID3, RAID5, RAID7, RAID0+1 and the like. At least two hard disks are configured in each system for creating the independent redundant disk array, and the number of the hard disks can be adjusted according to a mode set by the soft independent redundant disk array. For example: at least two hard disks are needed in RAID1 mode; in RAID5 mode, at least three hard disks are required. The first soft redundant array of independent disks configuration information is configuration information stored in a hard disk, and the configuration information includes: the setting data of the soft redundant array of independent disks in the system, the form of the data stored in the hard disk, the position of the data stored in the hard disk and the like. For example, the configuration information of a hard disk includes system setting data that the hard disk is set to RAID5 mode, whether the hard disk stores check data or original data, and information such as a partition of the data storage hard disk, where the check data indicates a relationship between data stored in two other hard disks, for example, data a is stored in hard disk 1, data B is stored in hard disk 2, and check data C, C being a + B or C being a-B is stored in hard disk 3.
The second configuration information obtaining module 320 is configured to read, by the system for creating the raid, the configuration information for creating the raid stored in the nonvolatile storage memory unit, which is different from the hard disk of the to-be-created raid, from the nonvolatile storage memory unit as the second soft raid configuration information. According to the embodiment of the invention, the configuration information of the soft redundant array of independent disks is stored in a nonvolatile storage memory unit while being stored in the hard disk. For example, a nonvolatile memory area may be divided on an existing nonvolatile memory device of the device, or a nonvolatile memory unit device may be specially configured to store configuration information, which facilitates software layer access. The second soft redundant array of independent disks configuration information is configuration information stored in a nonvolatile storage memory unit different from the hard disks, and the configuration information includes configuration information of the redundant array of independent disks in each hard disk. For example, if the system for creating the redundant array of independent disks is set to RAID5 mode, the configuration information in each hard disk in the operation mode is stored in the nonvolatile storage memory unit, including the setting data of the soft redundant array of independent disks in each hard disk in the system, the form of the user data stored in each hard disk, and the location of the user data stored in the corresponding hard disk. The configuration information of the soft redundant array of independent disks stored in the nonvolatile memory unit can ensure the safety of user data, and when the configuration information of the redundant array of independent disks on the hard disk is lost or damaged, the configuration information can still be recovered from the nonvolatile memory unit.
The creating module 330 determines whether the acquired configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, and creates the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array when the two configuration information are consistent. When the configuration information is consistent, it can indicate that the configuration information in the hard disk is not lost or damaged, in this case, the soft redundant array of independent disks is created according to the configuration information.
According to the embodiment of the disclosure, in the implementation process, the modules may be implemented by a driver of the raid. In the process of power-on self-test of the server, no matter what mode the motherboard south bridge SATA controller is set to, the BIOS always loads a driver of the soft independent redundant disk array, such as loading a uEFI driver or a legacy OpROM, acquires configuration information from a hard disk of the soft independent redundant disk array to be created and a nonvolatile storage memory unit through the driver, and then creates the soft independent redundant disk array by judging whether the two are consistent.
The configuration information modification module 340 is configured to modify the first soft redundant array of independent disks configuration information into the second soft redundant array of independent disks configuration information when the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are inconsistent.
According to the embodiment of the disclosure, when the configuration information of the first soft independent redundant disk array is judged to be inconsistent with the configuration information of the second soft independent redundant disk array, it can be determined that the configuration information in the hard disk is possibly lost or damaged, and the configuration information in the hard disk is recovered by using the configuration information stored in the nonvolatile memory unit, so that the safety of the configuration information of the hard disk is ensured.
In the above embodiment of the present disclosure, the configuration information modification module 340 writes the configuration information in the nonvolatile storage memory unit into the hard disk when the first soft redundant array of independent disks configuration information obtained from the hard disk and the second soft redundant array of independent disks configuration information obtained from the nonvolatile storage memory unit are inconsistent. According to the embodiment of the present disclosure, the case where the configuration information is inconsistent includes: the hard disk is damaged, and the original configuration information in the hard disk is lost; or a new hard disk is replaced, and the original configuration information does not exist in the hard disk. For example, when the configuration information is inconsistent, a prompt message is output and a user instruction is awaited. The user judges according to the actual situation, for example, the user replaces a new hard disk, and when the configuration information is inconsistent, the user instructs to write the configuration information in the nonvolatile memory unit into the new hard disk; or the user needs to check whether the hard disk is in fault or damaged, the user instructs to close the electronic equipment, and the electronic equipment is restarted after the reason is determined to be checked.
The creation module 330 makes the configuration information in the hard disk and the nonvolatile storage memory unit consistent through the modification of the configuration information modification module 340, in this case, creates the raid according to the configuration information.
The configuration information updating module 350 is configured to modify the first and second soft redundant array of independent disks configuration information into the redundant array of independent disks configuration information input by the user when receiving a user instruction to modify the redundant array of independent disks configuration information. In the self-checking process of the BIOS, a user can modify the configuration information of the redundant array of independent disks according to actual requirements, and the BIOS responds to a user instruction through a loaded drive program of the redundant array of independent disks to modify the configuration information. According to the embodiment of the disclosure, after the BIOS creates the soft redundant array of independent disks according to the configuration information in the hard disk and the nonvolatile memory unit, the operating system is started, a user can modify the configuration information of the redundant array of independent disks according to actual requirements during the operation of the operating system, and after the operating system receives a user instruction for modifying the configuration information of the redundant array of independent disks, a driver of the redundant array of independent disks loaded by the operating system during the start-up responds to the user instruction. The user command comprises a modification command and new configuration information of the redundant array of independent disks. For example: the current RAID0 mode is changed to a RAID1 mode.
According to the embodiment of the disclosure, the driver of the redundant array of independent disks modifies the configuration information of the first soft redundant array of independent disks stored on the hard disk into the configuration information of the new redundant array of independent disks input by the user according to the instruction of the user. Namely, the new configuration information of the redundant array of independent disks input by the user is written into the hard disk, and the original configuration information in the hard disk is deleted.
According to the embodiment of the disclosure, the drive program of the redundant array of independent disks modifies the second soft redundant array of independent disks configuration information stored in the nonvolatile memory unit into new redundant array of independent disks configuration information input by the user according to the instruction of the user. That is, the new RAID configuration information inputted by the user is written into the nonvolatile memory unit, and the original configuration information in the nonvolatile memory unit is deleted.
According to the embodiment of the disclosure, in the implementation process, the BIOS always loads a driver of the soft redundant array of independent disks, such as the urefidriver or legacy OpROM, no matter what mode the motherboard southbridge SATA controller is set to, and obtains configuration information from the hard disk of the soft redundant array of independent disks to be created and the nonvolatile storage memory unit through the driver, and creates the soft redundant array of independent disks according to the method in the embodiment of the disclosure. After the power-on self-test is finished, the operating system is started, and when the operating mode of the operating system in the current south bridge SATA is the RAID mode, the operating system also always loads a driver of the RAID, for example, a uEFI driver or a legacy OpROM, so that a user can modify configuration information of the RAID through the driver of the RAID.
Fig. 7 schematically shows a block diagram of the structure of a creation module according to an embodiment of the present disclosure.
As shown in fig. 7, the creating module 330 further includes the following sub-modules: a working mode judging sub-module 331 and a soft redundant array of independent disks creating sub-module 332.
The working mode determination sub-module 331 is configured to determine whether the working mode of the south bridge SATA controller is the raid mode when the first and second raid configuration information are consistent.
The soft redundant array of independent disks creating sub-module 332 is configured to create the soft redundant array of independent disks according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information when the south bridge SATA controller operating mode is the redundant array of independent disks mode.
In the above technical solution of the present disclosure, under the condition that it is determined that the hard disk of the soft redundant array of independent disks to be created and the configuration information in the nonvolatile storage memory unit are consistent, it is further determined whether the working mode of the south bridge SATA controller is in the redundant array of independent disks mode, and if the working mode of the south bridge SATA controller is in the redundant array of independent disks mode, the soft redundant array of independent disks is created according to the first soft redundant array of independent disks configuration information or the second soft redundant array of independent disks configuration information. In this way, the working mode of the south bridge SATA controller is prevented from being restored to the AHCI mode of the default mode due to the occurrence of system abnormality and the like, so that the creation of the soft redundant array of independent disks is prevented from failing.
In the above embodiment of the present disclosure, the working mode determining sub-module 331 determines the working mode of the south bridge SATA controller after determining that the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are consistent. According to the embodiment of the disclosure, the south bridge SATA controller is defaulted to work in an AHCI mode, and if the south bridge SATA controller works in a soft redundant array of independent disks mode, the south bridge SATA controller needs to be set to a RAID mode.
The soft redundant array of independent disks creating sub-module 332 creates a soft redundant array of independent disks according to the first configuration information acquired from the hard disk or the second configuration information acquired from the nonvolatile storage memory unit after determining that the working mode of the south bridge SATA controller is the RAID mode. According to the embodiment of the disclosure, when the configuration information is consistent, the configuration information in the hard disk can be represented to be not lost or damaged; and the south bridge SATA controller is in RAID mode, in which case a soft redundant array of independent disks is created according to the configuration information.
In an embodiment of the present disclosure, as shown in fig. 7, the creating module 330 further includes the following sub-modules: a prompt information output sub-module 333, an operating mode modification sub-module 334, and a configuration information clearing sub-module 335.
The hint information output sub-module 333 is configured to output hint information when the operational mode of the south bridge SATA controller is not raid mode, and wait for receiving a user instruction.
The operation mode modification submodule 334 is configured to modify the south bridge SATA controller operation mode to raid mode upon receiving a user instruction to modify the south bridge SATA controller operation mode to raid mode.
The configuration information clearing submodule 335 is configured to clear the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information when receiving a user instruction to keep the operating mode of the south bridge SATA controller unchanged.
In the above technical solution of the present disclosure, in a case where it is determined that the hard disk of the soft redundant array of independent disks to be created and the configuration information in the nonvolatile storage memory unit are consistent, if the operating mode of the south bridge SATA controller is not in the redundant array of independent disks mode, it may be that the operating mode of the south bridge SATA controller is restored to the default AHCI mode due to a system abnormality or the like, or it may be that the user sets the AHCI mode by himself/herself, so that the user can create the soft redundant array of independent disks as desired by outputting a prompt message to the user so as to select whether to modify the operating mode of the south bridge SATA controller to the RAID mode, and if the user indicates that the operating mode of the south bridge SATA controller does not need to be modified, the first soft redundant array of independent disks configuration information and the second soft redundant array of independent disks configuration information are cleared, and the soft redundant array of independent disks is no longer created. Through the technical scheme of the embodiment, under the condition that the acquired configurations are soft independent redundant disk array configuration information and the working mode of the south bridge SATA controller is not in a RAID mode, a user selects whether to continue to create a soft independent redundant disk array or not so as to prevent the user from executing misoperation under the unclear condition.
In the above embodiment of the present disclosure, the prompt information output sub-module 333 determines whether the working mode of the south bridge SATA controller is the raid mode after determining that the first soft raid configuration information and the second soft raid configuration information are consistent, and outputs the prompt information and waits for receiving the user instruction when the working mode of the south bridge SATA controller is not the raid mode. The prompt message includes a prompt to the user that the current working mode is not the soft redundant array of independent disks mode and asks the user whether to change the working mode to the soft redundant array of independent disks mode.
The working mode modification sub-module 334, when the user receives the prompt and wants to work in raid mode, the system receives a user command to modify the working mode of the south bridge SATA controller to raid mode, and modifies the working mode of the south bridge SATA controller to raid mode according to the user command. In the embodiment of the disclosure, after receiving the modified user instruction, the working mode of the south bridge SATA controller is reset, the modified working mode is recorded in the CMOS, and the power-on self-test process is re-entered after modification.
And a configuration information clearing submodule 335, configured to, when the user receives the prompt and wants the system to continue to operate in the AHCI mode without creating the soft independent redundant disk array, clear the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array according to the user instruction after receiving the user instruction for keeping the operation mode of the south bridge SATA controller unchanged. In the disclosed embodiment, the flush configuration information includes flush configuration information stored in the hard disk and the nonvolatile storage memory unit, all of which are related to creating the soft redundant array of independent disks.
It is to be understood that any plurality of the first configuration information obtaining module 310, the second configuration information obtaining module 320, the creating module 330, the configuration information modifying module 340, and the configuration information updating module 350 may be combined into one module to be implemented, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the first configuration information obtaining module 310, the second configuration information obtaining module 320, the creating module 330, the configuration information modifying module 340, and the configuration information updating module 350 may be at least partially implemented as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner for integrating or packaging a circuit, or in a suitable combination of three implementations of software, hardware, and firmware. Alternatively, at least one of the first configuration information acquiring module 310, the second configuration information acquiring module 320, the creating module 330, the configuration information modifying module 340, and the configuration information updating module 350 may be at least partially implemented as a computer program module that, when executed by a computer, may perform the functions of the respective modules.
FIG. 8 is a block diagram illustrating a redundant array of independent disks creation system 500 according to another embodiment of the present disclosure.
As shown in fig. 8, the redundant array of independent disks creation system 500 includes: at least two hard disks 510, at least one non-volatile memory unit 520, and at least one processor 530.
At least two hard disks 510 are used for building an independent redundant disk array, and configuration information of a first soft independent redundant disk array is stored in each of the at least two hard disks;
at least one non-volatile memory unit 520 for storing second soft redundant array of independent disks configuration information;
the at least one processor 530 executes the executable instructions to implement the redundant array of independent disks creation method according to the above-described embodiment of the present disclosure.
In the embodiment disclosed above, the at least two hard disks are hard disks for constructing an independent redundant disk array, and the specific number is set according to an actual situation. The nonvolatile memory unit is used for storing the configuration information of the second soft independent redundant array of independent disks. Such as a general-purpose microprocessor, an instruction set processor and/or associated chipset, and/or a special-purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 530 may also include on-board memory for caching purposes. Processor 530 may be a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure described with reference to fig. 1-5.
The non-volatile memory storage unit may be, for example, a non-volatile memory device capable of containing, storing, transmitting, propagating or transferring data. For example, the non-volatile memory cell can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
According to an embodiment of the present disclosure, the redundant array of independent disks creation system may further include a readable storage medium 540 for storing a computer program 541, the computer program 541 comprising code/computer readable instructions that when executed by the processor 530, cause the processor 530 to perform a method flow such as described above in connection with fig. 1-5 and any variations thereof. The readable storage medium 540 may be, for example, any medium that can contain, store, communicate, propagate, or transport the program; for example, specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer programs 541 may be configured with, for example, computer program code comprising computer program modules. For example, in an example embodiment, code in computer program 541 may include one or more program modules, including for example module 541A, module 541B, … …, module 541D. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 530, enable the processor 530 to perform the method flows described above in connection with fig. 1 to 5, for example, and any variations thereof.
According to an embodiment of the present disclosure, the redundant array of independent disks creation system may further include an input unit 550 for receiving signals from other entities, and an output unit 560 for providing signals to other entities. The input unit 550 and the output unit 560 may be arranged as a single entity or as separate entities.
As shown in conjunction with fig. 6 and 7, according to an embodiment of the present disclosure, the first configuration information acquiring module 310, the second configuration information acquiring module 320, the creating module 330, the configuration information modifying module 340, and the configuration information updating module 350 may be implemented as computer program modules described with reference to fig. 8, which, when executed by the processor 530, may implement the corresponding operations described above.
Fig. 9 is a block diagram showing a configuration of a redundant array of independent disks creation system according to another embodiment of the present disclosure.
As shown in fig. 9, the redundant array of independent disks creation system 600 includes: at least two hard disks 610, at least one non-volatile memory unit 620, and at least one processor 630.
The at least two hard disks 610 are used for building an independent redundant disk array, and first soft independent redundant disk array configuration information is stored in each of the at least two hard disks;
the at least one nonvolatile storage memory unit 620 is used for storing the second soft redundant array of independent disks configuration information;
the at least one processor 630 is configured to execute the executable instruction in the BIOS power on self test process to implement the method for creating the raid according to the embodiment of the present disclosure, and is further configured to execute the executable instruction after the operating system is started to implement the method for modifying the configuration information of the raid according to the user instruction in the embodiment of the present disclosure.
In the embodiment disclosed above, the at least two hard disks are hard disks for constructing an independent redundant disk array, and the specific number is set according to an actual situation. The nonvolatile memory unit is used for storing the configuration information of the second soft independent redundant array of independent disks. Such as a general-purpose microprocessor, an instruction set processor and/or associated chipset, and/or a special-purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 630 may also include on-board memory for caching purposes. The processor 630 may be a single processing unit or a plurality of processing units executing different actions of the method flow according to the embodiment of the present disclosure described with reference to fig. 1 to 4 during the BIOS power on self test, or may be a single processing unit or a plurality of processing units executing different actions of the method flow according to the embodiment of the present disclosure described with reference to fig. 5 after the operating system is started.
The non-volatile memory storage unit may be, for example, a non-volatile memory device capable of containing, storing, transmitting, propagating or transferring data. For example, the non-volatile memory cell can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium.
According to an embodiment of the present disclosure, the raid creation system may further include a readable storage medium 640 for storing a computer program 641, the computer program 641 comprising code/computer readable instructions that when executed by the processor 630, cause the processor 630 to perform a method flow such as described above in connection with fig. 1-5 and any variations thereof. The readable storage medium 640 may be, for example, any medium that can contain, store, communicate, propagate, or transport the program; for example, specific examples of the readable storage medium include: magnetic storage devices, such as magnetic tape or Hard Disk Drives (HDDs); optical storage devices, such as compact disks (CD-ROMs); a memory, such as a Random Access Memory (RAM) or a flash memory; and/or wired/wireless communication links.
The computer program 641 may be configured with computer program code, for example, comprising computer program modules. For example, in an example embodiment, code in computer program 641 may include one or more program modules, including for example 641A, modules 641B, … … module 641D. It should be noted that the division and number of modules are not fixed, and those skilled in the art may use suitable program modules or program module combinations according to actual situations, which when executed by the processor 630, enable the processor 630 to perform the method flows described above in connection with fig. 1 to 5, for example, and any variations thereof.
According to an embodiment of the present disclosure, the redundant array of independent disks creation system may further include an input unit 650 for receiving signals from other entities, and an output unit 660 for providing signals to other entities. The input unit 650 and the output unit 660 may be arranged as a single entity or as separate entities.
As shown in conjunction with fig. 6 and 7, according to an embodiment of the present disclosure, the first configuration information acquiring module 310, the second configuration information acquiring module 320, the creating module 330, the configuration information modifying module 340, and the configuration information updating module 350 may be implemented as computer program modules described with reference to fig. 9, which, when executed by the processor 630, may implement the corresponding operations described above.
While the disclosure has been shown and described with reference to certain exemplary embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims and their equivalents. Accordingly, the scope of the present disclosure should not be limited to the above-described embodiments, but should be defined not only by the appended claims, but also by equivalents thereof.

Claims (10)

1. A method of soft redundant array of independent disks (raid) creation, the method comprising:
acquiring configuration information of a first soft independent redundant disk array from a hard disk of a soft independent redundant disk array to be created;
acquiring configuration information of a second soft independent redundant disk array from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created;
and when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
2. The method of claim 1, wherein creating the soft redundant disk array according to the first soft redundant disk array configuration information or the second soft redundant disk array configuration information when the first soft redundant disk array configuration information and the second soft redundant disk array configuration information are consistent comprises:
when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array, determining whether the working mode of the south bridge SATA controller is an independent redundant disk array mode;
and when the working mode of the south bridge SATA controller is an independent redundant disk array mode, establishing the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
3. The method of claim 2, wherein when the first and second soft redundant array of independent disks configuration information are consistent, creating the soft redundant array of independent disks according to the first or second soft redundant array of independent disks configuration information, further comprising:
when the working mode of the south bridge SATA controller is not the independent redundant array of independent disks mode, outputting prompt information and waiting for receiving a user instruction;
when a user instruction for modifying the working mode of the south bridge SATA controller to the redundant array of independent disks mode is received, modifying the working mode of the south bridge SATA controller to the redundant array of independent disks mode;
and when a user instruction for keeping the working mode of the south bridge SATA controller unchanged is received, clearing the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array.
4. The method of claim 1, further comprising:
when the configuration information of the first soft independent redundant disk array is inconsistent with the configuration information of the second soft independent redundant disk array, modifying the configuration information of the first soft independent redundant disk array into the configuration information of the second soft independent redundant disk array;
and creating the soft independent redundant disk array according to the configuration information of the first soft independent redundant disk array or the configuration information of the second soft independent redundant disk array.
5. The method of claim 1, further comprising:
and when a user instruction for modifying the configuration information of the independent redundant disk array is received, modifying the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array into the configuration information of the independent redundant disk array input by a user.
6. A soft redundant array of independent disks (raid) creation system, the system comprising:
the first configuration information acquisition module is used for acquiring first soft independent redundant disk array configuration information from a hard disk of a soft independent redundant disk array to be created;
the second configuration information acquisition module is used for acquiring second soft independent redundant disk array configuration information from a nonvolatile storage memory unit, wherein the nonvolatile storage memory unit is different from the hard disk of the soft independent redundant disk array to be created;
and the creating module is used for creating the soft independent redundant disk array according to the first soft independent redundant disk array configuration information or the second soft independent redundant disk array configuration information when the first soft independent redundant disk array configuration information is consistent with the second soft independent redundant disk array configuration information.
7. The system of claim 6, wherein the creation module comprises:
the working mode judging submodule determines whether the working mode of the south bridge SATA controller is the independent redundant disk array mode or not when the configuration information of the first soft independent redundant disk array is consistent with the configuration information of the second soft independent redundant disk array;
and the soft independent redundant disk array creating sub-module creates the soft independent redundant disk array according to the first soft independent redundant disk array configuration information or the second soft independent redundant disk array configuration information when the working mode of the south bridge SATA controller is an independent redundant disk array mode.
8. The system of claim 7, wherein the creation module further comprises:
the prompt information output sub-module outputs prompt information when the working mode of the south bridge SATA controller is not the Redundant Array of Independent Disks (RAID) mode, and waits for receiving a user instruction;
the working mode modification submodule modifies the working mode of the south bridge SATA controller into an independent redundant disk array mode when receiving a user instruction for modifying the working mode of the south bridge SATA controller into the independent redundant disk array mode;
and the configuration information clearing submodule is used for clearing the configuration information of the first soft independent redundant disk array and the configuration information of the second soft independent redundant disk array when receiving a user instruction for keeping the working mode of the south bridge SATA controller unchanged.
9. A soft redundant array of independent disks (raid) creation system, the system comprising:
the system comprises at least two hard disks, a first storage unit and a second storage unit, wherein the at least two hard disks are used for building an independent redundant disk array, and first soft independent redundant disk array configuration information is stored on the at least two hard disks respectively;
at least one nonvolatile memory unit for storing the configuration information of the second soft redundant array of independent disks;
at least one processor configured to execute executable instructions to implement the method of any one of claims 1-5.
10. A soft redundant array of independent disks (raid) creation system, the system comprising:
the system comprises at least two hard disks, a first storage unit and a second storage unit, wherein the at least two hard disks are used for building an independent redundant disk array, and first soft independent redundant disk array configuration information is stored on the at least two hard disks respectively;
at least one nonvolatile memory unit for storing the configuration information of the second soft redundant array of independent disks;
at least one processor, configured to implement the method according to any one of claims 1 to 4 by executing an executable instruction during BIOS power on self test, and further configured to implement the method according to claim 5 by executing the executable instruction after an operating system is started.
CN201710045346.7A 2017-01-22 2017-01-22 Method and system for creating soft independent redundant disk array Active CN106843764B (en)

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 CN106843764A (en) 2017-06-13
CN106843764B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
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
CN107608633B (en) * 2017-09-25 2020-09-18 苏州浪潮智能科技有限公司 Storage management method and related device for storage equipment
CN114079616B (en) * 2021-11-02 2023-11-03 中国船舶重工集团公司第七0三研究所 Redundancy method for database of non-hot standby disk array server

Citations (6)

* Cited by examiner, † Cited by third party
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
CN104317674A (en) * 2014-11-04 2015-01-28 浪潮(北京)电子信息产业有限公司 Disk data backup method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9152642B2 (en) * 2012-12-21 2015-10-06 Zetta, Inc. Systems and methods for on-demand data storage
US9268797B2 (en) * 2012-12-21 2016-02-23 Zetta Inc. Systems and methods for on-line backup and disaster recovery
US9588857B2 (en) * 2015-06-22 2017-03-07 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Raid logical stripe backup to non-volatile memory in response to raid storage device media errors

Patent Citations (6)

* Cited by examiner, † Cited by third party
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
CN104317674A (en) * 2014-11-04 2015-01-28 浪潮(北京)电子信息产业有限公司 Disk data backup method and device

Also Published As

Publication number Publication date
CN106843764A (en) 2017-06-13

Similar Documents

Publication Publication Date Title
US9524108B2 (en) System and method for providing personality switching in a solid state drive device
US9286164B2 (en) Electronic device to restore MBR, method thereof, and computer-readable medium
US9417967B2 (en) Computing device and method for automatically recovering bios of computing device
US20150199190A1 (en) System and method for updating firmware
CN103729220A (en) Method and device for restoring BIOS (basic input output system) ROM (read only memory) by aid of EC (electronically controllable) ROM
KR20120024906A (en) Handling errors during device bootup from a non-volatile memory
CN104834575A (en) Firmware recovery method and device
CN106843764B (en) Method and system for creating soft independent redundant disk array
US9619145B2 (en) Method relating to configurable storage device and adaptive storage device array
CN105144074A (en) Block storage using a hybrid memory device
US8281119B1 (en) Separate normal firmware and developer firmware
US10909247B2 (en) Computing device having two trusted platform modules
CN110007974B (en) Method and device applied to starting of operating system and electronic equipment
US10761730B2 (en) Method for configuring disk array of electronic device and related electronic device
CN102830990A (en) Computer system starting method and computer terminal
US20120324161A1 (en) Electronic device and method for performing data backup and recovery
US8375198B2 (en) Boot system and method having a BIOS that reads an operating system from first storage device via an input/output chip based on detecting a temperature of a second storage device
US9417672B2 (en) Separate customizable thermal control table
US9218249B2 (en) Electronic apparatus, method of restoring guid partition table (GPT) and computer-readable recording medium
US9405715B2 (en) Host computer and method for managing SAS expanders of SAS expander storage system
US20210240567A1 (en) System and method to run basic input/output system code from a non-volatile memory express device boot partition
JP4806084B1 (en) Information processing device
US20130151886A1 (en) Computing device and method for switching physical links of a sas expander of the computing device
US20140359263A1 (en) Boot from logical volume spanning plurality of pci devices
CN103890713A (en) Apparatus and method for managing register information in a processing system

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