CN116401109A - Control method, device and medium of chassis management system - Google Patents

Control method, device and medium of chassis management system Download PDF

Info

Publication number
CN116401109A
CN116401109A CN202310399010.6A CN202310399010A CN116401109A CN 116401109 A CN116401109 A CN 116401109A CN 202310399010 A CN202310399010 A CN 202310399010A CN 116401109 A CN116401109 A CN 116401109A
Authority
CN
China
Prior art keywords
chassis
case
management system
managed
data
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.)
Pending
Application number
CN202310399010.6A
Other languages
Chinese (zh)
Inventor
董强强
郑乾
黄玉龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202310399010.6A priority Critical patent/CN116401109A/en
Publication of CN116401109A publication Critical patent/CN116401109A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to the field of computer systems, and discloses a control method, a device and a medium of a chassis management system, wherein the control method comprises the following steps: and when the managed chassis meets the preset conditions, acquiring the equipment information of the managed chassis so as to control the chassis. Determining the type of the case of the managed case according to the equipment information; the case type comprises an entity case and a virtual case, and the virtual case is generated according to the simulation instruction and virtual equipment information and virtual case data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. The virtual equipment information and the virtual machine case data are acquired through the preset communication link, so that the performance of the machine case management system is tested, and whether the machine case management system meets the requirements is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced.

Description

