Pcsd service starting method and apparatus

By working in conjunction with the main process, the auxiliary process detects and repairs the disk and network performance status of the NAS server, resolving the issue of excessively long startup time for the PCSD service, improving startup speed and reliability, and ensuring high availability of the file transfer service.

CN116610379BActive Publication Date: 2026-07-03MACROSAN TECH

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
MACROSAN TECH
Filing Date
2023-05-04
Publication Date
2026-07-03

AI Technical Summary

Technical Problem

Poor disk and network performance during the startup of the NAS server's PCSD service can lead to excessively long startup times, potentially causing startup failures and impacting the high availability of the file transfer service.

Method used

The auxiliary process works in conjunction with the main process to detect disk and network performance status, perform status repair and configuration modification operations to ensure that performance meets the standards, and perform SSL authentication to complete the startup of the pcsd service after the performance meets the standards.

Benefits of technology

It improves the startup speed and reliability of the pcsd service, reduces the probability of startup failure due to anomalies, and ensures high availability of the file transfer service.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116610379B_ABST
    Figure CN116610379B_ABST
Patent Text Reader

Abstract

This disclosure provides a method and apparatus for starting a PCSD service. The method includes: a startup process responding to a startup command to create an auxiliary process and a main process; obtaining the storage address of the SSL module and configuration file required to start the PCSD service; importing the SSL module into the main process and sending the storage address to the main process and the auxiliary process; the main process, based on the SSL module, importing the toolkit module required to start the PCSD service into itself; based on the SSL module and the toolkit module, obtaining the configuration file from the storage address, and using the disk and network specified in the configuration file to complete the startup of the PCSD service; the auxiliary process obtaining the configuration file from the storage address; and if the performance status of the disk and / or network specified in the configuration file is found to be substandard, performing status repair operations and / or configuration modification operations. This PCSD service startup method, using an auxiliary process and a main process to start the PCSD service, can improve the overall startup speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and in particular to a method and apparatus for starting a PCSD service. Background Technology

[0002] NAS (Network Attached Storage) servers provide file transfer services to computers on a network. To ensure high availability of this service, multiple NAS servers are deployed in the network, including a primary NAS server and a backup NAS server. When a user wants to trigger a failover (i.e., a backup NAS server becomes the primary NAS server again), the PCSD service on the NAS server needs to be started to send PCSD commands to the network to initiate the failover. 。

[0003] If the disk and network performance of the NAS server is poor during the startup process of the PCSD service, it can easily lead to excessively long processing time and thus startup failure. Summary of the Invention

[0004] In view of this, the present disclosure provides a PCSD service startup method and apparatus.

[0005] According to a first aspect of this disclosure, a method for starting a PCSD service is proposed, the method comprising:

[0006] The PCSD service startup process responds to the command to start the PCSD service by creating an auxiliary process and the main process of the PCSD service; obtaining the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; importing the SSL module into the main process, and sending the file storage address to the main process and the auxiliary process;

[0007] The main process imports the toolkit modules required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit modules, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service;

[0008] The auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation.

[0009] The status repair operation includes: repairing the performance status of disks and / or networks that are not up to standard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks that are up to standard.

[0010] In any embodiment provided by this disclosure, the configuration file includes a first information group and a second information group. The first information group includes a first disk identifier and a first network identifier, and the second information group includes a second disk identifier and a second network identifier. The first information group is effective by default, and the second information group is not effective by default.

[0011] The step of changing the configuration file to specify a disk and / or network that meets the performance requirements includes:

[0012] Disable the first information group and enable the second information group.

[0013] In conjunction with any embodiment provided in this disclosure, the execution state repair operation and / or configuration modification operation includes:

[0014] Perform status repair operations on disks and / or networks whose performance status is substandard. If the repair fails, continue to perform status repair operations until the number of times the status repair operations are performed reaches a preset number.

[0015] If the status repair operation fails after a preset number of attempts, the configuration modification operation will be performed.

