[go: up one dir, main page]

CN109460285A - The hanging method and relevant apparatus of storage system in a kind of virtual platform - Google Patents

The hanging method and relevant apparatus of storage system in a kind of virtual platform Download PDF

Info

Publication number
CN109460285A
CN109460285A CN201811297038.4A CN201811297038A CN109460285A CN 109460285 A CN109460285 A CN 109460285A CN 201811297038 A CN201811297038 A CN 201811297038A CN 109460285 A CN109460285 A CN 109460285A
Authority
CN
China
Prior art keywords
mounting
processing
carry
task
tasks
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
CN201811297038.4A
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 CN201811297038.4A priority Critical patent/CN109460285A/en
Publication of CN109460285A publication Critical patent/CN109460285A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5066Algorithms for mapping a plurality of inter-dependent sub-tasks onto a plurality of physical CPUs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/52Program synchronisation; Mutual exclusion, e.g. by means of semaphores
    • G06F9/526Mutual exclusion algorithms
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/4557Distribution of virtual machine instances; Migration and load balancing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/509Offload

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本申请公开了一种虚拟化平台中存储系统的挂载方法,包括:当接收到多个挂载任务的请求时,平台集群系统根据锁机制对所有所述挂载任务进行挂载处理;当挂载任务处理成功时,发送处理成功信息;当挂载任务处理失败时,对所述挂载任务执行回滚操作,以便将所述挂载任务的存储系统和主机恢复到初始状态。通过锁机制进行挂载处理,保证了数据的可靠性,提高了挂载处理的速度。本申请还公开了一种虚拟化平台中存储系统的挂载装置、服务器以及计算机可读存储介质,具有上述有益效果。

The present application discloses a method for mounting a storage system in a virtualization platform, comprising: when receiving requests for multiple mounting tasks, the platform cluster system performs mounting processing on all the mounting tasks according to a lock mechanism; When the mount task is successfully processed, a processing success message is sent; when the mount task fails, a rollback operation is performed on the mount task, so as to restore the storage system and host of the mount task to the initial state. The mounting process is performed through the lock mechanism, which ensures the reliability of the data and improves the speed of the mounting process. The present application also discloses a mounting device, a server and a computer-readable storage medium for a storage system in a virtualization platform, which have the above beneficial effects.

Description