Control method, device and medium of chassis management system
Technical Field
The present invention relates to the field of computer systems, and in particular, to a method, an apparatus, and a medium for controlling a chassis management system.
Background
In a storage device operating scenario, it is desirable to provide chassis management services for a storage device, and it is often desirable to use a chassis management system to manage chassis peripherals (e.g., power, fan, temperature, voltage, firmware, VPD, LED, etc. devices) to provide a safe and stable operating environment for the storage device.
Along with the development of storage services, the types of the chassis are also more and more diversified (for example, a chassis accessed to a nonvolatile memory host controller interface specification (Non Volatile Memory Host Controller Interface Specification, NVME) protocol disk and a chassis accessed to a Serial SCSI (SAS) protocol disk, fig. 1 is a chassis structure diagram provided by an embodiment of the present application), as shown in fig. 1, 1 is an SAS interface chassis, 2 is an NVME interface chassis, and data transmission protocols used by the two are different except for an interface form. As traffic progresses, there may be situations where the chassis management system does not support chassis peripherals. Meanwhile, when the number of the chassis managed in the chassis management system is excessive, the situation that the chassis management system performance is insufficient and each chassis data cannot be processed in time may occur.
At present, whether the chassis control system can normally operate can only be determined through an actual test mode, but a plurality of chassis are required to be built according to requirements in the mode, the consumed time and the cost are high, and a large amount of manpower and material resources are wasted.
Therefore, how to provide a control method for a chassis management system to accurately determine whether the chassis management system is compatible with the target chassis is a problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The purpose of the application is to provide a control method, a device and a medium of a chassis management system, so as to reduce hardware cost in the process performance test process of the chassis management system and improve test efficiency.
In order to solve the above technical problems, the present application provides a control method of a chassis management system, including:
when the case of the managed case is detected to meet the preset condition, acquiring the equipment information of the case of the managed case;
determining the type of the managed chassis according to the equipment information; the system comprises a client, a virtual machine box and a communication link, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to a simulation instruction sent by the client and virtual equipment information and virtual machine box data sent by the preset communication link;
and acquiring the case data of the managed case according to the case type, and controlling the managed case to judge whether the performance of the case management system meets the requirement according to a control result.
Preferably, the creating process of the virtual machine box includes:
judging whether virtual machine case registration information sent through the preset communication link is acquired or not, wherein the virtual machine case registration information is obtained after analyzing the simulation instruction;
if the virtual machine case registration information is acquired, acquiring a virtual registration code and a product ID through a system bracelet process;
and creating the virtual machine box according to the virtual registration code and the product ID.
Preferably, the meeting the preset condition by the managed chassis includes:
the chassis data of the managed chassis changes.
Preferably, the device information includes a registration code and a product ID.
Preferably, the determining the chassis type of the managed chassis according to the device information includes:
acquiring a maintenance linked list of a chassis management system, and determining a product ID of the managed chassis according to the equipment information;
and determining the case type of the managed case according to the maintenance linked list and the product ID.
Preferably, the acquiring the chassis data of the managed chassis according to the chassis type includes:
if the case type is a virtual case, acquiring historical case data through the preset communication link, and simulating the managed case according to the historical case data;
And if the case type is the entity case, acquiring real-time case data through the preset communication link, and monitoring the working state of the entity case according to the real-time case data.
Preferably, the simulating the managed chassis according to the historical chassis data includes:
acquiring a simulation task demand;
analyzing the simulation task demands to obtain the types of the target chassis and the number of the target chassis;
generating a simulation system according to the type of the target chassis and the number of the target chassis;
and acquiring working state information of each virtual machine case in the simulation system to determine the service capability of a machine case management system.
Preferably, the acquiring the historical chassis data through the preset communication link includes:
acquiring the protocol type of the managed chassis;
and acquiring the historical chassis data corresponding to the protocol type through the preset communication link.
Preferably, after the step of obtaining the historical chassis data through the preset communication link, the method further includes:
and decrypting the historical chassis data according to the protocol type.
Preferably, the obtaining the working state information of each virtual chassis in the simulation system includes:
And acquiring temperature information, humidity information and firmware version number information of each virtual machine case sent by the preset communication link.
Preferably, before the step of obtaining the working state information of each virtual chassis in the simulation system, the method further includes:
judging whether the simulation system is compatible with the virtual machine box of the target machine box type;
if not, the test operation is terminated.
Preferably, after the step of obtaining the chassis data of the managed chassis according to the chassis type, the method further includes:
acquiring access information sent by a client;
and displaying the working state of the simulation system to a user according to the access information.
Preferably, the method further comprises:
and testing each managed chassis according to the maintenance linked list so as to determine the performance of the chassis management system.
Preferably, after the step of monitoring the working state of the physical chassis according to the real-time chassis data, the method further includes:
and when the abnormal data of the entity case is detected, sending alarm information to a manager.
Preferably, the acquiring, through the preset communication link, the historical chassis data corresponding to the protocol type specifically includes: the historical chassis data is data injected through an automation script.
Preferably, the preset communication link is inter-process communication.
Preferably, the protocol types include SAS protocol and NVME protocol.
In order to solve the above technical problem, the present application further provides a chassis management system control device, including:
the device comprises an acquisition module, a management module and a management module, wherein the acquisition module is used for acquiring equipment information of a managed chassis when the managed chassis is detected to meet preset conditions;
the determining module is used for determining the case type of the managed case according to the equipment information; the system comprises a client, a virtual machine box and a communication link, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to a simulation instruction sent by the client and virtual equipment information and virtual machine box data sent by the preset communication link;
and the control module is used for acquiring the chassis data of the managed chassis according to the chassis type and controlling the managed chassis so as to judge whether the performance of the chassis management system meets the requirement according to the control result.
In order to solve the technical problem, the present application further provides a control device of a chassis management system, including a memory, configured to store a computer program;
and the processor is used for realizing the steps of the control method of the chassis management system when executing the computer program.
In order to solve the above technical problem, the present application further provides a computer readable storage medium, where a computer program is stored on the computer readable storage medium, and the computer program when executed by a processor implements the steps of the chassis management system control method.
The application provides a control method of a chassis management system, which comprises the following steps: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
In addition, the application also provides a control device and a medium of the chassis management system, wherein the control device comprises: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
Drawings
For a clearer description of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a diagram of a chassis structure according to an embodiment of the present application;
fig. 2 is a flowchart of a control method of a chassis management system according to an embodiment of the present application;
fig. 3 is a software architecture diagram of a chassis management system according to an embodiment of the present application;
fig. 4 is a block diagram of a control device of a chassis management system according to an embodiment of the present application;
fig. 5 is a block diagram of another chassis management system control device according to an embodiment of the present application.
Detailed Description
The following description of the technical solutions in the embodiments of the present application will be made clearly and completely with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, but not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments herein without making any inventive effort are intended to fall within the scope of the present application.
The core of the application is to provide a control method, a device and a medium of a chassis management system, so as to reduce the hardware cost in the process performance test of the chassis management system and improve the test efficiency.
In the application scenario of the expandable storage device, in order to ensure that the expandable storage device can work normally, a management service needs to be provided through a chassis management system, and the expandable storage device can work normally through managing chassis peripherals (such as a power supply, a fan, temperature, voltage, firmware, VPD, LEDs and the like). In order to ensure that the chassis management system can manage the chassis, the chassis data needs to be registered in the management system, and the extension chassis is connected to the chassis management system through a communication link. For example, when the communication link is a SAS link, the registration process of the expansion chassis includes: after the SAS driver of the chassis management system scans the external chassis device, a log is reported to the driver module, where a production ID (product id) exists. The driver module reports the logic to the chassis management module (Enclosure Management, EN), and after the EN module obtains the logic information, the EN module analyzes the specific chassis corresponding to the product id, and finally the EN module establishes a model of the type of chassis and adds the model to the maintained chassis list. When the hardware information (such as temperature value, fan rotation speed, firmware version number, etc.) changes, the Expander chip in the os (i.e. Expander firmware) is connected to each sensor through the I2C, and the information of power supply, fan, temperature, voltage, etc. is updated every 1s (default). When receiving the disk state update, the disk state is also updated immediately, and the state is lighted) will report a discovery event, after the EN module receives the discovery event, the EN module will find the maintained chassis list index, and then send SAS protocol to the designated chassis through the index, and acquire chassis management data through the SAS protocol. After the chassis management data is taken, the data is processed and cached for query display of the GUI or the CLI. The EN module notifies the start of the detection task and the recovery task. After the EN module detects the discovery event, all items in the detection and recovery linked list are detected to judge whether the managed chassis has an abnormality or not, and if abnormal information is detected, timely maintenance is carried out.
In order to provide a better understanding of the present application, those skilled in the art will now make further details of the present application with reference to the drawings and detailed description.
Fig. 2 is a flowchart of a chassis management system control method according to an embodiment of the present application, where, as shown in fig. 2, the chassis management system control method provided in the present application includes:
s10: when the fact that the managed chassis meets the preset conditions is detected, acquiring equipment information of the managed chassis;
s11: determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link;
s12: and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result.
In a specific implementation, a chassis management system manages a large number of managed chassis, and the types of the managed chassis may be physical chassis or virtual chassis, which is not limited herein.
When the storage scheme is provided for the user, as the types of the expandable storage devices are various, the service requirements and the performance requirements of all clients are different, and in order to ensure the use experience of the user, so as to prevent the storage scheme from not supporting the case appointed by the user, or the maximum number of cases which can be loaded by the storage scheme is lower than the user appointed value, the storage system needs to be tested in advance according to the user requirements. However, the process needs to build corresponding cases according to the user demands, when the number of cases required by the user is large, the pre-conditions such as cables, power lines, sites and the like need to be prepared, and meanwhile, a large amount of manpower and material resources are needed to be input for environment building and equipment debugging, so that the operation efficiency is low.
In order to solve the problem, the present application provides a control method of a chassis management system, and fig. 3 is a software architecture diagram of the chassis management system provided in the embodiment of the present application, where, as shown in fig. 3, software includes an IO process, a daemon process, and an IPC communication link. The IPC communication link is located between the daemon process and the IO process to transmit relevant information of the virtual machine box. The IO process is the process running in the managed chassis, and the daemon is the process running in the client. The daemon process comprises a virtual machine case data monitoring and processing module, wherein the module monitors the injection of virtual machine case data through an automatic script in real time. After a virtual chassis list is injected through an automation script (the list table of product ids is named as "virtual_environment_list"), the module can capture in real time and actively report and find the virtual chassis information through IPC. Further, a virtual logic interface is newly added in the IO process driving module, the interface is registered in the IPC message, when the daemon actively reports the virtual machine box information, the interface is called back, the virtual logic is reported, the virtual logic is carried with the product id, after the machine box module receives the logic, a new machine box model is built, the product id is corresponding to the actual machine box, and the virtual logic is added into a machine box linked list maintained by the EN module, so that the machine box can be managed through the machine box management module later.
It can be understood that, in the technical scheme provided by the application, the exchange of the information of the chassis between the IO process and the daemon process is realized through the preset communication link, and the mode is similar to the data exchange mode used by the current entity chassis, so that in the technical scheme provided by the application, the managed host can be a virtual host or an entity host. When the managed host is a virtual host, a simulation system is built through historical host data (host data generated in the running process of the entity host) cached in the system, so as to judge whether the current chassis management system can meet the requirements of users. When the managed host is the entity host, the real-time data generated in the operation process of the entity host is only required to be sent to the case management system through a preset communication link, so that the operation state of the entity host can be monitored.
In the working process of the system, when the chassis management system monitors that the data of any managed host changes, a discovery event is triggered to update the data of the managed host in the system. It will be appreciated that there are two situations in which a discovery event is triggered: the managed chassis of the trigger event is a newly created virtual chassis or a newly accessed entity host, which has no history data; or the managed chassis that triggered the event is a pre-created chassis whose chassis peripheral data has changed.
In particular implementations, the device information of the managed chassis includes a registration code and a production ID (product ID), and the chassis management system can determine the type of chassis from the registration code and the production ID, thereby creating a corresponding virtual chassis in the system. Further, the communication protocols of the commonly used chassis include SAS protocol and NVME protocol, and the preset communication link is inter-process communication.
The embodiment provides a control method of a chassis management system, which comprises the following steps: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
In a specific implementation, when the chassis management system processes and analyzes the chassis peripheral data of each managed chassis, it determines whether the current working state of the chassis is normal, and controls the chassis peripheral. For example: when the case temperature is detected to be higher than the threshold temperature, the case management system controls the fan to work so as to reduce the case temperature.
In the working process of the storage system, in order to ensure that the storage device can work normally, the steady state of the environment in the case can be ensured as much as possible, so that the interference of environmental factors on the storage device is reduced. Therefore, when the case data of any case is detected to be changed, the case peripheral needs to be controlled in time.
As a preferred embodiment, the managed chassis meeting the preset condition includes: the enclosure data of any managed enclosure changes.
It will be appreciated that when there is a managed chassis for a new access system, the chassis management system is also required to control that chassis. However, the managed chassis of the new access system has no history data, only the current data exists, and the task chassis data can be changed. Therefore, this is included as a screening condition, which is "the enclosure data of any managed enclosure is changed".
In a specific implementation, different chassis types are different, so that in order to make the system compatible with the different types of chassis, when the different types of chassis are incorporated into the system, corresponding chassis instances (virtual chassis) need to be created according to the types of chassis. In the present embodiment, different kinds of chassis are distinguished by using the product ID. In addition, the registration code of the virtual chassis enables the chassis management system to determine the chassis information and the processing scheme corresponding to the chassis in the linked list, so as a preferred embodiment, the device information in the chassis management system control method provided by the application includes the registration code and the product ID.
In a specific implementation, in order to efficiently and conveniently process the chassis, a corresponding processing scheme needs to be selected according to the type of the chassis. For example: if the case type is a virtual case, acquiring historical case data through a preset communication link, and simulating the managed case according to the historical case data; and if the case type is the entity case, acquiring real-time case data through a preset communication link, and monitoring the working state of the entity case according to the real-time case data. As a preferred embodiment, determining the enclosure type of the managed enclosure from the device information includes:
Acquiring a maintenance linked list of a chassis management system, and determining a product ID of a managed chassis according to equipment information;
and determining the case type of the managed case according to the maintenance linked list and the product ID.
Table 1 is a schematic diagram of a maintenance linked list provided in this embodiment, and as shown in table 1, the maintenance linked list of the chassis management system stores attribute information and device information of each managed chassis. When the chassis management system needs to determine the equipment information of any chassis, the equipment information can be determined only according to the maintenance linked list and the product ID.
TABLE 1
Attributes of Model I Model II
product type Model I Model II
enclosure version 1 1
number of drive slots (slot number) 0 25
max drivers per slots 0 1
Slot form factor (disk size) 0 25
SAS Drive interface (speed of disk) 0 32
Virtual enclosure? (reservation) 1 1
Protocol type of disk SAS NVME
product id CXW1010000000000 CXW1011912532000
enclosure model Middle/high end
In a specific implementation, in order to ensure that a storage system scheme provided for a user is available, a simulation system can be created by using the chassis management system control method provided by the application so as to simulate the working state of a chassis. Wherein, the creation of the simulation system requires the creation of a plurality of virtual chassis for the chassis management system, and in this process, the creation process of the virtual chassis includes:
judging whether virtual machine case registration information sent by a preset communication link is acquired or not; the virtual machine case registration information is information obtained after analyzing a simulation instruction sent by a client;
If the virtual machine case registration information is acquired, acquiring a virtual logic and a product ID through a system daemon;
and generating a virtual machine box according to the virtual logic and the product ID.
Specifically, the daemon process comprises a virtual machine case data monitoring and processing module. The module monitors the injection of virtual chassis data via pytest in real time. After injecting a virtual chassis list (list table of product id named "virtual_environment_list") through pytest, the module can capture in real time and actively report and find the virtual chassis information through IPC. Next, pytest injects all chassis management data (a file named product id) in the virtual chassis form, periodically, and then caches the management data for each virtual chassis.
The IO process driving module comprises a virtual logic interface, the interface is registered in the IPC message, when the daemon actively reports the information of the virtual machine box, the interface is called back, the virtual logic is reported, the virtual logic is carried with the product id, after the machine box module receives the logic, a new machine box model is built, the product id and the actual machine box are corresponding, and the new machine box model is added into a machine box linked list maintained by the EN module so that a follow-up machine box management system can control each virtual machine box.
According to the technical scheme, the exchange of the information of the machine case between the IO process and the daemon process is realized through the preset communication link, and the mode is similar to the data exchange mode used by the existing entity machine case, so that in the technical scheme provided by the application, the managed host can be a virtual host or an entity host. As a preferred embodiment, acquiring chassis data of the managed chassis according to the chassis type includes:
if the case type is a virtual case, acquiring historical case data through a preset communication link, and simulating the managed case according to the historical case data;
and if the case type is the entity case, acquiring real-time case data through a preset communication link, and monitoring the working state of the entity case according to the real-time case data.
In implementations, the storage system comprised of the chassis management system and each virtual chassis may be used for simulation to facilitate user and developer determination of the stability and reliability of the system. In a specific implementation, simulating the managed chassis according to the historical chassis data includes:
acquiring a simulation task demand;
analyzing the simulation task demands to obtain the types of the target chassis and the number of the target chassis;
Generating a simulation system according to the type of the target chassis and the number of the target chassis;
working state information of each virtual machine case in the simulation system is obtained to determine the service capability of the machine case management system.
It should be noted that, in order to improve the simulation test efficiency, when the simulation system is detected to be incompatible with the target chassis, the test process is terminated in time. Specifically, before the step of obtaining the working state information of each virtual machine box in the simulation system, the method further comprises the following steps: and judging whether the simulation system is compatible with the virtual machine box of the target machine box type.
It can be understood that the simulation task requirement is information determined according to a user requirement or a research and development requirement of a research and development personnel, and is mainly used for judging whether the current storage system can bear a target number of chassis or can be compatible with a target type of chassis. After the simulation system is built, working state information of each virtual machine case in the simulation system is obtained to determine the service capability of the machine case management system, and if the simulation system can work normally, the current machine case management system is indicated to be capable of realizing the client requirements.
In a specific implementation, to ensure the security and reliability in the data transmission process, as a preferred embodiment, acquiring the historical chassis data through the preset communication link includes: acquiring the protocol type of the managed chassis; and acquiring historical chassis data corresponding to the protocol type through a preset communication link.
Further, the data can be injected into a preset communication link through an automation script so as to realize data transmission.
As a preferred embodiment, after the step of acquiring the historical chassis data through the preset communication link, the method further includes: and decrypting the historical chassis data according to the protocol type.
In a specific implementation, if the virtual chassis management data cached in the daemon process is injected into the product id file by the pytest process in a format of SAS protocol plaintext, the data acquired by the chassis management system is also a ses message, and after being analyzed and processed by the SAS protocol, the data is put into an upper application module of the chassis management system.
As a preferred embodiment, acquiring the working state information of each virtual chassis in the simulation system includes: and acquiring temperature information, humidity information and firmware version number information of each virtual machine box sent by a preset communication link.
Specifically, the peripheral equipment of the case comprises: information on power, fan, temperature, voltage, firmware, vital product data (vital product data, VPD), etc., where VPD is a collection of configuration and information data related to a particular set of hardware or software. The storage device's chassis VPD stores important information of the device, such as a product model, a product serial number, and important data specified by the device, where the product model is used to identify which product the device belongs to, and the product serial number is a unique number of a certain device.
In order to enable a client to intuitively grasp the performance of the storage system formed by the chassis management system and the virtual chassis, the preferred embodiment may also display the working state of the simulation system to the user in the form of a WEB page.
In a specific implementation, after the step of obtaining the chassis data of the managed chassis according to the chassis type, the method further includes: acquiring access information sent by a client; and displaying the working state of the simulation system to the user according to the access information.
The client may access the client through an intranet or may access the client through an extranet, which is not limited herein. The user can check the number and the type of the chassis in the simulation system, the working state of each chassis and the like to judge the service capability of the chassis management system.
In a specific implementation process, the chassis management system control method provided by the application can also be used for managing the entity chassis. In order to better master the working state of the entity chassis and improve the safety of the storage system, the process of each entity chassis can be tested regularly. As a preferred embodiment, the chassis management system control method provided in the present application further includes:
and testing each managed chassis according to the maintenance linked list to determine the performance of each managed chassis and the performance of the simulation system.
Further, after the step of monitoring the working state of the entity chassis according to the real-time chassis data, the method further includes:
and when the abnormal data of the entity chassis is detected, sending alarm information to a manager.
The alarm information may be in the form of log message and sent to the manager, or may remind the manager through a physical alarm state such as a buzzer or an indicator light, which is not limited.
As a preferred embodiment, the acquiring, through the preset communication link, the historical chassis data corresponding to the protocol type specifically includes: historical chassis data is data injected through an automation script.
In particular implementations, the predetermined communication link is Inter-process communication (Inter-Process Communication, IPC). Inter-process communication refers to the interaction between data of two processes, including: half duplex Unix pipes, FIFOs (named pipes), message queues, semaphores, shared memory, network sockets, etc.
In the above embodiments, the detailed description is given for the control method of the chassis management system, and the application further provides a corresponding embodiment of the control device of the chassis management system. It should be noted that the present application describes an embodiment of the device portion from two angles, one based on the angle of the functional module and the other based on the angle of the hardware.
Fig. 4 is a structural diagram of a control device of a chassis management system according to an embodiment of the present application, as shown in fig. 4, where the device includes:
an obtaining module 10, configured to obtain device information of the managed chassis when it is detected that the managed chassis meets a preset condition;
a determining module 11, configured to determine a chassis type of the managed chassis according to the device information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link;
and the control module 12 is used for acquiring the chassis data of the managed chassis according to the chassis type and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement according to the control result.
Since the embodiments of the apparatus portion and the embodiments of the method portion correspond to each other, the embodiments of the apparatus portion are referred to the description of the embodiments of the method portion, and are not repeated herein.
The embodiment provides a chassis management system control device, including: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
Fig. 5 is a block diagram of another chassis management system control device according to an embodiment of the present application, where, as shown in fig. 5, the chassis management system control device includes: a memory 20 for storing a computer program;
and a processor 21, configured to implement the steps of the chassis management system control method according to the above embodiment when executing the computer program.
The control device of the chassis management system provided in this embodiment may include, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like.
Processor 21 may include one or more processing cores, such as a 4-core processor, an 8-core processor, etc. The processor 21 may be implemented in hardware in at least one of a digital signal processor (Digital Signal Processor, DSP), a Field programmable gate array (Field-Programmable Gate Array, FPGA), a programmable logic array (Programmable Logic Array, PLA). The processor 21 may also comprise a main processor, which is a processor for processing data in an awake state, also called central processor (Central Processing Unit, CPU), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 21 may be integrated with an image processor (Graphics Processing Unit, GPU) for taking care of rendering and rendering of the content that the display screen is required to display. In some embodiments, the processor 21 may also include an artificial intelligence (Artificial Intelligence, AI) processor for processing computing operations related to machine learning.
Memory 20 may include one or more computer-readable storage media, which may be non-transitory. Memory 20 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory 20 is at least used for storing a computer program 201, where the computer program, when loaded and executed by the processor 21, can implement the relevant steps of the chassis management system control method disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory 20 may further include an operating system 202, data 203, and the like, where the storage manner may be transient storage or permanent storage. The operating system 202 may include Windows, unix, linux, among others. Data 203 may include, but is not limited to, device information, chassis type, chassis data, and the like.
In some embodiments, the chassis management system control device may further include a display 22, an input/output interface 23, a communication interface 24, a power supply 25, and a communication bus 26.
Those skilled in the art will appreciate that the configuration shown in FIG. 5 is not limiting of the chassis management system control devices and may include more or fewer components than shown.
The control device of the chassis management system provided by the embodiment of the application comprises a memory and a processor, wherein when the processor executes a program stored in the memory, the processor can realize the following method:
when the fact that the managed chassis meets the preset conditions is detected, acquiring equipment information of the managed chassis;
determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link;
and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result.
The embodiment provides a chassis management system control device, including: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
Finally, the present application also provides a corresponding embodiment of the computer readable storage medium. The computer-readable storage medium has stored thereon a computer program which, when executed by a processor, performs the steps as described in the method embodiments above. The embodiment provides a chassis management system control device, including: and when the managed chassis is detected to meet the preset condition, acquiring the equipment information of the managed chassis so as to control the chassis according to the type of the managed chassis. Determining the type of the case of the managed case according to the equipment information; the system comprises a virtual machine box, a virtual machine box and a communication module, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to simulation instructions and virtual equipment information and virtual machine box data sent by a preset communication link; and acquiring the chassis data of the managed chassis according to the chassis type, and controlling the managed chassis to judge whether the performance of the chassis management system meets the requirement or not according to the control result. Therefore, according to the technical scheme provided by the application, the virtual equipment information and the virtual case data are obtained through the preset communication link, so that the performance of the case management system is tested, and whether the case management system meets the requirement or not is judged. And a plurality of cases are not required to be built by using hardware equipment, so that the time cost and manpower and material resources consumed in the test process are reduced. In addition, the technical scheme provided by the application is close to the control method of the entity chassis, can be used for managing the virtual chassis and the entity chassis at the same time, does not need to specially adjust the chassis of different types, and further improves the testing efficiency.
It will be appreciated that the methods of the above embodiments, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored on a computer readable storage medium. With such understanding, the technical solution of the present application, or a part contributing to the prior art or all or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, performing all or part of the steps of the method described in the various embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The control method, the device and the medium of the chassis management system provided by the application are described in detail above. In the description, each embodiment is described in a progressive manner, and each embodiment is mainly described by the differences from other embodiments, so that the same similar parts among the embodiments are mutually referred. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section. It should be noted that it would be obvious to those skilled in the art that various improvements and modifications can be made to the present application without departing from the principles of the present application, and such improvements and modifications fall within the scope of the claims of the present application.
It should also be noted that in this specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.