[0016] In conjunction with any embodiment provided in this disclosure, the method further includes:

[0017] The auxiliary process creates a log storage area on the disk whose performance status meets the requirements specified in the configuration file to store the pcsd service startup logs generated by the main process.

[0018] The auxiliary process sends a first notification message to the main process indicating that the creation of the log storage area is complete, so that the main process can start performing SSL authentication.

[0019] In conjunction with any embodiment provided in this disclosure, the method further includes:

[0020] If the main process determines that the pcsd service has failed to start, it sends a second notification message indicating that the pcsd service has failed to start to the startup process.

[0021] In response to the second notification message, the startup process instructs the main process to retrieve the configuration file from the storage address again in order to restart the pcsd service.

[0022] According to a second aspect of this disclosure, a PCSD service startup apparatus is provided, the apparatus comprising:

[0023] The PCSD service startup module, in response to the command to start the PCSD service, creates an auxiliary module and the main module of the PCSD service; obtains the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; imports the SSL module into the main module, and sends the storage address to the main module and the auxiliary module;

[0024] The main module imports the toolkit module required to start the pcsd service based on the SSL module; based on the SSL module and the toolkit module, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service.

[0025] The auxiliary module obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation.

[0026] The status repair operation includes: repairing the performance status of disks and / or networks that are not up to standard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks that are up to standard.

[0027] According to a third aspect of this disclosure, a NAS server is provided, wherein a startup process for a pcsd service is run on the NAS server;

[0028] The startup process responds to the command to start the PCSD service by creating an auxiliary process and the main process of the PCSD service; obtaining the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; importing the SSL module into the main process; and sending the storage address to the main process and the auxiliary process.

[0029] The main process imports the toolkit modules required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit modules, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service;

[0030] The auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation.

[0031] The status repair operation includes: repairing the performance status of disks and / or networks that are not up to standard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks that are up to standard.

[0032] According to a fourth aspect of this disclosure, a computer-readable storage medium is provided, the machine-readable storage medium storing machine-readable instructions, which, when invoked and executed by a processor, cause the processor to implement the functions of a startup process, a main process, and an auxiliary process according to any embodiment of this disclosure. According to a fifth aspect of this disclosure, a computing device is provided, including…

[0033] processor;

[0034] Memory used to store processor-executable instructions;

[0035] The processor is configured to perform the functions of a startup process, a main process, and an auxiliary process according to any embodiment of this disclosure.

[0036] The technical solutions provided by the embodiments of this disclosure may include the following beneficial effects:

[0037] The PCSD service startup method and apparatus provided in this disclosure use two processes—an auxiliary process and a main process—to start the PCSD service, thereby improving the overall startup speed. The auxiliary process eliminates potential anomalies during the PCSD service startup process, reducing the probability of startup timeouts or error-induced terminations due to anomalies, increasing the probability of the PCSD service starting normally, and improving the reliability of the PCSD service.

[0038] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0039] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0040] Figure 1 This disclosure is a flowchart illustrating a PCSD service startup method according to an exemplary embodiment;

[0041] Figure 2This is a flowchart illustrating another method for starting a PCSD service according to an exemplary embodiment of the present disclosure;

[0042] Figure 3 This is a flowchart illustrating another method for starting a PCSD service according to an exemplary embodiment of the present disclosure;

[0043] Figure 4 This is a schematic diagram of the structure of a PCSD service startup device according to an exemplary embodiment of the present disclosure;

[0044] Figure 5 This is a schematic diagram of the structure of a computing device according to an exemplary embodiment of the present disclosure. Detailed Implementation

[0045] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0046] The terminology used in this disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The singular forms “a,” “the,” and “the” as used in this disclosure and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any and all possible combinations of one or more of the associated listed items.

[0047] It should be understood that although the terms first, second, third, etc., may be used in this disclosure to describe various information, such information should not be limited to these terms. These terms are used only to distinguish information of the same type from one another. For example, without departing from the scope of this disclosure, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the word "if" as used herein may be interpreted as "when," "when," or "in response to determination."

