CN109271317A - A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing - Google Patents

A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN109271317A
CN109271317A CN201811048357.1A CN201811048357A CN109271317A CN 109271317 A CN109271317 A CN 109271317A CN 201811048357 A CN201811048357 A CN 201811048357A CN 109271317 A CN109271317 A CN 109271317A
Authority
CN
China
Prior art keywords
storage pool
creation
storage
create
sshpass
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811048357.1A
Other languages
Chinese (zh)
Inventor
李超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811048357.1A priority Critical patent/CN109271317A/en
Publication of CN109271317A publication Critical patent/CN109271317A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of storage pool creation methods, this method comprises: receiving the request to create for creating N number of storage pool in target storage system;Wherein, N is positive integer;According to default creation order create-rule, N storage pool creation order corresponding with request to create is generated;Sshpass tool is passed to using N storage pool creation order as parameter;Target storage system is logged in using sshpass tool, and executes N storage pool creation order and creates N number of storage pool.In this way, being not necessarily to manual entry target storage system, it is manually entered storage pool creation order, just may be implemented in target storage system, according to the storage pool of the request to create creation specified quantity received.Manual operation is reduced, the work load of technical staff can be not only reduced, also can avoid human error, storage pool is improved and creates accuracy rate.The invention also discloses a kind of storage pool creating device, equipment and readable storage medium storing program for executing, have corresponding technical effect.

Description

