CN111880972A - RAID card management method, device, electronic equipment and storage medium - Google Patents
RAID card management method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN111880972A CN111880972A CN202010725580.6A CN202010725580A CN111880972A CN 111880972 A CN111880972 A CN 111880972A CN 202010725580 A CN202010725580 A CN 202010725580A CN 111880972 A CN111880972 A CN 111880972A
- Authority
- CN
- China
- Prior art keywords
- raid
- raid card
- mode
- target
- jbod
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0683—Plurality of storage devices
- G06F3/0689—Disk arrays, e.g. RAID, JBOD
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/16—Error detection or correction of the data by redundancy in hardware
- G06F11/20—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
- G06F11/2053—Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where persistent mass storage functionality or persistent mass storage control functionality is redundant
- G06F11/2089—Redundant storage control functionality
- G06F11/2092—Techniques of failing over between control units
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Human Computer Interaction (AREA)
- Stored Programmes (AREA)
Abstract
The application discloses a RAID card management method, a device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: scanning all RAID cards connected to the server using a management tool; determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards; setting the target RAID card to a JBOD mode by utilizing the management tool. According to the RAID card management method, the RAID card on the server is scanned by the management tool preinstalled in the server, the RAID card is identified and judged after scanning is completed, if the RAID card needs to be set with JBOD, the JBOD mode is set for the RAID card by the management tool, and the condition that a hard disk or hard disk spare parts cannot be identified by the system after being replaced under a server linux system is avoided.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for managing a RAID card, an electronic device, and a computer-readable storage medium.
Background
A RAID (Redundant Array of Independent Disks, disk Array for short) card is a board card for implementing a RAID function. Different RAID cards support different RAID functions. The first function of the RAID card is to allow a plurality of disk drives to transmit data simultaneously, and these disk drives are logically one disk drive, so that the rate of a single disk drive can be several times, several tens of times, or even hundreds of times by using RAID. The second important function is that it can provide fault tolerance. The third and most important function is to ensure data security.
In many service scenarios, in order that the Linux system can directly access the hard disk under the RAID card and facilitate the service software to manage the hard disk, the hard disk bearing the service does not need to be RAID group, and is directly used in a Just a Bunch Of Disks (Just a Bunch Of Disks) mode. The hard disk directly accessed to the RAID card cannot be identified by the linux system, and the RAID card can be normally used only by configuring the RAID card into a JBOD mode.
Therefore, how to configure the JBOD mode of a RAID card is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a RAID card management method, a device, an electronic device and a computer readable storage medium, which realize the JBOD mode of automatically configuring the RAID card.
In order to achieve the above object, the present application provides a RAID card management method, applied to a server, including:
scanning all RAID cards connected to the server using a management tool;
determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards;
setting the target RAID card to a JBOD mode by utilizing the management tool.
Wherein scanning, with the management tool, all RAID cards connected to the server comprises:
and scanning all RAID cards connected to the server by using a management tool after the server is started.
Wherein the setting, by the management tool, the target RAID card to a JBOD mode includes:
setting, with the management tool, the affinity attribute of the target RAID card to JBOD to set the target RAID card to JBOD mode.
Wherein the setting, by the management tool, the target RAID card to a JBOD mode includes:
setting the target RAID card to a JBOD mode by using a target command in the management tool; wherein the target command is jpod ═ on.
Wherein, after the setting the target RAID card to the JBOD mode by the management tool, the method further includes:
restarting the server to validate the mode setting of the target RAID card.
Wherein, the determining of the target RAID card which needs to be set to the JBOD mode in all the RAID cards includes:
acquiring hard disk modes of all the RAID cards by using the management tool; the hard disk mode comprises a RAID mode and a JBOD mode;
and determining the RAID card with the hard disk mode as the RAID mode as the target RAID card.
Wherein, the acquiring hard disk modes of all the RAID cards by using the management tool includes:
and acquiring the personalities of all the RAID cards by using the management tool so as to acquire the hard disk modes of all the RAID cards.
In order to achieve the above object, the present application provides a RAID card management apparatus, applied to a server, including:
a scanning module for scanning all RAID cards connected to the server using a management tool;
the determining module is used for determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards;
and the setting module is used for setting the target RAID card to be in a JBOD mode by utilizing the management tool.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the RAID card management method when executing the computer program.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the RAID card management method as described above.
According to the scheme, the RAID card management method provided by the application comprises the following steps: scanning all RAID cards connected to the server using a management tool; determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards; setting the target RAID card to a JBOD mode by utilizing the management tool.
The RAID card management method provided by the application, the management tool preinstalled in the server is adopted to scan the RAID card on the server, the RAID card is identified and judged after the scanning is finished, if the RAID card needing to be provided with JBOD is found, the JBOD mode is set for the RAID card by using the management tool, the condition that the hard disk or the hard disk spare parts cannot be identified by the system after being replaced under a server linux system is avoided, the replacement of the bad disk spare parts is convenient, the operation and maintenance manpower and the time cost are effectively saved, and meanwhile, the influence on services caused by improper manual operation is avoided. The application also discloses a RAID card management device, an electronic device and a computer readable storage medium, and the technical effects can be realized.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application 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, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of RAID card management according to an exemplary embodiment;
FIG. 2 is a block diagram of a RAID card management apparatus according to an exemplary embodiment;
FIG. 3 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The embodiment of the application discloses a RAID card management method, which realizes the JBOD mode of automatically configuring RAID cards.
Referring to fig. 1, a flowchart of a RAID card management method according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: scanning all RAID cards connected to the server using a management tool;
in a specific implementation, a RAID card management tool needs to be pre-installed in the linux system, and a storcli64 tool needs to be installed in a boston RAID card as an example. The management tool is used to scan all RAID cards connected to the server, for example, the actual number of RAID cards can be detected and obtained through storcli64/call show | grep "Controller | wc-l command.
It should be noted that the triggering condition of this embodiment may be that the server is powered on, that is, this step may include: and scanning all RAID cards connected to the server by using a management tool after the server is started.
S102: determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards;
it can be understood that the RAID card includes a RAID mode and a JBOD mode, and a hard disk of the RAID card directly accessing the RAID mode cannot be recognized by the linux system, so that the RAID card in the RAID mode, that is, the target RAID card needs to be set to the JBOD mode. Namely, the step can comprise: acquiring hard disk modes of all the RAID cards by using the management tool; the hard disk mode comprises a RAID mode and a JBOD mode; and determining the RAID card with the hard disk mode as the RAID mode as the target RAID card. In a specific implementation, the management tool may be used to obtain the personalities of all the RAID cards so as to obtain the hard disk modes of all the RAID cards.
S103: setting the target RAID card to a JBOD mode by utilizing the management tool.
In this step, the target RAID card is set to JBOD mode using the management tool. Since the RAID cards include different kinds, the method of setting the JBOD mode is also different. For a RAID card supporting a set affinity attribute, the affinity attribute of the target RAID card may be set to JBOD with the management utility to set the target RAID card to JBOD mode. For example, if the management tool is storcli64, the setting command is specifically: storcli64/c0set personalitiy ═ JBOD. For RAID cards which do not support setting of personalities, the target RAID card can be set to JBOD mode by using a target command in the management tool; wherein the target command is jpod ═ on. For example, if the management tool is storcli64, the setting command is specifically: storcli64/c0 setjbod ═ on.
After the setting is completed, the RAID card needs to be restarted to take effect, that is, the step further includes: restarting the server to validate the mode setting of the target RAID card. The hard disk of the RAID card with the JBOD mode can be identified by the linux system.
It should be noted that this embodiment may be implemented by installing a plug-in the system, where the plug-in may be in a script form or in another software form, and the operation of the plug-in is added to the linux system/etc/rc.d/rc/local to implement boot auto-operation.
The RAID card management method provided by the embodiment of the application adopts the management tool pre-installed in the server to scan the RAID card on the server, the RAID card is identified and judged after the scanning is finished, if the RAID card needs to be provided with JBOD, the JBOD mode is set for the RAID card by using the management tool, the condition that the hard disk or the hard disk spare parts cannot be identified by the system after being replaced under a server linux system is avoided, the replacement of the bad disk spare parts is facilitated, the operation and maintenance manpower and the time cost are effectively saved, and meanwhile, the influence on the service caused by improper manual operation is avoided.
In the following, a RAID card management apparatus provided in an embodiment of the present application is introduced, and a RAID card management apparatus described below and a RAID card management method described above may be referred to each other.
Referring to fig. 2, a block diagram of a RAID card management apparatus according to an exemplary embodiment is shown, as shown in fig. 2, including:
a scanning module 201 for scanning all RAID cards connected to the server using a management tool;
a determining module 202, configured to determine, from among all the RAID cards, a target RAID card that needs to be set to a JBOD mode;
a setting module 203, configured to set the target RAID card to a JBOD mode using the management tool.
The RAID card management device that the embodiment of the application provided, adopt the administrative tool of pre-installation in the server to scan the RAID card on the server, scan and judge RAID card discernment after accomplishing, if the discovery is the RAID card that needs to set up JBOD, then use the administrative tool to set up JBOD mode to the RAID card, the condition that can't be discerned by the system after having avoided unidentified hard disk or hard disk spare part to change under the server linux system, be convenient for bad disk spare part is changed, effectively save fortune dimension manpower and time cost, avoid the improper business that leads to of manual operation to be influenced simultaneously.
On the basis of the foregoing embodiment, as a preferred implementation manner, the scanning module 201 is specifically a module that scans all RAID cards connected to the server by using a management tool after the server is powered on.
On the basis of the foregoing embodiment, as a preferred implementation manner, the setting module 203 is specifically a module that sets the affinity attribute of the target RAID card to JBOD by using the management tool, so as to set the target RAID card to JBOD mode.
On the basis of the foregoing embodiment, as a preferred implementation manner, the setting module 203 is specifically a module that sets the target RAID card to a JBOD mode by using a target command in the management tool; wherein the target command is jpod ═ on.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
and the restarting module is used for restarting the server so as to enable the mode setting of the target RAID card to take effect.
On the basis of the foregoing embodiment, as a preferred implementation manner, the determining module 202 includes:
the acquisition unit is used for acquiring hard disk modes of all the RAID cards by using the management tool; the hard disk mode comprises a RAID mode and a JBOD mode;
and the determining unit is used for determining the RAID card with the hard disk mode being the RAID mode as the target RAID card.
On the basis of the foregoing embodiment, as a preferred implementation manner, the obtaining unit is specifically a unit that obtains the affinity attribute of all the RAID cards by using the management tool, so as to obtain the hard disk modes of all the RAID cards.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application also provides an electronic device, and referring to fig. 3, a structure diagram of an electronic device 300 provided in an embodiment of the present application, as shown in fig. 3, may include a processor 11 and a memory 12. The electronic device 300 may also include one or more of a multimedia component 13, an input/output (I/O) interface 14, and a communication component 15.
The processor 11 is configured to control the overall operation of the electronic device 300, so as to complete all or part of the steps in the RAID card management method. The memory 12 is used to store various types of data to support operations at the electronic device 300, such data may include, for example, instructions for any application or method operating on the electronic device 300, as well as application-related data. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia component 13 may comprise a screen, which may be a touch screen, for example. The I/O interface 14 provides an interface between the processor 11 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication module 15 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding Communication component 15 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the RAID card management method.
In another exemplary embodiment, a computer readable storage medium including program instructions which, when executed by a processor, implement the steps of the above RAID card management method is also provided. For example, the computer readable storage medium may be the memory 12 described above including program instructions that are executable by the processor 11 of the electronic device 300 to perform the RAID card management method described above.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Claims (10)
1. A RAID card management method is applied to a server and comprises the following steps:
scanning all RAID cards connected to the server using a management tool;
determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards;
setting the target RAID card to a JBOD mode by utilizing the management tool.
2. The RAID card management method of claim 1, wherein the scanning with the management tool of all RAID cards connected to the server comprises:
and scanning all RAID cards connected to the server by using a management tool after the server is started.
3. The RAID card management method of claim 1, wherein said setting, with said management utility, said target RAID card to a JBOD mode comprises:
setting, with the management tool, the affinity attribute of the target RAID card to JBOD to set the target RAID card to JBOD mode.
4. The RAID card management method of claim 1, wherein said setting, with said management utility, said target RAID card to a JBOD mode comprises:
setting the target RAID card to a JBOD mode by using a target command in the management tool; wherein the target command is jpod ═ on.
5. The RAID card management method of claim 1, wherein after said setting, with said management utility, said target RAID card to JBOD mode, further comprising:
restarting the server to validate the mode setting of the target RAID card.
6. The RAID card management method of any one of claims 1 to 5, wherein the determining a target RAID card that needs to be set to a JBOD mode among all the RAID cards comprises:
acquiring hard disk modes of all the RAID cards by using the management tool; the hard disk mode comprises a RAID mode and a JBOD mode;
and determining the RAID card with the hard disk mode as the RAID mode as the target RAID card.
7. The RAID card management method of claim 6, wherein said obtaining hard disk patterns of all of the RAID cards using the management tool comprises:
and acquiring the personalities of all the RAID cards by using the management tool so as to acquire the hard disk modes of all the RAID cards.
8. A RAID card management device is characterized in that the RAID card management device is applied to a server and comprises:
a scanning module for scanning all RAID cards connected to the server using a management tool;
the determining module is used for determining a target RAID card which needs to be set to a JBOD mode in all the RAID cards;
and the setting module is used for setting the target RAID card to be in a JBOD mode by utilizing the management tool.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the RAID card management method according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor, performs the steps of the RAID card management method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725580.6A CN111880972A (en) | 2020-07-24 | 2020-07-24 | RAID card management method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010725580.6A CN111880972A (en) | 2020-07-24 | 2020-07-24 | RAID card management method, device, electronic equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111880972A true CN111880972A (en) | 2020-11-03 |
Family
ID=73202071
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010725580.6A Withdrawn CN111880972A (en) | 2020-07-24 | 2020-07-24 | RAID card management method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111880972A (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180108376A1 (en) * | 2015-09-23 | 2018-04-19 | International Business Machines Corporation | Automated just a bunch of disks management |
CN108009067A (en) * | 2017-11-30 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of method and system that RAID card details are checked under server |
CN109871330A (en) * | 2019-02-27 | 2019-06-11 | 苏州浪潮智能科技有限公司 | The method and device of RAID card array configuration is realized based on PXE server |
CN110673790A (en) * | 2019-09-06 | 2020-01-10 | 苏州浪潮智能科技有限公司 | Hard disk control method and device, electronic equipment and storage medium |
-
2020
- 2020-07-24 CN CN202010725580.6A patent/CN111880972A/en not_active Withdrawn
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180108376A1 (en) * | 2015-09-23 | 2018-04-19 | International Business Machines Corporation | Automated just a bunch of disks management |
CN108009067A (en) * | 2017-11-30 | 2018-05-08 | 郑州云海信息技术有限公司 | A kind of method and system that RAID card details are checked under server |
CN109871330A (en) * | 2019-02-27 | 2019-06-11 | 苏州浪潮智能科技有限公司 | The method and device of RAID card array configuration is realized based on PXE server |
CN110673790A (en) * | 2019-09-06 | 2020-01-10 | 苏州浪潮智能科技有限公司 | Hard disk control method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11507450B2 (en) | Systems and methods to reprogram mobile devices via a cross-matrix controller to port connection | |
CN107896162B (en) | Deployment method and device of monitoring system, computer equipment and storage medium | |
US9386079B2 (en) | Method and system of virtual desktop infrastructure deployment studio | |
US11334338B2 (en) | Operating system update management | |
US11650888B2 (en) | Workflow error handling for device driven management | |
CN113312064B (en) | Method and device for installing and configuring physical machine and computer readable medium | |
CN112256348B (en) | Cloud service platform creation method and system, electronic equipment and storage medium | |
CN104346279A (en) | Method and device for software testing | |
CN105512033A (en) | Automated testing method and device of mobile terminal and mobile terminal | |
CN111488163B (en) | Firmware updating method and device, electronic equipment and storage medium | |
CN110750415A (en) | Interface service configuration method, device, medium and computer equipment | |
CN110673790A (en) | Hard disk control method and device, electronic equipment and storage medium | |
CN115913913B (en) | Network card pre-starting execution environment function fault positioning method and device | |
CN108595292B (en) | System optimization method, mobile terminal and computer storage medium | |
US11954472B2 (en) | Conflict resolution for device-driven management | |
CN111880972A (en) | RAID card management method, device, electronic equipment and storage medium | |
CN110955449A (en) | Method and device for releasing gray scale of client | |
CN106295320A (en) | A kind of android system customized desktop based on white list | |
CN110046317A (en) | Page info recording method, terminal and the storage medium of IOS application | |
US11757976B2 (en) | Unified application management for heterogeneous application delivery | |
CN112148463B (en) | Business process control method and device | |
CN112994907B (en) | Network configuration method, device, storage medium and equipment of virtual machine | |
CN110413505A (en) | Make several tool access processing methods, device, storage medium and computer equipment | |
CN116938711A (en) | Firmware upgrading method and device, electronic equipment and storage medium | |
CN113407260A (en) | Database environment switching method and device and computer equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20201103 |