[0048] NAS servers provide shared file transfer services to computers on a network. To achieve high availability of this file transfer service, multiple NAS servers are deployed in the network, including a primary NAS server and a backup NAS server. When the primary NAS server fails, the backup NAS server takes over the file transfer service, thus ensuring high availability of the file transfer service.

[0049] When a user wants to trigger a master-slave switchover (i.e., to make a backup NAS server the master NAS server again), the PCSD service on the NAS server needs to be started to send PCSD commands to the network to implement the master-slave switchover. 。 If the disk and network performance of the NAS server is poor during the startup process of the PCSD service, it can easily lead to excessively long startup time and thus startup failure.

[0050] In view of this, this disclosure provides a PCSD service startup method. In this method, an auxiliary process can be used to eliminate possible anomalies during the PCSD service startup process, reduce the probability of PCSD service startup timeout or error termination due to anomalies, increase the probability of PCSD service starting normally, and improve the reliability of PCSD service.

[0051] The PCSD service startup method of this disclosure will now be described in detail with reference to the accompanying drawings.

[0052] Figure 1 This is a flowchart illustrating a PCSD service startup method according to an exemplary embodiment of this disclosure. Figure 1 As shown, the exemplary embodiment method may include the following steps:

[0053] In step 100, the PCSD service startup process responds to the command to start the PCSD service by creating an auxiliary process and the main process of the PCSD service; obtaining the file storage address of the SSL module and configuration file required to start the PCSD service; importing the SSL module into the main process; and sending the file storage address to the main process and the auxiliary process.

[0054] The startup process for the PCSD service is used to start the PCSD service. In practical applications, the startup process for the PCSD service can be systemd. The main process for the PCSD service is the process that executes the steps required to start the PCSD service. The auxiliary processes are processes that eliminate any abnormalities that may occur during the PCSD service startup process.

[0055] In practical applications, when a user wants to trigger a primary / standby switchover and sends a PCS command to the network, it is considered that the PCS service startup process has received the command to start the PCS service. At this time, the PCS service startup process can further create the auxiliary process and the main process of the PCS service.

[0056] The SSL module contains code that enables the pcsd service. The configuration file specifies the disk and network used to start the pcsd service; for example, the configuration file may contain the following information: Network 1, Disk A.

[0057] In practical applications, systemd can obtain the module storage address of the SSL module and the file storage address of the configuration file from a pre-configured systemd configuration file. Then, based on the module storage address, the SSL module is imported into the created main process, allowing the main process to execute the steps required to start the pcsd service based on the code in the SSL module. Finally, the file storage address of the configuration file is sent to the main process and the auxiliary process, enabling them to read the configuration file based on that address.

[0058] In one optional example, different systemd configuration files can be stored on multiple disks. When the default systemd configuration file read fails, the read path can be modified to allow systemd to read the configuration file stored on another disk. This reduces the probability of PCSD service startup failure due to systemd configuration file read failure.

[0059] In one optional example, multiple module storage addresses for the SSL modules can be stored in the systemd configuration file. When the SSL module is not found based on the default module storage address, the module storage address can be modified so that systemd retrieves the SSL module from the modified address, thereby reducing the probability of pcsd service startup failure due to SSL module import failure.

[0060] In step 102, the main process imports the toolkit module required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit module, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service.

[0061] The toolkit modules required to start the PCSD service may specifically include: a file read / write toolkit module, a network connection toolkit module, a file processing toolkit module, and an exception handling toolkit module. The SSL authentication is a network data transmission security authentication. After SSL authentication, the two parties transmitting data can trust each other. That is, SSL authentication can guarantee the security of data transmission to a certain extent.

[0062] After receiving the SSL module imported by the startup process of the pcsd service, the main process executes the code contained in the SSL module, specifically including:

[0063] The system imports the necessary toolkit modules to start the PCSD service, and then retrieves the configuration file from the file storage address based on the file read / write toolkit module within the imported toolkit. For example, the configuration file could be: Network 1, Disk A. At this point, the system can use Network 1, Disk A specified in the configuration file, along with the aforementioned network connection toolkit module and file processing toolkit module, to perform SSL authentication and complete the PCSD service startup.

[0064] In step 104, the auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation.

[0065] Disk performance status should include at least: disk utilization and disk response time. Network performance status should include at least: network connectivity and whether port 2224 is blocked by a firewall.

[0066] In practical applications, relevant personnel can pre-set the standards for meeting the above conditions. For example, the standard for disk utilization can be set as: disk utilization less than 30%. The standard for disk response time can be: disk response time less than 0.05ms. The standard for network connectivity can be: network connection is normal. The standard for whether port 2224 is blocked by the firewall can be: port 2224 is not blocked by the firewall.

[0067] The status repair operations include: repairing the performance status of disks and / or networks that are not up to standard. For example, the status repair operations corresponding to the disk and network status described above can be as follows: clearing unnecessary files, closing unnecessary background processes, reconnecting to the network, and removing port 2224 from the firewall's blocking range. The configuration modification operations include: changing the configuration file to specify disks and / or networks that are up to standard. For example, before the modification, the configuration file specified the disks and networks as: Network 1, Disk A; after the modification, the configuration file specifies the disks and networks as: Network 2, Disk B.

[0068] In practical applications, the startup process of the PCSD service can import a pre-defined script into the auxiliary process, so that the auxiliary process executes the imported script to achieve the following steps:

[0069] The auxiliary process retrieves the configuration file from the file storage address and checks whether the performance status of the disk and network specified in the configuration file meets the pre-set compliance standards. If it is determined that the performance status of the disk or network specified in the configuration file does not meet the standards, the following solution is adopted.

[0070] Option 1: Perform status repair operation.

[0071] Specifically, repairs are performed using the corresponding state-of-the-art repair operations based on the substandard performance status. For example, if disk usage is determined to be substandard, commands can be used to delete unnecessary files. If a network connection is determined to be faulty, commands can be used to reconnect to the network.

[0072] Option 2: Perform the configuration modification operation.

[0073] This means directly modifying the disks and / or networks specified in the configuration file. For example, if the configuration file previously specified network 1 and disk A, and the auxiliary process checks the performance of the disks and networks specified in the configuration file based on pre-set performance standards, it finds that network 1 is not properly connected and disk A's disk utilization is 70%, both of which fail to meet the standards. In this case, the configuration file can be directly modified to specify network 2 and disk B.

[0074] Optionally, if it is determined that the network performance status in the configuration file is substandard while the disk performance status is satisfactory, only the network specified in the configuration file may be modified. If it is determined that the disk performance status in the configuration file is substandard while the network performance status is satisfactory, only the disk specified in the configuration file may be modified. The specific settings can be made by relevant personnel based on the actual situation, and this disclosure does not limit this.

[0075] For example, when performing the configuration modification operation, it can be based on the following specific scheme:

[0076] The configuration file is pre-configured to include a first information group and a second information group. The first information group includes a first disk identifier and a first network identifier, while the second information group includes a second disk identifier and a second network identifier. The first information group is active by default, while the second information group is inactive by default. That is, when the configuration file is read, the first disk identifier and the first network identifier from the first information group are read by default.

[0077] When the auxiliary process determines that the first disk identifier or the first network identifier in the first information group is not up to standard, it can modify the configuration file to disable the first information group and enable the second information group. In other words, when the configuration file is read, the second disk identifier and the second network identifier in the second information group will be read by default.

[0078] For example, the configuration file may include a first information group: Network 1, Disk A, and a second information group: Network 2, Disk B. When the auxiliary process reads the configuration file based on its storage address, it reads the first information group: Network 1, Disk A. When the auxiliary process determines that the performance of Network 1 or Disk A is substandard, it can modify the configuration file so that when the auxiliary process reads the configuration file based on its storage address, it reads the second information group: Network 2, Disk B.

