CN114442930A - Method and device for controlling group disk array, electronic equipment and readable storage medium - Google Patents

Method and device for controlling group disk array, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN114442930A
CN114442930A CN202111592575.3A CN202111592575A CN114442930A CN 114442930 A CN114442930 A CN 114442930A CN 202111592575 A CN202111592575 A CN 202111592575A CN 114442930 A CN114442930 A CN 114442930A
Authority
CN
China
Prior art keywords
hard disk
disk
parameters
group
disk 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.)
Withdrawn
Application number
CN202111592575.3A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202111592575.3A priority Critical patent/CN114442930A/en
Publication of CN114442930A publication Critical patent/CN114442930A/en
Withdrawn legal-status Critical Current

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/0604Improving or facilitating administration, e.g. storage management
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention relates to the technical field of server production, and discloses a method and a device for controlling a group disk array, electronic equipment and a readable storage medium. Wherein, the method comprises the following steps: acquiring disk array parameters and hard disk parameters; determining target hard disk information for grouping the disk arrays based on the hard disk parameters; and executing the operation of grouping the disk arrays based on the target hard disk information and the disk array parameters. By implementing the method, the RAID group scripts need to be compiled frequently, and the RAID can be automatically organized only according to the disk array parameters and the hard disk parameters, so that the development workload of compiling the RAID group scripts is saved, the processing efficiency of the RAID group is improved, and the preprocessing difficulty of the RAID group server is reduced.

Description

