CN111459403B - Storage hardware management method and device - Google Patents

Storage hardware management method and device Download PDF

Info

Publication number
CN111459403B
CN111459403B CN202010132842.8A CN202010132842A CN111459403B CN 111459403 B CN111459403 B CN 111459403B CN 202010132842 A CN202010132842 A CN 202010132842A CN 111459403 B CN111459403 B CN 111459403B
Authority
CN
China
Prior art keywords
hardware
interface
information
management software
user instruction
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
CN202010132842.8A
Other languages
Chinese (zh)
Other versions
CN111459403A (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.)
New H3C Technologies Co Ltd Chengdu Branch
Original Assignee
New H3C Technologies Co Ltd Chengdu Branch
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 New H3C Technologies Co Ltd Chengdu Branch filed Critical New H3C Technologies Co Ltd Chengdu Branch
Priority to CN202010132842.8A priority Critical patent/CN111459403B/en
Publication of CN111459403A publication Critical patent/CN111459403A/en
Application granted granted Critical
Publication of CN111459403B publication Critical patent/CN111459403B/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
    • 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
    • G06F3/0634Configuration or reconfiguration of storage systems by changing the state or mode of one or more devices
    • 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)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of storage hardware management technologies, and in particular, to a storage hardware management method and apparatus. The method is applied to a storage server in a distributed storage system, the storage server is provided with hardware management software, the hardware management software comprises an external interface for providing service to the outside and an internal interface for managing hardware of the storage server, and the method comprises the following steps: receiving a user instruction sent by the management equipment through the external interface; if the user instruction is a setting type instruction, setting hardware associated with the internal interface based on the user instruction; if the user instruction is a query instruction, the internal interface is called based on the user instruction to obtain the equipment information of each hardware, and the equipment information of each hardware is sent to the management equipment through the external interface. By adopting the method, different types of storage servers in the distributed storage system can be uniformly managed through hardware management software, so that the management efficiency is improved, and the management cost is reduced.

Description