The hanging method and relevant apparatus of storage system in a kind of virtual platform
Technical field
This application involves field of computer technology, in particular to the hanging method of storage system in a kind of virtual platform, Carry device, server and computer readable storage medium.
Background technique
With the development of cloud computing technology, there is a kind of virtualization technology --- the virtual platform of basic cloud computing, Those skilled in the art can manage hundreds of or thousands of calculate nodes by a virtual platform.Wherein, each calculate node It is mutually to carry out carry by storage system and host to be formed.Therefore, in the prior art, it is generally required that being hung to storage system Carry processing and unloading processing.
But in the prior art in order to avoid carrying out data entanglements caused by multiple carries are handled simultaneously, and serially into The processing of row carry, that is, to successively progress carry processing.It is existing when the calculate node quantity for needing to carry out carry processing is more There is the carry mode in technology to will lead to repetitive operation existing for whole process, consume the plenty of time, reduces efficiency.
Therefore, the Important Problems that multiple carry processing are those skilled in the art's concerns how are carried out simultaneously.
Summary of the invention
The purpose of the application is to provide hanging method, the carry device, server of storage system in a kind of virtual platform And computer readable storage medium, carry processing is carried out by lock mechanism, the reliability of data is ensure that, improves at carry The speed of reason.
In order to solve the above technical problems, the application provides a kind of hanging method of storage system in virtual platform, comprising:
When receiving the request of multiple carry tasks, platform cluster system is according to lock mechanism to all carry tasks Carry out carry processing;
When carry task is handled successfully, processing successful information is sent;
When carry task processing failure, to the carry task execution rolling back action, so as to by the carry task Storage system and host return to original state.
Optionally, when receiving the request of multiple carry tasks, platform cluster system is according to lock mechanism to all described Carry task carries out carry processing, comprising:
When receiving the request of multiple carry tasks, bottom that platform cluster system is handled the carry according to lock mechanism Layer order carries out locking processing, obtains lock mechanism carry order;
Carry processing is carried out to all carry tasks according to the lock mechanism carry order.
Optionally, when the carry task processing failure, to the carry task execution rolling back action, so as to will be described The storage system and host of carry task return to original state, comprising:
When the carry task processing failure, the storage system of the carry task and described is removed in the database The mark data of host;
The incidence relation of the storage system and the host is deleted in the bottom data of the platform cluster system, with Just the storage system of the carry task and the host are returned to original state.
Optionally, when carry task processing failure, further includes:
Send processing failure information.
Optionally, further includes:
Client sends the request of multiple carry tasks to the platform cluster system in a parallel fashion.
The application also provides a kind of carry device of storage system in virtual platform, comprising:
Carry task parallel processing module, for when receiving the request of multiple carry tasks, according to lock mechanism to institute There is the carry task to carry out carry processing;
It is successfully processed module, for when carry task is handled successfully, sending processing successful information;
Failure handling module, for when carry task processing failure, to the carry task execution rolling back action, so as to The storage system of the carry task and host are returned to original state.
Optionally, the carry task parallel processing module, comprising:
Lock processing unit, for when receiving the request of multiple carry tasks, according to lock mechanism to the carry at The bottom order of reason carries out locking processing, obtains lock mechanism carry order;
Carry unit is locked, for carrying out at carry according to the lock mechanism carry order to all carry tasks Reason.
Optionally, further includes:
Transmitted in parallel module is requested, for sending multiple carry tasks in a parallel fashion to the platform cluster system Request.
The application also provides a kind of server characterized by comprising
Memory, for storing computer program;
Processor, the step of hanging method as described above is realized when for executing the computer program.
The application also provides a kind of computer readable storage medium, and calculating is stored on the computer readable storage medium The step of machine program, the computer program realizes hanging method as described above when being executed by processor.
The hanging method of storage system in a kind of virtual platform provided herein, comprising: when receiving multiple extensions When the request of load task, platform cluster system carries out carry processing to all carry tasks according to lock mechanism;When carry is appointed When business is handled successfully, processing successful information is sent;When carry task processing failure, the carry task execution rollback is grasped Make, to return to original state the storage system of the carry task and host.
Carry processing is carried out to all carry tasks by way of to lock mechanism, avoids while carrying out multiple carries When task to carry processing in order simultaneously carry out operate appearance data entanglement the case where, realize holding data reliability It is lower by carry task parallel processing, the case where improving the treatment effeciency of carry task, and also avoid corrupt data, simultaneously When carry task processing failure, rolling back action is carried out to carry task, the storage system of carry task and host are restored to Original state, further increases the reliable of parallel processing carry task at the case where avoiding the error in data that carry unsuccessfully occurs Property, guarantee the parallel processing of carry task, improves the treatment effeciency of carry task.
The application also provides in a kind of virtual platform the carry device, server of storage system and computer-readable deposits Storage media has above-mentioned beneficial effect, and this will not be repeated here.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, 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 The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is the flow chart of the hanging method of storage system in a kind of virtual platform provided by the embodiment of the present application;
Fig. 2 is the flow chart of the rolling back action method of hanging method provided by the embodiment of the present application;
Fig. 3 is the structural representation of the carry device of storage system in a kind of virtual platform provided by the embodiment of the present application Figure.
Specific embodiment
The core of the application is to provide hanging method, the carry device, server of storage system in a kind of virtual platform And computer readable storage medium, carry processing is carried out by lock mechanism, the reliability of data is ensure that, improves at carry The speed of reason.
To keep the purposes, technical schemes and advantages of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall in the protection scope of this application.
In the prior art in order to avoid carrying out data entanglement caused by multiple carries are handled simultaneously, and serially carry out carry Processing, that is, carry processing is successively carried out to storage system and host.When the calculate node quantity for needing to carry out carry processing When more, carry mode in the prior art will lead to whole process, and there are repetitive operations, consume the plenty of time, reduce efficiency.It is existing Have in technology and is primarily due to using serial manner when multiple carry tasks while when carrying out, to the data in virtual platform Library and bottom data carry out write operation simultaneously, are easy to appear write-in problem, lead to data remanence to keep virtual platform wrong The carry state of identification storage system accidentally, is easy to go wrong in virtual platform.So carry task serial is held Row, reduces the quantity for write-in problem occur.
Therefore, the present embodiment carries out carry processing to all carry tasks by way of to lock mechanism, avoids same When the multiple carry tasks of Shi Jinhang is carried out to the order in carry processing the case where operating the data entanglement of appearance simultaneously, realized It keeps that carry task parallel processing is improved the treatment effeciency of carry task, and also avoid data under data reliability The case where error, while when carry task processing failure, rolling back action is carried out to carry task, by the storage system of carry task The case where system and host return to original state, avoid the error in data that carry unsuccessfully occurs, further increases parallel processing The reliability of carry task guarantees the parallel processing of carry task, improves the treatment effeciency of carry task.
In addition, storage system and the carry task of host and unloading task defect having the same in calculate node, are unloaded Load task can also be improved by the technical solution in the embodiment of the present application.
Specifically, referring to FIG. 1, Fig. 1 is storage system in a kind of virtual platform provided by the embodiment of the present application The flow chart of hanging method.
This method may include:
S101, when receiving the request of multiple carry tasks, platform cluster system appoints all carries according to lock mechanism Business carries out carry processing;
This step is intended to when receiving the request of multiple carry tasks, and platform cluster system is according to lock mechanism to all extensions Load task carries out carry processing.This step, can be simultaneously to multiple carry tasks namely when receiving multiple carry tasks It is handled, not as in the prior art to the processing of carry task serial.It is emphasized that appointing in this step to multiple carries It is engaged in while being handled that multiple carry tasks are namely carried out parallel processing.
Wherein, the mode that multiple carry tasks are received in this step can be while receiving multiple carry tasks, It can be and be respectively received multiple carry tasks in different moments, can also be by way of both the above reception while being connect It receives, it is seen then that the mode that multiple carry tasks are received in the present embodiment is not unique, can be not specifically limited, also, at this The carry task no matter received by which kind of mode in step can carry out at carry all carry tasks received Reason.
Specifically, in this step by all carry tasks received while carry processing can be carried out, it is also possible to work as It receives a carry task just to handle it, without being associated with other carry tasks, can also appoint according to carry is received The mode of business determines how to be handled, for example, carry task is to receive multiple carry tasks simultaneously, then this step is exactly The carry task that receives simultaneously is handled, if carry task is to be sequentially received different moments whithin a period of time , just it is handled then a carry task can be received in this step.As it can be seen that above, no matter which kind of carry is appointed All there are the multiple carry tasks handled at any time in the processing mode of business.And it is in the prior art an extension Load task carries out after treatment and just carries out next carry task, is a kind of parallel processing mode, although ensuring data It will not malfunction, but the processing speed of carry task can be reduced.
And in this step, carry processing is mainly carried out to all carry tasks according to lock mechanism.Wherein, according to lock mechanism Form carry out carry processing when can guarantee multiple carry tasks while be handled, wherein the life limited by lock mechanism Order may only be called by a carry task, avoided multiple carry tasks while being called an order, and the number occurred According to the situation of mistake.
It has been discovered that in the prior art guarantee data do not malfunction, be exactly from the process of carry task execution so that All orders in carry processing are can be called by a carry task, can reduce the speed of the carry processing of carry task Degree.It, therefore, can be just for the extension of part and in actual carry treatment process and not all order can only be called individually Order in load processing is limited, so that the order is only individually called, others order can be called simultaneously.Namely A part is in parallel processing in entire carry processing links, and a part is serial process, than complete order serial process Reduce the processing time.Therefore, data had not only been maintained not malfunction, but also has improved whole processing speed.
Specifically, the order of carry task is limited by lock mechanism in this step, it is any for the order of locking Moment may only have a carry task to be called.Used programming language is different, the lock mechanism mode realized to order Also different, therefore this will not be repeated here.More specifically, there are multiple orders in carry processing, different command is locked logarithm It is also different according to the influence size of error, it can substantially be divided into upper layer commands and bottom order, wherein can carry out to two Lock can also only lock to wherein any one order, can specifically be locked according to practical situation to order, It is not specifically limited herein.
Optionally, this step may include:
Step 1, when receiving the request of multiple carry tasks, platform cluster system is handled carry according to lock mechanism Bottom order carries out locking processing, obtains lock mechanism carry order;
Step 2, carry processing is carried out to all carry tasks according to the order of lock mechanism carry.
This optinal plan, which is realized, carries out carry processing to carry task according to lock mechanism.
S102 sends processing successful information when carry task is handled successfully;
On the basis of S101, this step is intended to when the success of any one carry task execution, and transmission, which is handled, successfully to be believed Breath.As long as namely occurring handling successful carry task, a processing successful information is sent.It can be to corresponding client Successful information is sent, successful information can also be sent to technical staff in a manner of mail messaging etc., it can be with sound such as voices Mode sends prompt information.As it can be seen that the mode for sending processing successful information is not unique, it is not specifically limited herein.
S103, when carry task processing failure, to carry task execution rolling back action, so as to by the storage of carry task System and host return to original state.
On the basis of step S101, this step is intended to when any one carry task processing failure, to carry task Rolling back action is executed, to return to original state the corresponding storage system of carry task and host.Wherein, rolling back action has Body executive mode namely passes through data manipulation, by the data mode for indicating incidence relation between storage system and host restore to Execute the state before carry task, that is, original state.
In the prior art, it is easy to be primarily due to batch processing carry task under the technological accumulation and inheritance for serial process carry task Occur executing the situation of mistake, and executing mistake can make the relationship between storage system and host occur in platform cluster system Write error remains abnormal data, for example, when carry is failed but what is show in systems with client has been extension It carries successfully, will continue to operate storage system using the state at this time, and state at this time has been the state of mistake, Therefore lead to serious data storage problem.So the prior art is in order to avoid arising a problem that, and use serial place Reason mode reduces the probability for write error occur, to avoid the mistake of storage system.But serial manner can be reduced seriously The treatment effeciency of carry task influences normal treatment effeciency when large batch of processing carry task.
Therefore, by judging the processing status of carry task in this step, when there is mistake, that is, unsuccessfully when to carry Task execution rolling back action ensure that parallel processing carry task to handle incidental write error in the prior art Reliability.
Optionally, can also include: when carry task processing failure in the present embodiment
Send processing failure information.
This optinal plan further includes sending processing failure information, carries out relevant information alert operation.
Optionally, the present embodiment can also include:
Client sends the request of multiple carry tasks to platform cluster system in a parallel fashion.
This optinal plan further includes sending multiple carry tasks in a parallel fashion to platform cluster system in the client Request.
Specifically, multiple carry tasks can be received by front end UI, and pass through front end to platform cluster system in parallel Send multiple carry tasks.
To sum up, the present embodiment carries out carry processing to all carry tasks by way of to lock mechanism, avoids same When the multiple carry tasks of Shi Jinhang is carried out to the order in carry processing the case where operating the data entanglement of appearance simultaneously, realized It keeps that carry task parallel processing is improved the treatment effeciency of carry task, and also avoid data under data reliability The case where error, while when carry task processing failure, rolling back action is carried out to carry task, by the storage system of carry task The case where system and host return to original state, avoid the error in data that carry unsuccessfully occurs, further increases parallel processing The reliability of carry task guarantees the parallel processing of carry task, improves the treatment effeciency of carry task.
It is emphasized that mainly carry task is handled in a upper embodiment, it similarly can also be by this reality The method for applying example is applied in unloading processing.Therefore, a kind of discharging method also provided, specific as follows:
Step 1, when receiving the request of multiple unloading tasks, platform cluster system according to lock mechanism to it is all unloading appoint Business carries out unloading processing;
Step 2, when unload task handle successfully when, transmission handle successful information;
Step 3, when unloading task processing failure, to unloading task execution rolling back action, so that depositing for task will be unloaded Storage system and host return to original state.
Wherein, step 1 may include:
Step 1.1, when receiving the request of multiple unloading tasks, platform cluster system according to lock mechanism to unloading handle Bottom order carry out locking processing, obtain lock mechanism unloading order;
Step 1.2 carries out unloading processing to all unloading tasks according to lock mechanism unloading order.
Wherein, carry processing is only changed to unloading processing, specific description content can be with reference in a upper embodiment Illustrate, this will not be repeated here.The embodiment can equally guarantee the reliability of data, while improve the speed of unloading processing.
The rolling back action executed in embodiment shown in FIG. 1 can be using any one rollback behaviour that the prior art provides Make, a kind of rolling back action method provided in this embodiment can also be used.It can be in database and platform bottom by this method Rolling back action is carried out in data, so that carry task recovery is to original state.
Specifically, referring to FIG. 2, Fig. 2 is the stream of the rolling back action method of hanging method provided by the embodiment of the present application Cheng Tu.
This method may include:
S201 when carry task processing failure, removes the storage system of carry task and the mark of host in the database Data;
S202 deletes the incidence relation of storage system and host, in the bottom data of platform cluster system to hang The storage system and host of load task return to original state.
The present embodiment is mainly database level and bottom data level in platform cluster system to storage system and master The data of the expression incidence relation of machine are purged.
Specifically, database level save be storage system and host mark data, for example, storage system is related The mark data of host is stored in database, and the mark data of storage system is stored in the relevant database of host, this A little data are primarily used to the data shown in front end, occur display mistake in order to prevent, thus in the present embodiment into Row is removed;What it is in the preservation of bottom data level is storage system and the practical data for being associated relationship of host, due to having hung Failure is carried therefore to be also required to for the data of these incidence relations being purged herein.
After the data of the incidence relation above to database and bottom data are purged, so that it may by storage system and Host returns to original state, and solves write error bring serious consequence.
The embodiment of the present application provides a kind of hanging method of storage system in virtual platform, can pass through state rollback Mode solve the problems, such as data remanence caused by write-in when being performed simultaneously carry task, ensure that carry processing in data Reliability.
The carry device of storage system in a kind of virtual platform provided by the embodiments of the present application is introduced below, under System is stored in the carry device of storage system and a kind of above-described virtual platform in a kind of virtual platform of text description The hanging method of system can correspond to each other reference.
Specifically, referring to FIG. 3, Fig. 3 is storage system in a kind of virtual platform provided by the embodiment of the present application The structural schematic diagram of carry device.
The apparatus may include:
Carry task parallel processing module 100, for when receiving the request of multiple carry tasks, according to lock mechanism pair All carry tasks carry out carry processing;
It is successfully processed module 200, for when carry task is handled successfully, sending processing successful information;
Failure handling module 300, for when carry task processing failure, to carry task execution rolling back action, so as to The storage system of carry task and host are returned to original state.
Optionally, the carry task parallel processing module 100 may include:
Processing unit is locked, for being handled carry according to lock mechanism when receiving the request of multiple carry tasks Bottom order carries out locking processing, obtains lock mechanism carry order;
Carry unit is locked, for carrying out carry processing to all carry tasks according to the order of lock mechanism carry.
Optionally, the device can also include:
Transmitted in parallel module is requested, for sending asking for multiple carry tasks in a parallel fashion to platform cluster system It asks.
The embodiment of the present application can also provide a kind of server, comprising:
Memory, for storing computer program;
Processor, the step of hanging method as described above in Example is realized when for executing the computer program.
The embodiment of the present application can also provide a kind of computer readable storage medium, on the computer readable storage medium It is stored with computer program, the computer program realizes hanging method as described above in Example when being executed by processor Step.
The computer readable storage medium may include: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
Each embodiment is described in a progressive manner in specification, the highlights of each of the examples are with other realities The difference of example is applied, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment Speech, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is referring to method part illustration ?.
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 scope of the present application.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
Above to the hanging method, carry device of storage system, service in a kind of virtual platform provided herein Device and computer readable storage medium are described in detail.Used herein principle and reality of the specific case to the application The mode of applying is expounded, the description of the example is only used to help understand the method for the present application and its core ideas.It answers It, for those skilled in the art, can also be to this under the premise of not departing from the application principle when pointing out Some improvement and modification can also be carried out for application, these improvement and modification are also fallen into the protection scope of the claim of this application.