Method and device for controlling group disk array, electronic equipment and readable storage medium
Technical Field
The invention relates to the technical field of server production, in particular to a method and a device for controlling a group disk array, electronic equipment and a readable storage medium.
Background
When server orders are produced, the specifications and the number of hard Disks configured for different orders and the types of RAID (Redundant array of Independent Disks) cards are different, the required RAID levels are also different, and in order to implement group RAID, a corresponding script for group RAID needs to be written in a customized manner for the type of RAID card used for each server order. However, when there are a large number of server orders, a large number of complicated scripts for the group RAID need to be written, the script development workload is large, and the processing efficiency of the group RAID is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for controlling a group disk array, an electronic device, and a readable storage medium, so as to solve the problems of a large script development workload and a low processing efficiency of a group RAID in the existing group RAID.
According to a first aspect, an embodiment of the present invention provides a method for controlling a group disk array, including: acquiring disk array parameters and hard disk parameters; determining target hard disk information for the group disk array based on the hard disk parameters; and executing the operation of grouping the disk arrays based on the target hard disk information and the disk array parameters.
In the method for controlling a group disk array provided in the embodiment of the present invention, by obtaining a disk array parameter and a hard disk parameter, target hard disk information for the group disk array is determined based on the hard disk parameter, and then the operation of the group disk array is performed according to the target hard disk information and the disk array parameter. According to the method, the RAID can be automatically organized only according to the disk array parameters and the hard disk parameters without frequently compiling the RAID group scripts, so that the development workload of compiling the RAID group scripts is saved, the processing efficiency of the RAID group is improved, and the preprocessing difficulty of the RAID group server is reduced.
With reference to the first aspect, in a first implementation manner of the first aspect, the acquiring the disk array parameters and the hard disk parameters includes: and responding to a parameter input instruction, and acquiring the disk array parameter and the hard disk parameter corresponding to the parameter input instruction.
According to the control method for the group disk array, which is provided by the embodiment of the invention, the disk array parameters and the hard disk parameters corresponding to the parameter input instruction are obtained by responding to the parameter input instruction, so that the RAID group can be performed according to actual requirements, and the accuracy of the RAID group is ensured.
With reference to the first aspect, in a second implementation manner of the first aspect, the determining target hard disk information for a group disk array based on hard disk parameters includes: obtaining a reading method of hard disk information; and reading each hard disk corresponding to the hard disk parameters based on the hard disk information reading method to obtain the target hard disk information.
According to the control method for the group disk array, provided by the embodiment of the invention, the hard disk information reading method is adopted to read each hard disk corresponding to the hard disk parameters so as to obtain the hard disk information on each hard disk, so that different hard disk information reading methods are adopted for different types of hard disks, the reading accuracy of the hard disk information is ensured, and the processing efficiency of the group RAID is further improved.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the reading method for obtaining hard disk information includes: acquiring the card type of the disk array; and determining a reading method of the hard disk information based on the card type of the disk array.
According to the control method for the group disk array, provided by the embodiment of the invention, the card type of the disk array is obtained, and the hard disk information reading method corresponding to each hard disk is determined according to the card type of the disk array, so that the hard disk information can be analyzed according to the card type of the disk array, and the accuracy of automatic RAID group is further ensured.
With reference to the first aspect, in a fourth implementation manner of the first aspect, the executing an operation of grouping disk arrays based on the target hard disk information and the disk array parameters includes: acquiring a disk array level corresponding to the disk array parameter; and executing the operation of the group of disk arrays based on the target hard disk information and the disk array level.
According to the control method of the group disk array provided by the embodiment of the invention, the disk array grade corresponding to the disk array parameter is obtained, and the automatic operation of the group disk array is carried out based on the target hard disk information and the disk array grade, so that a script of the group RAID does not need to be compiled, and the processing difficulty of the server group RAID is reduced.
With reference to the fourth implementation manner of the first aspect, in a fifth implementation manner of the first aspect, before performing the operation on the set of disk arrays, the method further includes: acquiring the working state of the hard disk; judging whether the working state of the hard disk is an idle state or not; and when the working state of the hard disk is an idle state, executing the operation of the group of disk arrays.
According to the control method of the group disk array provided by the embodiment of the invention, before the operation of the group disk array is executed, the working state of the hard disk is obtained, and when the working state of the hard disk is in an idle state, the current hard disk can execute the operation of the group RAID, so that failure in the group RAID is avoided, the group RAID can be smoothly executed, and the processing progress of the group RAID is improved.
With reference to the first aspect or any one of the first to fifth embodiments of the first aspect, in a sixth embodiment of the first aspect, the hard disk parameters include a hard disk specification and a hard disk number.
According to the control method of the group disk array provided by the embodiment of the invention, the hard disk parameters comprise the specification of the hard disks and the quantity of the hard disks, so that the RAID group is operated according to the specification of the hard disks, the quantity of the hard disks and the RAID level, the automatic RAID group is realized, and the efficiency and the accuracy of the RAID group are further ensured.
According to a second aspect, an embodiment of the present invention provides a control apparatus for a group disk array, including: the acquisition module is used for acquiring the parameters of the disk array and the parameters of the hard disk; the determining module is used for determining target hard disk information for the group disk array based on the hard disk parameters; and the execution module is used for executing the operation of grouping the disk arrays based on the target hard disk information and the disk array parameters.
The control device for the group disk array provided by the embodiment of the invention determines the target hard disk information for the group disk array based on the hard disk parameters by acquiring the disk array parameters and the hard disk parameters, and then performs the operation of the group disk array according to the target hard disk information and the disk array parameters. The device does not need to compile the scripts of the RAID group frequently, and can automatically organize the RAID according to the disk array parameters and the hard disk parameters, thereby saving the development workload of compiling the RAID group scripts, improving the processing efficiency of the RAID group, and simultaneously reducing the preprocessing difficulty of the RAID group of the server.
According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing therein computer instructions, and the processor executing the computer instructions to perform the method for controlling a group of disk arrays according to the first aspect or any embodiment of the first aspect.
According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and the computer instructions are configured to cause a computer to execute the method for controlling a group of disk arrays according to the first aspect or any implementation manner of the first aspect.
It should be noted that, for corresponding beneficial effects of the electronic device and the computer-readable storage medium provided in the embodiments of the present invention, please refer to the description of corresponding contents in the control method for the group disk array, which is not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method of controlling a group disk array according to an embodiment of the present invention;
FIG. 2 is another flow chart of a method of controlling a group disk array according to an embodiment of the present invention;
FIG. 3 is another flow chart of a method of controlling a group disk array according to an embodiment of the present invention;
FIG. 4 is a block diagram of a control apparatus for grouping disk arrays according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Currently, when server orders are produced, in order to implement group RAID, a corresponding script for group RAID needs to be written in a customized manner for the type of RAID card used in each server order. However, when there are a large number of server orders, a large number of complicated scripts for the group RAID need to be written, the script development workload is large, and the processing efficiency of the group RAID is low.
Based on the technical scheme, the method and the device automatically determine the hard disks with corresponding specifications and quantity according to the quantity of the hard disks, the specification of the hard disks and the RAID level so as to automatically complete the operation of the RAID of the group with the specified RAID level. Therefore, when a large number of server production orders are faced, a group RAID script does not need to be written frequently, and the processing efficiency of the group RAID is improved.
In accordance with an embodiment of the present invention, there is provided an embodiment of a method for controlling a group disk array, where the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer executable instructions, and where a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that described herein.
In this embodiment, a method for controlling a group disk array is provided, which may be used in an electronic device, such as a server, a computer, and the like, where the electronic device is provided with a group RAID module, and fig. 1 is a flowchart of a method for controlling a group disk array according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
and S11, acquiring the disk array parameters and the hard disk parameters.
The disk array parameters are used to characterize the level of the disk array and attribute information of the disk array such as the card type, wherein the level of the disk array may include: RAID 0, RAID 1, RAID 0+1, RAID 1+0(RAID 10), RAID 3, RAID 4, RAID 5, RAID 6, and the like, and the card types of the disk array include a PMC card, an SAS card, an LSI card, and the like. The hard disk parameters are used for representing hard disk information required by the current server order, and the hard disk parameters can comprise hard disk specifications (types), hard disk quantity and the like, so that RAID (redundant array of independent disks) group operation can be conveniently carried out according to the hard disk specifications, the hard disk quantity and RAID level, and the efficiency and accuracy of RAID group are ensured.
S12, determining the target hard disk information for the group disk array based on the hard disk parameters.
The target hard disk information is hard disk information for the group RAID, the electronic equipment can determine each hard disk corresponding to the hard disk parameters by identifying the hard disk parameters, determine the number of the hard disks and the hard disk specification corresponding to each hard disk, and determine the target hard disk information of the group RAID according to the number of the hard disks corresponding to the hard disk parameters and the hard disk specification corresponding to each hard disk.
S13, based on the target hard disk information and disk array parameters, executing the operation of grouping disk arrays.
The electronic equipment obtains the target hard disk information and the disk array parameters, and a group RAID module arranged in the electronic equipment can start the operation of the group RAID according to the target hard disk information and the disk array parameters determined by the electronic equipment and automatically execute the group RAID.
In the control method for grouping the disk array provided in this embodiment, the disk array parameter and the hard disk parameter are obtained, the target hard disk information for grouping the disk array is determined based on the hard disk parameter, and then the operation for grouping the disk array is performed according to the target hard disk information and the disk array parameter. According to the method, the RAID can be automatically organized only according to the disk array parameters and the hard disk parameters without frequently compiling the RAID group scripts, so that the development workload of compiling the RAID group scripts is saved, the processing efficiency of the RAID group is improved, and the preprocessing difficulty of the RAID group server is reduced.
In this embodiment, a method for controlling a group disk array is provided, which may be used in an electronic device, such as a server, a computer, and the like, where the electronic device is provided with a group RAID module, and fig. 2 is a flowchart of the method for controlling a group disk array according to an embodiment of the present invention, and as shown in fig. 2, the flowchart includes the following steps:
and S21, acquiring the disk array parameters and the hard disk parameters. For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
S22, determining the target hard disk information for the group disk array based on the hard disk parameters.
Specifically, the step S22 may include:
s221, obtaining the reading method of the hard disk information.
When different types of RAID cards are used to perform group RAID operations, methods for reading hard disk information corresponding to the different types of RAID cards are also different, and the electronic device needs to determine a hard disk information reading method in the current situation when reading target hard disk information.
Specifically, the step S221 may include:
(1) and acquiring the card type of the disk array.
The electronic device may identify the disk array parameters to determine the card type of the disk array corresponding to the server production of the current order.
(2) And determining a hard disk information reading method based on the card type of the disk array.
After determining the card type of the disk array, the electronic device may determine, according to the card type corresponding to the disk array, a hard disk information reading method corresponding to the current card type. For example, when the electronic device determines that the card type of the current disk array is an LSI card by identifying the disk array parameters, the electronic device may call a hard disk information reading method corresponding to the LSI card.
S222, reading each hard disk corresponding to the hard disk parameters based on the hard disk information reading method to obtain target hard disk information.
And the electronic equipment reads the information of each hard disk corresponding to the hard disk parameters according to the hard disk information reading method to determine target hard disk information and determine the number of the received hard disks, the hard disk specification and the reserved interface of raid level information corresponding to each card type.
S23, based on the target hard disk information and disk array parameters, executing the operation of grouping disk arrays. For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
In the control method for the group disk array provided in this embodiment, the hard disk information reading method is used to read each hard disk corresponding to the hard disk parameter by obtaining the hard disk information reading method, so as to obtain the hard disk information on each hard disk, so that different hard disk information reading methods are used for different types of hard disks, the reading accuracy of the hard disk information is ensured, and the processing efficiency of the group RAID is further improved. The hard disk information reading method corresponding to each hard disk is determined according to the card type of the disk array by obtaining the card type of the disk array, so that the hard disk information can be analyzed according to the card type of the disk array, and the accuracy of automatic RAID (redundant array of independent disks) grouping is further ensured.
In this embodiment, a method for controlling a group disk array is provided, which may be used in an electronic device, such as a server, a computer, and the like, where the electronic device is provided with a group RAID module, and fig. 3 is a flowchart of the method for controlling a group disk array according to an embodiment of the present invention, and as shown in fig. 3, the flowchart includes the following steps:
and S31, acquiring the disk array parameters and the hard disk parameters.
Specifically, the step S31 may include: and responding to the parameter input instruction, and acquiring the disk array parameter and the hard disk parameter corresponding to the parameter input instruction.
The parameter input instruction is disk array parameters and hard disk parameters corresponding to servers for setting different orders, and a technician can input the disk array parameters and the hard disk parameters corresponding to the servers for the different orders through a communication interface (a mouse, a keyboard, a touch screen or the like) of the electronic device. Accordingly, the electronic device can respond to the parameter input instruction and identify the disk array parameter and the hard disk parameter corresponding to the parameter input instruction.
S32, determining the target hard disk information for the group disk array based on the hard disk parameters. For a detailed description, refer to the corresponding related description of the above embodiments, which is not repeated herein.
S33, based on the target hard disk information and disk array parameters, executing the operation of grouping disk arrays.
Specifically, the step S33 may include:
s331, acquiring the disk array level corresponding to the disk array parameter.
The electronic device may determine, by identifying the disk array parameter, a RAID level required when the server of the current order produces the corresponding group RAID. For example, when the electronic device determines that the current disk array level is from RAID 0+1 by identifying the disk array parameters, it may determine that the level is a combination of RAID 0 and RAID 1, and the electronic device may perform the operation of the group RAID according to a manner in which RAID 0 is combined with RAID 1.
S332, acquiring the working state of the hard disk.
The working state is used for representing that the current hard disk is in a busy state or an idle state, and the electronic equipment can identify the current working state by monitoring the running state of the hard disk.
S333, judging whether the working state of the hard disk is an idle state.
If historical execution data exists on the hard disk, the hard disk may still perform corresponding operations according to the historical execution data, and the hard disk is in a busy state. The electronic device may determine whether the operating state of the hard disk is an idle state by detecting whether there is historical execution data on the hard disk. When the working state of the hard disk is the idle state, step S334 is executed, otherwise, the historical execution data on the hard disk is cleaned.
And S334, executing the operation of grouping the disk arrays based on the target hard disk information and the disk array level.
When the working state of the hard disk is an idle state, the electronic equipment can call the RAID group module and carry out RAID group operation based on the obtained target hard disk information and the disk array level, so that for different server production, automatic RAID group can be realized according to the actually required target hard disk information and the disk array level, no script needs to be written, the multiplexing degree of the script does not need to be considered, and the workload of script writing is reduced.
According to the control method of the group disk array, the disk array level corresponding to the disk array parameter is obtained, and the automatic operation of the group disk array is performed based on the target hard disk information and the disk array level, so that a script of the group RAID does not need to be written, and the processing difficulty of the server group RAID is reduced. Before the operation of the group disk array is executed, the working state of the hard disk is obtained, and when the working state of the hard disk is in an idle state, the operation that the current hard disk can execute the group RAID is shown, so that failure in the group RAID is avoided, the group RAID can be smoothly executed, and the processing progress of the group RAID is improved.
In this embodiment, a control device for a group disk array is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
The present embodiment provides a control apparatus for a group disk array, as shown in fig. 4, including:
the obtaining module 41 is configured to obtain parameters of a disk array and parameters of a hard disk. For detailed description, reference is made to the corresponding related description of the above method embodiments, and details are not repeated herein.
And a determining module 42, configured to determine target hard disk information for the group disk array based on the hard disk parameters. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the execution module 43 is configured to execute the operations of grouping the disk arrays based on the target hard disk information and the disk array parameters. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The control apparatus for grouping a disk array according to this embodiment determines target hard disk information for grouping a disk array based on a hard disk parameter by obtaining the disk array parameter and the hard disk parameter, and then performs an operation for grouping the disk array according to the target hard disk information and the disk array parameter. The device does not need to compile the scripts of the RAID group frequently, and can automatically organize the RAID according to the disk array parameters and the hard disk parameters, thereby saving the development workload of compiling the RAID group scripts, improving the processing efficiency of the RAID group, and simultaneously reducing the preprocessing difficulty of the RAID group of the server.
Specifically, the obtaining module 41 may include: and the response submodule is used for responding to the parameter input instruction and acquiring the disk array parameters and the hard disk parameters corresponding to the parameter input instruction. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The control device for the group disk array provided in this embodiment obtains the disk array parameters and the hard disk parameters corresponding to the parameter input instruction by responding to the parameter input instruction, so that the group RAID can be performed according to actual requirements, and the accuracy of the group RAID is ensured.
Specifically, the determining module 42 may include:
and the first acquisition submodule is used for acquiring a reading method of the hard disk information. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the reading submodule is used for reading each hard disk corresponding to the hard disk parameters based on the reading method of the hard disk information to obtain the target hard disk information. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
In the control device for a group disk array provided in this embodiment, the hard disk information reading method is used to read each hard disk corresponding to the hard disk parameter by obtaining the hard disk information reading method, so as to obtain the hard disk information on each hard disk, and thus different hard disk information reading methods are used for different types of hard disks, so that the accuracy of reading the hard disk information is ensured, and the processing efficiency of the group RAID is further improved.
Optionally, the first obtaining sub-module may include:
and the first acquisition subunit is used for acquiring the card type of the disk array. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the determining subunit is used for determining a reading method of the hard disk information based on the card type of the disk array. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The control device for grouping a disk array according to this embodiment determines a hard disk information reading method corresponding to each hard disk according to the card type of the disk array by obtaining the card type of the disk array, so that the hard disk information can be analyzed according to the card type of the disk array, and the accuracy of automatic grouping of RAID is further ensured.
Specifically, the executing module 43 may include:
and the second obtaining submodule is used for obtaining the disk array level corresponding to the disk array parameter. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the execution submodule is used for executing the operation of the group disk array based on the target hard disk information and the disk array level. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The control device for the group disk array provided in this embodiment performs automatic operation of the group disk array by obtaining the disk array level corresponding to the disk array parameter and based on the target hard disk information and the disk array level, and does not need to write a script of the group RAID, thereby reducing the processing difficulty of the server group RAID.
Optionally, the executing module 43 may further include:
and the third acquisition submodule is used for acquiring the working state of the hard disk. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
And the judgment submodule is used for judging whether the working state of the hard disk is an idle state or not, and when the working state of the hard disk is the idle state, the execution submodule executes the operation of the group disk array based on the target hard disk information and the disk array level. For a detailed description, reference is made to the corresponding related description of the above method embodiments, which is not repeated herein.
The control apparatus for a group disk array provided in this embodiment, before executing an operation of the group disk array, by acquiring a working state of a hard disk, when the working state of the hard disk is in an idle state, it indicates that the current hard disk can execute the operation of the group RAID, thereby avoiding a failure in the group RAID, ensuring that the group RAID can be performed smoothly, and improving a processing progress of the group RAID.
The control device of the disk array in this embodiment is in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions.
An embodiment of the present invention further provides an electronic device, which includes the control device for the group disk array shown in fig. 4.
Referring to fig. 5, fig. 5 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 5, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, memory 504, and at least one communication bus 502. Wherein a communication bus 502 is used to enable connective communication between these components. The communication interface 503 may include a Display (Display) and a Keyboard (Keyboard), and the optional communication interface 503 may also include a standard wired interface and a standard wireless interface. The Memory 504 may be a Random Access Memory (RAM) or a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The memory 504 may optionally be at least one storage device located remotely from the processor 501. Wherein the processor 501 may be in connection with the apparatus described in fig. 4, an application program is stored in the memory 504, and the processor 501 calls the program code stored in the memory 504 for performing any of the above-mentioned method steps.
The communication bus 502 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 502 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 5, but this is not intended to represent only one bus or type of bus.
The memory 504 may include a volatile memory (RAM), such as a random-access memory (RAM); the memory may also include a non-volatile memory (english: non-volatile memory), such as a flash memory (english: flash memory), a hard disk (english: hard disk drive, abbreviated: HDD) or a solid-state drive (english: SSD); the memory 504 may also comprise a combination of the above types of memory.
The processor 501 may be a Central Processing Unit (CPU), a Network Processor (NP), or a combination of CPU and NP.
The processor 501 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof. The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
Optionally, the memory 504 is also used to store program instructions. Processor 501 may invoke program instructions to implement the method for controlling a group disk array as shown in the embodiments of fig. 1-3 of the present application.
According to the electronic equipment provided by the embodiment, the target hard disk information for grouping the disk array is determined based on the hard disk parameters by acquiring the disk array parameters and the hard disk parameters, and then the operation of grouping the disk array is performed according to the target hard disk information and the disk array parameters, so that the electronic equipment can realize automatic RAID grouping only by acquiring the disk array parameters and the hard disk parameters according to the actual needs of server production, a script for grouping the RAID is not required to be written frequently, the development workload for writing the script for grouping the RAID is saved, the processing efficiency of the RAID is improved, and the preprocessing difficulty of the RAID in server grouping is reduced.
The embodiment of the invention also provides a non-transitory computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions can execute the processing method of the control method of the group disk array in any method embodiment. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
The non-transitory computer storage medium provided in this embodiment is provided with a computer executable instruction for executing a control method for a group RAID, and by using the non-transitory computer storage medium, an automatic group RAID can be implemented only by acquiring disk array parameters and hard disk parameters according to actual needs of server production, so that development workload for writing a group RAID script is saved, processing efficiency of the group RAID is improved, and meanwhile, preprocessing difficulty of a server group RAID is reduced.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A method for controlling a group disk array, comprising:
acquiring disk array parameters and hard disk parameters;
determining target hard disk information for grouping the disk arrays based on the hard disk parameters;
and executing the operation of grouping the disk arrays based on the target hard disk information and the disk array parameters.
2. The method of claim 1, wherein the obtaining disk array parameters and hard disk parameters comprises:
and responding to a parameter input instruction, and acquiring the disk array parameter and the hard disk parameter corresponding to the parameter input instruction.
3. The method of claim 1, wherein determining target hard disk information for a group disk array based on hard disk parameters comprises:
obtaining a reading method of hard disk information;
and reading each hard disk corresponding to the hard disk parameters based on the hard disk information reading method to obtain the target hard disk information.
4. The method according to claim 3, wherein the reading method for obtaining hard disk information comprises:
acquiring the card type of the disk array;
and determining a reading method of the hard disk information based on the card type of the disk array.
5. The method of claim 1, wherein performing operations for grouping disk arrays based on the target hard disk information and the disk array parameters comprises:
acquiring a disk array level corresponding to the disk array parameter;
and executing the operation of the group of disk arrays based on the target hard disk information and the disk array level.
6. The method of claim 5, further comprising, prior to performing the operation of the set of disk arrays:
acquiring the working state of the hard disk;
judging whether the working state of the hard disk is an idle state or not;
and when the working state of the hard disk is an idle state, executing the operation of the group of disk arrays.
7. The method of any of claims 1-6, wherein the hard disk parameters include hard disk specifications and number of hard disks.
8. A control apparatus for a group disk array, comprising:
the acquisition module is used for acquiring the parameters of the disk array and the parameters of the hard disk;
the determining module is used for determining target hard disk information for the group disk array based on the hard disk parameters;
and the execution module is used for executing the operation of grouping the disk arrays based on the target hard disk information and the disk array parameters.
9. An electronic device, comprising:
a memory and a processor, the memory and the processor being communicatively coupled to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the method of controlling a group of disk arrays of any one of claims 1 to 7.
10. A computer-readable storage medium storing computer instructions for causing a computer to execute the method for controlling a group disk array according to any one of claims 1 to 7.
CN202111592575.3A 2021-12-23 2021-12-23 Method and device for controlling group disk array, electronic equipment and readable storage medium Withdrawn CN114442930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111592575.3A CN114442930A (en) 2021-12-23 2021-12-23 Method and device for controlling group disk array, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111592575.3A CN114442930A (en) 2021-12-23 2021-12-23 Method and device for controlling group disk array, electronic equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN114442930A true CN114442930A (en) 2022-05-06