[0079] Alternatively, when the auxiliary process determines that network 1 or disk A in the first information group is not up to standard, it can notify the main process to change the reading of the configuration file from the first information group to the second information group.

[0080] Option 3: Perform status repair and configuration modification operations.

[0081] Specifically, when it is determined that the performance status of the disk or network indicated by the configuration file is substandard, a status repair operation can be performed on the substandard disk and / or network first. If the repair fails, the status repair operation continues until the number of times the status repair operation is performed reaches a preset number. If the repair still fails after the preset number of times the status repair operation is performed, the configuration modification operation is then performed.

[0082] For example, the preset number of times can be 8 or 10 times, and this disclosure does not limit it. For ease of description, the following embodiments will be described with the preset number of times set to 10.

[0083] Taking insufficient disk usage as an example, when it's determined that the disk usage of the disk indicated in the configuration file is insufficient, you can first use commands to clear unnecessary files. If the disk usage is still insufficient after the first clearing, continue using commands to clear unnecessary files until the number of times unnecessary files are cleared reaches 10. If the disk usage is still insufficient, then perform the configuration modification operation described above. This further increases the probability that the PCSD service can start successfully.

[0084] It should be noted that the above embodiments describe the processing performed by different processes separately, and the order of description is not the actual execution order of the processes. In practical applications, the steps of the PCSD service startup process importing the SSL module into the main process, the main process importing the toolkit modules required to start the PCSD service based on the SSL module, the auxiliary process obtaining the configuration file from the file storage address, and performing state repair operations and / or configuration modification operations when the performance status of the disk and / or network specified by the configuration file is found to be substandard are performed simultaneously. Theoretically, the auxiliary process executes the above steps faster than the PCSD service startup process importing the SSL module into the main process, and the main process importing the toolkit modules required to start the PCSD service based on the SSL module. This allows the main process to perform the subsequent PCSD service startup process based on the disk and network indicated by the configuration file after the auxiliary process performs state repair operations and / or configuration modification operations, thereby reducing the probability of PCSD service startup failure due to substandard performance status of the disk or network indicated by the configuration file.

[0085] The PCSD service startup method provided in this disclosure uses two processes—an auxiliary process and a main process—to start the PCSD service, thereby improving the overall startup speed. The auxiliary process eliminates potential anomalies during the PCSD service startup process, reducing the probability of startup timeouts or error-induced terminations due to anomalies, increasing the probability of the PCSD service starting normally, and improving the reliability of the PCSD service.

[0086] In one embodiment, such as Figure 2 As shown, in Figure 1 Based on the method shown, the method may further include:

[0087] In step 200, the auxiliary process creates a log storage area on the disk whose performance status meets the requirements specified in the configuration file, for storing the pcsd service startup logs generated by the main process.

[0088] During the PCSD service startup process, it's necessary to utilize log storage areas to record logs generated during the startup process. For example, temporary files need to be created to record network status and SSL authentication results during startup. Alternatively, log files may need to be created to record port listening activity after the PCSD service starts.

[0089] Therefore, the auxiliary process can create the log storage area on the disk specified in the current configuration file when it determines that the disk and network status specified in the current configuration file are satisfactory. Alternatively, if the auxiliary process determines that the disk or network status specified in the current configuration file is unsatisfactory but performs the corresponding status repair operation to bring the specified disk and network status to satisfactory, it can then create the log storage area on the disk specified in the current configuration file. Furthermore, if the auxiliary process determines that the disk or network status specified in the current configuration file is unsatisfactory and performs the corresponding status repair operation, but the status remains unsatisfactory, it can perform a configuration modification operation and create the log storage area on the disk specified in the modified configuration file.

[0090] In step 202, the auxiliary process sends a first notification message to the main process indicating that the creation of the log storage area is complete, so that the main process can start performing SSL authentication.