Claims (10)

1.一种虚拟化平台中存储系统的挂载方法,其特征在于,包括:1. a method for mounting a storage system in a virtualization platform, comprising: 当接收到多个挂载任务的请求时,平台集群系统根据锁机制对所有所述挂载任务进行挂载处理;When receiving requests for multiple mounting tasks, the platform cluster system performs mounting processing on all the mounting tasks according to the lock mechanism; 当挂载任务处理成功时,发送处理成功信息;When the mount task is processed successfully, send processing success information; 当挂载任务处理失败时,对所述挂载任务执行回滚操作,以便将所述挂载任务的存储系统和主机恢复到初始状态。When the mount task processing fails, a rollback operation is performed on the mount task, so as to restore the storage system and the host of the mount task to the initial state. 2.根据权利要求1所述的挂载方法,其特征在于,当接收到多个挂载任务的请求时,平台集群系统根据锁机制对所有所述挂载任务进行挂载处理,包括:2. The mounting method according to claim 1, wherein when receiving requests for multiple mounting tasks, the platform cluster system performs mounting processing on all the mounting tasks according to a lock mechanism, comprising: 当接收到多个挂载任务的请求时,平台集群系统根据锁机制对所述挂载处理的底层命令进行加锁处理,得到锁机制挂载命令;When receiving requests for multiple mounting tasks, the platform cluster system performs locking processing on the underlying commands of the mounting processing according to the locking mechanism, and obtains the locking mechanism mounting commands; 根据所述锁机制挂载命令对所有所述挂载任务进行挂载处理。All the mount tasks are mounted according to the lock mechanism mount command. 3.根据权利要求1所述的挂载方法,其特征在于,当所述挂载任务处理失败时,对所述挂载任务执行回滚操作,以便将所述挂载任务的存储系统和主机恢复到初始状态,包括:3 . The mounting method according to claim 1 , wherein when the processing of the mounting task fails, a rollback operation is performed on the mounting task, so that the storage system and the host of the mounting task are changed. 4 . Restore to the original state, including: 所述挂载任务处理失败时,在数据库中清除所述挂载任务的所述存储系统和所述主机的标识数据;When the mounting task processing fails, clear the identification data of the storage system and the host of the mounting task in the database; 在所述平台集群系统的底层数据中删除所述存储系统和所述主机的关联关系,以便将所述挂载任务的所述存储系统和所述主机恢复到初始状态。The association relationship between the storage system and the host is deleted in the underlying data of the platform cluster system, so as to restore the storage system and the host of the mount task to an initial state. 4.根据权利要求1所述的挂载方法,其特征在于,当挂载任务处理失败时,还包括:4. The mounting method according to claim 1, wherein when the mounting task processing fails, the method further comprises: 发送处理失败信息。Send processing failure information. 5.根据权利要求1所述的挂载方法,其特征在于,还包括:5. The method for mounting according to claim 1, further comprising: 客户端向所述平台集群系统以并行的方式发送多个挂载任务的请求。The client sends multiple requests for mounting tasks to the platform cluster system in a parallel manner. 6.一种虚拟化平台中存储系统的挂载装置,其特征在于,包括:6. A mounting device for a storage system in a virtualization platform, comprising: 挂载任务并行处理模块,用于当接收到多个挂载任务的请求时,根据锁机制对所有所述挂载任务进行挂载处理;The mounting task parallel processing module is used to perform mounting processing on all the mounting tasks according to the lock mechanism when receiving requests for multiple mounting tasks; 成功处理模块,用于当挂载任务处理成功时,发送处理成功信息;The successful processing module is used to send processing success information when the mount task is processed successfully; 失败处理模块,用于当挂载任务处理失败时,对所述挂载任务执行回滚操作,以便将所述挂载任务的存储系统和主机恢复到初始状态。The failure processing module is configured to perform a rollback operation on the mount task when the mount task processing fails, so as to restore the storage system and the host of the mount task to the initial state. 7.根据权利要求6所述的挂载装置,其特征在于,所述挂载任务并行处理模块,包括:7. The mounting device according to claim 6, wherein the mounting task parallel processing module comprises: 加锁处理单元,用于当接收到多个挂载任务的请求时,根据锁机制对所述挂载处理的底层命令进行加锁处理,得到锁机制挂载命令;a locking processing unit, configured to perform locking processing on the underlying commands of the mounting processing according to the locking mechanism when receiving requests for multiple mounting tasks, to obtain the locking mechanism mounting command; 加锁挂载单元,用于根据所述锁机制挂载命令对所有所述挂载任务进行挂载处理。The locking and mounting unit is configured to perform mounting processing on all the mounting tasks according to the locking mechanism mounting command. 8.根据权利要求6所述的挂载装置,其特征在于,还包括:8. The mounting device according to claim 6, further comprising: 请求并行发送模块,用于向所述平台集群系统以并行的方式发送多个挂载任务的请求。A request parallel sending module is configured to send requests for multiple mounting tasks to the platform cluster system in a parallel manner. 9.一种服务器,其特征在于,包括:9. A server, characterized in that, comprising: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序时实现如权利要求1至5任一项所述的挂载方法的步骤。The processor is configured to implement the steps of the mounting method according to any one of claims 1 to 5 when executing the computer program. 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述的挂载方法的步骤。10. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the hanger according to any one of claims 1 to 5 is implemented. Loading method steps.
CN201811297038.4A 2018-11-01 2018-11-01 The hanging method and relevant apparatus of storage system in a kind of virtual platform Pending CN109460285A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811297038.4A CN109460285A (en) 2018-11-01 2018-11-01 The hanging method and relevant apparatus of storage system in a kind of virtual platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811297038.4A CN109460285A (en) 2018-11-01 2018-11-01 The hanging method and relevant apparatus of storage system in a kind of virtual platform

