Disclosure of Invention
The invention aims to provide a storage system configuration method, a storage system configuration device, storage system configuration equipment and a readable storage medium, so that the configuration work of a storage system is simplified, and the configuration efficiency is improved.
In order to solve the technical problems, the invention provides the following technical scheme:
a storage system configuration method, comprising:
receiving a configuration request for configuring a storage system, and acquiring a user type corresponding to the configuration request;
determining a target pre-configured scene matched with the user type in a pre-configured scene by utilizing the corresponding relation between the preset user type and the pre-configured scene;
and starting a task manager, and executing each configuration task in the target pre-configuration scene to configure the storage system.
Preferably, after determining the target provisioning scenario, before starting the task manager, the method further includes:
and adjusting the configuration task in the target pre-configuration scene.
Preferably, adjusting the configuration task in the target provisioning scenario includes:
displaying each configuration task in the target pre-configuration scene in a visual interface;
acquiring adjustment information which is input by a user and used for adding, deleting or adjusting the configuration task of the target pre-configuration scene;
and adjusting the configuration task in the target pre-configuration scene by using the adjustment information.
Preferably, before receiving a configuration request for configuring a storage system and acquiring a user type corresponding to the configuration request, the method further includes:
respectively creating corresponding configuration tasks for configuration items of a storage system; when the configuration task is executed by the task manager, the configuration of the corresponding configuration project of the storage system can be automatically completed;
creating corresponding pre-configured scenes for different user types;
and respectively adding corresponding configuration tasks in each pre-configuration scene, and respectively setting corresponding priorities and configuration parameters for each configuration task.
Preferably, the executing each configuration task in the target provisioning scenario configures the storage system, including:
and executing each configuration task in the target pre-configuration scene according to the priority order of each configuration task to configure the storage system.
Preferably, the executing each configuration task in the target provisioning scenario to configure the storage system according to the priority order of each configuration task includes:
and executing configuration tasks of the same priority level in parallel.
Preferably, the starting task manager, executing each configuration task in the target provisioning scenario to configure the storage system, includes:
in the process of executing the configuration task, when the execution of the configuration task fails, the execution of the configuration task is stopped, and error prompt information is output.
A storage system configuration apparatus comprising:
the user type acquisition module is used for receiving a configuration request for configuring the storage system and acquiring a user type corresponding to the configuration request;
the target pre-configuration scene determining module is used for determining a target pre-configuration scene matched with the user type in the pre-configuration scene by utilizing the corresponding relation between the preset user type and the pre-configuration scene;
and the storage system parameter configuration module is used for starting a task manager and executing each configuration task in the target pre-configuration scene to configure the storage system.
A storage system configuration device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the storage system configuration method when executing the computer program.
A readable storage medium, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned storage system configuration method.
By applying the method provided by the embodiment of the invention, the configuration request for configuring the storage system is received, and the user type corresponding to the configuration request is obtained. And determining a target pre-configuration scene corresponding to the user type in the pre-configured scene by using the corresponding relation between the pre-configured user type and the pre-configured scene. It should be noted that, in each provisioning scenario, a corresponding executable configuration task is preset. And then starting a task manager, executing each configuration task in the target pre-configuration scene, and completing the configuration of the storage system. That is, as long as the configuration task is set for the corresponding configuration item in advance, then the corresponding configuration task is added to the pre-configuration scene based on the user type. After receiving a configuration request for configuring the storage system, the user type corresponding to the configuration request can be automatically obtained, a matched target pre-configuration scene is determined, and a task manager is utilized to execute a configuration task in the target pre-configuration scene, so that the configuration of the storage system can be completed. That is, it is not necessary for a user or a professional after-sales person (technician) to configure each configuration item one by one, so that the configuration work of the storage system can be simplified, and the configuration efficiency can be improved. In addition, because in the field configuration process, manual intervention (manual operation) is reduced, the configuration accuracy can be improved.
Accordingly, embodiments of the present invention further provide a storage system configuration apparatus, a device, and a readable storage medium corresponding to the storage system configuration method, which have the above technical effects and are not described herein again.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating a method for configuring a storage system according to an embodiment of the present invention, the method including the following steps:
s101, receiving a configuration request for configuring the storage system, and acquiring a user type corresponding to the configuration request.
In an embodiment of the present invention, after receiving a configuration request for configuring a storage system, a user type may be determined using the configuration request. Specifically, the user type corresponding to the configuration request may be set in advance. The configuration request may be a configuration request that is actively sent by the storage system when a preset trigger condition (for example, when the storage system is powered on as a whole) is met when the storage system is configured on site, for example, initially set up and installed, or when the storage system is adjusted and modified. Of course, a user input instruction may also be used as the configuration request, for example, the configuration request may be a start instruction for starting configuration of the storage system, which is received by the user input.
The user type may be label information divided by categories such as an application scenario, an application requirement, and a rating of the user. For example, if the user type is divided into application scenes, the user type may be large, medium, or small. In addition, the manner of obtaining the user type includes directly receiving the user type input by the user or tag information indicating the user type (a corresponding relationship between the user type and a user input number is established in advance, for example, the user input "1" indicates that the user type is a high security level), or determining which type the user type satisfied by the user belongs to based on the requirement information input by the user.
S102, determining a target pre-configuration scene matched with the user type in the pre-configuration scene by using the corresponding relation between the preset user type and the pre-configuration scene.
In the embodiment of the invention, a lookup table of the corresponding relation between the user type and the pre-configured scene can be preset. The configuration scenario is a preset configuration mode, specifically, the configuration scenario includes a plurality of configuration tasks corresponding to the configuration scenario, and each configuration task can complete a corresponding configuration project on the storage system when being executed. That is, before performing field configuration, corresponding configuration tasks may be set in advance for each configuration item in the storage system, then, pre-configuration scenes respectively corresponding to each user type are created, and corresponding configuration tasks are added in each pre-configuration scene.
After the user type is obtained, a preset corresponding relation between the user type and the pre-configured scene can be used for determining a target pre-configured scene corresponding to the user type.
S103, starting a task manager, and executing each configuration task in the target pre-configuration scene to configure the storage system.
Since each configuration task in the target configuration scenario is an executable task, each configuration task in the target configuration scenario can be executed by using the task manager to complete each configuration work corresponding to the user type corresponding to the current storage system.
By applying the method provided by the embodiment of the invention, the configuration request for configuring the storage system is received, the user type corresponding to the configuration request is obtained, and the target pre-configuration scene corresponding to the user type is determined in the pre-configuration scene by utilizing the corresponding relation between the pre-set user type and the pre-configuration scene. It should be noted that, in each provisioning scenario, a corresponding executable configuration task is preset. And then starting a task manager, executing each configuration task in the target pre-configuration scene, and completing the configuration of the storage system. That is, as long as the configuration task is set for the corresponding configuration item in advance, then the corresponding configuration task is added to the pre-configuration scene based on the user type. When the storage system is configured on site, the matched target pre-configuration scene can be automatically determined under the condition of determining the user type, and the configuration task in the target pre-configuration scene is executed by utilizing the task manager, so that the configuration of the storage system can be completed. That is, it is not necessary for a user or a professional after-sales person (technician) to configure each configuration item one by one, so that the configuration work of the storage system can be simplified, and the configuration efficiency can be improved. In addition, in the field configuration project, manual intervention (manual operation) is reduced, and the configuration accuracy can be improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
it is considered that in practical applications, the specific application scenarios may differ even if belonging to the same user type. In order to better meet the practical application requirements, the embodiment further provides an improvement measure for adjusting the determined target preset scene.
Specifically, after step S101 of the above embodiment is executed, before step S103 is executed, the following steps may also be executed:
and adjusting the configuration task in the target pre-configuration scene.
That is, after determining the target provisioning scenario, the configuration tasks in the target provisioning scenario may also be adjusted before starting the task manager.
Preferably, in order to facilitate user operation and improve user experience, a graphical interface can be used for friendly human-computer interaction with a user or a technician. The method specifically comprises the following steps:
firstly, displaying each configuration task in a target pre-configuration scene in a visual interface;
acquiring adjustment information input by a user for adding, deleting or adjusting the configuration task of the target pre-configuration scene;
and step three, adjusting the configuration task in the target pre-configuration scene by using the adjustment information.
For convenience of description, the above three steps will be described in combination.
In the embodiment, after the target provisioning scenario is determined, each configuration task in the target provisioning scenario may be presented in the visualization interface. Specifically, information such as configuration parameters in each configuration task may be displayed. In this way, the user or the technician can be made to know the configuration items to be configured and the corresponding parameters explicitly, so that the user or the technician can adjust the configuration task. The user can input the adjustment information for adding, deleting or adjusting the configuration task by means of mouse click or by means of input instruction. When the adjustment information input by the user is obtained, the configuration task in the target pre-configuration scene can be adjusted by using the adjustment information. For example, when the configuration task for creating the mirror volume is not involved in the target provisioning scenario, the user may check the mirror volume configuration task from the configuration tasks selected and added on the graphical interface, and further add the mirror volume configuration task in the current target provisioning scenario. The mirror volume may then be added to the storage system when a subsequent configuration task is performed.
Preferably, in order to let the user or technician know in time whether the progress of the configuration work is sequential after the task manager is started. And in the process of starting the task manager and executing the configuration task, when the execution of the configuration task fails, stopping executing the configuration task and outputting error prompt information. That is, when a certain configuration task fails to be executed, the execution of the configuration task is stopped, so that a user or a technician can know the current problem position, and the influence on the storage system caused by the association relationship among the configuration tasks is reduced. The timely initial error prompt information is convenient for users or technicians to configure various schemes in time, and can quickly deal with the scheme, so that the configuration efficiency is further improved.
Example three:
because the configuration tasks are in a sequence before, namely, the configuration tasks may have a mutual correlation relationship, in order to complete the configuration project smoothly and accurately, when the pre-configuration scene is created in advance, the corresponding priority can be set, and when the configuration tasks are executed, the execution is performed according to the priority of the configuration tasks. The specific implementation process is as follows:
referring to fig. 2, before field configuration of the storage system, that is, obtaining the user type, the following steps may be performed:
s201, respectively creating corresponding configuration tasks for configuration items of the storage system.
When the configuration task is executed by the task manager, the configuration of the corresponding configuration project of the storage system can be automatically completed.
In this embodiment, the configuration that is generally required to be completed when configuring the storage system can be divided into various configuration items. Then, corresponding configuration tasks are created for the respective configuration items. It should be noted that the configuration task may not necessarily be limited to a certain storage system or a certain usage scenario. The configuration task created is an executable task. Specifically, the specific operational steps required for configuration may be logical and programmed to result in a computer recognizable executable task, such as in the form of an executable file. That is, the configuration tasks may be performed by the computer and configured for the corresponding configuration items of the storage system.
S202, corresponding preset scenes are created for different user types.
Because the distance between the configurations required by the storage systems corresponding to different user types is large, the finally configured storage system can meet the requirements of each user type as much as possible. When creating a provisioning scenario, provisioning creations may be created separately for each different user type. Namely, the preset scene and the user type have a corresponding relationship. In practical application, the corresponding relation can be stored in a corresponding relation lookup table, so that the lookup is convenient.
And S203, respectively adding corresponding configuration tasks in each pre-configuration scene, and respectively setting corresponding priorities and configuration parameters for each configuration task.
After the pre-configuration scenes are created, corresponding configuration tasks can be added to the pre-configuration scenes respectively, and corresponding priorities and configuration parameters are not set by the configuration equipment. For the priority, the configuration tasks which have no management relation with other configuration tasks can be stored in the same priority, and the configuration tasks which correspond to the configuration tasks with the association relation are put into different priorities according to the sequence required by the configuration. The configuration parameters have various parameters involved in each configuration task, for example, when the configuration task is an operation of creating a pool, the parameters corresponding to the configuration task may be parameters of the size, number, hardware location, and the like of the pool.
Correspondingly, after the task manager is started, each configuration task in the target pre-configuration scene is executed according to the priority order of each configuration task to configure the storage system. That is, the configuration tasks are executed in the order of priority, so that the configuration tasks having the management relationship can be prevented from being executed in the wrong execution order. Preferably, in order to improve the configuration efficiency in the configuration process, the configuration tasks at the same priority level may be executed in parallel. Namely, the configuration time is shortened by means of parallel execution.
Corresponding to the above method embodiments, the embodiments of the present invention further provide a storage system configuration apparatus, and the storage system configuration apparatus described below and the storage system configuration method described above may be referred to correspondingly.
Referring to fig. 3, the apparatus includes the following modules
A user type obtaining module 101, configured to receive a configuration request for configuring a storage system, and obtain a user type corresponding to the configuration request;
the target pre-configuration scene determining module 102 is configured to determine a target pre-configuration scene matched with a user type in a pre-configuration scene by using a corresponding relationship between a preset user type and the pre-configuration scene;
and the storage system parameter configuration module 103 is configured to start a task manager, and execute each configuration task in the target provisioning scenario to configure the storage system.
The device provided by the embodiment of the invention is applied to receive the configuration request for configuring the storage system, acquire the user type corresponding to the configuration request and determine the target pre-configuration scene corresponding to the user type in the pre-configuration scene by utilizing the corresponding relation between the pre-set user type and the pre-configuration scene. It should be noted that, in each provisioning scenario, a corresponding executable configuration task is preset. And then starting a task manager, executing each configuration task in the target pre-configuration scene, and completing the configuration of the storage system. That is, as long as the configuration task is set for the corresponding configuration item in advance, then the corresponding configuration task is added to the pre-configuration scene based on the user type. When the storage system is configured on site, the matched target pre-configuration scene can be automatically determined under the condition of determining the user type, and the configuration task in the target pre-configuration scene is executed by utilizing the task manager, so that the configuration of the storage system can be completed. That is, it is not necessary for a user or a professional after-sales person (technician) to configure each configuration item one by one, so that the configuration work of the storage system can be simplified, and the configuration efficiency can be improved. In addition, in the field configuration project, manual intervention (manual operation) is reduced, and the configuration accuracy can be improved.
In one embodiment of the present invention, the method further comprises:
and the configuration task adjusting module is used for adjusting the configuration task in the target pre-configuration scene after the target pre-configuration scene is determined and before the task manager is started.
In a specific embodiment of the present invention, the configuration task adjusting module includes:
the configuration task display unit is used for displaying each configuration task in the target pre-configuration scene in a visual interface;
the system comprises an adjustment information acquisition unit, a configuration task generation unit and a configuration task scheduling unit, wherein the adjustment information acquisition unit is used for acquiring adjustment information which is input by a user and used for adding, deleting or adjusting a configuration task of a target pre-configuration scene;
and the configuration task adjusting unit is used for adjusting the configuration task in the target pre-configuration scene by using the adjusting information.
In one embodiment of the present invention, the method further comprises: a pre-configured scenario creation module, comprising:
the configuration task creating unit is used for receiving a configuration request for configuring the storage system and respectively creating corresponding configuration tasks for configuration items of the storage system before acquiring the configuration request corresponding to the user type; when the configuration task is executed by the task manager, the configuration of the corresponding configuration project of the storage system can be automatically completed;
the device comprises a preset scene creating unit, a preset scene creating unit and a preset scene creating unit, wherein the preset scene creating unit is used for creating corresponding preset scenes for different user types;
and the pre-configuration scene configuration unit is used for adding corresponding configuration tasks in each pre-configuration scene in the pre-configuration scene respectively and setting corresponding priority and configuration parameters for each configuration task respectively.
In a specific embodiment of the present invention, the storage system parameter configuration module 103 is specifically configured to execute each configuration task in a target provisioning scenario according to a priority order of each configuration task to configure the storage system.
In an embodiment of the present invention, the system parameter configuration module 103 is stored, and is specifically configured to execute configuration tasks of the same priority level in parallel.
In an embodiment of the present invention, the storage system parameter configuration module 103 is configured to, in the process of executing the configuration task, stop executing the configuration task when the execution of the configuration task fails, and output an error prompt message.
Corresponding to the above method embodiment, an embodiment of the present invention further provides a storage system configuration device, and a storage system configuration device described below and a storage system configuration method described above may be referred to in correspondence.
Referring to fig. 4, the storage system configuration apparatus includes:
a memory D1 for storing computer programs;
and a processor D2, configured to implement the steps of the storage system configuration method of the above-described method embodiment when executing the computer program.
Corresponding to the above method embodiment, the embodiment of the present invention further provides a readable storage medium, and a readable storage medium described below and a storage system configuration method described above may be referred to correspondingly.
A readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the storage system configuration method of the above-mentioned method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and various other readable storage media capable of storing program codes.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.