[0091] After the auxiliary process creates the log storage area, it can send the first notification message to the main process so that the main process can continue to perform SSL authentication.

[0092] After performing the SSL authentication, the main process can begin listening on the interface used to receive PCS commands, thereby starting to receive PCS commands sent by other NAS devices. In practical applications, the interface used to receive PCS commands is the 2224 interface.

[0093] In an optional example, after starting to listen to the 2224 interface, the corresponding exception handling function can be enabled to capture abnormal parameters received through the interface. For example, if the 2224 interface receives a pcs command, but the command is empty, an empty parameter exception can be thrown. The exception handling function can then capture this empty parameter exception and record it in the relevant logs for relevant code personnel to review and resolve the issue.

[0094] The PCSD service startup method provided in this disclosure uses an auxiliary process to create the log storage area required by the main process instead of the main process. In other words, when the main process is reading the configuration file, the auxiliary process can synchronously execute the step of creating the log storage area, which can improve the overall startup speed.

[0095] In one embodiment, such as Figure 3 As shown, in Figure 1 Based on the method shown, the method may further include:

[0096] In step 300, if the main process determines that the pcsd service has failed to start, it sends a second notification message indicating that the pcsd service has failed to start to the startup process.

[0097] As described in the foregoing embodiments, theoretically, the auxiliary process retrieves the configuration file from the file storage address and performs state repair and / or configuration modification operations faster than the PCSD service startup process imports the SSL module into the main process, and the main process imports the toolkit modules required to start the PCSD service based on the SSL module. However, in some cases, the auxiliary process may be slower. In such cases, the main process may read disks and networks that are not up to standard due to lack of repair or modification, and use these unup to perform subsequent SSL authentication. This can lead to excessively long startup times for the PCSD service due to poor disk and network performance, ultimately causing startup failure.

[0098] When the main process determines that the pcsd service has failed to start, it can send a second notification message to the startup process to indicate that the pcsd service has failed to start.

[0099] In step 302, the startup process responds to the second notification message by instructing the main process to retrieve the configuration file from the storage address again in order to restart the pcsd service.

[0100] In theory, when the main process starts the PCSD service based on the read network and disk information, and determines that the PCSD service startup has failed, the auxiliary process should have successfully executed the steps of retrieving the configuration file from the file storage address, and performing status repair and / or configuration modification operations when the performance status of the disk and / or network specified in the configuration file is found to be substandard. Therefore, after receiving the second notification message sent by the main process, the startup process can instruct the main process to retrieve the configuration file from the storage address again, thereby restarting the PCSD service. At this time, the disk and network specified in the configuration file are the modified, compliant disk and network.

[0101] In the PCSD service startup method provided in this embodiment, when the main process determines that the PCSD service has failed to start, it sends a second notification message indicating that the PCSD service has failed to start to the startup process. After receiving the second notification message, the startup process can instruct the main process to retrieve the configuration file from the storage address again to restart the PCSD service, thereby avoiding the PCSD service from being stopped for a long time.

[0102] For the foregoing method embodiments, in order to simplify the description, they are all described as a series of actions. However, those skilled in the art should know that this disclosure is not limited to the described order of actions, because according to this disclosure, some steps may be performed in other orders or simultaneously.

[0103] Secondly, those skilled in the art should also know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by this disclosure.

[0104] Corresponding to the aforementioned application function implementation method embodiments, this disclosure also provides embodiments of application function implementation apparatus and corresponding terminals.

[0105] Figure 4 This is a schematic diagram illustrating the structure of a PCSD service startup device according to an exemplary embodiment of the present disclosure, such as... Figure 4 As shown, the PCSD service startup device may include:

[0106] The PCSD service startup module 41 is used to respond to the command to start the PCSD service, create the auxiliary module 42 and the main module 43 of the PCSD service; obtain the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; import the SSL module into the main module 43, and send the storage address to the main module 43 and the auxiliary module 42.