Claims (20)

1. A chassis management system control method, comprising:
when the case of the managed case is detected to meet the preset condition, acquiring the equipment information of the case of the managed case;
determining the type of the managed chassis according to the equipment information; the system comprises a client, a virtual machine box and a communication link, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to a simulation instruction sent by the client and virtual equipment information and virtual machine box data sent by the preset communication link;
And acquiring the case data of the managed case according to the case type, and controlling the managed case to judge whether the performance of the case management system meets the requirement according to a control result.
2. The chassis management system control method of claim 1, wherein the creating process of the virtual chassis comprises:
judging whether virtual machine case registration information sent through the preset communication link is acquired or not, wherein the virtual machine case registration information is obtained after analyzing the simulation instruction;
if the virtual machine case registration information is acquired, acquiring a virtual registration code and a product ID through a system bracelet process;
and creating the virtual machine box according to the virtual registration code and the product ID.
3. The chassis management system control method of claim 1, wherein the managed chassis meeting the preset condition comprises:
the chassis data of the managed chassis changes.
4. The chassis management system control method of claim 1, wherein the device information includes a registration code and a product ID.
5. The chassis management system control method of claim 4, wherein the determining the chassis type of the managed chassis based on the device information comprises:
Acquiring a maintenance linked list of a chassis management system, and determining a product ID of the managed chassis according to the equipment information;
and determining the case type of the managed case according to the maintenance linked list and the product ID.
6. The chassis management system control method of claim 5, wherein the obtaining chassis data of the managed chassis according to the chassis type comprises:
if the case type is a virtual case, acquiring historical case data through the preset communication link, and simulating the managed case according to the historical case data;
and if the case type is the entity case, acquiring real-time case data through the preset communication link, and monitoring the working state of the entity case according to the real-time case data.
7. The chassis management system control method of claim 6, wherein simulating the managed chassis based on the historical chassis data comprises:
acquiring a simulation task demand;
analyzing the simulation task demands to obtain the types of the target chassis and the number of the target chassis;
generating a simulation system according to the type of the target chassis and the number of the target chassis;
And acquiring working state information of each virtual machine case in the simulation system to determine the service capability of a machine case management system.
8. The chassis management system control method of claim 6, wherein the obtaining historical chassis data over the preset communication link comprises:
acquiring the protocol type of the managed chassis;
and acquiring the historical chassis data corresponding to the protocol type through the preset communication link.
9. The method of claim 8, wherein after the step of obtaining historical chassis data via the preset communication link, further comprising:
and decrypting the historical chassis data according to the protocol type.
10. The method of claim 7, wherein the obtaining the working state information of each virtual chassis in the simulation system includes:
and acquiring temperature information, humidity information and firmware version number information of each virtual machine case sent by the preset communication link.
11. The method for controlling a chassis management system according to claim 7, wherein before the step of obtaining the operation state information of each virtual chassis in the simulation system, the method further comprises:
Judging whether the simulation system is compatible with the virtual machine box of the target machine box type;
if not, the test operation is terminated.
12. The chassis management system control method of claim 11, wherein after the step of obtaining the chassis data of the managed chassis according to the chassis type, further comprises:
acquiring access information sent by a client;
and displaying the working state of the simulation system to a user according to the access information.
13. The chassis management system control method of claim 7, further comprising:
and testing each managed chassis according to the maintenance linked list so as to determine the performance of the chassis management system.
14. The method of claim 6, wherein after the step of monitoring the working state of the physical chassis according to the real-time chassis data, further comprises:
and when the abnormal data of the entity case is detected, sending alarm information to a manager.
15. The chassis management system control method according to claim 1, wherein the acquiring the historical chassis data corresponding to the protocol type through the preset communication link specifically includes: the historical chassis data is data injected through an automation script.
16. The chassis management system control method of claim 1, wherein the preset communication link is inter-process communication.
17. The chassis management system control method of claim 8, wherein the protocol type comprises SAS protocol and NVME protocol.
18. A chassis management system control apparatus, comprising:
the device comprises an acquisition module, a management module and a management module, wherein the acquisition module is used for acquiring equipment information of a managed chassis when the managed chassis is detected to meet preset conditions;
the determining module is used for determining the case type of the managed case according to the equipment information; the system comprises a client, a virtual machine box and a communication link, wherein the machine box type comprises an entity machine box and a virtual machine box, and the virtual machine box is generated according to a simulation instruction sent by the client and virtual equipment information and virtual machine box data sent by the preset communication link;
and the control module is used for acquiring the chassis data of the managed chassis according to the chassis type and controlling the managed chassis so as to judge whether the performance of the chassis management system meets the requirement according to the control result.
19. A control device of a chassis management system, comprising a memory for storing a computer program;
A processor for implementing the steps of the chassis management system control method according to any one of claims 1 to 17 when executing the computer program.
20. A computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the computer program when executed by a processor implements the steps of the chassis management system control method according to any one of claims 1 to 17.
CN202310399010.6A 2023-04-14 2023-04-14 Control method, device and medium of chassis management system Pending CN116401109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310399010.6A CN116401109A (en) 2023-04-14 2023-04-14 Control method, device and medium of chassis management system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310399010.6A CN116401109A (en) 2023-04-14 2023-04-14 Control method, device and medium of chassis management system