Storage hardware management method and device
Technical Field
The present application relates to the field of storage hardware management technologies, and in particular, to a storage hardware management method and apparatus.
Background
With the vigorous development of cloud computing, mobile computing, social media and big data, the data is increased explosively, which brings challenges to mass data storage, sharing, disaster recovery and the like. The distributed storage can ensure the safety, reliability and performance of data read-write operation, support horizontal expansion to meet large-scale use, and provide completely decentralized storage service.
The software definition storage does not depend on fixed storage equipment, is extracted from the original memory, and the storage equipment is various and has certain difference, so that the management complexity is brought to the drive of the equipment, the hardware management and the information acquisition, and each hardware is required to be managed independently, so that huge management cost is brought. It is therefore particularly desirable to provide a generic storage hardware management software that masks differences in underlying hardware to facilitate management.
Disclosure of Invention
The embodiment of the application provides a storage hardware management method and device, which are used for solving the problems of complex storage hardware management and high management cost in the prior art.
The embodiment of the application provides the following specific technical scheme:
in a first aspect, the present application provides a storage hardware management method, which is applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing services to the outside and an internal interface for managing hardware of the storage server, and the method includes:
receiving a user instruction sent by a management device through the external interface;
if the user instruction is a setting instruction, setting hardware associated with the internal interface based on the user instruction;
and if the user instruction is a query instruction, calling the internal interface based on the user instruction to acquire the equipment information of each hardware, and sending the equipment information of each hardware to the management equipment through the external interface.
Optionally, the hardware management software is preset with a hardware compatibility list, where the hardware compatibility list at least includes a host model compatible list and a RAID card model compatible list, and before deploying the hardware management software, the method further includes:
reading host model information and RAID card model information of the host and the RAID card;
and when the host model information is contained in the host model compatibility list and the RAID card model information is contained in the RAID card model compatibility list, determining that the hardware management software is compatible, and locally deploying the hardware management software.
Optionally, the internal interface includes a query class interface and a setting class interface;
and when the query type interface and/or the setting type interface are executed based on the user instruction, acquiring hardware information corresponding to the user instruction, and calling a command corresponding to the corresponding hardware information according to the corresponding hardware information to execute query type operation and/or setting type operation.
Optionally, the method further comprises:
when a hardware management software upgrading instruction is received, judging whether hardware management software is deployed locally;
if yes, upgrading the deployed hardware management software; otherwise, reading own host model information and RAID card model information, determining that the hardware management software is compatible when the host model compatible list contains the host model information and the RAID card model compatible list contains the RAID card model information, and locally deploying the hardware management software.
Optionally, the method further comprises:
acquiring equipment information of hardware associated with the query interface through the query interface based on a preset period, and caching the equipment information in a local hardware information caching module;
the calling the internal interface to acquire the equipment information of each hardware based on the user instruction comprises:
and acquiring corresponding hardware information from the hardware information cache module based on the user instruction.
In a second aspect, the present application provides a storage hardware management apparatus, applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, and the hardware management software includes an external interface for providing services to the outside and an internal interface for managing hardware of the storage server, where the apparatus includes:
the receiving unit is used for receiving a user instruction sent by the management equipment through the external interface;
the setting unit is used for setting hardware associated with the internal interface based on the user instruction if the user instruction is a setting type instruction;
and the query unit calls the internal interface to acquire the equipment information of each hardware based on the user instruction and sends the equipment information of each hardware to the management equipment through the external interface if the user instruction is a query instruction.
Optionally, the hardware management software is preset with a hardware compatibility list, where the hardware compatibility list at least includes a host model compatible list and a RAID card model compatible list, and before deploying the hardware management software, the apparatus further includes:
the reading unit is used for reading host model information and RAID card model information of the reading unit;
and the deployment unit is used for determining that the hardware management software is compatible and locally deploying the hardware management software when the host model information is determined to be contained in the host model compatible list and the RAID card model information is contained in the RAID card model compatible list.
Optionally, the internal interface includes a query class interface and a setting class interface;
when the query type interface and/or the setting type interface is executed based on the user instruction, the setting unit and/or the query unit acquires hardware information corresponding to the user instruction, and calls a command corresponding to the corresponding hardware information to execute query type operation and/or setting type operation according to the corresponding hardware information.
Optionally, the apparatus further comprises:
the judging unit is used for judging whether the hardware management software is deployed locally or not when receiving the hardware management software upgrading instruction;
if yes, upgrading the deployed hardware management software; otherwise, the reading unit is used for reading host model information and RAID card model information of the reading unit, when the host model information is contained in the host model compatibility list and the RAID card model information is contained in the RAID card model compatibility list, the hardware management software is determined to be compatible, and the deployment unit deploys the hardware management software locally.
Optionally, the apparatus further comprises:
the cache unit is used for acquiring the equipment information of the hardware associated with the query interface through the query interface based on a preset period and caching the equipment information in a local hardware information cache module;
when the internal interface is called based on the user instruction to obtain the device information of each hardware, the query unit is specifically configured to:
and acquiring corresponding hardware information from the hardware information cache module based on the user instruction.
In a third aspect, the present application provides a computing device comprising:
a memory for storing program instructions;
and a processor, configured to call the program instructions stored in the memory, and execute any one of the methods according to the first aspect according to the obtained program.
In a fourth aspect, the present application provides a computer storage medium having stored thereon computer-executable instructions for causing a computer to perform the method of any of the first aspects.
The beneficial effect of this application is as follows:
to sum up, the hardware management method and apparatus provided in the present application are applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing services to the outside and an internal interface for managing hardware of the storage server, and the method includes: receiving a user instruction sent by the management equipment through the external interface; if the user instruction is a setting instruction, setting hardware associated with the internal interface based on the user instruction; if the user instruction is a query instruction, calling the internal interface based on the user instruction to acquire the equipment information of each hardware, and sending the equipment information of each hardware to the management equipment through the external interface.
By adopting the storage hardware management method provided by the application, a unified management interface can be provided for an upper layer (application layer) through unified hardware management software, the difference of hardware equipment of a lower layer is shielded, different types of storage servers in a distributed storage system are managed, the management complexity of the storage system is reduced, the management efficiency is improved, and the management cost is reduced.
Drawings
Fig. 1 is a schematic flowchart of a storage hardware management method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a distributed storage system according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a logical structure of hardware management software according to an embodiment of the present application;
FIG. 4 is a flowchart illustrating another storage hardware management method according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a storage hardware management apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of another storage hardware management apparatus according to an embodiment of the present application.
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 some embodiments of the present application, and not all 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.
First, the term "and" in the embodiment of the present application is only one kind of association relationship describing an associated object, and means that three kinds of relationships may exist, for example, a and B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
When the present application refers to the ordinal numbers "first", "second", "third" or "fourth", etc., it should be understood that this is done for differentiation only, unless it is clear from the context that the order is actually expressed.
The scheme of the present application will be described in detail by specific examples, but the present application is not limited to the following examples.
Exemplarily, referring to fig. 1, an embodiment of the present application provides a storage hardware management method, which is applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing a service to the outside and an internal interface for managing hardware of the storage server, and a detailed flow of the storage hardware management method is as follows:
step 100: and receiving a user instruction sent by the management equipment through the external interface.
Illustratively, referring to fig. 2, a schematic structural diagram of a distributed storage system provided in an embodiment of the present application includes a management server and several storage servers. The management server may be connected to a user side (e.g., a client) through which a user may manage the storage servers in the distributed storage system.
Then, in this embodiment, the storage server may receive, through an external interface connected to the management server, a user instruction issued by the management device (e.g., the management server).
In practical applications, the hardware management software deployed in the storage server may provide a uniform and generic Application Program Interface (API) to an upper layer (e.g., a user Application layer). The storage server may use the API interface to receive user-generated instructions regarding the management of the local hardware device by the user.
Step 110: and if the user instruction is a setting type instruction, setting the hardware associated with the internal interface based on the user instruction.
In practical application, a user can perform setting and/or query operations on each storage hardware in the storage server. If the received user instruction is determined to be a setting type instruction, the storage hardware needing to be set can be determined according to the user instruction, and then the storage hardware is set according to the setting content of the user instruction. Of course, after the setting success/failure, a setting success/failure response message may be transmitted to the management server.
Step 120: and if the user instruction is a query instruction, calling the internal interface based on the user instruction to acquire the equipment information of each hardware, and sending the equipment information of each hardware to the management equipment through the external interface.
From the above, since the user can perform setting and/or querying operations on each storage hardware in the storage server. Then, the user instruction may be an inquiry instruction, and when the received user instruction is an inquiry instruction, the storage server inquires the device information of the relevant hardware according to the specific content of the inquiry instruction and returns the device information to the management server.
In the embodiment of the present application, the internal interface includes a query interface and a setting interface; then, the storage server obtains the hardware information corresponding to the user instruction when executing the query interface and/or the setting interface based on the user instruction, and invokes a command corresponding to the corresponding hardware information to execute a query operation and/or a setting operation according to the corresponding hardware information.
In practical applications, the internal interface may be a system generic interface associated with a network card of the storage server, and a device vendor tool/API interface, which may include an interface associated with a RAID card, a hard disk, a motherboard, and the like of the storage server, for example, the interface associated with the RAID card, the hard disk is used for RAID card and hard disk management, and the interface associated with the motherboard is used for management of hardware devices such as a fan, a power supply, and a CPU.
In this embodiment, an optional implementation manner is that the storage server may obtain, in advance, the device information of the hardware associated with the query class interface through the query class interface based on a preset period (e.g., M minutes), and cache the device information in the local hardware information cache module. When the user instruction is received as the query instruction, the device information of the required hardware is directly obtained from the hardware information cache module and returned to the management server.
Of course, in the embodiment of the present application, the preset period may be set according to a specific application scenario and/or a user requirement, and in the embodiment of the present application, no specific limitation is made herein.
For example, the preset period may be 1 minute, 5 minutes, 30 minutes, and the like, and if the preset period is 5 minutes, the storage server obtains the device information of the hardware associated with the query class interface every 5 minutes through the query class interface, and caches the device information in the local hardware information caching module.
Further, in this embodiment of the application, the hardware management software is preset with a hardware compatibility list, where the hardware compatibility list at least includes a host model compatible list and a RAID card model compatible list. Before the storage server deploys the hardware management software, the storage hardware management method may further include: the storage server reads the host model information and RAID card model information of the storage server; and when the host model information is determined to be contained in the host model compatible list and the RAID card model information is determined to be contained in the RAID card model compatible list, determining that the hardware management software is compatible, and locally deploying the hardware management software.
That is, the hardware management software developed is a management software that can be used to manage several models of hosts and/or several models of RAID cards, for example, because different types of RAID cards do not have the same query command and setting command for manufacturers, and for compatible models, it is necessary to integrate the RAID card related commands of the model, that is, the hardware management software can only be deployed on compatible storage servers. Further, when installing and deploying the hardware management software, the storage server first needs to determine whether the hardware management software is locally installed.
Furthermore, in the subsequent maintenance process of the hardware management software, it may be necessary to upgrade the hardware management software, and then, specifically, when the storage server receives the hardware management software upgrade instruction, it is determined whether the hardware management software is deployed locally; if the hardware management software is locally deployed, directly upgrading the deployed hardware management software; if the hardware management software is not locally deployed, reading own host model information and RAID card model information, determining that the hardware management software is compatible when the host model information is contained in the host model compatible list and the RAID card model information is contained in the RAID card model compatible list, and locally deploying the hardware management software.
That is, the storage server has deployed hardware management software locally, that is, the host model and the RAID card model of the storage server are included in the hardware compatibility list of the hardware management software, so that only the hardware management software needs to be directly upgraded. If the storage server is not locally deployed with the hardware management software, whether the host model and the RIAD card model of the storage server are in the hardware compatibility list of the pre-upgraded hardware management software needs to be judged so as to determine the subsequent operation flow.
Specifically, reading own host model information and RAID card model information; and when the host model information is contained in the host model compatibility list and the RAID card model information is contained in the RAID card model compatibility list, determining that the hardware management software is compatible, and locally deploying the hardware management software.
Furthermore, when the storage server performs capacity expansion, if the storage server has hardware management software deployed locally, the unified API interface may be used to query the disk list for capacity expansion, and after the capacity expansion is completed, the hard disk information after capacity expansion is updated to the database.
In the embodiment of the present application, a schematic diagram of a logic structure of hardware management software may include a device management module, and an intermediate module, where the device management module may include an API interface for providing a service to the outside, and the intermediate module may include a system generic interface and a device vendor tool/API interface associated with hardware of a storage server. The API interface for providing the service to the outside may perform a corresponding query operation/setup operation according to a type of the received user instruction (e.g., a query operation, a setup operation). Optionally, the device management module may further include a hardware information caching module and a timer, and the device management module may obtain the device information of each hardware based on a preset period, and cache the device information into the hardware information caching module.
In the embodiment of the application, the device information of each hardware is cached in the hardware information caching module in advance, and when the inquiry user instruction is received, the device information of the corresponding hardware can be sent to the management server more quickly, so that the response speed is improved, and the consumption of system resources caused by real-time acquisition of the device information of the hardware is avoided.
Further, the above embodiments of the present application are further described with specific application scenarios. Specifically, in this embodiment of the present application, the step of installing and deploying the hardware management software in the storage server may include:
the method comprises the following steps: the storage server scans the host.
Step two: the storage server queries the server model and the RAID card information.
Step three: the storage server judges whether the server model and the RAID card information are in a preset equipment management compatible list or not, if yes, the fourth step is executed; otherwise, executing step five.
Step four: the storage server locally installs hardware management software. If the installation is successful, starting the process; otherwise, returning the installation failure message.
Step five: the storage server does not have the hardware management software installed locally.
Based on the foregoing installation operation of the hardware management software in a specific application scenario, an embodiment of the present application further provides another storage hardware management method, and for example, referring to fig. 4, a detailed flow of the another storage hardware management method provided by the embodiment of the present application is as follows:
step 400: and the storage server receives a hardware query instruction sent by the management server.
Specifically, in the application embodiment, the management server manages all the storage servers in the distributed storage system, and then the management server may query the hardware information of each storage server separately. For example, when the management server needs to query the hardware information of the storage server a, the management server may send a hardware query instruction to the storage server a.
Step 410: the storage server determines whether hardware management software has been installed locally.
Specifically, if the storage server determines that the hardware management software is installed locally, step 420 is executed; otherwise, step 440 is performed.
Step 420: and the storage server calls the uniform interface to perform query.
Specifically, the storage server queries the device information of each hardware by using an API interface integrated by hardware management software.
Step 430: and the storage server sends the inquired hardware information to the management server.
Step 440: and querying by adopting a system command.
That is to say, the storage server is not locally installed with hardware management software, and needs to perform query by using the existing query method, which is not described herein again in this embodiment of the application.
Based on the foregoing embodiment, as shown in fig. 5, in the embodiment of the present application, a storage hardware management apparatus is applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing a service to the outside and an internal interface for managing hardware of the storage server, and the apparatus at least includes a receiving unit 50, a setting unit 51, and an inquiring unit 52:
a receiving unit 50, configured to receive, through the external interface, a user instruction sent by the management apparatus;
a setting unit 51, if the user instruction is a setting type instruction, the setting unit 51 sets hardware associated with the internal interface based on the user instruction;
if the user instruction is a query instruction, the query unit 52 calls the internal interface to obtain the device information of each hardware based on the user instruction, and sends the device information of each hardware to the management device through the external interface.
Optionally, the hardware management software is preset with a hardware compatibility list, where the hardware compatibility list at least includes a host model compatible list and a RAID card model compatible list, and before deploying the hardware management software, the apparatus further includes:
the reading unit is used for reading host model information and RAID card model information of the reading unit;
and the deployment unit is used for determining that the hardware management software is compatible and locally deploying the hardware management software when the host model information is determined to be contained in the host model compatible list and the RAID card model information is contained in the RAID card model compatible list.
Optionally, the internal interface includes a query class interface and a setting class interface;
when the query type interface and/or the setting type interface are/is executed based on the user instruction, the setting unit and/or the query unit obtains hardware information corresponding to the user instruction, and calls a command corresponding to the corresponding hardware information to execute query type operation and/or setting type operation according to the corresponding hardware information.
Optionally, the apparatus further comprises:
the judging unit is used for judging whether the hardware management software is deployed locally or not when receiving the hardware management software upgrading instruction;
if yes, upgrading the deployed hardware management software; otherwise, the reading unit is configured to read host model information and RAID card model information of the reading unit, determine that the hardware management software is compatible when it is determined that the host model information is included in the host model compatibility list and the RAID card model information is included in the RAID card model compatibility list, and the deployment unit deploys the hardware management software locally.
Optionally, the apparatus further comprises:
the cache unit is used for acquiring the equipment information of the hardware associated with the query interface through the query interface based on a preset period and caching the equipment information in a local hardware information cache module;
when the internal interface is called based on the user instruction to obtain the device information of each hardware, the querying unit 52 is specifically configured to:
and acquiring corresponding hardware information from the hardware information cache module based on the user instruction.
Further, referring to fig. 6, the present application also provides a computing device comprising a memory 60 and a processor 61, wherein,
a memory 60 for storing program instructions;
and a processor 61 for calling the program instructions stored in the memory 60 and executing any one of the above method embodiments according to the obtained program.
Still further, the present application provides a computer storage medium having computer-executable instructions stored thereon for causing the computer to perform any of the method embodiments described above.
To sum up, the hardware management method and apparatus provided in the present application are applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing services to the outside and an internal interface for managing hardware of the storage server, and the method includes: receiving a user instruction sent by the management equipment through the external interface; if the user instruction is a setting instruction, setting hardware associated with the internal interface based on the user instruction; and if the user instruction is a query instruction, calling the internal interface based on the user instruction to acquire the equipment information of each hardware, and sending the equipment information of each hardware to the management equipment through the external interface.
By adopting the storage hardware management method provided by the application, a unified management interface can be provided for an upper layer (application layer) through unified hardware management software, the difference of hardware equipment of a lower layer is shielded, different types of storage servers in a distributed storage system are managed, the management complexity of the storage system is reduced, the management efficiency is improved, and the management cost is reduced.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the embodiments of the present application without departing from the spirit and scope of the embodiments of the present application. Thus, if such modifications and variations of the embodiments of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to encompass such modifications and variations.