[0107] The main module 43 is used to import the toolkit module required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit module, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service.

[0108] The auxiliary module 42 is used to obtain the configuration file from the file storage address; if it is detected that the performance status of the disk and / or network specified by the configuration file is not up to standard, then a status repair operation and / or a configuration modification operation are performed.

[0109] The status repair operation includes: repairing the performance status of disks and / or networks that are not up to standard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks that are up to standard.

[0110] Optionally, the configuration file includes a first information group and a second information group. The first information group includes a first disk identifier and a first network identifier, and the second information group includes a second disk identifier and a second network identifier. The first information group is effective by default, and the second information group is not effective by default.

[0111] The auxiliary module 42, when changing the configuration file to specify a disk and / or network whose performance status meets the requirements, includes:

[0112] Disable the first information group and enable the second information group.

[0113] Optionally, the auxiliary module 42, when performing state repair operations and / or configuration modification operations, includes:

[0114] Perform status repair operations on disks and / or networks whose performance status is substandard. If the repair fails, continue to perform status repair operations until the number of times the status repair operations are performed reaches a preset number.

[0115] If the status repair operation fails after a preset number of attempts, the configuration modification operation will be performed.

[0116] Optionally, the auxiliary module 42 is further configured to create a log storage area on the disk where the performance status specified in the configuration file meets the requirements, for storing the pcsd service startup logs generated by the main process.

[0117] The auxiliary module 42 is also used to send a first notification message to the main module 43 indicating that the creation of the log storage area is complete, so that the main module 43 can start performing SSL authentication.

[0118] Optionally, the main module 43 is further configured to send a second notification message indicating that the pcsd service has failed to start if it is determined that the pcsd service has failed to start.

[0119] The startup module 41 is also configured to respond to the second notification message by instructing the main module 43 to retrieve the configuration file from the storage address again in order to restart the pcsd service.

[0120] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this disclosure according to actual needs. Those skilled in the art can understand and implement this without creative effort.

[0121] Accordingly, this disclosure provides a NAS server, on which the startup process of the pcsd service is running.

[0122] The startup process responds to the command to start the PCSD service by creating an auxiliary process and the main process of the PCSD service; obtaining the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; importing the SSL module into the main process; and sending the storage address to the main process and the auxiliary process.

[0123] The main process imports the toolkit modules required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit modules, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service.

[0124] The auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation.

[0125] The status repair operation includes: repairing the performance status of disks and / or networks that are not up to standard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks that are up to standard.

[0126] Accordingly, embodiments of this disclosure provide a computing device, such as... Figure 5 As shown, it includes: a processor 51; a memory 52 for storing processor-executable instructions; wherein the processor 51 is configured to perform the functions of a startup process, a main process, and an auxiliary process in any embodiment of this disclosure.

[0127] Accordingly, embodiments of this disclosure provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the functions of the startup process, main process, and auxiliary process in any embodiment of this disclosure.

[0128] The computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0129] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0130] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A method for starting a PCSD service, characterized in that, The method includes: The PCSD service startup process responds to the command to start the PCSD service by creating an auxiliary process and the main process of the PCSD service; obtaining the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; importing the SSL module into the main process, and sending the file storage address to the main process and the auxiliary process; The main process imports the toolkit modules required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit modules, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service; The auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation. The status repair operation includes: repairing the performance status of disks and / or networks whose performance status is substandard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks whose performance status meets the standards; wherein the configuration file contains a first information group and a second information group, the first information group includes a first disk identifier and a first network identifier, the second information group includes a second disk identifier and a second network identifier, the first information group is effective by default, and the second information group is ineffective by default; changing the configuration file to specify disks and / or networks whose performance status meets the standards includes: making the first information group ineffective and making the second information group effective; The auxiliary process creates a log storage area on the disk whose performance status meets the requirements specified in the configuration file to store the pcsd service startup logs generated by the main process. The auxiliary process sends a first notification message to the main process indicating that the creation of the log storage area is complete, so that the main process can start performing SSL authentication.

