CN112463594B - SAS link debugging method, device, equipment and computer storage medium - Google Patents

SAS link debugging method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN112463594B
CN112463594B CN202011271643.1A CN202011271643A CN112463594B CN 112463594 B CN112463594 B CN 112463594B CN 202011271643 A CN202011271643 A CN 202011271643A CN 112463594 B CN112463594 B CN 112463594B
Authority
CN
China
Prior art keywords
dump
control system
data
management
analysis result
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
CN202011271643.1A
Other languages
Chinese (zh)
Other versions
CN112463594A (en
Inventor
王军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou 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 CN202011271643.1A priority Critical patent/CN112463594B/en
Publication of CN112463594A publication Critical patent/CN112463594A/en
Application granted granted Critical
Publication of CN112463594B publication Critical patent/CN112463594B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3636Software debugging by tracing the execution of the program
    • G06F11/364Software debugging by tracing the execution of the program tracing values on a bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0028Serial attached SCSI [SAS]

Landscapes

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

Abstract

The application discloses a method, a device, equipment and a medium for debugging an SAS link, which are applied to a main system and used for receiving dump data transmitted by a management and control system; saving the dump data as a dump file; analyzing the dump file to obtain an analysis result; displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result; the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size. In the application, the main system can process the dump data through the dump file, and then debug the SAS link by means of the dump, and the dump can effectively debug the SAS link due to the fact that the dump is convenient for recording information.

Description

SAS link debugging method, device, equipment and computer storage medium
Technical Field
The present application relates to the field of storage technologies, and in particular, to a method, an apparatus, a device, and a computer storage medium for SAS link debugging.
Background
Currently, when processing data transmitted between a server and a hard disk, corresponding data processing can be performed with high reliability and high speed by means of a storage system. Because a Central Processing Unit (CPU) of the storage system processes the service data, a pci (personal component interconnect express) interface is provided outside the CPU; while the hard disk of the storage system is commonly used by SAS (Serial Attached SCSI) interface, there is a pcie conversion to SAS interface and an SAS expander interfaces to each hard disk.
In the storage system, when the device is managed, an EM (enclosure management) thread in a host system and an SES program running on the SAS expander, that is, a management and control system running on the SAS expander need to be used, for example, the SES program reads a peripheral state of the device and transmits abnormal state information to the EM thread, and the EM thread responds to and processes the abnormal state information. In the process, data exception occurring in the SAS link may need to be debugged, but the SAS link cannot be debugged effectively in the prior art.
In summary, how to effectively debug an SAS link is a problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a SAS link debugging method, which can solve the technical problem of how to effectively debug an SAS link to a certain extent. The application also provides an SAS link debugging device, equipment and a computer readable storage medium.
In order to achieve the above object, the present application provides the following technical solutions:
a SAS link debugging method is applied to a main system and comprises the following steps:
receiving dump data transmitted by a management and control system;
saving the dump data into a dump file;
analyzing the dump file to obtain an analysis result;
displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects memory data according to a target variable address and a target variable size.
Preferably, before receiving dump data transmitted by the management and control system, the method further includes:
and storing the target variable address and the target variable size into a dump linked list of the management and control system by performing data registration on the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list.
Preferably, the parsing the dump file to obtain a parsing result includes:
imaging the dump file based on a preset Linux script to obtain an imaging result;
analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result;
the symbol table file is a file generated when the management and control system is compiled.
Preferably, the displaying the analysis result according to the variable name defined by the display data structure and the display form of the data includes:
and displaying the analysis result in a menu mode according to the variable name defined by the display data structure body and the display form of the data.
Preferably, after displaying the parsing result in the menu style, the method further includes:
receiving a viewing instruction, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered;
and operating the menu according to the viewing instruction, and displaying the corresponding analysis result.
Preferably, before receiving dump data transmitted by the management and control system, the method further includes:
sending a dump data reading instruction to the management and control system so that the management and control system reads the dump data;
the types of the dump data reading instruction comprise a full-volume dump data reading instruction and a single-variable dump data reading instruction.
A SAS link detection method is applied to a management and control system in an SAS expander and comprises the following steps:
collecting memory data according to the target variable address and the target variable size to obtain dump data;
transmitting the dump data to a host system;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; and the main system stores the dump data into a dump file, analyzes the dump file to obtain an analysis result, and displays the analysis result according to a variable name defined by a display data structure body and a display form of data so as to debug based on the analysis result.
An SAS link debugging device applied to a main system comprises:
the first receiving module is used for receiving dump data transmitted by the management and control system;
the first storage module is used for storing the dump data into a dump file;
the first analysis module is used for analyzing the dump file to obtain an analysis result;
the first display module is used for displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data so as to debug based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects memory data according to a target variable address and a target variable size.
A SAS link debug device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the SAS link debug method as described above when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the SAS link debugging method as described in any of the above.
The SAS link debugging method is applied to a main system and used for receiving dump data transmitted by a management and control system; saving the dump data as a dump file; analyzing the dump file to obtain an analysis result; displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result; the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size. In this application, management and control system can transmit the dump data that the memory data corresponds to main system, and main system can handle the dump data through the dump file, and then debugs the SAS link with the help of the dump, because the dump is convenient for record information, so can effectively debug the SAS link. The SAS link debugging device, equipment and computer readable storage medium provided by the application also solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a first flowchart of a SAS link debugging method according to an embodiment of the present disclosure;
fig. 2 is a second flowchart of a SAS link debugging method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a first structure of an SAS link debug apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a second structure of an SAS link debug apparatus according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an SAS link debugging device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an SAS link debugging device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, when processing data transmitted between a server and a hard disk, the storage system can be used for processing the corresponding data with high reliability and high speed. Because a Central Processing Unit (CPU) of the storage system processes the service data, a pci (personal component interconnect express) interface is provided outside the CPU; while the hard disk of the storage system is commonly used by SAS (Serial Attached SCSI) interface, there is a case where pci is converted into an SAS interface and is interfaced to each hard disk by SAS expander. In the storage system, when the device is managed, an EM (enclosure management) thread in a host system and an SES program running on the SAS expander, that is, a management and control system running on the SAS expander need to be used, for example, the SES program reads a peripheral state of the device and transmits abnormal state information to the EM thread, and the EM thread responds to and processes the abnormal state information.
The management and control system is a program running on the SAS expander, the main service of the expander is to expand an SAS link, and a few SAS ports are used as uplink ports to be expanded into multiple downlink ports, so that the connection of a plurality of hard disks is realized; the service of connecting the hard disk is the main service, and then a plurality of i2c links are expanded to realize the function of management and control. The tasks of the governing system may be as follows: the peripheral states of the equipment, such as information of a fan, voltage, the fan and the like, are read in a high-frequency circulation mode, abnormal judgment is carried out, and when the abnormal state is judged to occur, the state and the information are reported to the EM thread; receiving and executing a control instruction sent by an EM thread; and performing self-control treatment inside the cabinet, for example, automatically adjusting the rotating speed of the fan according to a fan rotating speed strategy when the temperature of the cabinet is detected. EM threads, as part of the storage host system, tasks may be as follows: receiving data and state sent by the SES program, and updating internal data; when an abnormal state exists, an alarm which can be visually checked by a user is initiated, and the main system is informed whether other processing is required for the abnormality or not, for example, whether shutdown protection is required or not when the temperature of some key elements is ultrahigh; when the main system controls certain hardware in the process of program operation, the hardware is issued to the SES program through the EM thread, and the SES program actually controls the hardware, such as reading and writing VPD configuration information, turning off a certain abnormal control lamp and the like.
In this process, it may be necessary to debug the data exception occurring on the SAS link, however, for example, as the device operates, the reason for the data exception may be as follows: a single read failure of the semiconductor chip; the access conflict in the software is read abnormally, and the retry is normal; reading failure of a single element, and recovering to be normal after a repair strategy; a single element fails to read, but the repair strategy cannot repair, and the reading fails continuously; when a certain link is abnormal, all data hung on the link are abnormal in reading, and the data comprise repairable data and irreparable data; the read register detects that a certain abnormality occurs; the link between the multi-control cascade SES programs is abnormal, and the communication is abnormal; single-transfer exceptions and irreparable exceptions. The SAS link cannot be debugged effectively if it is debugged only by the collected data. The SAS link debugging method provided by the application can effectively debug the SAS link.
Referring to fig. 1, fig. 1 is a first flowchart of a SAS link debugging method according to an embodiment of the present disclosure.
The SAS link debugging method provided in the embodiment of the present application, applied to a host system, may include the following steps:
step S101: receiving dump data transmitted by a management and control system; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size.
In practical application, the management and control system may collect the memory data according to the target variable address and the target variable size to obtain corresponding dump (backup file system) data, that is, the dump data may reflect the situation of the memory data in the SAS link operation process, and then transmit the dump data to the main system; correspondingly, the main system needs to receive dump data transmitted by the management and control system.
In practical application, the main system and the management and control system may establish a dump interaction channel between the main system and the management and control system by a newly-built SEND/RECEIVE diagnostic page based on an SES protocol of an SAS interface, so that the main system and the management and control system transmit dump data and the like.
It should be noted that, because the management and control system generally does not have the processing capability of the dump data, but the management and control system may have the collection capability of the dump data, and the main system generally has the processing capability of the dump data, when the SAS link is debugged by the dump in the storage system, the management and control system may be given the collection capability of the dump data, and the main system may be given the processing capability of the dump data, so as to debug the SAS link by the dump; the management and control system copies the memory data without occupying extra memory, so that the service pressure of the management and control system can be reduced; with the increase of the functional modules to be debugged, only the target variable addresses and the target variable sizes need to be updated, and a huge code amount does not need to be additionally increased, so that the debugging function is simple and is convenient to implement.
Step S102: and saving the dump data as a dump file.
In practical applications, after receiving the dump data, the host system may save the dump data as a dump file, for example, save the dump data as a dump file by using a dump file generation tool under the Linux system, so as to debug the SAS link by using the dump file.
Step S103: and analyzing the dump file to obtain an analysis result.
In practical application, after the main system saves the dump data as the dump file, the main system can analyze the dump file to obtain an analysis result, so as to debug the SAS link in batches.
In a specific application scenario, the main system may analyze the dump file online to obtain an analysis result, may analyze the dump file offline to obtain an analysis result, and the like, which is not specifically limited herein.
Step S104: displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result; the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander.
In practical application, after the main system analyzes the dump file to obtain an analysis result, the main system can display the analysis result according to a variable name defined by the display data structure and a display form of data, so that a user and the like can know the analysis result, and the user can further know the debugging process of the SAS link according to the analysis result.
The SAS link debugging method is applied to a main system and used for receiving dump data transmitted by a management and control system; saving the dump data as a dump file; analyzing the dump file to obtain an analysis result; displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result; the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size. In this application, the management and control system can transmit the dump data that the memory data corresponds to main system, and the main system can handle the dump data through the dump file, and then debugs the SAS link with the help of the dump, because the dump is convenient for record information, so can effectively debug the SAS link.
According to the SAS link debugging method provided by the embodiment of the application, before the main system receives dump data transmitted by the management and control system, the main system can also register the data to the management and control system and store the target variable address and the target variable size into the dump linked list of the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list.
That is, the main system may store the target variable address and the target variable size of the memory data that the main system needs to view in the management and control system in advance by means of data registration with the management and control system, so that the management and control system may directly collect the memory data according to the target variable address and the target variable size.
It should be noted that, in this embodiment, the management and control system stores the target variable address and the target variable size by using the dump linked list, and in practical application, the management and control system may also store the target variable address and the target variable size in other manners, which is not specifically limited herein.
In the SAS link debugging method provided by the embodiment of the present application, in the process that the main system parses the dump file to obtain a parsing result, in order to obtain the parsing result, the dump file may be patterned based on a preset Linux script to obtain a patterned result; analyzing the graphical result and the symbol table file together based on a preset symbol table analyzing tool to obtain an analysis result; the symbol table file is a file generated when the management and control system compiles.
In practical application, the main system can be used for imaging the dump file based on a Linux script such as tcl/tk or python and the like to obtain an imaging result and the like.
In the SAS link debugging method provided in the embodiment of the present application, in the process of displaying the analysis result, the host system may display the analysis result in a menu format according to the variable name defined by the display data structure and the display format of the data in order to facilitate a user to view the analysis result.
In a specific application scenario, in order to facilitate a user to view required data information, after the main system displays an analysis result in a menu mode, a viewing instruction can be received, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered; and operating the menu according to the viewing instruction, and displaying a corresponding analysis result.
For example, the main system may select a corresponding structure variable name in the menu to display when the user triggers the up-down key; under the condition that a user triggers an Enter key, entering a next-level menu, expanding and displaying the next-level data definition, and at the moment, when the menu content with the structural body is selected, still expanding through the Enter; when the user triggers the Esc key, the user can enter the upper level menu; under the condition that the user inputs the g key, a function of quickly searching on the page can be started for the user; under the condition that a user triggers the r key, the value can be read again, and reading of a certain variable is initiated to the management and control system once, and the like; and under the condition that the user triggers the f key, automatically establishing detection transmission of a certain variable with the control system, sending the variable after the control system detects the change, analyzing and displaying the variable after the main system receives the variable, and the like.
In the SAS link debugging method provided in the embodiment of the present application, before receiving dump data transmitted by a management and control system, a main system may further send a dump data reading instruction to the management and control system, so that the management and control system reads the dump data; the type of the dump data reading instruction comprises a full-volume dump data reading instruction and a single-variable dump data reading instruction.
That is, in the present application, the main system may control the management and control system to collect all the memory data at one time, or may control the management and control system to collect only one memory data at one time, and the present application is not limited specifically herein.
In a specific application scenario, in order to send a dump data reading instruction, a corresponding data reading instruction flag bit may be set in the management and control system, so that the main system may send the corresponding dump data reading instruction to the management and control system only by triggering the corresponding data reading instruction flag bit.
Referring to fig. 2, fig. 2 is a second flowchart of a method for debugging an SAS link according to an embodiment of the present disclosure.
The SAS link detection method provided in the embodiment of the present application is applied to a management and control system in an SAS expander, and may include the following steps:
step S201: and collecting the memory data according to the target variable address and the target variable size to obtain dump data.
Step S202: transmitting dump data to a host system; the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; and the main system stores the dump data into a dump file, analyzes the dump file to obtain an analysis result, and displays the analysis result according to the variable name defined by the display data structure body and the display form of the data so as to debug based on the analysis result.
The description of the corresponding steps in the present application may refer to the above embodiments, and is not repeated herein.
Referring to fig. 3, fig. 3 is a schematic diagram illustrating a first structure of an SAS link debugging apparatus according to an embodiment of the present disclosure.
An SAS link debugging apparatus provided in an embodiment of the present application is applied to a host system, and may include:
the first receiving module 11 is used for receiving dump data transmitted by the management and control system;
the first saving module 12 is used for saving the dump data into a dump file;
the first analysis module 13 is configured to analyze the dump file to obtain an analysis result;
the first display module 14 is configured to display an analysis result according to a variable name defined by the display data structure and a display form of data, so as to perform debugging based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size.
The SAS link debugging apparatus provided in an embodiment of the present application is applied to a host system, and may further include:
and the first storage module is used for storing the target variable address and the target variable size into a dump linked list of the management and control system by performing data registration on the management and control system before the first receiving module receives the dump data transmitted by the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list.
An SAS link debug apparatus provided in an embodiment of the present application is applied to a host system, where a first parsing module may include:
the first processing unit is used for imaging the dump file based on a preset Linux script to obtain an imaging result;
the first analysis unit is used for analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result;
the symbol table file is a file generated when the management and control system compiles.
An SAS link debugging apparatus provided in an embodiment of the present application is applied to a host system, where a first display module may include:
and the first display unit is used for displaying the analysis result in a menu mode according to the variable name defined by the display data structure body and the display form of the data.
The SAS link debug apparatus provided in an embodiment of the present application is applied to a host system, and may further include:
the first receiving unit is used for receiving a viewing instruction after the first display unit displays the analysis result in a menu mode, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered;
and the first operation unit is used for operating the menu according to the viewing instruction and displaying a corresponding analysis result.
The SAS link debug apparatus provided in an embodiment of the present application is applied to a host system, and may further include:
the first sending module is used for sending a dump data reading instruction to the management and control system before the first receiving module receives the dump data transmitted by the management and control system so that the management and control system can read the dump data;
the type of the dump data reading instruction comprises a full-volume dump data reading instruction and a single-variable dump data reading instruction.
Referring to fig. 4, fig. 4 is a schematic diagram illustrating a second structure of an SAS link debugging device according to an embodiment of the present disclosure.
An SAS link detection device provided in an embodiment of the present application is applied to a management and control system in an SAS expander, and may include:
the first collection module 21 is configured to collect the memory data according to the target variable address and the target variable size to obtain dump data;
a first transmission module 22 for transmitting the dump data to the host system;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the main system saves the dump data as a dump file, analyzes the dump file to obtain an analysis result, displays the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugs based on the analysis result.
The application also provides SAS link debugging equipment and a computer readable storage medium, which have the corresponding effects of the SAS link debugging method provided by the embodiment of the application. Referring to fig. 5, fig. 5 is a schematic structural diagram of an SAS link debugging device according to an embodiment of the present disclosure.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
receiving dump data transmitted by a management and control system;
saving the dump data into a dump file;
analyzing the dump file to obtain an analysis result;
displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: before dump data transmitted by the management and control system are received, data registration is carried out on the management and control system, and the target variable address and the target variable size are stored into a dump linked list of the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: imaging the dump file based on a preset Linux script to obtain an imaging result; analyzing the graphical result and the symbol table file together based on a preset symbol table analyzing tool to obtain an analysis result; the symbol table file is a file generated when the management and control system compiles.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: and displaying the analysis result in a menu mode according to the variable name defined by the display data structure body and the display form of the data.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: after the analysis result is displayed in a menu mode, receiving a viewing instruction, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered; and operating the menu according to the viewing instruction, and displaying a corresponding analysis result.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program: before dump data transmitted by a management and control system is received, sending a dump data reading instruction to the management and control system so that the management and control system reads the dump data; the type of the dump data reading instruction comprises a full-volume dump data reading instruction and a single-variable dump data reading instruction.
The SAS link debug apparatus provided in an embodiment of the present application includes a memory 201 and a processor 202, where the memory 201 stores a computer program, and the processor 202 implements the following steps when executing the computer program:
collecting memory data according to the target variable address and the target variable size to obtain dump data;
transmitting dump data to a host system;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; and the main system stores the dump data into a dump file, analyzes the dump file to obtain an analysis result, and displays the analysis result according to the variable name defined by the display data structure body and the display form of the data so as to debug based on the analysis result.
Referring to fig. 6, another SAS link debugging device provided in the embodiment of the present application may further include: an input port 203 connected to the processor 202, for transmitting externally input commands to the processor 202; a display unit 204 connected to the processor 202, for displaying the processing result of the processor 202 to the outside; and a communication module 205 connected to the processor 202, for implementing communication between the SAS link debug device and the outside world. The display unit 204 may be a display panel, a laser scanning display, or the like; the communication method adopted by the communication module 205 includes, but is not limited to, mobile high definition link technology (HML), universal Serial Bus (USB), high Definition Multimedia Interface (HDMI), and wireless connection: wireless fidelity (WiFi), bluetooth communication, bluetooth low energy (low) communication, ieee802.11s based communication.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
receiving dump data transmitted by a management and control system;
saving the dump data into a dump file;
analyzing the dump file to obtain an analysis result;
displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects the memory data according to the target variable address and the target variable size.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: before dump data transmitted by the management and control system is received, the target variable address and the target variable size are stored into a dump linked list of the management and control system by registering the data with the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: imaging the dump file based on a preset Linux script to obtain an imaging result; analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result; the symbol table file is a file generated when the management and control system compiles.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: and displaying the analysis result in a menu mode according to the variable name defined by the display data structure body and the display form of the data.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps: after the analysis result is displayed in a menu mode, receiving a viewing instruction, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered; and operating the menu according to the viewing instruction, and displaying a corresponding analysis result.
A computer-readable storage medium provided in an embodiment of the present application stores a computer program, and when executed by a processor, the computer program implements the following steps: before dump data transmitted by a management and control system is received, sending a dump data reading instruction to the management and control system so that the management and control system reads the dump data; the type of the dump data reading instruction comprises a full-volume dump data reading instruction and a single-variable dump data reading instruction.
A computer-readable storage medium is provided in an embodiment of the present application, in which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
collecting memory data according to the target variable address and the target variable size to obtain dump data;
transmitting dump data to a host system;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; and the main system stores the dump data into a dump file, analyzes the dump file to obtain an analysis result, and displays the analysis result according to the variable name defined by the display data structure body and the display form of the data so as to debug based on the analysis result.
The computer-readable storage media to which this application relates include Random Access Memory (RAM), memory, read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage media known in the art.
For a description of a relevant part in the SAS link debugging apparatus, the device, and the computer readable storage medium provided in the embodiment of the present application, reference is made to detailed descriptions of a corresponding part in the SAS link debugging method provided in the embodiment of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. A SAS link debugging method is characterized by being applied to a main system and comprising the following steps:
receiving dump data transmitted by a management and control system;
saving the dump data into a dump file;
analyzing the dump file to obtain an analysis result;
displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data, and debugging based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects memory data according to a target variable address and a target variable size;
before receiving dump data transmitted by the management and control system, the method further comprises the following steps:
storing the target variable address and the target variable size into a dump linked list of the management and control system by performing data registration on the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list;
analyzing the dump file to obtain an analysis result, wherein the analyzing the dump file comprises the following steps:
imaging the dump file based on a preset Linux script to obtain an imaging result;
analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result;
the symbol table file is a file generated when the management and control system compiles.
2. The method according to claim 1, wherein the displaying the analysis result in accordance with the variable name and the display form of the data defined by the display data structure includes:
and displaying the analysis result in a menu mode according to the variable name defined by the display data structure body and the display form of the data.
3. The method of claim 2, wherein after displaying the parsing result in a menu style, further comprising:
receiving a viewing instruction, wherein the viewing instruction comprises an instruction generated after a key of the main system is triggered;
and operating the menu according to the viewing instruction, and displaying the corresponding analysis result.
4. The method of claim 1, wherein before receiving dump data transmitted by the management and control system, further comprising:
sending a dump data reading instruction to the management and control system so that the management and control system reads the dump data;
the types of the dump data reading instructions comprise full-volume dump data reading instructions and single-variable dump data reading instructions.
5. A SAS link debugging method is characterized in that a management and control system applied to an SAS expander comprises the following steps:
collecting memory data according to the target variable address and the target variable size to obtain dump data;
transmitting the dump data to a main system;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the main system stores the dump data into a dump file, analyzes the dump file to obtain an analysis result, displays the analysis result according to a variable name defined by a display data structure body and a display form of data, and debugs based on the analysis result;
wherein before transmitting the dump data to a host system, the method further comprises:
storing the target variable address and the size of the target variable into a dump linked list of the main system through the data registration of the main system;
wherein, the main system analyzes the dump file to obtain an analysis result, and the analysis result comprises: imaging the dump file based on a preset Linux script to obtain an imaging result; analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result; the symbol table file is a file generated when the management and control system compiles.
6. An SAS link debugging device is applied to a main system and comprises:
the first receiving module is used for receiving dump data transmitted by the management and control system;
the first saving module is used for saving the dump data into a dump file;
the first analysis module is used for analyzing the dump file to obtain an analysis result;
the first display module is used for displaying the analysis result according to the variable name defined by the display data structure body and the display form of the data so as to debug based on the analysis result;
the main system is a master control system of a storage system where the SAS link is located; the control system is a control system in the SAS expander; the dump data is data obtained after the management and control system collects memory data according to a target variable address and a target variable size;
wherein, still include:
the first storage module is used for storing the target variable address and the target variable size into a dump linked list of a management and control system by performing data registration on the management and control system before the first receiving module receives dump data transmitted by the management and control system, so that the management and control system stores the target variable address and the target variable size based on the dump linked list;
wherein the first parsing module comprises:
the first processing unit is used for imaging the dump file based on a preset Linux script to obtain an imaging result;
the first analysis unit is used for analyzing the graphical result and the symbol table file together based on a preset symbol table analysis tool to obtain an analysis result;
the symbol table file is a file generated when the management and control system is compiled.
7. An SAS link debugging device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the SAS link debugging method of any of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the SAS link debugging method according to any one of claims 1 to 5.
CN202011271643.1A 2020-11-13 2020-11-13 SAS link debugging method, device, equipment and computer storage medium Active CN112463594B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011271643.1A CN112463594B (en) 2020-11-13 2020-11-13 SAS link debugging method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011271643.1A CN112463594B (en) 2020-11-13 2020-11-13 SAS link debugging method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112463594A CN112463594A (en) 2021-03-09
CN112463594B true CN112463594B (en) 2023-01-10

Family

ID=74837305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011271643.1A Active CN112463594B (en) 2020-11-13 2020-11-13 SAS link debugging method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112463594B (en)

Families Citing this family (1)

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

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344083A (en) * 2018-11-05 2019-02-15 郑州云海信息技术有限公司 A kind of program debugging method, device, equipment and readable storage medium storing program for executing

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109344083A (en) * 2018-11-05 2019-02-15 郑州云海信息技术有限公司 A kind of program debugging method, device, equipment and readable storage medium storing program for executing

Also Published As

Publication number Publication date
CN112463594A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN100388231C (en) Method for analyzing data obtained from crash and data processing system
WO2017063505A1 (en) Method for detecting hardware fault of server, apparatus thereof, and server
EP0348704B1 (en) Apparatus and method for simultaneously presenting error interrupt and error data to a support processor
CN105183575A (en) Processor fault diagnosis method, device and system
US7610482B1 (en) Method and system for managing boot trace information in host bus adapters
CN116627861B (en) Data processing method and system based on expander, electronic equipment and storage medium
CN110704228A (en) Solid state disk exception handling method and system
CN112463594B (en) SAS link debugging method, device, equipment and computer storage medium
CN112100048A (en) Self-adaptive routing inspection method and device for server
CN112015689A (en) Serial port output path switching method, system and device and switch
WO2023065601A1 (en) Server component self-test anomaly recovery method and device, system, and medium
KR102705465B1 (en) Methods for handling abnormalities, terminal devices and storage media
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
CN112506693A (en) Method and device for recording abnormal information, storage medium and electronic equipment
CN111782434A (en) Abnormity detection method and device and electronic equipment
CN112015600A (en) Log information processing system, log information processing method and device and switch
CN111130856A (en) Server configuration method, system, equipment and computer readable storage medium
US12019579B2 (en) Data transmission method, apparatus, and device, and storage medium
CN112463446B (en) PCIe device recovery method and system, electronic device and storage medium
CN111953753B (en) Communication device connection method, device, computer device and storage medium
CN114826886A (en) Application software disaster tolerance method and device and electronic equipment
CN113434324A (en) Abnormal information acquisition method, system, device and storage medium
CN106610878A (en) Fault debugging method for dual-controller system
JPH11120154A (en) Device and method for access control in computer system
CN117873771B (en) System downtime processing method, device, equipment, storage medium and server

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