Claims (8)

1. A storage hardware management method, applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing services to the outside, an internal interface for managing hardware of the storage server, the internal interface is a system generic interface, and a device vendor tool/API interface, the system generic interface is associated with a network card of the storage server, and the device vendor tool/API interface includes interfaces associated with a RAID card, a hard disk, and a motherboard of the storage server, the method includes:
receiving a user instruction sent by a management device through the external interface;
if the user instruction is a setting type instruction, setting hardware associated with the internal interface based on the user instruction;
if the user instruction is a query instruction, calling the internal interface based on the user instruction to acquire equipment information of each hardware, and sending the equipment information of each hardware to the management equipment through the external interface;
the hardware management software is preset with a hardware compatibility list, the hardware compatibility list at least comprises a host model compatible list and a RAID card model compatible list, and before the hardware management software is deployed, the method further comprises the following steps:
reading host model information and RAID card model information of the host and the RAID card;
and when the host model information is contained in the host model compatibility list and the RAID card model information is contained in the RAID card model compatibility list, determining that the hardware management software is compatible, and locally deploying the hardware management software.
2. The method of claim 1, wherein the internal interfaces comprise a query class interface and a setup class interface;
and when the query type interface and/or the setting type interface are executed based on the user instruction, acquiring hardware information corresponding to the user instruction, and calling a command corresponding to the corresponding hardware information according to the corresponding hardware information to execute query type operation and/or setting type operation.
3. The method of claim 1, wherein the method further comprises:
when a hardware management software upgrading instruction is received, judging whether hardware management software is deployed locally;
if yes, upgrading the deployed hardware management software; otherwise, reading own host model information and RAID card model information, determining that the hardware management software is compatible when the host model compatible list contains the host model information and the RAID card model compatible list contains the RAID card model information, and locally deploying the hardware management software.
4. The method of claim 2, wherein the method further comprises:
acquiring equipment information of hardware associated with the query interface through the query interface based on a preset period, and caching the equipment information in a local hardware information caching module;
the calling the internal interface to acquire the equipment information of each hardware based on the user instruction comprises:
and acquiring corresponding hardware information from the hardware information cache module based on the user instruction.
5. A storage hardware management apparatus, applied to a storage server in a distributed storage system, where the storage server is deployed with hardware management software, the hardware management software includes an external interface for providing services to the outside, an internal interface for managing hardware of the storage server, the internal interface is a system generic interface, and a device vendor tool/API interface, the system generic interface is associated with a network card of the storage server, the device vendor tool/API interface includes an interface associated with a RAID card, a hard disk, and a motherboard of the storage server, and the apparatus includes:
the receiving unit is used for receiving a user instruction sent by the management equipment through the external interface;
the setting unit is used for setting hardware associated with the internal interface based on the user instruction if the user instruction is a setting type instruction;
the query unit calls the internal interface to acquire the equipment information of each hardware based on the user instruction if the user instruction is a query instruction, and sends the equipment information of each hardware to the management equipment through the external interface;
the hardware management software is preset with a hardware compatibility list, the hardware compatibility list at least comprises a host model compatible list and a RAID card model compatible list, and before the hardware management software is deployed, the device further comprises:
the reading unit is used for reading host model information and RAID card model information of the reading unit;
and the deployment unit is used for determining that the hardware management software is compatible and locally deploying the hardware management software when the host model information is determined to be contained in the host model compatible list and the RAID card model information is contained in the RAID card model compatible list.
6. The apparatus of claim 5, wherein the internal interface comprises a query class interface and a setup class interface;
when the query type interface and/or the setting type interface are/is executed based on the user instruction, the setting unit and/or the query unit obtains hardware information corresponding to the user instruction, and calls a command corresponding to the corresponding hardware information to execute query type operation and/or setting type operation according to the corresponding hardware information.
7. The apparatus of claim 5, wherein the apparatus further comprises:
the judging unit is used for judging whether the hardware management software is deployed locally or not when receiving the hardware management software upgrading instruction;
if yes, upgrading the deployed hardware management software; otherwise, the reading unit is configured to read host model information and RAID card model information of the reading unit, determine that the hardware management software is compatible when it is determined that the host model information is included in the host model compatibility list and the RAID card model information is included in the RAID card model compatibility list, and the deployment unit deploys the hardware management software locally.
8. The apparatus of claim 6, wherein the apparatus further comprises:
the cache unit is used for acquiring the equipment information of the hardware associated with the query interface through the query interface based on a preset period and caching the equipment information in a local hardware information cache module;
when the internal interface is called based on the user instruction to obtain the device information of each hardware, the query unit is specifically configured to:
and acquiring corresponding hardware information from the hardware information cache module based on the user instruction.
CN202010132842.8A 2020-02-29 2020-02-29 Storage hardware management method and device Active CN111459403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010132842.8A CN111459403B (en) 2020-02-29 2020-02-29 Storage hardware management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010132842.8A CN111459403B (en) 2020-02-29 2020-02-29 Storage hardware management method and device