2. The method according to claim 1, characterized in that, The execution status repair operation and / or configuration modification operation include: Perform status repair operations on disks and / or networks whose performance status is substandard. If the repair fails, continue to perform status repair operations until the number of times the status repair operations are performed reaches a preset number. If the status repair operation fails after a preset number of attempts, the configuration modification operation will be performed.

3. The method according to claim 1, characterized in that, The method further includes: If the main process determines that the pcsd service has failed to start, it sends a second notification message indicating that the pcsd service has failed to start to the startup process. In response to the second notification message, the startup process instructs the main process to retrieve the configuration file from the storage address again in order to restart the pcsd service.

4. A PCSD service startup device, characterized in that, The device includes: The PCSD service startup module, in response to the command to start the PCSD service, creates an auxiliary module and the main module of the PCSD service; obtains the file storage address of the SSL module and configuration file required to start the PCSD service, wherein the configuration file is used to specify the disk and network used to start the PCSD service; imports the SSL module into the main module, and sends the storage address to the main module and the auxiliary module; The main module imports the toolkit module required to start the pcsd service based on the SSL module; based on the SSL module and the toolkit module, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service. The auxiliary module obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation. The status repair operation includes: repairing the performance status of disks and / or networks whose performance status is substandard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks whose performance status meets the standards; wherein the configuration file contains a first information group and a second information group, the first information group includes a first disk identifier and a first network identifier, the second information group includes a second disk identifier and a second network identifier, the first information group is effective by default, and the second information group is not effective by default; the auxiliary module, when changing the configuration file to specify disks and / or networks whose performance status meets the standards, includes: Disable the first information group and enable the second information group; The auxiliary module creates a log storage area on the disk where the performance status specified in the configuration file meets the requirements, for storing the pcsd service startup logs generated by the main module; The auxiliary module sends a first notification message to the main module indicating that the creation of the log storage area is complete, so that the main module can start performing SSL authentication.

5. A NAS server, characterized in that the NAS server runs a startup process for a pcsd service; The startup process responds to the command to start the pcsd service, creating auxiliary processes and the main process of the pcsd service; Obtain the file storage address of the SSL module and configuration file required to start the PCSD service. The configuration file is used to specify the disk and network used to start the PCSD service. Import the SSL module into the main process and send the storage address to the main process and the auxiliary process. The main process imports the toolkit modules required to start the pcsd service into itself based on the SSL module; based on the SSL module and the toolkit modules, it obtains the configuration file from the file storage address, and performs SSL authentication using the disk and network specified in the configuration file to complete the startup of the pcsd service; The auxiliary process obtains the configuration file from the file storage address; if it detects that the performance status of the disk and / or network specified by the configuration file is substandard, it performs a status repair operation and / or a configuration modification operation. in, The status repair operation includes: repairing the performance status of disks and / or networks whose performance status is substandard; the configuration modification operation includes: changing the configuration file to specify disks and / or networks whose performance status meets the standards; wherein, the configuration file contains a first information group and a second information group, the first information group includes a first disk identifier and a first network identifier, the second information group includes a second disk identifier and a second network identifier, the first information group is effective by default, and the second information group is not effective by default; the auxiliary process, when changing the configuration file to specify disks and / or networks whose performance status meets the standards, includes: Disable the first information group and enable the second information group; The auxiliary process creates a log storage area on the disk whose performance status meets the requirements specified in the configuration file to store the pcsd service startup logs generated by the main process. The auxiliary process sends a first notification message to the main process indicating that the creation of the log storage area is complete, so that the main process can start performing SSL authentication.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by the processor, the program implements the functions of the startup process, main process, and auxiliary process in the method of any one of claims 1-3.

7. A computing device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to perform the functions of the startup process, main process, and auxiliary process in the method of any one of claims 1-3.