Family

ID=81364617

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111592575.3A Withdrawn CN114442930A (en) 2021-12-23 2021-12-23 Method and device for controlling group disk array, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN114442930A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904260A (en) * 2023-03-08 2023-04-04 苏州浪潮智能科技有限公司 Starting method and device of disk array card, storage medium and electronic equipment
CN117762529A (en) * 2023-12-26 2024-03-26 合芯科技有限公司 Method, device, equipment and medium for server batch disk array grouping

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115904260A (en) * 2023-03-08 2023-04-04 苏州浪潮智能科技有限公司 Starting method and device of disk array card, storage medium and electronic equipment
CN117762529A (en) * 2023-12-26 2024-03-26 合芯科技有限公司 Method, device, equipment and medium for server batch disk array grouping

Similar Documents

Publication Publication Date Title
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN114442930A (en) Method and device for controlling group disk array, electronic equipment and readable storage medium
CN112286709B (en) Diagnosis method, diagnosis device and diagnosis equipment for server hardware faults
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
CN112068852B (en) Method, system, equipment and medium for installing open-source software based on domestic server
CN111475106A (en) RAID customization creating method, system, terminal and storage medium
CN113377586B (en) Automatic detection method and device for server and storage medium
CN115422091B (en) Firmware debugging method and device, electronic equipment and storage medium
CN112181853A (en) Program debugging method, device and system
CN113272785B (en) Method for mounting file system, terminal equipment and storage medium
CN111352610A (en) Interface return value modification method and device, electronic equipment and storage medium
CN111475356A (en) System startup test information display method and related device
CN116501415A (en) Command execution method and device, electronic equipment and computer readable storage medium
CN115794690A (en) Processing method and device based on external equipment in server
CN115168119A (en) PCIE (peripheral component interface express) link detection method, device and medium for server
CN113849229A (en) Server starting method and device, electronic equipment and readable storage medium
CN111158733A (en) BMC upgrading method, device, equipment and computer readable storage medium
CN112463042A (en) Data volume import data verification method, device, terminal and storage medium
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium
CN111221701A (en) Chip and circuit logic reconfiguration system thereof
CN109491870A (en) A kind of detection method and device of the access state of sensor
CN110990209A (en) Storage stability test method, test device, test equipment and storage medium
CN110442471B (en) Method, device and medium for detecting memory information in network system
CN117033239B (en) Control matching method and device, computer equipment and storage medium
CN110645131B (en) Vehicle control method, vehicle switch identification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20220506

WW01 Invention patent application withdrawn after publication