A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing
Technical field
The present invention relates to technical field of memory, more particularly to a kind of storage pool creation method, device, equipment and readable deposit Storage media.
Background technique
In testing storage system, often it is related to the test of boundary value.Boundary value is tested, i.e., is in storage Storage pool is constantly created in system, mode until can not continue to create storage pool obtains the boundary value of storage system.It is different Storage system support different parameter of regularity, i.e. the boundary value of storage system is small then up to a hundred, how then up to ten thousand.In addition, applying When storage system storing data, storage pool need to largely be created by often also relating to.
Currently, carrying out test to storage system or in application, mostly by manually mode, logging in storage system, and Manual input commands row, creates storage pool one by one.The efficiency for creating storage pool is lower, time-consuming, and is easy to appear human error.
It is current this field in conclusion how to efficiently solve the problems such as storage system creates the efficiency of storage pool Technical staff's technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide a kind of storage pool creation method, device, equipment and readable storage medium storing program for executing, are deposited with realizing Reservoir creates efficiency
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of storage pool creation method, comprising:
Receive the request to create that N number of storage pool is created in target storage system;Wherein, N is positive integer;
According to default creation order create-rule, N storage pool creation order corresponding with the request to create is generated;
Sshpass tool is passed to using the creation order of storage pool described in N item as parameter;
The target storage system is logged in using sshpass tool, and executes the creation order creation of storage pool described in N item N A storage pool.
Preferably, described according to default creation order create-rule, generate N storage pool corresponding with the request to create Creation order, comprising:
Using Do statement, assignment is carried out to the variable of default creation order, generates N item corresponding with the request to create Storage pool creation order.
It is preferably, described to log in the target storage system using sshpass tool, comprising:
Log-on message is read using the sourceRun_Ssh.sh in sshpass tool;Wherein, the log-on message includes Cluster ip, username and password;
Target storage system is logged in using the RunSsh.sh in the sshpass tool, and in conjunction with the log-on message System.
Preferably, further includes:
It is obtained using the sshpass tool and executes the creation order of storage pool described in N item in the target storage system The execution time.
Preferably, it is obtained using the sshpass tool and executes the wound of storage pool described in N item in the target storage system Build the execution time of order, comprising:
Using the sshpass tool, the executable binary file for utilizing the built-in time order of shell is executed, is obtained The execution time of the creation order of storage pool described in N item is executed in the target storage system.
Preferably, further includes:
Receive the querying command for inquiring the storage pool quantity of the target storage system;
The RunSsh.sh is passed to using the querying command as parameter, is obtained on presently described target storage system Storage pool quantity.
Preferably, further includes:
Receive the removal request that M storage pool is deleted in target storage system;Wherein, M is positive integer;
According to default delete command create-rule, M storage pool delete command corresponding with the removal request is generated;
The sshpass tool is passed to using storage pool delete command described in M item as parameter;
The target storage system is logged in using the sshpass tool, and executes storage pool delete command described in M item and deletes Except M storage pool.
A kind of storage pool creating device, comprising:
Request to create obtains module, for receiving the request to create for creating N number of storage pool in target storage system;Its In, N is positive integer;
Storage pool creates order generation module, for according to default creation order create-rule, generation to be asked with the creation Ask corresponding N storage pool creation order;
Storage pool creates order transfer module, for passing to using the creation order of storage pool described in N item as parameter Sshpass tool;
Storage pool creation module for logging in the target storage system using sshpass tool, and executes described in N item Storage pool creation order creates N number of storage pool.
A kind of storage pool creation equipment, comprising:
Memory, for storing computer program;
Processor, the step of above-mentioned storage pool creation method is realized when for executing the computer program.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing The step of processor realizes above-mentioned storage pool creation method when executing.
Using method provided by the embodiment of the present invention, the creation that N number of storage pool is created in target storage system is received Request;Wherein, N is positive integer;According to default creation order create-rule, N storage pool wound corresponding with request to create is generated Build order;Sshpass tool is passed to using N storage pool creation order as parameter;Mesh is logged in using sshpass tool Storage system is marked, and executes N storage pool creation order and creates N number of storage pool.
When creating storage pool in target storage system, that is, receives request and create N number of storage in target storage system After the request to create in pond, N storage pool creation corresponding with request to create can be generated according to default creation order create-rule Order.Then, using this N storage pool creation order as parameter, sshpass tool is passed to.Due to sshpass tool It can be realized automated log on storage system, and transmitting order to lower levels is to storage system, therefore, it is possible to which sshpass tool is utilized to log in mesh Storage system is marked, and realizes N storage pool creation order of execution, is finally created that N number of storage pool.In this way, being not necessarily to manual entry Target storage system is manually entered storage pool creation order, just may be implemented in target storage system, according to the creation received The storage pool of request creation specified quantity.Manual operation is reduced, the work load of technical staff can be not only reduced, also can avoid people For fault, improves storage pool and create accuracy rate.
By storage pool creation method provided by the embodiment of the present invention be applied to storage system carry out border value testing or When application storage system create storage pool during, due to storage pool create it is high-efficient, also may make border value testing efficiency, The efficiency of application storage system is promoted.
Correspondingly, the embodiment of the invention also provides storage pool corresponding with above-mentioned storage pool creation method creations to fill It sets, equipment and readable storage medium storing program for executing, has above-mentioned technique effect, details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of storage pool creation method in the embodiment of the present invention;
Fig. 2 is a kind of implementation flow chart for deleting storage pool in the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of storage pool creating device in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of storage pool creation equipment in the embodiment of the present invention;
Fig. 5 is a kind of concrete structure schematic diagram of storage pool creation equipment in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 be the embodiment of the present invention in a kind of flow chart of storage pool creation method, this method include with Lower step:
S101, reception create the request to create of N number of storage pool in target storage system.
Wherein, N is positive integer.
The storage pool creation method provided by the embodiment of the present invention can be applied to carrying out boundary to target storage system It is worth in the test scene of test, can also be applied in using application processes such as target storage system storing datas.Wherein, target Storage system can be the storage system of common different size.When receive such as continuous integrating tool (jenkins), automation The upper layer applications such as test platform assign the instruction for creating N number of storage pool, or detect user in the visual of storage pool management software Change interface, when input storage pool creates quantity N, that is, is considered as to receive and requests to create N number of storage pool in target storage system Request to create.
S102, according to default creation order create-rule, generate N storage pool creation corresponding with request to create and order.
Creation order create-rule can be preset, in the rule, it may include the amount of capacity of the storage pool of generation is deposited The setting means of reservoir name, affiliated storage cluster IP.Since the pond name of storage pool is different, thus is ordered according to creation and generate rule Then, that is, N storage pool creation order corresponding with request to create is produced.That is, when request to create is request in target The request of 6 storage pools is created in storage system, then according to creation order create-rule, then produces and request in request to create The corresponding 6 storage pools creation order of the storage pool quantity of creation.
Preferentially, in order to fast and effeciently generate storage pool creation order, the storage for having variable can be preset Pond creation order, is then based on creation order create-rule, carries out assignment to the variable in storage pool creation order, can generate Corresponding storage pool creation order.Specifically, carrying out assignment using Do statement to the variable of default creation order, generating N The creation order of storage pool.Wherein, used Do statement can be specially for sentence, do sentence, while statement.For example, When needing the storage pool quantity N created to be specially 5, using for (i=1;<=5 i;I++) { i-th storage pool is created Variable in order carries out assignment }, generate 5 storage pool creation orders.
S103, sshpass tool is passed to using N storage pool creation order as parameter.
It is since Sshpass tool can be used for the password authentification of nonreciprocal SSH, i.e., close without inputting again in sh script Code.And allow to specify clear-text passwords using-p parameter, remote server is then directly logged in, is supported from order line, file, environment Password is read in variable.After generating the creation order of N storage pool, can N storage pool creation order respectively as parameter Pass to sshpass tool.
Wherein it is possible to realize login target storage system by executing following steps:
Step 1: reading log-on message using the sourceRun_Ssh.sh in sshpass tool.
Wherein, log-on message includes cluster ip, username and password;
Step 2: using the RunSsh.sh in sshpass tool, and log-on message is combined to log in target storage system.
It is illustrated for ease of description, below combining above-mentioned two step.
Two script files of sourceRun_Ssh.sh and RunSsh.sh can be preset.Wherein sourceRun_ Ssh.sh script is used to read the log-on messages such as cluster ip, the user name password in pre-stored file;RunSsh.sh script For according to log-on message Telnet target storage system.
Specifically, how storage pool creation order is passed to the specific implementation process of sshpass tool as parameter, it can Referring to the application method of sshpass tool, details are not described herein.
S104, target storage system is logged in using sshpass tool, and executes N storage pool creation order and creates N number of deposit Reservoir.
Target storage system is logged in using sshpass tool, and N storage pool creation order is assigned to target storage system System is completed to create N number of storage pool so that target storage system executes N storage pool creation order.
Using method provided by the embodiment of the present invention, the creation that N number of storage pool is created in target storage system is received Request;Wherein, N is positive integer;According to default creation order create-rule, N storage pool wound corresponding with request to create is generated Build order;Sshpass tool is passed to using N storage pool creation order as parameter;Mesh is logged in using sshpass tool Storage system is marked, and executes N storage pool creation order and creates N number of storage pool.
When creating storage pool in target storage system, that is, receives request and create N number of storage in target storage system After the request to create in pond, N storage pool creation corresponding with request to create can be generated according to default creation order create-rule Order.Then, using this N storage pool creation order as parameter, sshpass tool is passed to.Due to sshpass tool It can be realized automated log on storage system, and transmitting order to lower levels is to storage system, therefore, it is possible to which sshpass tool is utilized to log in mesh Storage system is marked, and realizes N storage pool creation order of execution, is finally created that N number of storage pool.In this way, being not necessarily to manual entry Target storage system is manually entered storage pool creation order, just may be implemented in target storage system, according to the creation received The storage pool of request creation specified quantity.Manual operation is reduced, the work load of technical staff can be not only reduced, also can avoid people For fault, improves storage pool and create accuracy rate.
By storage pool creation method provided by the embodiment of the present invention be applied to storage system carry out border value testing or During creating storage pool when application storage system, higher storage pool creation efficiency also may make border value testing efficiency, The efficiency of application storage system is promoted.
Preferably, convenient for by storage pool creation method provided by the embodiment of the present invention be applied to target storage system into Row test, when also obtaining the execution for executing N storage pool creation order in target storage system using sshpass tool Between.That is, sshpass can also be utilized when using the creation storage pool of storage pool creation method provided by the embodiment of the present invention Tool obtains the execution time of creation storage pool, so that the performance to target storage system is identified.In specific implementation, may be used Using sshpass tool, the executable binary file for utilizing the built-in time order of shell is executed, obtains and stores system in target The execution time of N storage pool creation order is executed in system.Specifically, sshpass logs in the operation of target storage system, and Executing other operations can be used as the keyword time that parameter is transmitted to shell, when can so obtain exectorial in storage Between.
Preferably, the storage pool quantity created in current goal storage system for the convenience of the user, so as to carry out creation or Storage pool is deleted, storage pool creation method provided by the embodiment of the present invention can also inquire target storage system by receiving Storage pool quantity querying command;RunSsh.sh is passed to using querying command as parameter, obtains current goal storage system On storage pool quantity.
Preferably due in practical applications, when being managed to the storage pool in target storage system, may relate to And to the operation for needing largely to delete storage pool.Therefore, based on embodiment presented above, the embodiment of the present invention is also Provide the technical solution including deleting storage pool.Referring to FIG. 2, Fig. 2 is a kind of deletion storage pool in the embodiment of the present invention Implementation flow chart.Deleting storage pool includes:
S201, the removal request that M storage pool is deleted in target storage system is received;
Wherein, M is positive integer;
S202, according to default delete command create-rule, generate M storage pool delete command corresponding with removal request;
S203, sshpass tool is passed to using M storage pool delete command as parameter;
S204, target storage system is logged in using sshpass tool, and executes M storage pool delete command deletion M and deposits Reservoir.
From above-mentioned steps as it can be seen that deleting the realization process of storage pool and the realization process of creation storage pool as described above It is similar.Therefore, the specific implementation process for deleting storage pool can be found in the described specific implementation step of above-described embodiment, herein not It repeats again.
Embodiment two:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of storage pool creating devices, hereafter retouch The storage pool creating device stated can correspond to each other reference with above-described storage pool creation method.
Shown in Figure 3, which comprises the following modules:
Request to create obtains module 101, for receiving the request to create for creating N number of storage pool in target storage system; Wherein, N is positive integer;
Storage pool creates order generation module 102, for according to default creation order create-rule, generation and request to create Corresponding N storage pool creation order;
Storage pool creates order transfer module 103, for passing to using N storage pool creation order as parameter Sshpass tool;
Storage pool creation module 104 for logging in target storage system using sshpass tool, and executes N storage pool Creation order creates N number of storage pool.
Using device provided by the embodiment of the present invention, the creation that N number of storage pool is created in target storage system is received Request;Wherein, N is positive integer;According to default creation order create-rule, N storage pool wound corresponding with request to create is generated Build order;Sshpass tool is passed to using N storage pool creation order as parameter;Mesh is logged in using sshpass tool Storage system is marked, and executes N storage pool creation order and creates N number of storage pool.
When creating storage pool in target storage system, that is, receives request and create N number of storage in target storage system After the request to create in pond, N storage pool creation corresponding with request to create can be generated according to default creation order create-rule Order.Then, using this N storage pool creation order as parameter, sshpass tool is passed to.Due to sshpass tool It can be realized automated log on storage system, and transmitting order to lower levels is to storage system, therefore, it is possible to which sshpass tool is utilized to log in mesh Storage system is marked, and realizes N storage pool creation order of execution, is finally created that N number of storage pool.In this way, being not necessarily to manual entry Target storage system is manually entered storage pool creation order, just may be implemented in target storage system, according to the creation received The storage pool of request creation specified quantity.Manual operation is reduced, the work load of technical staff can be not only reduced, also can avoid people For fault, improves storage pool and create accuracy rate.
By storage pool creating device provided by the embodiment of the present invention be applied to storage system carry out border value testing or During creating storage pool when application storage system, higher storage pool creation efficiency also may make border value testing efficiency, The efficiency of application storage system is promoted.
In a kind of specific embodiment of the invention, storage pool creates order generation module 102, follows specifically for utilizing Ring sentence carries out assignment to the variable of default creation order, generates N storage pool creation order.
In a kind of specific embodiment of the invention, storage pool creation module 104, comprising:
Log-on message reading unit, for reading log-on message using the sourceRun_Ssh.sh in sshpass tool; Wherein, log-on message includes cluster ip, username and password;
Unit is logged in, for utilizing the RunSsh.sh in sshpass tool, and log-on message is combined to log in target storage System.
In a kind of specific embodiment of the invention, further includes:
Time-obtaining module is executed, executes N storage pool in target storage system for obtaining using sshpass tool Create the execution time of order.
In a kind of specific embodiment of the invention, time-obtaining module is executed, is specifically used for utilizing sshpass work Tool executes the executable binary file for utilizing the built-in time order of shell, obtains the execution N item in target storage system and deposits The execution time of reservoir creation order.
In a kind of specific embodiment of the invention, further includes:
Storage pool quantity enquiry module, the querying command of the storage pool quantity for receiving inquiry target storage system;It will Querying command passes to RunSsh.sh as parameter, obtains the storage pool quantity in current goal storage system.
In a kind of specific embodiment of the invention, further includes:
Storage pool removing module, for receiving the removal request for deleting M storage pool in target storage system;Wherein, M For positive integer;According to default delete command create-rule, M storage pool delete command corresponding with removal request is generated;By M item Storage pool delete command passes to sshpass tool respectively as parameter;Target storage system is logged in using sshpass tool, And it executes M storage pool delete command and deletes M storage pool.
Embodiment three:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of storage pools to create equipment, hereafter retouches A kind of storage pool creation equipment stated can correspond to each other reference with a kind of above-described storage pool creation method.
Shown in Figure 4, which includes:
Memory D1, for storing computer program;
Processor D2, when for executing computer program the step of the transaction methods of realization above method embodiment.
Referring to FIG. 5, Fig. 5 is the concrete structure schematic diagram that storage pool provided in this embodiment creates equipment.The storage pool Creation equipment can generate bigger difference because configuration or performance are different, may include one or more processors (central processing units, CPU) 322 (for example, one or more processors) and memory 332, one Or (such as one or more mass memories are set the storage medium 330 of more than one storage application program 342 or data 344 It is standby).Wherein, memory 332 and storage medium 330 can be of short duration storage or persistent storage.It is stored in the journey of storage medium 330 Sequence may include one or more modules (diagram does not mark), and each module may include to one in data processing equipment Series of instructions operation.Further, central processing unit 322 can be set to communicate with storage medium 330, create in storage pool The series of instructions operation in storage medium 330 is executed in equipment 301.
Storage pool create equipment 301 can also include one or more power supplys 326, one or more it is wired or Radio network interface 350, one or more input/output interfaces 358, and/or, one or more operating systems 341.For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..
The structure that step in storage pool creation method described above can be created equipment by storage pool is realized.
Example IV:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described storage pool creation method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor The step of storage pool creation method of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk The readable storage medium storing program for executing of code.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of storage pool creation method characterized by comprising
Receive the request to create that N number of storage pool is created in target storage system;Wherein, N is positive integer;
According to default creation order create-rule, N storage pool creation order corresponding with the request to create is generated;
Sshpass tool is passed to using the creation order of storage pool described in N item as parameter;
The target storage system is logged in using sshpass tool, and executes the creation order of storage pool described in N item and creates N number of deposit Reservoir.
2. storage pool creation method according to claim 1, which is characterized in that described order according to default creation generates rule Then, N storage pool creation order corresponding with the request to create is generated, comprising:
Using Do statement, assignment is carried out to the variable of default creation order, generates N item storage corresponding with the request to create Pond creation order.
3. storage pool creation method according to claim 1, which is characterized in that described to log in institute using sshpass tool State target storage system, comprising:
Log-on message is read using the sourceRun_Ssh.sh in sshpass tool;Wherein, the log-on message includes cluster Ip, username and password;
The target storage system is logged in using the RunSsh.sh in the sshpass tool, and in conjunction with the log-on message.
4. storage pool creation method according to claim 1, which is characterized in that further include:
It is obtained using the sshpass tool and executes holding for the creation order of storage pool described in N item in the target storage system The row time.
5. storage pool creation method according to claim 4, which is characterized in that obtained using the sshpass tool The execution time of the creation order of storage pool described in N item is executed in the target storage system, comprising:
Using the sshpass tool, the executable binary file for utilizing the built-in time order of shell is executed, is obtained in institute State the execution time that the creation order of storage pool described in N item is executed in target storage system.
6. storage pool creation method according to claim 1, which is characterized in that further include:
Receive the querying command for inquiring the storage pool quantity of the target storage system;
The RunSsh.sh is passed to using the querying command as parameter, obtains depositing on presently described target storage system Reservoir quantity.
7. storage pool creation method according to any one of claims 1 to 6, which is characterized in that further include:
Receive the removal request that M storage pool is deleted in target storage system;Wherein, M is positive integer;
According to default delete command create-rule, M storage pool delete command corresponding with the removal request is generated;
The sshpass tool is passed to using storage pool delete command described in M item as parameter;
The target storage system is logged in using the sshpass tool, and executes storage pool delete command described in M item and deletes M A storage pool.
8. a kind of storage pool creating device characterized by comprising
Request to create obtains module, for receiving the request to create for creating N number of storage pool in target storage system;Wherein, N is Positive integer;
Storage pool creates order generation module, for generating and the request to create pair according to default creation order create-rule The N storage pool creation order answered;
Storage pool creates order transfer module, for passing to using the creation order of storage pool described in N item as parameter Sshpass tool;
Storage pool creation module for logging in the target storage system using sshpass tool, and executes storage described in N item Pond creation order creates N number of storage pool.
9. a kind of storage pool creates equipment characterized by comprising
Memory, for storing computer program;
Processor realizes the storage pool creation method as described in any one of claim 1 to 7 when for executing the computer program The step of.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 7 the step of storage pool creation method.
CN201811048357.1A 2018-09-07 2018-09-07 A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing Pending CN109271317A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811048357.1A CN109271317A (en) 2018-09-07 2018-09-07 A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811048357.1A CN109271317A (en) 2018-09-07 2018-09-07 A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing

Publications (1)

Publication Number Publication Date
CN109271317A true CN109271317A (en) 2019-01-25

Family

ID=65187573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811048357.1A Pending CN109271317A (en) 2018-09-07 2018-09-07 A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing

Country Status (1)

Country Link
CN (1) CN109271317A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167213A1 (en) * 2003-12-17 2011-07-07 International Business Machines Corporation Method and system for assigning or creating a resource
CN103902458A (en) * 2014-04-18 2014-07-02 浪潮电子信息产业股份有限公司 Universal storage software test design method
CN104133776A (en) * 2014-07-14 2014-11-05 华为技术有限公司 Storage array automated configuration method, storage array automated configuration device and storage system
CN106201357A (en) * 2016-07-18 2016-12-07 浪潮(北京)电子信息产业有限公司 The construction method of a kind of storage pool and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110167213A1 (en) * 2003-12-17 2011-07-07 International Business Machines Corporation Method and system for assigning or creating a resource
CN103902458A (en) * 2014-04-18 2014-07-02 浪潮电子信息产业股份有限公司 Universal storage software test design method
CN104133776A (en) * 2014-07-14 2014-11-05 华为技术有限公司 Storage array automated configuration method, storage array automated configuration device and storage system
CN106201357A (en) * 2016-07-18 2016-12-07 浪潮(北京)电子信息产业有限公司 The construction method of a kind of storage pool and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ADMIN: ""利用sshpass获取多台主机的信息"", 《运维之路》 *
佚名: "Ceph Pool操作", 《51CTO》 *

