A storage device external card management method and computer program product
By virtualizing external plug-in cards into virtual network cards, unified management and control solve the problem of external plug-in card management in storage devices, improve system reliability and data processing efficiency, and ensure stable performance.
Patent Information
- Application Number
- CN202410851153.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-27
AI Technical Summary
A large number of external cards in storage devices are difficult to perform status monitoring, management and fault diagnosis. Traditional management methods cannot predict possible problems and impacts of IO cards in advance, resulting in unstable system performance.
By virtualizing the external plug-in card of the storage device into a virtual network card, the virtual network card is used to manage business resources, including obtaining operating status information, determining the data transmission rate, creating a virtual network card and controlling the external plug-in card to perform functions based on it, so as to realize the management of multiple external plug-in cards. Unified management and troubleshooting of plug-in cards.
It improves the reliability and data processing efficiency of storage devices, realizes unified management of multiple external cards, quickly identifies and handles abnormal situations, and ensures that system performance meets demand.
Smart Images

Figure CN118409984B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of external card management of storage devices, and in particular to a method for managing external cards of storage devices, an apparatus for managing external cards of storage devices, a computer program product, an electronic device and a computer-readable storage medium. Background Art
[0002] A storage device plug-in card is a hardware component that can be inserted into a storage device to expand its functions or performance. With the advancement of technology, multiple plug-in cards can be configured in a storage device. As the number of plug-in cards increases, how to manage the plug-in cards directly determines the reliability and data processing efficiency of the storage device. Summary of the invention
[0003] The embodiments of the present invention provide a method, apparatus, computer program product, electronic device and computer-readable storage medium for managing an external card of a storage device, so as to overcome the above problems or at least partially solve the above problems.
[0004] The embodiment of the present invention discloses a method for managing an external card of a storage device, which is characterized by comprising:
[0005] Acquire first operation status information for one or more of the external cards;
[0006] In response to determining that the external card is online through the first operation status information, determining a data transmission rate of the external card, a data transmission object, and a service resource for the data transmission object;
[0007] Determine the target output rate by using the data transmission rates of all external cards whose device types are serial interface storage devices;
[0008] Determine the target input rate by using the data transmission rates of all external cards whose device types are Fibre Channel interface storage devices;
[0009] Creating a virtual network card using the target output rate and the target input rate;
[0010] The business resources are managed through the virtual network card.
[0011] Optionally, the step of managing the service resources through the virtual network card includes:
[0012] In response to determining that the external card is online through the first operating status information, sending a device identification and a function code to the external card, wherein the device identification is used to mark the external card;
[0013] Determine the marked function bit and function parameter bit of the external card through the function code;
[0014] constructing a target code using the device identifier and the function code;
[0015] Determining a target function for the service resource by means of the function bit in the target code;
[0016] Determining a target external card for executing the target function from the external cards based on the target function;
[0017] Determining an overall threshold parameter of the target external plug-in card based on the functional parameter bits in the target code;
[0018] The target external card is controlled by the virtual network card to execute the target function based on the overall threshold parameter.
[0019] Optionally, the storage device is configured with multiple network cards, the virtual network card is configured with a health monitoring unit, and further includes:
[0020] Calling the health monitoring unit to read the health status information of the network card through a serial communication bus link;
[0021] In response to detecting that the health status of any network card is abnormal through the health status information, it is determined that the health status of the virtual network card is abnormal.
[0022] Optionally, the health status information includes the current operating temperature, the working utilization rate of the network card chip and the flash memory space parameter in the network card, and also includes:
[0023] Determine the historical network card chip working utilization and historical network card internal flash memory space parameters corresponding to the current operating temperature;
[0024] When the network card operates at the current operating temperature, if the network card chip utilization is greater than the historical network card chip utilization, or the flash memory space parameter in the network card is greater than the historical flash memory space parameter in the network card, then it is determined that the health status of the network card is abnormal.
[0025] Optionally, before the step of managing the service resources through the virtual network card, the method further includes:
[0026] Based on a preset data processing time period, collecting initial state information of the virtual network card;
[0027] Counting the frequency of changes of each parameter in the initial state information within the data processing time period;
[0028] Sort each parameter in the initial state information based on the change frequency to obtain a parameter frequency sequence;
[0029] According to a preset percentage, a parameter whose change frequency is greater than a preset threshold is selected from the parameter frequency sequence and determined as an influencing factor;
[0030] Determine the parameters in the parameter frequency sequence that are not determined as the influencing factors as fixed factors;
[0031] Determine the fixed factor as a constant variable, and analyze the changing relationship between the fixed factor and the influencing factor;
[0032] Predicting a change in the impact factor for the impact factor at a future moment based on the change relationship, and determining a future moment impact factor for the future moment based on the change in the impact factor;
[0033] The future moment influencing factor and the fixed factor are combined to determine the target state parameter threshold.
[0034] Optionally, it also includes:
[0035] constructing a threshold space in a back-end disk space of the storage device;
[0036] Determining an initial state parameter threshold corresponding to the initial state information;
[0037] Storing the initial state parameter threshold in the threshold space;
[0038] In response to the determining of the target state parameter threshold, the target state parameter threshold is stored in the threshold space and replaces the initial state parameter threshold.
[0039] Optionally, the initial state information includes at least a network card state parameter, a network card performance parameter, a virtual network card type, a driver version, and virtual network card configuration information, and the step of collecting the initial state information of the virtual network card includes:
[0040] When the virtual network card is configured with an application programming interface, calling the application programming interface to obtain initial state information of the virtual network card;
[0041] When the virtual network card is configured with a network card register, the network card register is accessed, and initial state information of the virtual network card is read from the network card register.
[0042] Optionally, it also includes:
[0043] In response to detecting an abnormal health status of any network card through the health status information, determining business data for the business resource, performing a redundant backup operation on the virtual network card, and generating backup data for the business data.
[0044] Optionally, it also includes:
[0045] In response to detecting that the health status of any network card is abnormal through the health status information, sending a data application instruction to a front-end device that interacts with the network card with the abnormal health status, so as to control the front-end device to stop interacting with the network card with the abnormal health status;
[0046] Assign tasks to the control network card, and control the control network card to perform data interaction with the front-end device.
[0047] Optionally, it also includes:
[0048] Isolating the network card with abnormal health status, and obtaining second operation status information of the virtual network card after isolating the network card with abnormal health status; the second operation status information includes the current bandwidth rate of the virtual network card;
[0049] Counting the change of each parameter in the second operating state information compared with the corresponding parameter in the initial state information;
[0050] When the change range of any parameter in the second operation status information is greater than a preset change range threshold, sending a task evaluation instruction to the front-end device to control the front-end device to feedback a target bandwidth for the currently executed service;
[0051] When the current bandwidth rate is lower than the target bandwidth, a padding operation is performed on the bandwidth rate of the virtual network card based on the target bandwidth.
[0052] Optionally, after the step of performing a padding operation on the bandwidth rate of the virtual network card based on the target bandwidth, the step further includes:
[0053] Determine target ratio;
[0054] Determine an update input rate for the virtual network card after performing the padding operation, and a total data volume and an output data volume for the currently executed service;
[0055] Calculating the sum of the total data volume and the output data volume;
[0056] Calculating a data processing rate ratio of the sum of the data amounts to the update input rate;
[0057] An update function code for the virtual network card pair is generated based on the data processing rate ratio and the target ratio.
[0058] Optionally, it also includes:
[0059] Generate abnormal alarm information for the network card with abnormal health status.
[0060] The embodiment of the present invention further discloses an external card management device for a storage device, comprising:
[0061] A first operation status information acquisition module, used to acquire first operation status information for one or more external cards;
[0062] a transmission rate determination module, configured to determine the data transmission rate of the external card, the data transmission object, and the service resources for the data transmission object in response to determining that the external card is online through the first operation status information;
[0063] A target output rate determination module is used to determine the target output rate through the data transmission rates of all external cards whose device types are serial interface storage devices;
[0064] The target input rate determination module is used to determine the target input rate through the data transmission rates of all external cards whose device types are fiber channel interface storage devices;
[0065] A virtual network card building module, used to create a virtual network card using the target output rate and the target input rate;
[0066] The service resource management module is used to manage the service resources through the virtual network card.
[0067] The embodiment of the present invention further discloses a computer program product, including a computer program / instruction, characterized in that the steps of the above method are implemented when the computer program / instruction is executed by a processor.
[0068] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0069] The memory is used to store computer programs;
[0070] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.
[0071] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.
[0072] The embodiments of the present invention include the following advantages:
[0073] According to an embodiment of the present invention, first operating status information for one or more external cards is obtained; in response to determining that the external card is online through the first operating status information, the data transmission rate, data transmission object and business resources for the data transmission object of the external card are determined; a target output rate is determined through the data transmission rates of all external cards whose device types are serial interface storage devices; a target input rate is determined through the data transmission rates of all external cards whose device types are fiber channel interface storage devices; a virtual network card is created using the target output rate and the target input rate; and the business resources are managed through the virtual network card, thereby achieving unified management of multiple external cards, thereby improving the reliability of storage devices and data processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 is a flowchart of the steps of a method for managing an external card of a storage device provided in an embodiment of the present invention;
[0075] Figure 2 It is a schematic diagram of a process of network card virtualization provided in an embodiment of the present invention;
[0076] Figure 3 is a flow chart of a network threshold management method provided in an embodiment of the present invention;
[0077] Figure 4 It is a flow chart of a virtual network card updating method provided in an embodiment of the present invention;
[0078] Figure 5 is a structural block diagram of a computer program product provided in an embodiment of the present invention;
[0079] Figure 6 is a hardware structure block diagram of an electronic device provided in an embodiment of the present invention;
[0080] Figure 7 is a schematic diagram of a computer-readable medium provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0081] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0082] In the era of big data, higher requirements are placed on the reliability and high performance of storage arrays, especially in high-end storage devices, which require the read and write rates and IOPS (Input / Output Operations Per Second) of storage devices to meet high baseline standards. For example, high-end storage requires IOPS of more than 100W, and terminal storage requires IOPS of more than 40W, and can perform continuous data reading and writing at this rate to meet the needs of the current Internet companies' increasing data volume. To this end, the central processing unit (CPU) of storage devices is constantly updated, and the bandwidth resources of the CPU are constantly doubling and improving. The number of input / output (IO) cards supported by storage devices has gradually increased from 2 cards / controller to 14 cards / controller, and the supported IO cards have also been upgraded from the previous 16Gb PCIE3.0 IO card to PCIE (peripheral componentinterconnect express, a high-speed serial computer expansion bus standard) 4.0 32G, 64G, 100G IO cards, etc. These hardware upgrades can ensure that the IOPS of the entire storage device meets higher requirements.
[0083] However, when hardware upgrades increase the IOPS of the entire machine, the management of IO cards will become more difficult. As the number of IO cards increases, the system performance will become relatively unstable. When the performance of a certain IO card is abnormal, it becomes difficult to locate and analyze the problem, and it is impossible to accurately analyze the impact of the abnormal IO card on the overall system. In addition, as the number of IO cards increases, the probability of IO card abnormalities will also increase. Traditional IO card management methods cannot predict possible problems with IO cards in advance, and the impact of the problems, and then analyze and evaluate the impact of the entire IO card group on performance. Only by analyzing the impact of IO cards on the overall system can the best solution be given to ensure that the overall performance of the system meets the requirements.
[0084] Based on the above problems, the present invention provides a storage device plug-in card management method, the purpose of which is to solve the problem that a large number of storage device plug-in cards are difficult to monitor, manage and diagnose faults. By virtualizing a large number of storage device plug-in cards into a virtual network card, this virtual network card has two high-speed input and output channels, a virtualization control kernel and a health status monitoring unit. These four virtual functions are used as the integration of all storage plug-in card functions. The integration process is the basis of the virtualization process. These four virtualization functions, as a virtual set, include various functions of various types of plug-in cards; in the subsequent management process, the ratio of a certain function to the index is used as a management parameter for monitoring; when the ratio is lower than the set threshold, it is determined that the current function and performance parameters are abnormal and reported. When a certain network card is abnormal, the storage system gives priority to redundant backup operations to ensure that the abnormal unit does not affect the business. After the redundant operation is completed, the virtual network card function is reintegrated, the abnormal module is removed from the virtual network card and the functional parameters are recalculated. After the calculation is completed, the virtual network card integration is completed and management continues. Through the above method, the virtualization integration of multiple network card functions is realized, and the functions of various network cards are normalized. The storage device can manage multiple network cards by managing the performance of the virtual network cards.
[0085] Reference Figure 1 , shows a flowchart of a method for managing an external card of a storage device provided in an embodiment of the present invention, which may specifically include the following steps:
[0086] Step 101, obtaining first operation status information for one or more external cards;
[0087] Step 102, in response to determining that the external card is online through the first operating status information, determining the data transmission rate of the external card, the data transmission object, and the service resources for the data transmission object;
[0088] Step 103, determining a target output rate through the data transmission rates of all external cards whose device type is a serial interface storage device;
[0089] Step 104, determining a target input rate through the data transmission rates of all external cards whose device type is a Fibre Channel interface storage device;
[0090] Step 105, creating a virtual network card using the target output rate and the target input rate;
[0091] Step 106: managing the service resources through the virtual network card.
[0092] In a specific implementation, the operating system of an embodiment of the present invention can count the number and status of external cards that are currently online. Specifically, first operating status information for one or more external cards can be obtained. The first operating status information can be operating status information for the external card, which can be used to determine whether the external card is online. For example, a request signal is sent to the current external card through the serial communication bus I2C link. After receiving the request signal, the external card sends a response signal, and the operating system counts the number of online external cards.
[0093] In response to determining that the external card is online through the first operation status information, the data transmission rate of the external card, the data transmission object, and the service resources for the data transmission object may be determined.
[0094] JBOD is the abbreviation of “Just a Bunch of Disks”, which means “just a bunch of disks”. JBOD is a simple storage solution that connects multiple hard drives together to form a larger storage space.
[0095] JBOF is the abbreviation of "Just a Bunch of Flash". JBOF is similar to JBOD, but uses solid-state drives (SSDs) instead of hard disk drives (HDDs). The advantages of JBOF are faster speed and higher reliability.
[0096] SAS is the abbreviation of "Serial Attached SCSI". SAS is an interface standard for connecting storage devices, with the characteristics of high speed, high reliability and good scalability.
[0097] FC card (Fibre Channel Host Bus Adapter). An FC card is an expansion card that allows a server or other computer to connect to a Fibre Channel storage network. Fibre Channel is a high-speed data storage network commonly used in enterprise data centers.
[0098] For example, for a SAS card connected to a JBOD or JBOF extended hard disk array, the data transmission object is the back-end extended disk area; for an FC card and various network cards connected to a switch, the data transmission object is the front-end server.
[0099] The service resources may include the service type and service data transmitted by the external card to the data transmission object.
[0100] In a specific implementation, after determining the data transmission rate of the external card, the data transmission object, and the business resources for the data transmission object, the target output rate can be determined through the data transmission rate of all external cards whose device types are serial interface storage devices, and the target input rate can be determined through the data transmission rate of all external cards whose device types are fiber channel interface storage devices.
[0101] Exemplarily, for a SAS card connected to a JBOD or JBOF extended hard disk array, the data transmission object is the back-end extended disk area, which is connected to the JBOD and JBOF controller ends through a PCIE cable. The data transmission rate of any external card whose device type is a serial interface storage device SAS can be recorded as an individual output rate, and the individual output rates of all current external cards whose device type is a serial interface storage device SAS are added together as the target output rate of the virtual network card; similarly, for FC cards and various network cards connected to switches, the system reads the input data of the front-end server through the network card, and then stores the data on the disk. Therefore, for this type of network card, the data transmission rate of any external card whose device type is a fiber channel interface storage device can be marked as an individual input rate, and the individual input rates of all current external cards whose device type is a fiber channel interface storage device are added together as the target input rate of the virtual network card.
[0102] The embodiment of the present invention can create a virtual network card by using a target output rate and a target input rate, and manage service resources through the virtual network card to achieve virtual integration and unified control of the functions of multiple external cards.
[0103] According to an embodiment of the present invention, first operating status information for one or more external cards is obtained; in response to determining that the external card is online through the first operating status information, the data transmission rate, data transmission object and business resources for the data transmission object of the external card are determined; a target output rate is determined through the data transmission rates of all external cards whose device types are serial interface storage devices; a target input rate is determined through the data transmission rates of all external cards whose device types are fiber channel interface storage devices; a virtual network card is created using the target output rate and the target input rate; and the business resources are managed through the virtual network card, thereby achieving unified management of multiple external cards, thereby improving the reliability of storage devices and data processing efficiency.
[0104] Based on the above embodiment, a variant embodiment of the above embodiment is proposed. It should be noted that in order to make the description concise, only the differences from the above embodiment are described in the variant embodiment.
[0105] In an optional embodiment of the present invention, the step of managing the service resources through the virtual network card includes:
[0106] In response to determining that the external card is online through the first operating status information, sending a device identification and a function code to the external card, wherein the device identification is used to mark the external card;
[0107] Determine the marked function bit and function parameter bit of the external card through the function code;
[0108] constructing a target code using the device identifier and the function code;
[0109] Determining a target function for the service resource by means of the function bit in the target code;
[0110] Determining a target external card for executing the target function from the external cards based on the target function;
[0111] Determining an overall threshold parameter of the target external plug-in card based on the functional parameter bits in the target code;
[0112] The target external card is controlled by the virtual network card to execute the target function based on the overall threshold parameter.
[0113] In a specific implementation, the virtual network card of the embodiment of the present invention can be used to implement data packaging, verification, compression and finally complete data transmission and transfer. For the storage server, the external card can be used to respectively perform the four functions of packaging, verification, compression and data transmission during the execution of the business. Therefore, in response to the determination that the external card is online through the first operating status information, the device identification ID can be sent to the external card to mark the external card. At the same time, the function code FD can also be sent to the external card. The function code FD includes a function bit, a function parameter bit and a function status bit. The parameters filled in the function bit can be used to determine the processing flow category of the business resource. For example, 01 represents packaging, 02 represents verification, 03 represents compression, and 04 represents transmission. The parameters in the function parameter bit can be changed. The maximum threshold of the processing flow category can be obtained according to the function manual of the network card, and the maximum threshold can remain unchanged. The function corresponding to the marked external card and the maximum threshold for the function can be determined through the function code.
[0114] The above-mentioned device identification ID and function code FD are combined and connected to obtain the final code. The virtual network card can organize the final code and connect it into a target code. The target code can be presented as a data segment and serve as a virtual network card function code for the virtual network card. It can include the device identification ID and function code FD of all external cards managed by the virtual network card.
[0115] The function bits in the virtual network card function code can be used to determine the target function for the business resources, that is, any one of packaging, verification, compression or data transmission. The external cards are divided according to the function bits in the virtual network card function code, and the target external card for executing the target function is determined from the external cards based on the target function.
[0116] The individual function parameter thresholds of all target external cards corresponding to the target function can be determined through the function parameter bits in the target code. After integrating the individual function parameter thresholds of multiple target external cards, the overall threshold parameter for all target external cards can be obtained. The overall threshold parameter can also be regarded as the function parameter threshold of the virtual network card for the target function. At this time, the target external card can be controlled to execute the target function based on the overall threshold parameter through the virtual network card.
[0117] In an embodiment of the present invention, in response to determining that the external card is online through the first operating status information, a device identification and a function code are sent to the external card, wherein the device identification is used to mark the external card; the function bit and the function parameter bit of the marked external card are determined through the function code; a target code is constructed using the device identification and the function code; a target function for the business resource is determined through the function bit in the target code; a target external card for executing the target function is determined from the external card based on the target function; an overall threshold parameter of the target external card is determined based on the function parameter bit in the target code; and the target external card is controlled by the virtual network card to execute the target function based on the overall threshold parameter, thereby realizing virtualized integration of data processing and control functions for various virtual network cards.
[0118] In an optional embodiment of the present invention, the storage device is configured with multiple network cards, the virtual network card is configured with a health monitoring unit, and further includes:
[0119] Calling the health monitoring unit to read the health status information of the network card through a serial communication bus link;
[0120] In response to detecting that the health status of any network card is abnormal through the health status information, it is determined that the health status of the virtual network card is abnormal.
[0121] In actual applications, a storage device can be configured with multiple network cards, and the network card can be an external card of a Fibre Channel interface storage device. The virtual network card can achieve data interaction with other front-end devices by managing multiple network cards.
[0122] In the specific implementation, the health status monitoring unit of the virtual network card can read the health status of each network card through the I2C link, and perform an overall quantitative assessment of the health status after the reading is completed. During the assessment process, a single network card mapping method is adopted, that is, if any network card has an abnormality, it is considered that the virtualized virtual network card as a whole has an abnormality, thereby achieving a rapid repair response.
[0123] In another optional embodiment of the present invention, the health status information includes the current operating temperature, the working utilization rate of the network card chip and the flash memory space parameter in the network card, and also includes:
[0124] Determine the historical network card chip working utilization and historical network card internal flash memory space parameters corresponding to the current operating temperature;
[0125] When the network card operates at the current operating temperature, if the network card chip utilization is greater than the historical network card chip utilization, or the flash memory space parameter in the network card is greater than the historical flash memory space parameter in the network card, then it is determined that the health status of the network card is abnormal.
[0126] The central processing unit CPU reads the health status information of each network card based on the I2C link by calling the health monitoring unit, including the current temperature, the network card chip working utilization, the network card internal flash memory space parameter and other parameters, and selects the worst parameters among these network card parameters to form a health status set. The health status set may include the corresponding extreme network card chip working utilization and extreme network card internal flash memory space parameter at a certain temperature. The extreme network card chip working utilization can be determined as the historical network card chip working utilization, and the extreme network card internal flash memory space parameter can be determined as the historical network card internal flash memory space parameter. The status set is updated in real time as time changes, and the parameters in the current status set are analyzed according to historical experience. For any network card, when the network card is running at the current operating temperature, if the network card chip working utilization is greater than the historical network card chip working utilization, or the network card internal flash memory space parameter is greater than the historical network card internal flash memory space parameter, it is determined that the health status of the network card is abnormal, and abnormal alarm information for the network card with abnormal health status is generated, and at the same time, it is determined that the virtualized network card is in an abnormal state.
[0127] The embodiment of the present invention determines the historical network card chip working utilization and the historical network card internal flash memory space parameter corresponding to the current operating temperature; when the network card is operating at the current operating temperature, if the network card chip working utilization is greater than the historical network card chip working utilization, or the network card internal flash memory space parameter is greater than the historical network card internal flash memory space parameter, then it is determined that the health status of the network card is abnormal, thereby improving the efficiency of determining the abnormal status of the network card.
[0128] In an optional embodiment of the present invention, before the step of managing the service resources through the virtual network card, the method further includes:
[0129] Based on a preset data processing time period, collecting initial state information of the virtual network card;
[0130] Counting the frequency of changes of each parameter in the initial state information within the data processing time period;
[0131] Sort each parameter in the initial state information based on the change frequency to obtain a parameter frequency sequence;
[0132] According to a preset percentage, a parameter whose change frequency is greater than a preset threshold is selected from the parameter frequency sequence and determined as an influencing factor;
[0133] Determine the parameters in the parameter frequency sequence that are not determined as the influencing factors as fixed factors;
[0134] Determine the fixed factor as a constant variable, and analyze the changing relationship between the fixed factor and the influencing factor;
[0135] Predicting a change in the impact factor for the impact factor at a future moment based on the change relationship, and determining a future moment impact factor for the future moment based on the change in the impact factor;
[0136] Determine the target state parameter threshold by combining the future moment influencing factor and the fixed factor;
[0137] constructing a threshold space in a back-end disk space of the storage device;
[0138] Determining an initial state parameter threshold corresponding to the initial state information;
[0139] Storing the initial state parameter threshold in the threshold space;
[0140] In response to the determining of the target state parameter threshold, the target state parameter threshold is stored in the threshold space and replaces the initial state parameter threshold.
[0141] Backend disk space can refer to the raw unallocated storage capacity available on a physical hard drive or solid-state drive (SSD) in a storage system. It represents the total storage capacity of the drive before any partitions or file systems are created.
[0142] The embodiment of the present invention specially establishes a part of threshold space in the back-end disk space of the storage device for storing the state parameter threshold of the virtual network card of the virtual network card. The network card can access this part of space at any time and modify and refresh it in real time, that is, when a new target state parameter threshold is generated, the previous state parameter threshold pre-stored in the threshold space can be replaced. Specifically, after the space is created, the initial state information of the virtualized network card can be obtained according to the preset data processing time period, and the initial state parameter threshold corresponding to the initial state information can be determined. For example, according to the performance limit parameters of various types of network cards, the sum of the single highest performance tested by all network cards during the reliability test process can be recorded, and the experimental value is used as the highest indicator of the performance of the virtualized network card, and this highest indicator is refreshed in real time; then the initial state parameter threshold is stored in the threshold space; in response to determining the target state parameter threshold, the target state parameter threshold can be stored in the threshold space and replace the initial state parameter threshold, so as to achieve the ability to evaluate the performance and reliability of the virtual network card at future moments through the threshold.
[0143] Optionally, the size of the threshold space may be determined according to the number of virtual network cards and the amount of parameter data.
[0144] The target state parameter threshold can be determined in the following way: after collecting the initial state information of the virtual network card, the initial state parameter thresholds of all network cards can be parameter coupled. During the coupling process, the influence of various parameter values that are constantly changing is analyzed, and the change frequency of each parameter in the initial state information in the current data processing time period is counted. Each parameter in the initial state information is sorted based on the change frequency to obtain a parameter frequency sequence. According to a preset percentage, a parameter with a larger change frequency is selected from the parameter frequency sequence to be determined as an influencing factor, and a parameter that is not determined as an influencing factor in the parameter frequency sequence is determined as a fixed factor. For example, The 30% most frequently changing functional parameter values are taken as influencing factors, and the remaining parameter values are taken as fixed factors, and the changing relationship between the fixed factors and the influencing factors is obtained. For example, when the fixed factors change slightly, the degree of change of the influencing factors of each network card is much higher than that of the fixed factors. Then, the fixed factors at future moments are set as constant variables. According to the changing relationship, the changes of the influencing factors in each network card at future moments can be obtained, and the future influencing factors at future moments can be determined based on the changes of the influencing factors. Finally, after virtualizing the fixed factors and the influencing factors at future moments, the final target state parameter threshold is obtained. At this time, the threshold refresh is completed, which can reflect the parameter changes at future moments.
[0145] In the embodiment of the present invention, a threshold space is established to store the state parameter thresholds of the virtual network card, so that the virtual network card can be accessed and updated at any time; the initial threshold is determined according to the performance limit parameters of the virtual network card, which can reflect the optimal performance state of the virtual network card; the real-time refresh mechanism can dynamically adjust the threshold according to the operation data of the virtual network card, so that the threshold can reflect the parameter changes at future times, and more accurately evaluate the performance and reliability of the virtual network card. The parameters with larger change frequencies are selected from the parameter frequency sequence according to a preset percentage to be determined as influencing factors because they have a greater impact on the performance of the virtual network card. The change relationship between the fixed factor and the influencing factor is established through a mathematical model, and the relationship between the two can be quantified. The fixed factor at the future time is set as a constant variable, which can simplify the calculation. By calculating the influencing factor of the next time period, the parameter change of the virtual network card at the future time can be predicted. The final threshold is obtained by the updated influencing factor and the fixed factor, which can comprehensively reflect the performance and reliability of the virtual network card.
[0146] The advantages of this solution are: it can reflect the parameter changes of the virtual network card in real time; it can accurately evaluate the performance and reliability of the virtual network card; it can predict the parameter changes of the virtual network card in the future.
[0147] In an optional embodiment of the present invention, the initial state information includes at least network card state parameters, network card performance parameters, virtual network card type, driver version and virtual network card configuration information, and the step of collecting the initial state information of the virtual network card includes:
[0148] When the virtual network card is configured with an application programming interface, calling the application programming interface to obtain initial state information of the virtual network card;
[0149] When the virtual network card is configured with a network card register, the network card register is accessed, and initial state information of the virtual network card is read from the network card register.
[0150] In practical applications, an application programming interface (API) is a set of predefined functions that aims to provide applications and developers with the ability to access a set of routines based on certain software or hardware without having to access the source code or understand the details of the internal working mechanism.
[0151] An operating system (OS) is a built-in program that coordinates the various hardware of a computer to interact with the user. Common operating systems include Windows, macOS, and open source Linux.
[0152] The initial status information of the virtual network card may refer to parameter values reflecting the working status and performance of the virtual network card, including the following categories:
[0153] 1. Network card status parameters:
[0154] NIC Name: A unique identifier for the virtual NIC.
[0155] NIC Status: Whether the NIC is active, such as UP or DOWN.
[0156] MAC address: the physical address of the network card.
[0157] IP address: The network address of the network card.
[0158] Subnet Mask: The subnet mask of the network card.
[0159] Gateway address: The default gateway address of the network card.
[0160] Transfer Speed: The connection speed of the network card, such as 100 Mbps or 1 Gbps.
[0161] Working Mode: The working mode of the network card, such as hybrid mode or direct mode.
[0162] 2. Network card performance parameters:
[0163] Packet receiving rate: The rate at which the network card receives data packets.
[0164] Packet sending rate: The rate at which the network card sends data packets.
[0165] Packet loss rate: the rate at which network card packets are lost.
[0166] Error rate: The ratio of network card transmission data errors.
[0167] Latency: The time it takes for a network card to send a data packet to the receiving end.
[0168] Jitter: The delay variation range of data packets sent by the network card.
[0169] 3. Other parameters:
[0170] Virtual NIC Type: The type of the virtual NIC, such as PCI (Peripheral Component Interconnect) or USB (Universal Serial Bus).
[0171] Driver Version: The version of the virtual network adapter driver.
[0172] Virtual NIC configuration information: configuration information of the virtual NIC, such as MTU (Maximum Transmission Unit) and MSS (Maximum Segment Size).
[0173] In a specific implementation, the initial status information of the virtual network card can be obtained in the following manner.
[0174] Use the API provided by the operating system:
[0175] Most operating systems provide APIs to obtain the operation data of virtual network cards. For example, in Linux, you can use the ifconfig or ethtool command to obtain the network card status and performance parameters. In Windows, you can use the NetSh command or WMI to obtain network card information.
[0176] Using third-party libraries:
[0177] There are some third-party libraries that can be used to obtain the operation data of the virtual network card. For example, in Python, you can use the scapy library to obtain network card information.
[0178] Direct access to the network card registers:
[0179] For advanced users, you can directly access the network card registers to obtain the network card's operating data. This requires a deep understanding of the network card hardware and drivers.
[0180] Here are some examples of getting virtual network card operation data:
[0181] Use the ifconfig command to obtain the Linux network card status:
[0182] ifconfig eth0
[0183] Use the ethtool command to obtain Linux network card performance parameters:
[0184] ethtool eth0
[0185] Use NetSh command to get Windows network card information:
[0186] NetSh interface show ip address
[0187] Use WMI to obtain Windows network card configuration information:
[0188] wmic baseboard get product,Manufacturer
[0189] Use the scapy library to obtain Python network card information:
[0190] Python
[0191] from scapy.all import *
[0192] interfaces = scapy.all.ifaces.findall()
[0193] for iface in interfaces:
[0194] print(iface.name, iface.stats)
[0195] After obtaining the initial state information of the virtual network card, it can be stored in the threshold space for analysis and processing. For example, the initial state information of the virtual network card can be used to monitor the performance of the network card, detect network card failures, or perform network traffic analysis.
[0196] The initial state information of the embodiment of the present invention at least includes network card state parameters, network card performance parameters, virtual network card type, driver version and virtual network card configuration information. The step of collecting the initial state information of the virtual network card includes: when the virtual network card is configured with an application programming interface, calling the application programming interface to obtain the initial state information of the virtual network card; when the virtual network card is configured with a network card register, accessing the network card register and reading the initial state information of the virtual network card from the network card register, so that the initial state information can more accurately reflect the performance state of the virtual network card, and at the same time, it also improves the efficiency of obtaining the initial state information.
[0197] In an optional embodiment of the present invention, it also includes:
[0198] In response to detecting an abnormal health status of any network card through the health status information, determining business data for the business resource, performing a redundant backup operation on the virtual network card, and generating backup data for the business data.
[0199] In a specific implementation, the embodiment of the present invention can prioritize redundant backup operations in the storage system when any network card is abnormal, to ensure that the abnormal unit does not affect the business, and can also extract and analyze the functions of the abnormal network card, and after obtaining the analysis results, determine the values of various virtualization functions of the abnormal network card, and re-divide the various values after the extraction is completed. Exemplarily, it can be implemented in the following way:
[0200] 1. Data Collection
[0201] Collect network card related performance data, including but not limited to:
[0202] Number of NIC packets sent and received, NIC error rate, NIC packet loss rate, NIC utilization rate, and NIC latency;
[0203] Collect host-related performance data, including but not limited to:
[0204] CPU usage, memory usage, disk I / O usage, network traffic.
[0205] 2. Data Preprocessing
[0206] Clean the collected data to remove outliers and missing values;
[0207] Normalize the data to have the same dimensions and distribution.
[0208] 3. Feature extraction
[0209] Extract features related to abnormal network cards from the raw data; for example, you can use statistical features such as mean, variance, minimum, maximum, etc.; you can also use time series features such as trend, seasonality, autocorrelation, etc.; you can also use machine learning methods to extract more complex features.
[0210] 4. Anomaly Detection
[0211] Use machine learning or statistical methods to analyze the extracted features and identify abnormal network cards; for example, supervised learning methods such as support vector machines and random forests can be used; unsupervised learning methods such as clustering and outlier detection can be used;
[0212] 5. Virtualization Function Analysis
[0213] Once the abnormal NIC is identified, analyze its virtualization functions by extracting information from configuration files, system logs, or other relevant sources to determine the value of each function; the specific method will depend on the type of virtualization technology and the operating system used.
[0214] 6. Performance Evaluation
[0215] Evaluate the performance of anomaly detection models, such as precision, recall, F1 score, etc.
[0216] Optimize the model to improve its performance.
[0217] The embodiment of the present invention determines the business data for the business resources in response to any abnormal health status of the network card monitored through the health status information, performs redundant backup operations on the virtual network card, generates backup data for the business data, and ensures data security when the network card status is abnormal.
[0218] In an optional embodiment of the present invention, the network card with abnormal health status is configured with a corresponding control network card, further comprising:
[0219] In response to detecting that the health status of any network card is abnormal through the health status information, sending a data application instruction to a front-end device that interacts with the network card with the abnormal health status, so as to control the front-end device to stop interacting with the network card with the abnormal health status;
[0220] Assign tasks to the control network card, and control the control network card to perform data interaction with the front-end device.
[0221] In actual applications, a control network card (also known as a manageable network card or smart network card) is a type of network card that, in addition to the functions of a standard network card, also provides additional management and security functions. These functions can be used to improve the performance, security, and manageability of the network; the front-end device can be a front-end server.
[0222] In a specific implementation, an embodiment of the present invention can send an instruction to another controller cascaded with a storage device in response to detecting an abnormal health status of any network card through health status information, so as to assign tasks to the controlling network card corresponding to the abnormal network card, and transfer the task currently processed by the abnormal network card to the controlling network card. At the same time, a data application instruction is sent to the front-end server cascaded with the controlling network card. After receiving the data application instruction, the server terminates the service on the abnormal network card side, and assigns the service to the controlling network card side, so as to control the data interaction between the controlling network card and the front-end device.
[0223] According to an embodiment of the present invention, in response to detecting an abnormal health status of any network card through the health status information, a data request instruction is sent to a front-end device that interacts with the network card with the abnormal health status, so as to control the front-end device to stop interacting with the network card with the abnormal health status; tasks are assigned to the controlled network card, and the controlled network card is controlled to interact with the front-end device, thereby minimizing the impact of the abnormal network card status on the business, thereby improving the reliability of the storage device.
[0224] In an optional embodiment of the present invention, it also includes:
[0225] Isolating the network card with abnormal health status, and obtaining second operation status information of the virtual network card after isolating the network card with abnormal health status; the second operation status information includes the current bandwidth rate of the virtual network card;
[0226] Counting the change of each parameter in the second operating state information compared with the corresponding parameter in the initial state information;
[0227] When the change range of any parameter in the second operation status information is greater than a preset change range threshold, sending a task evaluation instruction to the front-end device to control the front-end device to feedback a target bandwidth for the currently executed service;
[0228] When the current bandwidth rate is lower than the target bandwidth, a padding operation is performed on the bandwidth rate of the virtual network card based on the target bandwidth.
[0229] In a specific implementation, the embodiment of the present invention can reintegrate the virtual network card function after the redundant backup operation is completed, remove the abnormal module in the virtual network card, that is, isolate the network card with abnormal health status, and obtain the second operating status information of the virtual network card after isolating the network card with abnormal health status. The second operating status information may include the current bandwidth rate of the virtual network card, and count the change amplitude of each parameter in the second operating status information compared with the corresponding parameter in the initial status information; when the change amplitude of any parameter in the second operating status information is greater than the preset change amplitude threshold, send a task evaluation instruction to the front-end device to control the front-end device to feedback the target bandwidth for the currently executed business. When the current bandwidth rate is lower than the target bandwidth, perform a padding operation on the bandwidth rate of the virtual network card based on the target bandwidth. Exemplarily, after the abnormal network card is removed from the virtual network card, the function parameters can be recalculated. At this time, after the functional parameters are reintegrated, a balance judgment is performed. If the parameters of a certain function change by more than 10% due to the removal of the abnormal network card, the abnormal function is recorded first, and it is considered that the function after the virtualized network card is abnormal. The input and output rates are filled first. The system sends a data task evaluation instruction to the front end. The front-end server will count the bandwidth required for the current business. After the front-end server completes the statistics, the storage bandwidth can be filled according to the target bandwidth fed back by the front-end server. Specifically, the current bandwidth rate can be compared with the fed back target rate. If the current bandwidth rate is higher than the feedback bandwidth (target bandwidth), the current state is maintained. If it is lower than the target bandwidth, the overall rate of the virtual network card is increased. The controller takes system pressure, CPU frequency spreading and other operations to increase the overall rate after virtualization to the required rate. At this time, the rate adjustment is completed.
[0230] In an embodiment of the present invention, the network card with abnormal health status is isolated, and the second operating status information of the virtual network card after the network card with abnormal health status is isolated is obtained; the second operating status information includes the current bandwidth rate of the virtual network card; the change amplitude of each parameter in the second operating status information compared with the corresponding parameter in the initial status information is counted; when the change amplitude of any parameter in the second operating status information is greater than a preset change amplitude threshold, a task evaluation instruction is sent to the front-end device to control the front-end device to feedback the target bandwidth for the currently executed business; when the current bandwidth rate is lower than the target bandwidth, a padding operation is performed on the bandwidth rate of the virtual network card based on the target bandwidth, thereby ensuring the data transmission rate when the network card abnormality occurs, and minimizing the impact of the network card abnormality on the business, thereby improving the reliability of the storage device.
[0231] In an optional embodiment of the present invention, after the step of performing a padding operation on the bandwidth rate of the virtual network card based on the target bandwidth, the method further includes:
[0232] Determine target ratio;
[0233] Determine an update input rate for the virtual network card after performing the padding operation, and a total data volume and an output data volume for the currently executed service;
[0234] Calculating the sum of the total data volume and the output data volume;
[0235] Calculating a data processing rate ratio of the sum of the data amounts to the update input rate;
[0236] An update function code for the virtual network card pair is generated based on the data processing rate ratio and the target ratio.
[0237] In the embodiment of the present invention, on the basis of function adjustment and rate adjustment, virtual function parameters of four functions, namely, data packaging, verification, compression, and data transmission, can be adjusted respectively based on input and output rates.
[0238] In practical applications, the system efficiency is highest when the ratio of the back-end data processing rate to the front-end input data rate is 3:1. The target ratio can be determined as 3:1. Then, after the padding operation is performed, the update input rate for the virtual network card, the total data volume and the output data volume for the currently executed business can be determined, and the sum of the total data volume and the output data volume can be calculated; if the ratio of the sum of the data volume to the data processing rate of the update input rate is higher than 3:1, the current back-end processing efficiency is higher than the front-end. At this time, the thresholds of the verification and data transmission functions can be enhanced to reduce the back-end rate to ensure reliability. When the ratio of the sum of the data volume to the data processing rate of the update input rate is lower than 3:1, the data packaging and compression functions should be enhanced to allow the front-end input data to be compressed, and the output end only needs to process the compressed data, thereby increasing the data processing volume of the back-end. By adjusting the virtual function parameters of the four functions of data packaging, verification, compression, and data transmission, an update function code for the virtual network card can be obtained, so that the virtual network card can execute the currently executed business through the update function code, thereby improving the data processing efficiency of the virtual network card.
[0239] In order to enable those skilled in the art to better understand the embodiment of the present invention, an example is used below to illustrate the embodiment of the present invention.
[0240] refer to Figure 2 , Figure 2 It is a schematic diagram of a process of network card virtualization provided in an embodiment of the present invention; Figure 2 The storage device plug-in card management process is shown. By solving the problem that a large number of storage device plug-in cards are difficult to monitor, manage and diagnose faults, the basis of the software algorithm is a storage multi-network card virtualization management algorithm process. The system first counts the number and status of the current online external cards, sends a request signal to the current external card through the I2C link, and the external card sends a response signal after receiving the request signal. The system counts and sends a status read instruction to the online external card and allocates the external card ID number. First, read the current external card data transmission rate and data transmission object. For SAS cards and OCP 8733 cards connected to JBOD and JBOF expansion hard disk arrays, the data transmission object is the back-end expansion disk area, which is connected to the JBOD and JBOF controller end through PCIE cables. The data transmission rate of the above-mentioned types of external cards is recorded as the output rate, and the current output rate is added as the input rate of the virtual network card. Similarly, for FC cards and various network cards connected to switches, the system reads the input data of the front-end server through the network card, and then stores the data on the disk. Therefore, for this type of network card, its transmission rate is used as the output rate of the virtual network card after virtualization is completed, thereby integrating the high-speed input and output rates of the virtual network card.
[0241] The virtualization control kernel is the process of virtualizing and integrating the data processing and control functions of various network cards. The network card is used to realize data packaging, verification, compression, and finally complete data transmission and delivery. For storage servers, the external card may perform these four functions respectively during the execution of business. Therefore, the function code FD is allocated on the basis of the ID allocation of a single card. The function code FD contains the function bit plus the function parameter bit and the function status bit. The function bit and the function parameter are (packaging, verification, compression, and delivery correspond to 00~04 of the function code respectively, and the function parameter is the quantification of the maximum threshold of the function in the manual). According to the function manual of the network card, it is unchanged. After combining and connecting the ID and FD, the final code is obtained. The virtual network card organizes the final code and connects it into a data segment as the virtual network card function code. The format of the virtual network card function code is as follows. According to the function code FD, the function threshold on each network card is integrated to obtain the overall threshold of the function. The threshold of each function is integrated to obtain the second part of the virtual function code. The third part is to integrate the actual processing capacity according to the actual situation of the current function operation and add it to the virtual function code. The health status monitoring unit of the virtual network card reads the health status of each network card through the I2C link. After the reading is completed, the health status is evaluated quantitatively as a whole. In the evaluation process, a single network card mapping method is adopted, that is, if there is an abnormality in a certain network card in the network card, it is considered that the virtualized network card as a whole is abnormal, so as to quickly respond to repairs. The CPU reads the status values of each network card through the I2C link, including the current temperature, the working utilization rate of the network card chip, the Flash space in the network card and other parameters, and selects the worst parameters of these network card parameters to form a health status set. The status set is updated in real time as time changes, and the parameters in the current status set are analyzed based on historical experience. For a network card, at this temperature, if the working utilization rate and flash space have exceeded the normal upper limit, an alarm message is sent, and it is considered that the virtualized network card is in an abnormal state.
[0242] refer to Figure 3 Figure 3 is a flow chart of a network threshold management method provided in an embodiment of the present invention;
[0243] Figure 3It shows that the functional threshold management of the network card is mainly achieved by coupling the above virtualization parameters, and refreshing the current threshold in real time according to the evaluation results after coupling, which is convenient for subsequent fault management. The algorithm performs real-time diagnosis and refresh of the above virtualized parameter thresholds. The specific process is to establish a part of threshold space in the back-end disk space of the storage device to store the state parameters of the virtual network card. The network card can access this space at any time and modify and refresh it in real time. After the space is created, the initial threshold state of the virtualized network card is obtained. The method is to record the sum of the single highest performance of all network cards during the reliability test according to the performance limit parameters of various network cards. The experimental value is used as the highest indicator of the performance of the virtualized network card, and this highest indicator is refreshed in real time. After the highest indicators of all network cards are obtained, parameter coupling is performed. During the coupling process, the influence of various constantly changing parameter values is analyzed, and the change frequency of each parameter in the current data processing time period is counted. The 30% most frequently changing functional parameter values are selected as influencing factors, and the remaining parameter values are used as fixed factors. The change relationship between the fixed factors and the influencing factors is obtained. When the fixed factor changes slightly, the degree of change of the influencing factor of each card is much higher than the fixed factor. The fixed factor at the future moment is set as a constant variable (exception is refreshed every two time periods). According to the current relationship, the change of the influencing factor of each network card at the future moment (the influencing factor of the next time period) can be obtained. Finally, after the fixed factor and the influencing factor are virtualized according to the first part, the final threshold situation is obtained, that is, the threshold refresh is completed at this time, which can reflect the parameter changes at the future moment.
[0244] refer to Figure 4 , Figure 4 It is a flow chart of a virtual network card updating method provided in an embodiment of the present invention;
[0245] Based on the network card virtualization management process, when the ratio is lower than the set threshold, it is determined that the current function and performance parameters are abnormal and reported. When a certain network card is abnormal, the storage system gives priority to redundant backup operations to ensure that the abnormal unit does not affect the business. Specifically, the functions of the abnormal network card are extracted and analyzed, and the values of various virtualization functions of this abnormal network card are analyzed. After the extraction is completed, the various values are re-divided, and instructions are sent to another controller cascaded with the device. After receiving the instructions, the control network card corresponding to the abnormal network card is assigned tasks, and the tasks currently processed by the abnormal network card are transferred to the control network card , send a data request instruction to the front-end server cascaded with the control network card. After receiving the instruction, the server terminates the business of the abnormal network card end and distributes the business to the control network card end; after the redundant operation is completed, the virtual network card function is reintegrated, the abnormal module is removed from the virtual network card and the functional parameters are recalculated. At this time, a balance judgment is performed after the functional parameters are reintegrated. If the parameter of a certain function changes by more than 10% due to the removal of the abnormal module, the abnormal function is recorded first. The system believes that the function after the virtualized network card is abnormal. The system prioritizes the input and output rates. The system sends a data task evaluation instruction to the front end. The front end will count the bandwidth required for the current business. After the statistics are completed, the storage bandwidth will be supplemented according to the feedback from the front end. The input and output bandwidth rates after virtualization will be compared with the feedback. If it is higher than the feedback bandwidth, the current state will be maintained. If it is lower than the current bandwidth, the overall rate of the virtual network card will be increased. The controller will take system pressure, CPU frequency spreading and other operations to increase the overall rate after virtualization to the required rate. At this time, the rate adjustment is completed; based on the rate adjustment, the function adjustment takes the input and output rates as conditions to adjust the virtual function parameters of the four functions of data packaging, verification, compression, and data transmission. The adjustment method is to press According to past experience, the system efficiency is highest when the ratio of the back-end data processing rate to the front-end input data rate is 3:1. At this time, the amount of data used by the virtualized network card in executing the above functions is superimposed to see whether the sum of the amount of data used to execute the function and the amount of output data meets the relationship with the input rate ratio of 3:1. If it is higher than 3:1, the current back-end processing efficiency is higher than the front-end. At this time, the threshold of the enhanced verification and data transmission functions is reduced to the back-end rate to ensure reliability. When it is lower than 3:1, the data packaging and compression function is enhanced, which can compress the front-end input data. The output end only needs to process the compressed data, which improves the data processing capacity of the back-end.
[0246] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0247] Reference Figure 5 , shows a structural block diagram of a computer program product provided by an embodiment of the present invention. The computer program product includes a computer program / instruction 501, and when the computer program / instruction 501 is executed by a processor, the steps of the external card management method of the storage device described above are implemented.
[0248] In addition, an embodiment of the present invention further provides an electronic device, comprising: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the embodiment of the external card management method of the above-mentioned storage device are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
[0249] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the embodiment of the external card management method of the storage device described above is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0250] Figure 6 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.
[0251] The electronic device 600 includes but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.
[0252] It should be understood that in the embodiment of the present invention, the radio frequency unit 601 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 610 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 601 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 601 can also communicate with the network and other devices through a wireless communication system.
[0253] The electronic device provides users with wireless broadband Internet access through the network module 602, such as helping users to send and receive emails, browse web pages, and access streaming media.
[0254] The audio output unit 603 can convert the audio data received by the RF unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output it as sound. Moreover, the audio output unit 603 can also provide audio output related to a specific function performed by the electronic device 600 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, etc.
[0255] The input unit 604 is used to receive audio or video signals. The input unit 604 may include a graphics processor (GPU) 6041 and a microphone 6042. The graphics processor 6041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 606. The image frame processed by the graphics processor 6041 can be stored in the memory 609 (or other storage medium) or sent via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 601 in the case of a telephone call mode.
[0256] The electronic device 600 also includes at least one sensor 605, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 6061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 6061 and / or the backlight when the electronic device 600 is moved to the ear. As a type of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 605 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.
[0257] The display unit 606 is used to display information input by the user or information provided to the user. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
[0258] The user input unit 607 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 607 includes a touch panel 6071 and other input devices 6072. The touch panel 6071, also known as a touch screen, can collect user touch operations on or near it (such as operations performed by users using fingers, styluses, or any other suitable objects or accessories on or near the touch panel 6071). The touch panel 6071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact point coordinates, and then sends it to the processor 610, receives the command sent by the processor 610 and executes it. In addition, the touch panel 6071 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 6071, the user input unit 607 may also include other input devices 6072. Specifically, other input devices 6072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be described in detail here.
[0259] Furthermore, the touch panel 6071 may be overlaid on the display panel 6061. When the touch panel 6071 detects a touch operation on or near it, it is transmitted to the processor 610 to determine the type of touch event. Then, the processor 610 provides corresponding visual output on the display panel 6061 according to the type of touch event. Figure 6 In the figure, the touch panel 6071 and the display panel 6061 are used as two independent components to realize the input and output functions of the electronic device. However, in some embodiments, the touch panel 6071 and the display panel 6061 can be integrated to realize the input and output functions of the electronic device, which is not limited here.
[0260] The interface unit 608 is an interface for connecting an external device to the electronic device 600. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 608 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 600 or may be used to transmit data between the electronic device 600 and an external device.
[0261] The memory 609 can be used to store software programs and various data. The memory 609 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 609 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0262] The processor 610 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. By running or executing software programs and / or modules stored in the memory 609 and calling data stored in the memory 609, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. The processor 610 may include one or more processing units; preferably, the processor 610 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 610.
[0263] The electronic device 600 may also include a power supply 611 (such as a battery) for supplying power to various components. Preferably, the power supply 611 may be logically connected to the processor 610 via a power management system, thereby managing functions such as charging, discharging, and power consumption through the power management system.
[0264] In addition, the electronic device 600 includes some functional modules not shown, which will not be described in detail here.
[0265] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0266] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0267] like Figure 7 As shown, in another embodiment provided by the present invention, a computer-readable storage medium 701 is also provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the external card management method of the storage device described in the above embodiment.
[0268] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0269] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0270] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0271] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0272] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0273] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0274] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0275] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A method for managing an external card of a storage device, It is characterized in that include: Acquire first operation status information for one or more of the external cards; In response to determining that the external card is online through the first operation status information, determining a data transmission rate of the external card, a data transmission object, and a service resource for the data transmission object; Determine the target output rate by using the data transmission rates of all external cards whose device types are serial interface storage devices; Determine the target input rate by using the data transmission rates of all external cards whose device types are Fibre Channel interface storage devices; Creating a virtual network card using the target output rate and the target input rate; The business resources are managed through the virtual network card, and the virtual network card is used to virtualize, integrate and uniformly control the functions of the external card.
2. The method according to claim 1, It is characterized in that The step of managing the service resources through the virtual network card includes: In response to determining that the external card is online through the first operating status information, sending a device identification and a function code to the external card, wherein the device identification is used to mark the external card; Determine the marked function bit and function parameter bit of the external card through the function code; constructing a target code using the device identifier and the function code; Determining a target function for the service resource by means of the function bit in the target code; Determining a target external card for executing the target function from the external cards based on the target function; Determining an overall threshold parameter of the target external plug-in card based on the functional parameter bits in the target code; The target external card is controlled by the virtual network card to execute the target function based on the overall threshold parameter.
3. The method according to claim 1, It is characterized in that The storage device is configured with multiple network cards, the virtual network card is configured with a health monitoring unit, and further includes: Calling the health monitoring unit to read the health status information of the network card through a serial communication bus link; In response to detecting that the health status of any network card is abnormal through the health status information, it is determined that the health status of the virtual network card is abnormal.
4. The method according to claim 3, It is characterized in that The health status information includes the current operating temperature, the working utilization rate of the network card chip and the flash memory space parameters in the network card, and also includes: Determine the historical network card chip working utilization and historical network card internal flash memory space parameters corresponding to the current operating temperature; When the network card operates at the current operating temperature, if the network card chip utilization is greater than the historical network card chip utilization, or the flash memory space parameter in the network card is greater than the historical flash memory space parameter in the network card, then it is determined that the health status of the network card is abnormal.
5. The method according to claim 1, It is characterized in that Before the step of managing the service resources through the virtual network card, the method further includes: Based on a preset data processing time period, collecting initial state information of the virtual network card; Counting the frequency of changes of each parameter in the initial state information within the data processing time period; Sort each parameter in the initial state information based on the change frequency to obtain a parameter frequency sequence; According to a preset percentage, a parameter whose change frequency is greater than a preset threshold is selected from the parameter frequency sequence and determined as an influencing factor; Determine the parameters in the parameter frequency sequence that are not determined as the influencing factors as fixed factors; Determine the fixed factor as a constant variable, and analyze the changing relationship between the fixed factor and the influencing factor; Predicting a change in the impact factor for the impact factor at a future moment based on the change relationship, and determining a future moment impact factor for the future moment based on the change in the impact factor; The future moment influencing factor and the fixed factor are combined to determine the target state parameter threshold.
6. The method according to claim 5, It is characterized in that Also includes: constructing a threshold space in a back-end disk space of the storage device; Determining an initial state parameter threshold corresponding to the initial state information; Storing the initial state parameter threshold in the threshold space; In response to the determining of the target state parameter threshold, the target state parameter threshold is stored in the threshold space and replaces the initial state parameter threshold.
7. The method according to claim 5 or 6, It is characterized in that The initial state information at least includes network card state parameters, network card performance parameters, virtual network card type, driver version and virtual network card configuration information, and the step of collecting the initial state information of the virtual network card includes: When the virtual network card is configured with an application programming interface, calling the application programming interface to obtain initial state information of the virtual network card; When the virtual network card is configured with a network card register, the network card register is accessed, and initial state information of the virtual network card is read from the network card register.
8. The method according to claim 3 or 4, It is characterized in that Also includes: In response to detecting an abnormal health status of any network card through the health status information, determining business data for the business resource, performing a redundant backup operation on the virtual network card, and generating backup data for the business data.
9. The method according to claim 8, It is characterized in that The network card with abnormal health status is configured with a corresponding control network card, and further includes: In response to detecting that the health status of any network card is abnormal through the health status information, sending a data application instruction to a front-end device that interacts with the network card with the abnormal health status, so as to control the front-end device to stop interacting with the network card with the abnormal health status; Assign tasks to the control network card, and control the control network card to perform data interaction with the front-end device.
10. The method according to claim 9, It is characterized in that Also includes: Isolating the network card with abnormal health status, and obtaining second operation status information of the virtual network card after isolating the network card with abnormal health status; The second operation status information includes the current bandwidth rate of the virtual network card; Counting the change of each parameter in the second operating state information compared with the corresponding parameter in the initial state information; When the change range of any parameter in the second operation status information is greater than a preset change range threshold, sending a task evaluation instruction to the front-end device to control the front-end device to feedback a target bandwidth for the currently executed service; When the current bandwidth rate is lower than the target bandwidth, a padding operation is performed on the bandwidth rate of the virtual network card based on the target bandwidth.
11. The method according to claim 10, It is characterized in that After the step of performing a padding operation on the bandwidth rate of the virtual network card based on the target bandwidth, the method further includes: Determine target ratio; Determine an update input rate for the virtual network card after performing the padding operation, and a total data volume and an output data volume for the currently executed service; Calculating the sum of the total data volume and the output data volume; Calculating a data processing rate ratio of the sum of the data amounts to the update input rate; An update function code for the virtual network card pair is generated based on the data processing rate ratio and the target ratio.
12. The method according to claim 8, It is characterized in that Also includes: Generate abnormal alarm information for the network card with abnormal health status.
13. A computer program product comprising a computer program / instructions, It is characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to claim 1 are implemented.
14. An electronic device, It is characterized in that It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 12 when executing the program stored in the memory.
15. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Terminal identifier processing method, server and terminal
CN108540582A
Server out-of-band data management method, device and equipment and readable storage medium
CN112468333A
External network card technology for various user terminal devices
CN113037737A
Server fault processing method, system and device and readable storage medium
CN113608908A
Automatic repairing method and device of equipment, electronic equipment and storage medium
CN115756941A
