CN110187844B - Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment - Google Patents

Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment Download PDF

Info

Publication number
CN110187844B
CN110187844B CN201910501943.5A CN201910501943A CN110187844B CN 110187844 B CN110187844 B CN 110187844B CN 201910501943 A CN201910501943 A CN 201910501943A CN 110187844 B CN110187844 B CN 110187844B
Authority
CN
China
Prior art keywords
equipment node
node
sas card
current equipment
current
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
CN201910501943.5A
Other languages
Chinese (zh)
Other versions
CN110187844A (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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave 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 Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910501943.5A priority Critical patent/CN110187844B/en
Publication of CN110187844A publication Critical patent/CN110187844A/en
Application granted granted Critical
Publication of CN110187844B publication Critical patent/CN110187844B/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/0604Improving or facilitating administration, e.g. storage management
    • 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/0688Non-volatile semiconductor memory arrays

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device, equipment and a computer readable storage medium for automatically identifying and mounting nodes of hard RAID equipment, wherein the method comprises the following steps: determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information; if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to a storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node; if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not used as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information. Therefore, the hard RAID equipment node is accurately identified, and the mounting of the hard RAID equipment node is further realized.

Description

Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment
Technical Field
The present invention relates to the field of storage system technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for automatically identifying and mounting nodes of a hard RAID device.
Background
For a storage system, to meet user requirements, the following settings may need to be made: two SSD disks are used for hard RAID (such as hard RAID 1) and are used for specially installing client software and managing metadata.
The installation of client software and the storage management of metadata need to be carried out on the basis of a specified directory; therefore, the precondition is that the mounting directory needs to be queried, and further, the device node needs to be identified to mount the device node to the directory. In the prior art, a hard RAID device node made of two SSD disks is presented in a storage system in a device node form, and only by using an fdisk-l command, which device node is the hard RAID device node cannot be identified; and the device nodes are identified one by one according to the hard disk capacity, so that the situation that which device node is the hard RAID device node cannot be identified due to the existence of the device nodes with the same capacity is easy to occur.
In summary, the problem that the hard RAID device node cannot be accurately identified in the prior art, and mounting is further achieved exists.
Disclosure of Invention
The invention aims to provide a method, a device, equipment and a computer readable storage medium for automatically identifying and mounting nodes of a hard RAID (redundant array of independent disk) device, which can solve the problem that the nodes of the hard RAID device cannot be accurately identified in the prior art so as to realize mounting.
In order to achieve the above purpose, the invention provides the following technical scheme:
a method for automatically identifying and mounting hard RAID device nodes comprises the following steps:
determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information;
if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node;
and if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
Preferably, before determining whether the product model information of the current device node is SAS card information, the method further includes:
and judging whether the equipment mark of the current equipment node is a corresponding mark of the hard RAID equipment node, if so, executing the step of judging whether the product model information of the current equipment node is SAS card information, otherwise, determining that any equipment node which is not taken as the current equipment node in the storage system is the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
Preferably, the method further comprises the following steps:
and if the product model information of the current equipment node is SAS card information, setting the status flag of the current equipment node as a flag indicating that the current equipment node is a preliminarily determined hard RAID equipment node.
Preferably, the determining whether the SAS card corresponding to the SAS card information of the current device node belongs to the storage system includes:
the method comprises the steps of obtaining the WWID of the SAS card corresponding to the SAS card information of the current equipment node and the SAS card list of all SAS cards contained in a storage system, if the WWID corresponding to the current equipment node is the same as the WWID of any SAS card in the SAS card list, determining that the SAS card corresponding to the SAS card information of the current equipment node belongs to the storage system, and otherwise, determining that the SAS card corresponding to the SAS card information of the current equipment node does not belong to the storage system.
Preferably, after determining that the current device node is a hard RAID device node, the method further includes:
and recording the name, RAID level and RAID state of the hard RAID equipment node for query.
Preferably, the method further comprises the following steps:
and after the storage system is determined to be started, executing a step of determining any equipment node in the storage system as the current equipment node.
Preferably, after the mounting of the hard RAID device node, the method further includes:
and outputting prompt information for realizing the identification and mounting of the hard RAID equipment node.
An apparatus for automatic node identification and mounting of a hard RAID device, comprising:
a determination module configured to: determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information;
a first execution module to: if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node;
a second execution module to: and if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
An apparatus for automatic identification and mounting of an apparatus node, comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for automatically identifying and mounting the hard RAID equipment nodes when the computer program is executed.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of a method for automatic identification and mounting of a hard RAID device node as described in any one of the preceding claims.
The invention provides a method, a device, equipment and a computer readable storage medium for automatically identifying and mounting nodes of a hard RAID (redundant array of independent disk) device, wherein the method comprises the following steps: determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information; if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node; and if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information. When judging whether equipment nodes in a storage system are hard RAID equipment nodes or not, the method is realized by judging whether the equipment nodes are realized based on an SAS card or not and whether the SAS card exists in the storage system or not corresponding to the equipment nodes; in order to avoid misreading of SAS card information, whether the SAS card corresponding to the SAS card information of the equipment node is positioned in the storage system or not is judged, so that the accuracy of hard RAID equipment node identification is further ensured; therefore, the technical scheme of the application can accurately identify and mount the hard RAID equipment nodes.
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, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of a method for automatically identifying and mounting a hard RAID device node according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of an apparatus for automatically identifying and mounting a hard RAID device node according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, 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 invention.
Referring to fig. 1, a flowchart of a method for automatically identifying and mounting a hard RAID device node according to an embodiment of the present invention is shown, where the method includes:
s11: and determining that any equipment node in the storage system is the current equipment node, and judging whether the product model information of the current equipment node is SAS card information.
It should be noted that, the execution subject of the method for automatically identifying and mounting a hard RAID device node according to the embodiment of the present invention may be a corresponding device, and the device may be disposed in a storage system. In the embodiment of the application, the hard RAID device nodes are queried and identified by traversing all the device nodes, specifically, it may be determined that any device node in the storage system is a current device node, and it is determined whether product model information of the current device node is SAS card information, where the SAS card information is a sign of an SAS card, such as information that is set according to actual needs, such as an identifier, an attribute, and the like. In the storage system, other device nodes are not realized through an SAS card but are directly inserted into corresponding hardware boards, and only hard RAID device nodes are realized through the SAS card, so that whether the device nodes are hard RAID device nodes or not needs to be determined by judging whether the device nodes are realized through the SAS card.
S12: and if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node.
If the product model information of the current equipment node is SAS card information, the current equipment node is realized through an SAS card, so that the current equipment node can be preliminarily determined to be a hard RAID equipment node needing to be identified; in order to further determine whether the current device node is a hard RAID device node that needs to be searched, in this embodiment, it is further necessary to determine whether the identified SAS card information corresponds to the SAS card located on the storage system, that is, it is determined whether the SAS card information belongs to the storage system, so that a situation that an error occurs in acquiring the SAS card information is avoided. Therefore, the current equipment node is determined to be a hard RAID equipment node under the condition that the two judgments are both yes, mounting is realized, otherwise, the current equipment node is not the hard RAID equipment node, and therefore the accuracy of equipment node identification is improved through the double judgment steps.
S13: and if the product model information of the current equipment node is not the SAS card information, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
If the product model information of the current equipment node is not SAS card information, the current equipment node is not realized through an SAS card, so that the current equipment node can be directly determined to be not a hard RAID equipment node device, and the step of judging whether other equipment nodes are hard RAID equipment nodes is returned. In addition, if the device node which is not used as the current device node does not exist and the hard RAID device node is not determined, the identification failure is determined and corresponding prompt information is output.
When judging whether equipment nodes in a storage system are hard RAID equipment nodes or not, the method is realized by judging whether the equipment nodes are realized based on an SAS card or not and whether the SAS card exists in the storage system or not corresponding to the equipment nodes; in order to avoid misreading of SAS card information, whether the SAS card corresponding to the SAS card information of the equipment node is positioned in the storage system or not is judged, so that the accuracy of hard RAID equipment node identification is further ensured; therefore, the technical scheme of the application can accurately identify and mount the hard RAID equipment nodes.
The method for automatically identifying and mounting the hard RAID device node provided in the embodiment of the present invention may further include, before determining whether product model information of the current device node is SAS card information:
and judging whether the equipment mark of the current equipment node is a corresponding mark of the hard RAID equipment node, if so, executing the step of judging whether the product model information of the current equipment node is SAS card information, otherwise, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is SAS card information.
It should be noted that, when setting a hard RAID device node, a corresponding flag may be set for the hard RAID device node, so that whether the device node is a hard RAID can be determined by the flag. Therefore, the reason why the judgment of whether the judgment is implemented based on the SAS card is needed after the judgment of the flag is to avoid the situation that the flag is misread or the flag is added to other device nodes.
The method for automatically identifying and mounting the nodes of the hard RAID equipment provided by the embodiment of the invention can also comprise the following steps:
and if the product model information of the current equipment node is SAS card information, setting the status flag of the current equipment node as a flag indicating that the current equipment node is a preliminarily determined hard RAID equipment node.
It should be noted that, in order to quickly locate a corresponding device node when it is determined at a later stage that a device node whose product model information is SAS card information corresponds to whether a SAS card exists in the storage system, in this embodiment, a corresponding flag is added to current device information after it is determined that the product model information of the current device node is SAS card information, so as to improve implementation efficiency.
The method for automatically identifying and mounting the hard RAID device node provided in the embodiment of the present invention determines whether the SAS card information of the current device node corresponds to the SAS card belonging to the storage system, and may include:
the method comprises the steps of obtaining the WWID of the SAS card corresponding to the SAS card information of the current equipment node and the SAS card list of all SAS cards contained in a storage system, if the WWID corresponding to the current equipment node is the same as the WWID of any SAS card in the SAS card list, determining that the SAS card corresponding to the SAS card information of the current equipment node belongs to the storage system, and otherwise, determining that the SAS card corresponding to the SAS card information of the current equipment node does not belong to the storage system.
It should be noted that when determining whether the SAS card corresponding to the SAS card information belongs to the storage system, the WWID of the SAS card may be acquired, and since the WWID is a unique identifier corresponding to each SAS card, different SAS cards may be effectively distinguished, and then whether the SAS card belongs to the storage system is accurately determined, and the accuracy of identifying the hard RAID device node is further enhanced.
The method for automatically identifying and mounting the hard RAID device node according to the embodiment of the present invention may further include, after determining that the current device node is the hard RAID device node:
and recording the name, RAID level and RAID state of the hard RAID device node for query.
It should be noted that after determining the hard RAID device node, the relevant information of the hard RAID device node may be recorded for query as needed; specifically, the information of the hard RAID device node may include a name, RAID levels (including RAID0 to RAID5), and RAID states (normal operating states, abnormal operating states, and the like), and of course, other settings may be performed according to actual needs, and all of them are within the protection scope of the present invention.
The method for automatically identifying and mounting the nodes of the hard RAID equipment provided by the embodiment of the invention can also comprise the following steps:
and after the storage system is determined to be started, executing the step of determining any equipment node in the storage system as the current equipment node.
It should be noted that, in order to avoid a situation that a disk replacement or other reasons of the system cause that it is not possible to determine which identified hard RAID device node is, and thus cause a mounting error, in this embodiment, identification and mounting of the hard RAID device node are automatically achieved after the storage system is started up each time, so that mounting correctness is ensured, and a problem that client software, metadata and the like cannot be used is also avoided.
The method for automatically identifying and mounting the hard RAID device node provided in the embodiment of the present invention may further include, after mounting the hard RAID device node:
and outputting prompt information for realizing identification and mounting of the hard RAID equipment nodes.
Specifically, in order to facilitate the use of the hard RAID device node by the user, in this embodiment, after the hard RAID device node is identified and mounted, information (prompt information) of completion of the identification and mounting may be output, so that the use experience of the user is improved.
In a specific implementation manner, a method for automatically identifying and mounting a hard RAID device node according to an embodiment of the present invention may include the following steps:
the specific implementation mode of the automatic identification and mounting method for the nodes of the hard RAID equipment is as follows:
1) traversing all device nodes (sdnames) in the storage system;
2) acquiring vendor information (vendor) of each device node in the step 1) by the following command:
(cat/sys/block/sdname/device/vendor);
3) if the vendor information in the step 2) is LSI (the manufacturer information is a designated mark, and the LSI is a mark corresponding to the hard RAID equipment node), entering a step 4);
4) acquiring product model information of the equipment node by the following commands:
(model)(cat/sys/block/sdname/device/model),
if the model information is SAS card information (Logical Volume), entering step 5);
5) setting a status state (status flag) to 1; recording path information (device _ path) of the equipment node, and jumping out of the traversal loop of the step 1); entering step 6);
6) for the device node with status state 1, entering step 7); if the equipment node with the status state of 1 does not exist after traversing all the equipment nodes, identifying the failure of the hard RAID equipment node, and exiting;
7) executing a command SAS3ircu list to obtain an SAS card list in the storage system;
8) executing the command SAS3ircu 0display, and inquiring the WWID of each SAS card in the step 7);
9) acquiring the WWID of the SAS of the device _ path equipment node in the step 5);
10) if the WWID of the SAS of the device _ path equipment node in the step 5) is the same as the WWID of any SAS card in the SAS card list, entering 11);
11) recording the device node name sdname, RAID level and RAID state;
12) local, in a storage system startup phase rc), acquiring the device node sdname in the step 11); and mounting the equipment node.
An embodiment of the present invention further provides an apparatus for automatically identifying and mounting a hard RAID device node, as shown in fig. 2, the apparatus may include:
a first determining module 11, configured to: determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information;
a first execution module 12 configured to: if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to a storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node;
a second execution module 13, configured to: and if the product model information of the current equipment node is not the SAS card information, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
The apparatus for automatically identifying and mounting a hard RAID device node provided in the embodiments of the present invention may further include:
a second determination module configured to: before judging whether the product model information of the current equipment node is SAS card information or not, judging whether the equipment mark of the current equipment node is a corresponding mark of a hard RAID equipment node or not, if so, executing the step of judging whether the product model information of the current equipment node is SAS card information or not, otherwise, determining any equipment node which is not taken as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is SAS card information or not.
The apparatus for automatically identifying and mounting a hard RAID device node provided in the embodiments of the present invention may further include:
a setup module to: and if the product model information of the current equipment node is SAS card information, setting the status flag of the current equipment node as a flag indicating that the current equipment node is a preliminarily determined hard RAID equipment node.
In an embodiment of the present invention, a device for automatically identifying and mounting a node of a hard RAID device includes:
a determination unit configured to: the method comprises the steps of obtaining the WWID of the SAS card corresponding to the SAS card information of the current equipment node and the SAS card list of all SAS cards contained in a storage system, if the WWID corresponding to the current equipment node is the same as the WWID of any SAS card in the SAS card list, determining that the SAS card corresponding to the SAS card information of the current equipment node belongs to the storage system, and otherwise, determining that the SAS card corresponding to the SAS card information of the current equipment node does not belong to the storage system.
The apparatus for automatically identifying and mounting a hard RAID device node provided in the embodiments of the present invention may further include:
a recording module to: and after determining that the current equipment node is a hard RAID equipment node, recording the name, RAID level and RAID state of the hard RAID equipment node for query.
The apparatus for automatically identifying and mounting a hard RAID device node provided in the embodiments of the present invention may further include:
a self-starting module to: and after the storage system is determined to be started, executing the step of determining any equipment node in the storage system as the current equipment node.
The apparatus for automatically identifying and mounting a hard RAID device node provided in the embodiments of the present invention may further include:
an output module to: and after the hard RAID equipment node is mounted, outputting prompt information for realizing identification and mounting of the hard RAID equipment node.
The embodiment of the invention also provides equipment for automatically identifying and mounting the equipment node, which comprises the following steps:
a memory for storing a computer program;
and the processor is used for realizing the steps of the method for automatically identifying and mounting the hard RAID equipment node when executing the computer program.
The embodiment of the invention also provides a computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program realizes the steps of the method for automatically identifying and mounting the hard RAID equipment node.
It should be noted that for the description of the relevant parts of the apparatus, the device, and the computer-readable storage medium for automatically identifying and mounting the hard RAID device node according to the embodiments of the present invention, please refer to the detailed description of the corresponding parts of the method for automatically identifying and mounting the hard RAID device node according to the embodiments of the present invention, which is not described herein again. In addition, parts of the technical solutions provided in the embodiments of the present invention that are consistent with the implementation principles of the corresponding technical solutions in the prior art are not described in detail, so as to avoid redundant description.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (9)