Publications (1)

Publication Number Publication Date
CN109460285A true CN109460285A (en) 2019-03-12

Family

ID=65609147

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811297038.4A Pending CN109460285A (en) 2018-11-01 2018-11-01 The hanging method and relevant apparatus of storage system in a kind of virtual platform

Country Status (1)

Country Link
CN (1) CN109460285A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442497A (en) * 2019-07-03 2019-11-12 苏州浪潮智能科技有限公司 A kind of alarm method, equipment and the readable medium of virtualization system storage state

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215791A1 (en) * 2002-08-06 2004-10-28 Tsao Sheng Ted Tai Concurrent web based multi-task support for control management system
CN102664923A (en) * 2012-03-30 2012-09-12 浪潮电子信息产业股份有限公司 Method for realizing shared storage pool by utilizing Linux global file system
CN102984268A (en) * 2012-12-11 2013-03-20 中国人民解放军国防科学技术大学 Access method and device for SCSI sharing storage resource for high-availability cluster
CN103473135A (en) * 2013-09-23 2013-12-25 中国科学技术大学苏州研究院 Processing method for spinlock LHP (Lock-Holder Preemption) phenomenon under virtual environment
US20140122918A1 (en) * 2002-08-12 2014-05-01 Sheng Tai (Ted) Tsao Method and Apparatus For Web Based Storage On Demand
CN107368356A (en) * 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN107608738A (en) * 2017-10-12 2018-01-19 郑州云海信息技术有限公司 Start the method, apparatus and computer-readable recording medium of object storage device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040215791A1 (en) * 2002-08-06 2004-10-28 Tsao Sheng Ted Tai Concurrent web based multi-task support for control management system
US20140122918A1 (en) * 2002-08-12 2014-05-01 Sheng Tai (Ted) Tsao Method and Apparatus For Web Based Storage On Demand
CN102664923A (en) * 2012-03-30 2012-09-12 浪潮电子信息产业股份有限公司 Method for realizing shared storage pool by utilizing Linux global file system
CN102984268A (en) * 2012-12-11 2013-03-20 中国人民解放军国防科学技术大学 Access method and device for SCSI sharing storage resource for high-availability cluster
CN103473135A (en) * 2013-09-23 2013-12-25 中国科学技术大学苏州研究院 Processing method for spinlock LHP (Lock-Holder Preemption) phenomenon under virtual environment
CN107368356A (en) * 2016-05-12 2017-11-21 阿里巴巴集团控股有限公司 A kind of service request processing method and device
CN107608738A (en) * 2017-10-12 2018-01-19 郑州云海信息技术有限公司 Start the method, apparatus and computer-readable recording medium of object storage device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜京梅等: "提高基于嵌入式 linux 的ext3文件系统稳定性的方法", 《网络新媒体技术》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110442497A (en) * 2019-07-03 2019-11-12 苏州浪潮智能科技有限公司 A kind of alarm method, equipment and the readable medium of virtualization system storage state
CN110442497B (en) * 2019-07-03 2023-01-06 苏州浪潮智能科技有限公司 Method, device and readable medium for alarming storage state of virtualization system