Publications (2)

Publication Number Publication Date
CN111459403A CN111459403A (en) 2020-07-28
CN111459403B true CN111459403B (en) 2023-03-28

Family

ID=71684140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010132842.8A Active CN111459403B (en) 2020-02-29 2020-02-29 Storage hardware management method and device

Country Status (1)

Country Link
CN (1) CN111459403B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112667973B (en) * 2020-11-30 2023-12-26 新华三技术有限公司 Method and device for activating management software of network equipment
CN112905123A (en) * 2021-02-21 2021-06-04 珠海美佳音科技有限公司 Storage controller and storage control method of environmental parameter recording equipment
CN113805961B (en) * 2021-08-27 2023-09-15 中国航空无线电电子研究所 Product software and hardware compatibility management method based on compatibility list file

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731827A (en) * 2005-08-04 2006-02-08 北京华傲精创科技开发有限公司 Video device, video camera recording device and video & audio editing system
CN101166336A (en) * 2006-10-20 2008-04-23 中兴通讯股份有限公司 Road measuring and recording device and system
CN101236521A (en) * 2008-02-15 2008-08-06 浪潮电子信息产业股份有限公司 RAID card compatibility and stability test method
CN101359309A (en) * 2007-08-03 2009-02-04 中兴通讯股份有限公司 Status indication apparatus for hard disc of serial connection small computer system interface and method
CN103888828A (en) * 2014-03-25 2014-06-25 云浮南风数字科技有限公司 Digital TV multi-hardware interface compatible driving system based on 3C fusion
CN106959828A (en) * 2017-03-31 2017-07-18 山东超越数控电子有限公司 A kind of hardware RAID system and its implementation based on Domestic Platform

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100351828C (en) * 2002-06-06 2007-11-28 联想(北京)有限公司 File access method based on a distributed file storage system
CN100407659C (en) * 2006-02-14 2008-07-30 华为技术有限公司 Method for realizing software edition upgrading
CN101488878B (en) * 2008-05-23 2012-10-03 华为技术有限公司 Intelligence platform interface management apparatus and server
US9015793B2 (en) * 2012-12-21 2015-04-21 Mcafee, Inc. Hardware management interface
CN105549685A (en) * 2015-12-08 2016-05-04 中电科华云信息技术有限公司 Cloud platform integrated machine
CN110008074B (en) * 2019-04-11 2020-07-07 苏州浪潮智能科技有限公司 Method, device and equipment for automatically testing and inquiring upper-layer interface of hardware information
CN110597597B (en) * 2019-08-30 2022-08-12 北京卓识网安技术股份有限公司 Method, system, device and storage medium for virtualization of hardware
CN110781356A (en) * 2019-09-25 2020-02-11 苏州浪潮智能科技有限公司 Hardware query method, equipment and storage medium based on management platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1731827A (en) * 2005-08-04 2006-02-08 北京华傲精创科技开发有限公司 Video device, video camera recording device and video & audio editing system
CN101166336A (en) * 2006-10-20 2008-04-23 中兴通讯股份有限公司 Road measuring and recording device and system
CN101359309A (en) * 2007-08-03 2009-02-04 中兴通讯股份有限公司 Status indication apparatus for hard disc of serial connection small computer system interface and method
CN101236521A (en) * 2008-02-15 2008-08-06 浪潮电子信息产业股份有限公司 RAID card compatibility and stability test method
CN103888828A (en) * 2014-03-25 2014-06-25 云浮南风数字科技有限公司 Digital TV multi-hardware interface compatible driving system based on 3C fusion
CN106959828A (en) * 2017-03-31 2017-07-18 山东超越数控电子有限公司 A kind of hardware RAID system and its implementation based on Domestic Platform