1. A method for automatically identifying and mounting nodes of a hard RAID device is characterized by comprising the following steps:
determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information;
if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node;
if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not used as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is SAS card information;
before judging whether the product model information of the current equipment node is the SAS card information, the method further comprises the following steps:
and judging whether the equipment mark of the current equipment node is a corresponding mark of the hard RAID equipment node, if so, executing the step of judging whether the product model information of the current equipment node is SAS card information, otherwise, determining that any equipment node which is not taken as the current equipment node in the storage system is the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
2. The method of claim 1, further comprising:
and if the product model information of the current equipment node is SAS card information, setting the status flag of the current equipment node as a flag indicating that the current equipment node is a preliminarily determined hard RAID equipment node.
3. The method of claim 2, wherein determining whether the SAS card information of the current device node corresponds to a SAS card belonging to the storage system comprises:
the method comprises the steps of obtaining the WWID of the SAS card corresponding to the SAS card information of the current equipment node and the SAS card list of all SAS cards contained in a storage system, if the WWID corresponding to the current equipment node is the same as the WWID of any SAS card in the SAS card list, determining that the SAS card corresponding to the SAS card information of the current equipment node belongs to the storage system, and otherwise, determining that the SAS card corresponding to the SAS card information of the current equipment node does not belong to the storage system.
4. The method of claim 3, wherein after determining that the current device node is a hard RAID device node, further comprising:
and recording the name, RAID level and RAID state of the hard RAID equipment node for query.
5. The method of claim 4, further comprising:
and after the storage system is determined to be started, executing a step of determining any equipment node in the storage system as the current equipment node.
6. The method of claim 5, wherein after mounting the hard RAID device node, further comprising:
and outputting prompt information for realizing the identification and mounting of the hard RAID equipment node.
7. An apparatus for automatically identifying and mounting a hard RAID device node, comprising:
a determination module configured to: determining any equipment node in the storage system as a current equipment node, and judging whether the product model information of the current equipment node is SAS card information;
a first execution module to: if the product model information of the current equipment node is SAS card information, judging whether the SAS card corresponding to the SAS card information belongs to the storage system, if so, determining that the current equipment node is a hard RAID equipment node, and mounting the hard RAID equipment node;
a second execution module to: if the product model information of the current equipment node is not SAS card information, determining any equipment node which is not used as the current equipment node in the storage system as the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is SAS card information;
the device further comprises:
a second determination module configured to: and judging whether the equipment mark of the current equipment node is a corresponding mark of the hard RAID equipment node, if so, executing the step of judging whether the product model information of the current equipment node is SAS card information, otherwise, determining that any equipment node which is not taken as the current equipment node in the storage system is the current equipment node, and returning to execute the step of judging whether the product model information of the current equipment node is the SAS card information.
8. The utility model provides an equipment node automatic identification and equipment of mount which characterized in that includes:
a memory for storing a computer program;
a processor for implementing the steps of the method for automatically identifying and mounting a hard RAID device node according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, having stored thereon, a computer program which, when executed by a processor, performs the steps of the method for automatic identification and mounting of hard RAID device nodes according to any one of claims 1 to 6.
CN201910501943.5A 2019-06-11 2019-06-11 Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment Active CN110187844B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910501943.5A CN110187844B (en) 2019-06-11 2019-06-11 Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910501943.5A CN110187844B (en) 2019-06-11 2019-06-11 Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment

Publications (2)

Publication Number Publication Date
CN110187844A CN110187844A (en) 2019-08-30
CN110187844B true CN110187844B (en) 2020-03-31

Family

ID=67721345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910501943.5A Active CN110187844B (en) 2019-06-11 2019-06-11 Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment

Country Status (1)

Country Link
CN (1) CN110187844B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927126A (en) * 2013-07-18 2014-07-16 詹明德 RAID (redundant array of independent disks) equipment configuration method, RAID equipment assembly method and RAID equipment disk insertion processing method
CN104951254A (en) * 2015-07-03 2015-09-30 浪潮(北京)电子信息产业有限公司 Method and device for managing storage device
CN109189342A (en) * 2018-08-30 2019-01-11 郑州云海信息技术有限公司 A kind of disk hanging method, device, equipment and storage medium
CN109542708A (en) * 2018-12-04 2019-03-29 浪潮电子信息产业股份有限公司 Method for recording corresponding relation between physical slot position of back plate and system drive letter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927126A (en) * 2013-07-18 2014-07-16 詹明德 RAID (redundant array of independent disks) equipment configuration method, RAID equipment assembly method and RAID equipment disk insertion processing method
CN104951254A (en) * 2015-07-03 2015-09-30 浪潮(北京)电子信息产业有限公司 Method and device for managing storage device
CN109189342A (en) * 2018-08-30 2019-01-11 郑州云海信息技术有限公司 A kind of disk hanging method, device, equipment and storage medium
CN109542708A (en) * 2018-12-04 2019-03-29 浪潮电子信息产业股份有限公司 Method for recording corresponding relation between physical slot position of back plate and system drive letter