Similar Documents

Publication Publication Date Title
US10691187B2 (en) Persistent reservations for virtual disk using multiple targets
CN107408070B (en) Multiple transaction logging in a distributed storage system
EP2600246B1 (en) Batch processing of business objects
US9563511B1 (en) Performing input/output operations on a set of storage devices based on scalable input/output credits
CA3176449A1 (en) Sales locking method and system based on a caching
US10346066B2 (en) Efficient erasure coding of large data objects
US20080115128A1 (en) Method, system and computer program product for implementing shadow queues for recovery of messages
CN108255429B (en) A write operation control method, system, device and computer-readable storage medium
US20150120674A1 (en) Virtual program installation and state restoration
KR101574451B1 (en) Imparting durability to a transactional memory system
US10761744B2 (en) Synchronously performing commit records operations
EP3146430B1 (en) System and method for supporting a distributed data structure in a distributed data grid
US20090100113A1 (en) Transaction log management
CN109634974A (en) A kind of data processing method, system and associated component
CN109558260A (en) Kubernetes troubleshooting system, method, equipment and medium
CN109189613A (en) A kind of database data recovery method and relevant apparatus
CN110083379A (en) A kind of server component upgrade method and relevant apparatus
CN106550014A (en) Node upgrade method and device in server cluster
CN109062600A (en) The realization method and system of firmware on line upgrading in a kind of solid state hard disk
CN109086136A (en) A kind of request processing method and relevant apparatus of Samba software
CN114493672A (en) Virtual article issuing method and system
CN109460285A (en) The hanging method and relevant apparatus of storage system in a kind of virtual platform
US10691353B1 (en) Checking of data difference for writes performed via a bus interface to a dual-server storage controller
WO2017127310A1 (en) Early thread return with secondary event writes
CN110119285A (en) A kind of low side scm software upgrade method and relevant apparatus

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: 20190312