Similar Documents

Publication Publication Date Title
US12039366B2 (en) Task processing method, system, device, and storage medium
CN108786112B (en) Application scene configuration method, device and storage medium
EP3465466A1 (en) Resource allocation for database provisioning
CN111930521A (en) Method and device for deploying application, electronic equipment and readable storage medium
CN104205115A (en) Using different secure erase algorithms to erase chunks from file associated with different security levels
US9473304B1 (en) Generation and distribution of named, definable, serialized tokens
CN104978258A (en) Software automation test method and system
CN109002451A (en) Map datum vacuates method and device
CN105847088A (en) Virtual machine performance test system based on cloud service
CN111258721A (en) Cloud host operating system user management method, device, equipment and storage medium
US11681961B2 (en) Flexible work breakdown structure
CN112306471A (en) Task scheduling method and device
EP4421707A1 (en) Method and apparatus for generating project flow, electronic device, and storage medium
US20240267290A1 (en) Autonomous terraforming on cloud infrastructures
US20220059193A1 (en) Multiple chemical programs for an array of chemical reactors with a single array of reactants
CN106302641B (en) A kind of methods, devices and systems of upper transmitting file
CN109063468A (en) A kind of installation kit integrity verification and the method for reparation
CN108845825A (en) A kind of storage system configuration method, apparatus, equipment and readable storage medium storing program for executing
CN109271317A (en) A kind of storage pool creation method, device, equipment and readable storage medium storing program for executing
CN104462116A (en) Data selecting method and device
KR101467930B1 (en) Method for changing password, device for managing password and computer readable recording medium
CN106056694A (en) Power inspection management method and system
CN111831738A (en) Method and device for storing Internet recruitment data on block chain
CN115905199A (en) Data verification method and device, electronic equipment and storage medium
CN104955026A (en) Method for modifying MAC addresses of Bluetooth (Personal Digital Assistant) and WiFi of PDA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190125