Also Published As

Publication number Publication date
CN110187844A (en) 2019-08-30

Similar Documents

Publication Publication Date Title
US8751783B2 (en) Booting computing devices with EFI aware operating systems
TWI595364B (en) Automatic image recovery method and server system
US8954805B2 (en) Computer booting method and computer system
US20090024757A1 (en) Automatic Protocol Determination For Portable Devices Supporting Multiple Protocols
JP2016058083A (en) System and method for managing plurality of bios default setting
CN107315659B (en) Metadata redundancy backup method and device
US8863110B2 (en) Firmware updating system and method
US20120117367A1 (en) Electronic apparatus and booting method thereof
CN108932249B (en) Method and device for managing file system
CN106484719B (en) Method and terminal for expanding mobile phone storage
CN109101247A (en) The method, apparatus and server of driver are installed
EP3018585A1 (en) Machine provision method, machine provision system, and machine provision program
CN117971752A (en) Bus equipment hot plug control method and device and readable storage medium
CN113590405A (en) Hard disk error detection method and device, storage medium and electronic device
CN110187844B (en) Method and device for automatically identifying and mounting nodes of hard RAID (redundant array of independent disk) equipment
US20110202903A1 (en) Apparatus and method for debugging a shared library
WO2024022212A1 (en) Configuration information management method and apparatus, and server
CN116185311A (en) Upgrading migration method, degrading migration method and device for redundant array of independent disk
CN110362430A (en) A kind of method being restarted automatically, system and the storage medium of server
US20180032351A1 (en) Information processing method and storage device
CN114968694A (en) Hard disk fault injection method, device, equipment and storage medium
CN111625185B (en) Method, system and related assembly for monitoring disk fault
CN114064133A (en) Hardware information processing method and device and storage system
CN113688051A (en) Electric energy meter software upgrading test method and storage medium
CN111783162A (en) Data protection implementation 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
GR01 Patent grant
GR01 Patent grant