Publications (1)

Publication Number Publication Date
CN116401109A true CN116401109A (en) 2023-07-07

Family

ID=87008765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310399010.6A Pending CN116401109A (en) 2023-04-14 2023-04-14 Control method, device and medium of chassis management system

Country Status (1)

Country Link
CN (1) CN116401109A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117807136A (en) * 2024-02-29 2024-04-02 济南浪潮数据技术有限公司 Data access method and device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117807136A (en) * 2024-02-29 2024-04-02 济南浪潮数据技术有限公司 Data access method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104360878B (en) A kind of method and device of application software deployment
US8468522B2 (en) Virtual machine system, system for forcing policy, method for forcing policy, and virtual machine control program
US11329869B2 (en) Self-monitoring
US10587655B1 (en) Compliance management system and method for an integrated computing system
CN105045714A (en) Method and device for testing starting duration of application software and terminal
CN103399781A (en) Cloud server and virtual machine management method thereof
CN116401109A (en) Control method, device and medium of chassis management system
WO2024007510A1 (en) Server management method, apparatus and system, and electronic device and readable storage medium
WO2021190659A1 (en) System data acquisition method and apparatus, and medium and electronic device
WO2023222109A1 (en) Network wakeup management method and apparatus, electronic device, and storage medium
CN109800124B (en) CPU utilization monitoring method and device, electronic equipment and storage medium
CN108701033A (en) Client operating system awakening method, device, electronic equipment and readable medium
CN112181942A (en) Time sequence database system and data processing method and device
CN116723198A (en) Multi-node server host control method, device, equipment and storage medium
CN114356063A (en) Power supply rapid alarm response method, server, device and medium
CN114372003A (en) Test environment monitoring method and device and electronic equipment
CN114817134A (en) Snapshot task monitoring method, device, equipment and medium
CN109828885B (en) RocketMQ memory monitoring method and device, electronic equipment and storage medium
CN114124835A (en) Interface-based data transmission method, device, equipment and medium
CN113849367A (en) Server, management method, device and system thereof, electronic equipment and storage medium
CN111399871A (en) System updating method, device, equipment and medium for HBA card
CN110008706B (en) Host security state management method and device and terminal equipment
CN116483914A (en) Data display method, device and medium thereof
CN114153684A (en) Component monitoring method, device and medium
CN116302754A (en) Solid state disk detection method, system, device and storage medium

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