Error file detection and collection method, device, equipment and storage medium
By obtaining the public key file, password-free login and automatic detection are realized, and error files are cyclically transferred, which solves the problem of cumbersome error file detection and collection process in the storage system, improves efficiency and simplicity, and reduces operation and maintenance costs.
Patent Information
- Application Number
- CN202210706787.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-21
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2042-06-21
AI Technical Summary
In complex storage systems, the detection and collection process of error files is cumbersome and can easily lead to the loss of error files. Moreover, the existing technology relies on GUI alarms or manual login, which is time-consuming and insufficiently automated.
By obtaining the public key file, you can log in to each storage node without a password, and cycle through whether there are error files in the storage directory. If they exist, they will be transferred to the server's dedicated directory to achieve automated collection of error files.
It improves the efficiency of error file detection and collection, reduces the complexity of testers, simplifies the discovery and analysis of storage system problems, and reduces operation and maintenance costs.
Smart Images

Figure CN115114111B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data storage, and in particular to a method, device, equipment and storage medium for detecting and collecting error files. Background Art
[0002] A backup file system refers to recording the contents of an entire storage device or a portion of a storage device in another storage device at a specific moment. Here, the purpose of storage is to prevent data in a readable format from being copied from the primary or secondary storage to an external medium, such as a tape, disk, or printer, after an error occurs. The prerequisite for a backup file system is to collect files that carry error information, that is, when an error occurs in the storage system during use, the storage system will automatically generate an error file in the storage directory to record the error information.
[0003] In the traditional implementation method, during the testing process, developers generally detect whether an error file is generated by storing GUI alarms or by entering the storage directory to check, and then collect the error files.
[0004] However, sometimes the GUI interface does not necessarily generate an alarm after the storage system generates an error file. This requires testers to manually log in to each storage node to check whether there is an error file. When the storage system is more complex, it is extremely time-consuming to check each storage node. In addition, when an error occurs in the storage system, it is likely to trigger a system reinstall, resulting in the loss of the error file. Summary of the invention
[0005] Based on this, the present application provides a method, apparatus, device and storage medium for detecting and collecting error files to realize automatic detection and collection operations on error files of each storage node, thereby achieving the effect of improving test efficiency.
[0006] In a first aspect, a method for detecting and collecting error files is provided, the method comprising:
[0007] Obtain the public key file and log in to each storage node without password based on the public key file;
[0008] Circularly check whether there are error files in the storage directory of each storage node;
[0009] If an error file exists during the detection, the error file will be transferred to the server's dedicated error file directory and enter the next detection cycle;
[0010] If no error file exists during the detection, the next detection cycle will be entered directly.
[0011] According to an achievable method in an embodiment of the present application, obtaining a public key file and logging into each storage node without a password according to the public key file include:
[0012] Send the public key file to each storage node, call the IP and password of each storage node, perform configuration operations on each storage node, and obtain the corresponding configuration information;
[0013] Log in to each storage node without a password according to the corresponding configuration information.
[0014] According to an achievable method in an embodiment of the present application, cyclically detecting whether there is an error file in the storage directory of each storage node includes:
[0015] A preset search command is used within a preset time interval to regularly cycle detection of whether there are error files in the storage directory of each storage node.
[0016] According to an achievable method in an embodiment of the present application, the preset search command is:
[0017] Run the command to check whether there is an error file in the storage directory of the storage node according to the suffix of the error file.
[0018] According to an achievable method in an embodiment of the present application, if an error file is detected, the error file is transferred to a dedicated error file directory of the server, including:
[0019] If an error file is detected, the error type information of the error file will be obtained and a corresponding txt file will be generated;
[0020] Rename the txt file according to the error type information to obtain the error type information file;
[0021] Transfer the error file and error type information file to the server-specific error file directory.
[0022] According to an achievable method in an embodiment of the present application, the error type information of the error file is obtained, including:
[0023] Use the preset positioning search command to query the error file and capture the error type information of the error file.
[0024] According to an achievable method in an embodiment of the present application, the error file and the error type information file are transferred to a dedicated error file directory of the server, including:
[0025] The error file and the error type information file are transferred to the dedicated error file directory of the server through the preset SCP command.
[0026] In a second aspect, a device for detecting and collecting error files is provided, the device comprising:
[0027] The login module is used to obtain the public key file and log in to each storage node without password according to the public key file;
[0028] A detection module is used to cyclically detect whether there are error files in the storage directory of each storage node;
[0029] The transfer cycle module is used to transfer the error file to the server's dedicated error file directory if an error file is detected, and enter the next detection cycle;
[0030] The loop module is used to directly enter the next detection loop if no error file exists during the detection.
[0031] In a third aspect, a computer device is provided, comprising:
[0032] at least one processor; and
[0033] a memory communicatively connected to at least one processor; wherein,
[0034] The memory stores computer instructions that can be executed by at least one processor, and the computer instructions are executed by at least one processor to enable the at least one processor to execute the method involved in the first aspect above.
[0035] In a fourth aspect, a computer-readable storage medium is provided, on which computer instructions are stored, characterized in that the computer instructions are used to enable a computer to execute the method involved in the above-mentioned first aspect.
[0036] According to the technical content provided by the embodiment of the present application, by obtaining the public key file, each storage node is logged in without a password according to the public key file; the storage directory of each storage node is cyclically detected to see whether there is an error file; if an error file is detected, the error file is transferred to the server-specific error file directory and the next detection cycle is entered; if no error file is detected, the next detection cycle is directly entered. This can automatically, quickly and accurately collect the error files of each storage node, effectively reduce the complexity of testers collecting error information of each storage node, and facilitate the discovery and analysis of problems generated by the storage system, so as to reduce the cost of later operation and maintenance and improve the simplicity of testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 An application environment diagram of a method for detecting and collecting error files in an embodiment;
[0038] Figure 2 A schematic diagram of a flow chart of a method for detecting and collecting error files in an embodiment;
[0039] Figure 3A schematic diagram of a preferred flow chart of a method for detecting and collecting error files in an embodiment;
[0040] Figure 4 It is a structural block diagram of a detection and collection device for error files in one embodiment;
[0041] Figure 5 FIG. 4 is a schematic structural diagram of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] The present application provides a method for detecting and collecting error files, which can be applied to Figure 1 In the application environment shown. Among them, each storage node 102 communicates with the server 104 through the network. The server 104 obtains the public key file and logs in to each storage node 102 without password according to the public key file; it cyclically detects whether there is an error file in the storage directory of each storage node 102; if the server 104 detects that there is an error file, it transfers the error file to its dedicated error file directory and enters the next detection cycle; if the server 104 detects that there is no error file, it directly enters the next detection cycle without any processing. Here, each storage node 102 can be but not limited to various personal computers, laptops, and tablet computers, and the server 104 can be implemented with an independent server or a server cluster composed of multiple servers.
[0044] Figure 2 A flowchart of a method for detecting and collecting error files provided in an embodiment of the present application, the method can be performed as follows Figure 1 The server 104 in the system shown executes. Figure 2 As shown, the method may include the following steps:
[0045] Step 201: Obtain a public key file, and log in to each storage node without a password based on the public key file.
[0046] Generally, when users log in to the client, they need to enter a password for verification. Therefore, users need to create a pair of key files based on the security protocol at the application layer and store the public key files on the server. When logging in, the client will send a request to the server to use the key file for security verification. After receiving the request, the server will search for the corresponding public key file in its main directory for verification. If the verification is successful, the public key file is used to encrypt the "challenge" and send it to the client. After receiving the "challenge", the client enters the private key file for decryption and sends it to the server for verification. Once the verification is successful, the login is completed.
[0047] Here, the server creates and obtains a public key file, and can directly configure each storage node based on the public key file to achieve the effect of password-free login, and no longer requires the user to enter the private key file one by one to directly complete the login of each storage node. Among them, each storage node can be a client connected to the server for communication.
[0048] Step 203: cyclically check whether there is an error file in the storage directory of each storage node. If so, execute step 205; if not, execute step 207.
[0049] The storage directory may be a dump directory; the error file may be a dump file, which is a file generated by collecting error information generated by each storage node after the error information is generated. Through this file, R&D personnel can locate the error information in a timely manner.
[0050] Here, the server can automatically and cyclically detect whether there is a dump file in the dump directory of each storage node. There is no need to rely on the storage node GUI (Graphical user interface) alarm, or to enter the dump directory to check whether a dump file is generated.
[0051] Step 205: The error file is transferred to the server-specific error file directory.
[0052] Specifically, if the server detects the existence of an error file, it will transfer the error file to its dedicated error file directory, wherein the transfer process is called collection, and after the transfer is completed, the next detection cycle operation can be entered. Here, the error file, i.e., the dump file, can be collected through the transfer operation, so that the staff can directly correct the error according to the error file in the dedicated error directory.
[0053] Step 207: Enter the next detection cycle operation.
[0054] Here, if no error file exists, no processing is needed and the next detection cycle is entered directly. It should be noted that since the detection and collection of error files is a cyclic operation process, the next detection cycle needs to be entered regardless of whether an error file is detected.
[0055] It can be seen that the embodiment of the present application obtains the public key file, logs in to each storage node without password according to the public key file; loops to detect whether there is an error file in the storage directory of each storage node; if it is detected that there is an error file, the error file is transferred to the server-specific error file directory and enters the next detection cycle; if it is detected that there is no error file, it directly enters the next detection cycle. This can automatically, quickly and accurately collect the error files of each storage node, effectively reduce the complexity of testers collecting error information of each storage node, and facilitate the discovery and analysis of problems generated by the storage system, so as to reduce the cost of later operation and maintenance and improve the simplicity of testing.
[0056] The following describes each step in the above method flow in detail. First, the above step 201, namely "obtaining a public key file and logging into each storage node without a password according to the public key file", is described in detail in conjunction with the embodiment.
[0057] Send the public key file to each storage node, call the IP and password of each storage node at the same time, perform configuration operations on each storage node, and obtain the corresponding configuration information; according to the corresponding configuration information, log in to each storage node without password.
[0058] Here, since the public key file and the private key file are a key pair (i.e., a public key and a private key) obtained through an algorithm, the public key file is the public part of the key pair, and the private key file is the non-public part. The public key file is usually used to encrypt session keys, verify digital signatures, or encrypt data that can be decrypted with the corresponding private key. The key pair obtained through this algorithm can be guaranteed to be unique worldwide. When using this key pair, if one of the keys is used to encrypt a piece of data, the other key must be used to decrypt it. For example, data encrypted with a public key file must be decrypted with a private key file.
[0059] Specifically, the IP and password of each storage node are the private key files of each storage node. The server sends the public key file to the upgrade folder of each storage node. At the same time, it calls the IP and password of each storage node input by the user keyboard received through the read command, performs configuration key operations on each storage node, and obtains the corresponding configuration key information, so that each storage node can be implemented without password. Then, the server can remotely log in to each storage node without the need for each storage node to enter a password, that is, log in to each storage node without password. Among them, the read command is a special command that receives standard keyboard input or other file descriptor input.
[0060] Through the above operations, password-free login to each storage node can be achieved, and staff no longer need to manually enter passwords to log in to each storage node.
[0061] The above step 203, ie, "cyclically detecting whether there are error files in the storage directory of each storage node", is described in detail below in conjunction with an embodiment.
[0062] A preset search command is used within a preset time interval to regularly cycle detection of whether there are error files in the storage directory of each storage node.
[0063] Specifically, the server uses a preset search command to cyclically detect whether there are error files in the storage directory of each storage node within a preset time interval. Here, during the use of the storage system, each storage node may have an error. After the error occurs, each storage node will generate an unc file based on the error information. However, since the memory of the unc file is large, the storage system will automatically compress and generate a dump file after the unc file is generated. Therefore, when the server performs detection, it can directly detect whether there are error files, i.e., dump files, in the storage directory. Among them, the setting of the preset time interval is executed through the sleep command.
[0064] Through the above operations, regular cyclic detection is performed on whether there are erroneous files in the storage directory of each storage node within a preset time interval, so that automatic detection and collection of erroneous files in the storage directory of each storage node can be realized, and the setting of the cyclic detection method can realize real-time collection of erroneous files.
[0065] In one achievable manner, the preset search command is a command for searching whether there is an error file in the storage directory of the storage node according to the suffix of the error file. Here, the error file in the storage directory of each storage node is detected by searching for the suffix of .dump.
[0066] The detection of error files in the storage directory of each storage node is realized by searching for the suffix name of .dump, which is simple and easy to operate.
[0067] In one feasible method, if an error file is detected, the error type information of the error file will be obtained and a corresponding txt file will be generated; the txt file will be renamed according to the error type information to obtain an error type information file; the error file and the error type information file will be transferred to a dedicated error file directory of the server.
[0068] Specifically, when the server detects that there is an error file under a storage node, the preset positioning query command is used to query the error file and capture the error type information in the error file. At the same time, the server will automatically trigger the generation of the corresponding txt file. Among them, the positioning query can be a whydump command, which is used to locate the error problem. The whydump command can be used to query the brief information of the error file, including: program (error program), assert (exception handling information), cluster ID (cluster ID) and node (node information), etc.; among them, the exception handling information is particularly important. By capturing the exception handling information, the error type information can be obtained, and the error type information includes the type of interface module to which the current error problem belongs and the location where the current error problem occurs.
[0069] Rename the txt file according to the error type information to obtain the error type information file containing the error type information, and transfer the error file and the error type information file to the dedicated error file directory of the server. It should be noted here that the reason for capturing the error type information is that the error file also contains some non-important information, and the staff needs to open it and find the specific information they want to find from a large amount of information, which is extremely time-consuming; and the error type information file clearly shows the type of interface module to which the current error problem belongs and the location where the current error problem occurs. The staff can directly locate the error information according to the error type information file and handle it in time.
[0070] Through the above operations, after the server detects the error file, the preset positioning query command is used to query the error file, and the error type information of the error file is captured to generate an error type information file. The error type information file clearly displays the interface module type to which the current error problem belongs and the location where the current error problem occurs, so that the staff can directly locate the error information and handle it according to the error type information file.
[0071] In one practicable manner, the error file and the error type information file are transferred to a dedicated error file directory of the server through a preset SCP command.
[0072] Among them, scp is the abbreviation of secure copy. scp is a command for the storage system to log in to the security protocol based on the application layer to perform secure remote file copying. The scp command is mainly used to copy files and directories between Linux systems.
[0073] Here, the server transfers the error files and error type information files existing in each storage node to the dedicated error file directory of the server through the preset SCP command to realize the collection of error files, and after the transfer, the error files can be directly downloaded and viewed as needed.
[0074] By using the above preset SCP command, the error file and the error type information file can be copied and transferred, thereby facilitating the staff to view and download the error file and the error type information file.
[0075] In combination with the implementation method in the above embodiment, Figure 3 An example of a preferred method flow provided in the embodiment of the present application is described. Figure 3 As shown, the method may include the following steps:
[0076] Step 301, obtain the public key file.
[0077] Step 302, sending the public key file to each storage node, calling the IP and password of each storage node at the same time, performing configuration operations on each storage node, and obtaining corresponding configuration information.
[0078] Step 303: Log in to each storage node without a password according to the corresponding configuration information.
[0079] Step 304, using a preset search command within a preset time interval to regularly cycle check whether there is an error file in the storage directory of each storage node; if so, execute step 305; if not, execute step 308.
[0080] Step 305, use a preset positioning search command to query the error file, capture the error type information of the error file, and generate a corresponding txt file.
[0081] Step 306, rename the txt file according to the error type information to obtain an error type information file.
[0082] Step 307: Transfer the error file and the error type information file to the dedicated error file directory of the server through a preset SCP command.
[0083] Step 308, entering the next detection cycle.
[0084] The above process is only a preferred embodiment, and other methods may also be used, which will not be described in detail here.
[0085] It should be understood that although Figure 2-Figure 3The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in the application, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2-Figure 3 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0086] The above method embodiment can be applied to various application scenarios, for example, including but not limited to the following application scenarios:
[0087] When the server is connected to multiple storage nodes, it can automatically detect whether there are error files under each storage node, and transfer the detected error files to the server's dedicated error file directory, which is convenient for discovering and analyzing problems caused by the storage system, so as to reduce the subsequent operation and maintenance costs and improve the simplicity of testing.
[0088] Figure 4 A schematic diagram of a device for detecting and collecting error files provided in an embodiment of the present application, which can be arranged at Figure 1 The server in the system shown is used to execute Figure 2-Figure 3 The method flow shown in Figure 4 As shown, the device may include: a login module 401, a detection module 403, a transfer and circulation module 405, and a circulation module 407. The main functions of each component module are as follows:
[0089] Login module 401, used to obtain a public key file and log in to each storage node without a password according to the public key file;
[0090] The detection module 403 is used to cyclically detect whether there are error files in the storage directory of each storage node;
[0091] The transfer cycle module 405 is used to transfer the error file to the server-specific error file directory if an error file is detected, and enter the next detection cycle.
[0092] The loop module 407 is used to directly enter the next detection loop if no error file exists during the detection.
[0093] It can be seen that the embodiment of the present application obtains the public key file through the login module 401, and logs in to each storage node without password according to the public key file; through the detection module 403, it cyclically detects whether there is an error file in the storage directory of each storage node; through the transfer cycle module 405, when it is determined that there is an error file, the error file is transferred to the server-specific error file directory and enters the next detection cycle; through the loop module 407, when it is determined that there is no error file, no processing is required, and the next detection cycle is directly entered. In this way, the error files of each storage node are automatically, quickly and accurately collected, which effectively reduces the complexity of the test personnel collecting the error information of each storage node, and facilitates the discovery and analysis of the problems generated by the storage system, so as to reduce the later operation and maintenance costs and improve the simplicity of the test.
[0094] In some embodiments, the acquisition module 401 is specifically configured to execute:
[0095] Send the public key file to each storage node, call the IP and password of each storage node, perform configuration operations on each storage node, and obtain the corresponding configuration information;
[0096] Log in to each storage node without a password according to the corresponding configuration information.
[0097] In some embodiments, the detection module 403 is specifically configured to perform:
[0098] A preset search command is used within a preset time interval to regularly cycle detection of whether there are error files in the storage directory of each storage node.
[0099] In some embodiments, the preset search command in the detection module 403 is:
[0100] Run the command to check whether there is an error file in the storage directory of the storage node according to the suffix of the error file.
[0101] In some embodiments, in the transfer module 405, "if an error file is detected to exist, the error file is transferred to a dedicated error file directory of the server" is specifically used to execute:
[0102] If an error file is detected, the error type information of the error file will be obtained and a corresponding txt file will be generated;
[0103] Rename the txt file according to the error type information to obtain the error type information file;
[0104] Transfer the error file and error type information file to the dedicated error file directory.
[0105] In some embodiments, the “obtaining error type information of the error file” in the transfer module 405 is specifically used to execute:
[0106] Use the preset positioning search command to query the error file and capture the error type information of the error file.
[0107] In some embodiments, the “save the error file and the error type information file to the server-specific error file directory” in the save module 405 is specifically used to execute:
[0108] The error file and the error type information file are transferred to the dedicated error file directory through the preset SCP command.
[0109] According to the specific embodiments provided in this application, the technical solution provided in this application can have the following advantages:
[0110] 1) Automatically, quickly and accurately collect error files from each storage node.
[0111] 2) Effectively reduce the complexity of testers collecting error information from each storage node, and facilitate the discovery and analysis of problems generated by the storage system.
[0112] 3) Reduce the cost of later operation and maintenance, eliminate the need for regular manual inspections, and improve the ease of testing.
[0113] It is understandable that the implementation of any method or product of the present application does not necessarily require all of the above advantages to be achieved at the same time.
[0114] The same or similar parts between the above embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0115] It should be noted that the embodiments of the present application may involve the use of user data. In actual applications, user-specific personal data can be used in the scheme described in this article within the scope permitted by applicable laws and regulations, provided that the applicable laws and regulations of the country are met (for example, the user's explicit consent, effective notification to the user, and the user's explicit authorization, etc.).
[0116] According to an embodiment of the present application, the present application also provides a computer device and a computer-readable storage medium.
[0117] like Figure 5, is a block diagram of a computer device according to an embodiment of the present application. The computer device is intended to represent various forms of digital computers or mobile devices. The digital computer may include a desktop computer, a portable computer, a workbench, a personal digital assistant, a server, a mainframe computer, and other suitable computers. The mobile device may include a tablet computer, a smart phone, a wearable device, etc.
[0118] like Figure 5 As shown, the device 500 includes a computing unit 501, a ROM 502, a RAM 503, a bus 504, and an input / output (I / O) interface 505, and the computing unit 501, ROM 502 and RAM 503 are connected to each other through the bus 504. The input / output (I / O) interface 505 is also connected to the bus 504.
[0119] The computing unit 501 can perform various processes in the method embodiment of the present application according to the computer instructions stored in the read-only memory (ROM) 502 or the computer instructions loaded from the storage unit 508 to the random access memory (RAM) 503. The computing unit 501 can be various general and / or special processing components with processing and computing capabilities. The computing unit 501 may include, but is not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. In some embodiments, the method provided in the embodiment of the present application can be implemented as a computer software program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 508.
[0120] RAM 503 may also store various programs and data required for the operation of device 500. Part or all of the computer program may be loaded and / or installed on device 500 via ROM 502 and / or communication unit 509.
[0121] The input unit 506, output unit 507, storage unit 508 and communication unit 509 in the device 500 can be connected to the I / O interface 505. The input unit 506 can be, for example, a keyboard, a mouse, a touch screen, a microphone, etc. The output unit 507 can be, for example, a display, a speaker, an indicator light, etc. The device 500 can exchange information, data, etc. with other devices through the communication unit 509.
[0122] It should be noted that the device may also include other components necessary for normal operation, or may only include components necessary for implementing the solution of the present application, rather than all the components shown in the figure.
[0123] Various implementations of the systems and techniques described herein can be realized in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof.
[0124] The computer instructions for implementing the method of the present application can be written in any combination of one or more programming languages. These computer instructions can be provided to the computing unit 501, so that when the computer instructions are executed by the computing unit 501 such as a processor, the steps involved in the method embodiment of the present application are executed.
[0125] The computer-readable storage medium provided in the present application may be a tangible medium that may contain or store computer instructions for executing the steps involved in the method embodiments of the present application. The computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, and other forms of storage media.
[0126] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. A method for detecting and collecting error files, characterized in that: The method includes: Obtain a public key file, and log in to each storage node without a password based on the public key file; Circularly checking whether there are error files in the storage directory of each storage node; If the error file is detected to exist, the error file is transferred to the server's dedicated error file directory and the next detection cycle is entered; If the error file does not exist, the next detection cycle is directly entered; The obtaining of the public key file and the password-free logging into each storage node according to the public key file include: Send the public key file to each storage node, call the IP and password of each storage node, perform configuration operations on each storage node, and obtain corresponding configuration information; Log into each storage node without password according to the corresponding configuration information; The cyclic detection of whether there is an error file in the storage directory of each storage node includes: Using a preset search command within a preset time interval to regularly cycle detect whether there is an error file in the storage directory of each storage node; The preset search command is a command for searching whether there is an error file in the storage directory of each storage node according to the suffix of the error file; If the error file is detected to exist, the error file is transferred to the server-specific error file directory, including: If an error file is detected, the error type information of the error file will be obtained and a corresponding txt file will be generated; Rename the txt file according to the error type information to obtain an error type information file; The error file and the error type information file are transferred to the server-specific error file directory.
2. The method according to claim 1, characterized in that The error type information of the error file will be obtained, including: The error file is queried using a preset positioning query command to capture error type information of the error file.
3. The method according to claim 1, characterized in that The transferring the error file and the error type information file to a dedicated error file directory of the server includes: The error file and the error type information file are transferred to a dedicated error file directory of the server through a preset SCP command.
4. A device for detecting and collecting error files, characterized in that: The device includes: A login module, used to obtain a public key file and log in to each storage node without a password according to the public key file; A detection module, used for cyclically detecting whether there are error files in the storage directory of each storage node; A transfer cycle module is used for transferring the error file to a dedicated error file directory of the server if the error file is detected to exist, and entering the next detection cycle; A loop module, used for directly entering the next detection loop if the error file does not exist during detection; The acquisition module is also used to send the public key file to each storage node, and at the same time call the IP and password of each storage node, perform configuration operations on each storage node, and obtain corresponding configuration information; according to the corresponding configuration information, log in to each storage node without password; The detection module is further used to perform regular cyclic detection on whether there are error files in the storage directory of each storage node by using a preset search command within a preset time interval; The preset search command in the detection module is: a command for searching whether there is an error file in the storage directory of the storage node according to the suffix name of the error file; The transfer cycle module is also used to obtain the error type information of the error file when detecting the existence of an error file, and generate a corresponding txt file; rename the txt file according to the error type information to obtain an error type information file; and transfer the error file and the error type information file to a dedicated error file directory.
5. A computer device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores computer instructions that can be executed by the at least one processor, and the computer instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 3.
6. A computer-readable storage medium having computer instructions stored thereon, characterized in that: The computer instructions are used to make a computer execute the method according to any one of claims 1 to 3.