Also Published As

Publication number Publication date
CN111459403A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459403B (en) Storage hardware management method and device
CN107515776B (en) Method for upgrading service continuously, node to be upgraded and readable storage medium
US7823023B2 (en) Test framework for testing an application
KR101574366B1 (en) Synchronizing virtual machine and application life cycles
CN111338854B (en) Kubernetes cluster-based method and system for quickly recovering data
EP3885903A1 (en) Cloud desktop upgrade method, device, cloud server, and storage medium
CN103793278A (en) Automatic resource adjusting method on basis of operation and maintenance rules of virtual device
CN106339177A (en) Method and device for creating virtual machines
CN102385523A (en) Method for installing and managing driver of cloud operating system
CN107608681A (en) Installation method of operating system, device and server
WO2015062217A1 (en) Connection processing method and device for peripheral in virtual desktop system
CN104657158A (en) Method and device for processing business in business system
WO2021115177A1 (en) Application installation method and apparatus, terminal device, server and storage medium
CN105446794A (en) Disc operation method, apparatus and system based on virtual machine
CN114706690B (en) Method and system for sharing GPU (graphics processing Unit) by Kubernetes container
CN104636159A (en) Method and device for upgrading software in virtual machines
CN107566470B (en) Method and device for managing virtual machine in cloud data system
CN113326104B (en) Method, system and device for modifying internal configuration of virtual machine
CN114565502A (en) GPU resource management method, scheduling method, device, electronic equipment and storage medium
CN104461757A (en) Method and device for restoring virtual machines
CN103246544B (en) virtual hardware driving method
CN105162833A (en) Client computer management system and method applied to diskless workstation
CN107329804B (en) Method for automatically creating and upgrading virtual machine according to configuration
CN110308914B (en) Upgrade processing method, device, equipment, system and computer readable storage medium
CN102378964B (en) In-process intermediary to create virtual processes

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