CN104461705B - A kind of method and storage control, cluster storage system of business access - Google Patents

A kind of method and storage control, cluster storage system of business access Download PDF

Info

Publication number
CN104461705B
CN104461705B CN201410655484.3A CN201410655484A CN104461705B CN 104461705 B CN104461705 B CN 104461705B CN 201410655484 A CN201410655484 A CN 201410655484A CN 104461705 B CN104461705 B CN 104461705B
Authority
CN
China
Prior art keywords
storage
storage control
operation object
resource lock
operational order
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.)
Active
Application number
CN201410655484.3A
Other languages
Chinese (zh)
Other versions
CN104461705A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201410655484.3A priority Critical patent/CN104461705B/en
Publication of CN104461705A publication Critical patent/CN104461705A/en
Application granted granted Critical
Publication of CN104461705B publication Critical patent/CN104461705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present invention provides the method and storage control, cluster storage system of a kind of business access, is related to computer field, to solve the problems, such as that performance bottleneck easily occurs in the primary storage controller in existing cluster storage system.This method comprises: all storage controls in cluster storage system are stored with the resource lock of all operation objects in the memory space of the cluster stocking system, any storage control is in the operational order for receiving host service, the operational order includes operated object mark, determines that the resource lock of the operation object of the first storage control storage is unused state according to the operated object mark;The resource lock of the operation object is locked, the resource lock after locking is use state;The operation object is accessed according to the operational order.The embodiment of the present invention is used for business access.

Description

A kind of method and storage control, cluster storage system of business access
Technical field
The present invention relates to the methods and storage control of computer field more particularly to a kind of business access, cluster-based storage System.
Background technique
In order to meet continuous improvement of the user to storage demand, the prior art proposes " cluster storage system ", improves Capacity, reliability and the availability of storage resource.
As shown in Figure 1, the cluster storage system that the prior art is proposed is by multiple storage controls, memory space and exchange Machine composition.Wherein, memory space can be made of multiple independent disks, for storing data;Storage control is used for Data are read or are written in memory space;Storage control connects networking, any storage control by interchanger with memory space Device passes through all operation objects in the accessible memory space of the interchanger.
Since the same operation object in memory space may be accessed simultaneously repeatedly, in order to guarantee memory space data Uniqueness and certainty, it will usually to operation object setting resource lock, certifiable pair of locking and releasing mechanism based on resource lock Access the mutual exclusion between the business of same operation object.Specifically, settable to be somebody's turn to do when the operation object is by a certain business access The corresponding resource lock of operation object is use state, other business is forbidden to access the operation object, this process is money The locking procedure of source lock;When the business is finished, unused state is set by the corresponding resource lock of the operation object, is allowed Other business access to the operation object, this process is the release process of resource lock.
However, existing cluster storage system would generally be using a certain storage control in multiple storage controls as master Storage control, other storage controls are used as standby storage control.Each storage control when doing business, can Resource lock is locked or discharged to primary storage controller application, in this way, when having a large number of services and being sent to primary storage control When device issues application, primary storage controller will become the bottleneck of entire cluster storage system.
Summary of the invention
The present invention provides the method and storage control, cluster storage system of a kind of business access, to solve existing cluster Easily there is the problem of performance bottleneck in primary storage controller in storage system.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, providing a kind of method of business access, the method is applied to include at least two storage controls Cluster storage system, at least two storage control is stored with the institute in the memory space of the cluster stocking system There is the resource lock of operation object, which comprises
The operational order of first storage control receiving host business;The operational order includes operated object mark;Institute Stating the first storage control is any of described at least two storage control;
The resource lock of the operation object of the first storage control storage is determined according to the operated object mark For unused state;
The resource lock of the operation object is locked, the resource lock after locking is use state;
The operation object is accessed according to the operational order.
In the first possible implementation of the first aspect, the method also includes:
The operational order of Batch Processing is received, the operational order of the Batch Processing includes the operated object mark;
When determining the resource lock of the operation object of the first storage control storage is unused state, to institute The resource lock for stating operation object is locked;
All storage controls into the cluster storage system in addition to first storage control are sent respectively Locking request message, the locking request message are used to indicate storage control and add to the resource lock of the operation object Lock;
After the completion of all storage controls lock the resource lock of the operation object in the cluster storage system, press The operation object is accessed according to the operational order of the Batch Processing.
With reference to first aspect or the first possible implementation of first aspect, in second of possible implementation In, the method also includes:
Receive the locking request message including the operated object mark of the second storage control transmission;Described second deposits Storing up controller is any storage control in the cluster storage system in addition to first storage control;
It is locked into according to resource of the locking request message to the operation object that first storage control stores Row locks;
It is sent to second storage control and locks response message.
With reference to first aspect or the first possible implementation of first aspect, in the third possible implementation In, after the operation object according to operational order access, comprising:
The resource lock by the resource lock release of the operation object of first storage control storage, after release For unused state;
After the operational order according to the Batch Processing accesses the operation object, comprising:
By the resource lock release of the operation object of first storage control storage;
All storage controls in addition to first storage control into the cluster storage system send shape State changes message, discharges the resource lock of the operation object to receive the storage control of the Status Change message.
Second aspect provides a kind of storage control, comprising:
Storage unit, the resource lock for all operation objects in the memory space of storage cluster stocking system;
First receiving unit, for the operational order of receiving host business, the operational order includes operated object mark;
Unit is locked, for determining the operation object of the storage control storage according to the operated object mark Resource lock be unused state, the resource lock of the operation object is locked;The resource lock after locking is to have made Use state;
First access unit, for accessing the operation object according to the operational order.
In the first possible implementation of the second aspect, further includes:
Second receiving unit, for receiving the operational order of Batch Processing, the operational order of the Batch Processing includes institute State operated object mark;
Transmission unit, for all storage controls respectively into the cluster storage system in addition to the storage control Device processed sends locking request message, and the locking request message is used to indicate storage control to the resource lock of the operation object It is locked;
Second access unit, for storage controls all in the cluster storage system to the money of the operation object After the completion of source lock locks, the operation object is accessed according to the operational order of the Batch Processing.
In conjunction with the possible implementation of the first of second aspect or second aspect, in second of possible implementation In, further includes:
Third receiving unit, the locking including the operated object mark for receiving the transmission of the second storage control are asked Seek message;Second storage control is any storage control in the cluster storage system in addition to the storage control Device processed;
The locking unit is also used to, the operation stored according to the locking request message to the storage control The resource lock of object is locked;
The transmission unit locks response message for sending to second storage control.
In conjunction with the possible implementation of the first of second aspect or second aspect, in the third possible implementation In, further includes:
Releasing unit is used for after first access unit accesses the operation object according to the operational order, The resource lock for the operation object that the storage control is stored discharges, and the resource lock after release is that shape is not used State;
After second access unit accesses the operation object according to the operational order of the Batch Processing, by institute State the resource lock release of the operation object of storage control storage;
The transmission unit is also used to, and all in addition to the storage control into the cluster storage system deposit It stores up controller and sends Status Change message, to receive the storage control of the Status Change message for the operation object Resource lock release.
The third aspect, provides a kind of cluster storage system, including memory space and at least two storage controls, it is described extremely Few two storage controls are connected with the memory space, any storage control at least two storage control It is connected respectively with other all storage controls;
The storage control is that any one of the third possible implementation of second aspect to second aspect can Storage control described in the implementation of energy;
The memory space is for storing operation object.
Using the above scheme, any storage control in cluster storage system is in the operational order for receiving host service When, the resource lock for the respective operations object that need to only store to the storage control locks, and can visit according to the operational order Ask operation object, without sending locking request message to other storage controls, compared to the prior art, storage control is being connect When receiving the operational order of host service, locking request message need to be sent and request to lock to primary storage controller, the present invention improves The execution efficiency of host service, and since the locking of each storage control is equal, it not will cause a certain storage control Performance bottleneck occurs for device.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill of field, without creative efforts, it can also be obtained according to these attached drawings others Attached drawing.
Fig. 1 is a kind of structural schematic diagram of cluster storage system in the prior art;
Fig. 2 is the schematic diagram for applying locking between storage control in existing cluster storage system;
Fig. 3 is a kind of flow diagram of the method for business access provided in an embodiment of the present invention;
Fig. 4 is to apply for the schematic diagram locked between a kind of storage control provided in an embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of storage control provided in an embodiment of the present invention;
Fig. 6 is the structural schematic diagram of another storage control provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram of cluster storage system provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In order to enable those skilled in the art that the area of technical solution and the prior art provided by the invention is understood quickly Not, term related to the present invention is illustrated below, and the method for existing business access is introduced.
1) Batch Processing: cluster storage system is the reliability for safeguarding itself, and the spontaneous safeguard executed on backstage, Such as data backup, Data Migration etc., since the maintenance of system is not necessarily to real-time operation, which, which has, occurs frequency The low feature of rate.
2) host service: cluster storage system receives the data read-write operation for the instruction execution that user issues, host service It is real-time perfoming, has the characteristics that occurrence frequency is high, and the host service of the cluster storage system will not in the same time Repeatedly access same operation object.
3) operation object: the address in memory space for storing data.
4) resource lock: unique " key " required for storage control access operation object, storage control is only true Surely it when the corresponding resource lock of the operation object that will be accessed is in unused state, can access to the operation object.
Existing cluster storage system as shown in Fig. 2, the cluster storage system include: primary storage controller, at least one Standby storage control and memory space, wherein the primary storage controller is connected with each standby storage control, all storages Controller (including primary storage controller and standby storage control) is connected with the memory space respectively;All storage controls are equal For accessing the operation object in memory space;The primary storage controller is also used to manage each operation object in memory space Corresponding resource lock.As shown in Figure 2, each storage control either executes host service or Batch Processing, can be to Primary storage controller application locks resource lock, due to the high feature of the occurrence frequency of the host service, it is likely that occurs A large number of services high concurrent issues the case where applying to the primary storage controller, causes the primary storage controller that performance bottleneck occurs.
The embodiment of the present invention provides a kind of method of business access, is applied to cluster storage system, the cluster storage system Including at least two storage controls, at least two storage control is stored with the memory space of the cluster stocking system In all operation objects resource lock, as shown in figure 3, this method comprises:
The operational order of S301, the first storage control receiving host business;The operational order includes operated object mark.
Wherein, which is any of at least two storage control.
S302, first storage control determine the behaviour of first storage control storage according to the operated object mark The resource lock for making object is unused state.
S303, first storage control lock the resource lock of the operation object, and the resource lock after locking is Use state.
S304, first storage control access the operation object according to the operational order.
Illustratively, step S302 and step S303 includes: first storage control in the lock allocation list that itself is stored Inquire the use state of the resource lock of the corresponding operated object mark, wherein include in the lock allocation list operated object mark, with The use state of the one-to-one resource lock of operated object mark;If the resource lock is currently at unused state, by the money The unused state of source lock is changed to use state;If the resource lock is currently at use state, this is being inquired After resource lock is in unused state, which is changed to use state.
Wherein, which can be stored in table form in first storage control, as shown in table 1 below:
Table 1
Operated object mark The state of resource lock
Operation object 1 Resource lock 1 is not used
Operation object 2 Resource lock 2 has used
…… ……
Operation object N Resource lock 3 is not used
By table 1, if the operated object mark is operation object 1, first storage control inquiry operation pair in table 1 As the state of 1 corresponding resource lock 1, if the state of the resource lock 1 is unused state, first storage control is by the money The state of source lock 1 is changed to use state, and accesses the operation object 1 according to the operational order of the host service, and executing should Host service;If the state of the resource lock 1 is that use state, first storage control waiting have currently occupied the resource lock 1 business (Batch Processing that the business is Batch Processing either other storage controls of first storage control) executes It finishes, after the state of the resource lock 1 is changed to unused state, the state of the resource lock 1 is changed to use state.
Above-mentioned table 1 is merely illustrative, which can also be stored in first storage control otherwise In, concrete form can be determined according to actual needs, and this is not limited by the present invention.
Using the above method, any storage control in cluster storage system is in the operational order for receiving host service When, the resource lock for the respective operations object that need to only store to the storage control locks, and can visit according to the operational order Ask operation object, without sending locking request message to other storage controls, compared to the prior art, storage control is being connect When receiving the operational order of host service, locking request message need to be sent and request to lock to primary storage controller, the present invention improves The execution efficiency of host service, and since the locking of each storage control is equal, it not will cause a certain storage control Performance bottleneck occurs for device.
However, in order to guarantee that first storage control, only need to be to first storage control when executing host service The resource lock of the respective operations object of storage carry out lock can with the mutual exclusion of other business, one kind of the embodiment of the present invention can Can implementation in, any storage control, need to be to the cluster after execution before platform business in the cluster storage system All storage controls in storage system request to lock.
Specifically, which receives the operational order of Batch Processing, the operational order packet of the Batch Processing Include the operated object mark;Determining that the resource lock of the operation object of first storage control storage is unused state When, the resource lock of the operation object is locked;Respectively into the cluster storage system in addition to first storage control All storage controls send locking request message, which is used to indicate storage control to the operation object Resource lock locked;All storage controls lock the resource lock of the operation object and complete in the cluster storage system Afterwards, the operation object is accessed according to the operational order of the Batch Processing.
Illustratively, which carries the operated object mark, second storage control receive this plus After locking request message, carried out according to resource lock of the operated object mark to the operation object that second storage control stores It locks, and after locking successfully, is sent to first storage control and lock response message, second storage control is to resource The process that lock locks can refer to the process that above-mentioned first storage control locks the corresponding resource lock of the operated object mark, this Place repeats no more.
Further, after all storage controls of first storage control in the cluster storage system lock successfully Execute the Batch Processing, that is to say, that money of first storage control in the correspondence operated object mark stored to itself Source lock locks successfully, and receives the hair of all storage controls in the cluster storage system in addition to first storage control After the locking response message sent, the Batch Processing is executed.
Illustratively, each of cluster stocking system storage control all stores lock configuration as listed in Table 1 Table.As shown in figure 4, first storage control is sent to the second storage control locks solicitation message, the locking solicitation message Mark including operation object 1, then second storage control inquires second storage after receiving the locking solicitation message The lock allocation list of controller storage, if in the lock allocation list of second storage control storage, the corresponding resource lock of operation object 1 1 state is unused state, then the state of the resource lock 1 is changed to use state by second storage control, and to First storage control, which is sent, locks response message, indicates that first storage control locks successfully.If the operation object 1 is right The state for the resource lock 1 answered is use state, then waits the business for currently occupying the resource lock 1 to be finished and discharge the money After source lock 1, determine that the resource lock 1 is in unused state, then the state of the resource lock 1 is changed to by second storage control Use state, and sent to first storage control and lock response message, indicate that first storage control locks successfully.
In addition, first storage control includes the operated object mark receive the transmission of the second storage control When locking request message, it is locked into according to resource of the locking request message to the operation object that first storage control stores Row locks, and sends after locking completion to second storage control and lock response message, which is should Any storage control in cluster storage system in addition to first storage control.
In this way, first storage control after execution platform business when, each storage control in the cluster storage system The state that the resource lock of the operation object of the Batch Processing is corresponded in the lock allocation list of storage is use state, at this point, should Each storage control can not execute other business for the operation object in cluster storage system, ensure that between business Mutual exclusion.
In addition, first storage control will also receive this and second deposit when the second storage control executes Batch Processing The locking request message that storage controller is sent is locked.In this way, any storage control of the cluster storage system is to behaviour When making object execution Batch Processing, the resource lock that all storage controls in the cluster storage system correspond to the operation object is equal In use state.That is, if the resource lock of the correspondence of a certain storage control itself the storage operation object is in Unused state shows that there is no any storage controls at this time and executes Batch Processing to the operation object, at this point, if the storage Controller receives the operational order that host service is executed to the operation object, only need to be to the correspondence of itself storage operation object Resource lock locked the host service can be performed (since the host service of the cluster storage system will not in the same time Same operation object is repeatedly accessed, therefore does not have to consider the mutual exclusion between different host services).
Further, which is required to be locked into the resource that the business occupies after having executed business Row release.Specifically, which, will after the operational order according to the host service accesses the operation object The resource lock release of the operation object of first storage control storage, the resource lock after release are unused state;It should First storage control is after the operational order according to the Batch Processing accesses the operation object, by first storage control The resource lock release of the operation object of storage, and the institute in addition to first storage control into the cluster storage system There is storage control to send Status Change message, to receive the storage control of the Status Change message for the operation object Resource lock release.
From the foregoing, it will be observed that the storage control in the embodiment of the present invention when executing host service, is not controlled to other storages Device application locks, and not will cause a certain storage control and performance bottleneck occurs, meanwhile, in addition, due in the cluster storage system Each storage control stores the corresponding relationship of the use state of operated object mark and resource lock, and therefore, some is deposited Storage controller breaks down, and does not influence the business access of the cluster storage system.
The embodiment of the present invention provides a kind of storage control 50, the embodiment of the method for corresponding above-mentioned Fig. 3, the storage control 50 each functional unit is used equally for above method step.As shown in figure 5, the storage control 50 includes:
Storage unit 51, the resource lock for all operation objects in the memory space of storage cluster stocking system.
First receiving unit 52, for the operational order of receiving host business, which includes operated object mark.
Unit 53 is locked, the money of the operation object for determining storage control storage according to the operated object mark Source lock is unused state, is locked to the resource lock of the operation object;The resource lock after locking is use state.
First access unit 54, for accessing the operation object according to the operational order.
Using the above method, any storage control in cluster storage system is in the operational order for receiving host service When, the resource lock for the respective operations object that need to only store to the storage control locks, and can visit according to the operational order Ask operation object, without sending locking request message to other storage controls, compared to the prior art, storage control is being connect When receiving the operational order of host service, locking request message need to be sent and request to lock to primary storage controller, the present invention improves The execution efficiency of host service, and since the locking of each storage control is equal, it not will cause a certain storage control Performance bottleneck occurs for device.
However, in order to guarantee that the storage control, only need to be to pair of storage control storage when executing host service Answer the resource lock of operation object carry out lock can with the mutual exclusion of other business, in a kind of possible realization of the embodiment of the present invention In mode, any storage control, need to be to the cluster storage system after execution before platform business in the cluster storage system In all storage controls request lock.
Therefore, optionally, the storage control further include:
Second receiving unit 55, for receiving the operational order of Batch Processing, the operational order of the Batch Processing includes should Operated object mark.
Transmission unit 56, for all storages control respectively into the cluster storage system in addition to the storage control Device sends locking request message, which is used to indicate storage control and adds to the resource lock of the operation object Lock.
Second access unit 57, for storage controls all in the cluster storage system to the resource of the operation object After the completion of lock locks, the operation object is accessed according to the operational order of the Batch Processing.
Illustratively, which carries the operated object mark, second storage control receive this plus After locking request message, carried out according to resource lock of the operated object mark to the operation object that second storage control stores It locks, and after locking successfully, is sent to the storage control and lock response message.
Further, all storage controls of the storage control in the cluster storage system execute after locking successfully The Batch Processing, that is to say, that the storage control is locked in the resource lock of the correspondence operated object mark stored to itself Success, and receive the locking response of the transmission of all storage controls in the cluster storage system in addition to the storage control After message, the Batch Processing is executed.
Optionally, the storage control further include:
Third receiving unit 58, the locking including the operated object mark for receiving the transmission of the second storage control are asked Seek message;Second storage control is any storage control in the cluster storage system in addition to the storage control.
The locking unit 53 is also used to, the operation object stored according to the locking request message to the storage control Resource lock is locked.
The transmission unit 56 locks response message for sending to second storage control.
In this way, the storage control after execution platform business when, each storage control storage in the cluster storage system Lock allocation list in correspond to the state of resource lock of the operation object of the Batch Processing be use state, at this point, the cluster Each storage control can not execute other business for the operation object in storage system, ensure that mutual between business Reprimand.
In addition, the storage control will also receive the second storage control when the second storage control executes Batch Processing The locking request message that device processed is sent is locked.In this way, any storage control of the cluster storage system is to operation pair When as executing Batch Processing, the resource lock that all storage controls in the cluster storage system correspond to the operation object is in Use state.That is, not making if the resource lock of the correspondence of a certain storage control itself the storage operation object is in With state, shows that there is no any storage controls at this time and Batch Processing is executed to the operation object, at this point, if the storage controls Device receives the operational order that host service is executed to the operation object, only need to be to the money of the correspondence of itself storage operation object Source lock, which is locked, can be performed the host service (since the host service of the cluster storage system will not be multiple in the same time Same operation object is accessed, therefore does not have to consider the mutual exclusion between different host services).
Further, which is required to release the resource lock that the business occupies after having executed business It puts.Therefore, optionally, the storage control further include:
Releasing unit 59, for after first access unit accesses the operation object according to the operational order, by this The resource lock release of the operation object of storage control storage, the resource lock after release are unused state;This second After access unit accesses the operation object according to the operational order of the Batch Processing, the operation which is stored The resource lock of object discharges;The transmission unit 56 is also used to, into the cluster storage system in addition to the storage control All storage controls send Status Change message, to receive the storage control of the Status Change message for the operation pair The resource lock of elephant discharges.
In addition, it is apparent to those skilled in the art that, for convenience and simplicity of description, only with above-mentioned each The division progress of functional module can according to need and for example, in practical application by above-mentioned function distribution by different function Energy module is completed, i.e., the internal structure of device is divided into different functional modules, to complete whole described above or portion Divide function.The specific work process of the system, apparatus, and unit of foregoing description, can be with reference to the correspondence in preceding method embodiment Process, details are not described herein.
The embodiment of the present invention provides a kind of storage control 60, which is any in cluster storage system A storage control, as shown in Figure 6, comprising:
Processor (processor) 61,62, memory communication interface (Communications Interface) (memory) 63 and communication bus 64;Wherein, the processor 61, the communication interface 62 and the memory 63 pass through described Communication bus 64 completes mutual communication.
Processor 61 may be multi-core central processing unit CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the one of the embodiment of the present invention A or multiple integrated circuits.
Memory 63 is used to store the resource lock of program code and operation object, and said program code includes computer behaviour Make instruction and network flow diagrams.Memory 63 may include high speed RAM memory, it is also possible to further include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
The communication interface 62, for realizing the connection communication between these devices.
The processor 61 is used to execute the program code in the memory 63, to realize following operation:
The method is applied to the cluster storage system including at least two storage controls, at least two storages control Device processed is stored with the resource lock of all operation objects in the memory space of the cluster stocking system, which comprises
The operational order of receiving host business;The operational order includes operated object mark;The storage control is Any of described at least two storage control;
The resource lock that the operation object of the storage control storage is determined according to the operated object mark is not Use state;
The resource lock of the operation object is locked, the resource lock after locking is use state;
The operation object is accessed according to the operational order.
Optionally, the operation further include:
The operational order of Batch Processing is received, the operational order of the Batch Processing includes the operated object mark;
When determining the resource lock of the operation object of the storage control storage is unused state, to the behaviour The resource lock for making object is locked;
All storage controls into the cluster storage system in addition to the storage control, which are sent, respectively locks Request message, the locking request message are used to indicate storage control and lock to the resource lock of the operation object;
After the completion of all storage controls lock the resource lock of the operation object in the cluster storage system, press The operation object is accessed according to the operational order of the Batch Processing.
Optionally, the operation further include:
Receive the locking request message including the operated object mark of the second storage control transmission;Described second deposits Storing up controller is any storage control in the cluster storage system in addition to the storage control;
Added according to resource lock of the locking request message to the operation object that the storage control stores Lock;
It is sent to second storage control and locks response message.
Optionally, after the operation object according to operational order access, the operation further include:
The resource lock for the operation object that the storage control is stored discharges, and the resource lock after release is not Use state;
After the operational order according to the Batch Processing accesses the operation object, the operation further include:
The resource lock for the operation object that the storage control is stored discharges;
All storage controls in addition to the storage control into the cluster storage system send state and become More message discharges the resource lock of the operation object to receive the storage control of the Status Change message.
The embodiment of the present invention provides a kind of cluster storage system 70, as shown in fig. 7, comprises:
Memory space 71, storage control 72 and storage control 73, wherein the memory space 71 respectively with the storage control Device 72 processed is connected with the storage controller 73, which is connected with the storage controller 73.
The memory space 71 is for storing operation object.
The storage control 72 is Fig. 5 or storage control shown in fig. 6 50 or storage control 60,73 storage Controller is that perhaps storage control 60 specifically can refer to Fig. 5 or Fig. 6 correspondence for Fig. 5 or storage control shown in fig. 6 50 Description, details are not described herein again.
Using above-mentioned cluster storage system, any storage control in the cluster storage system is receiving host service Operational order when, the resource lock of respective operations object that need to only store to the storage control lock, can be according to this Operational order access operation object, without sending locking request message to other storage controls, compared to the prior art, storage Controller need to send locking request message and request to lock to primary storage controller in the operational order for receiving host service, The present invention improves the execution efficiency of host service, and since the locking of each storage control is equal, not will cause certain Performance bottleneck occurs for one storage control.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or logical of device or unit Letter connection can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that the independent physics of each unit includes, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
Those of ordinary skill in the art will appreciate that: realize that all or part of the steps of above method embodiment can pass through The relevant hardware of program instruction is completed, and program above-mentioned can be stored in a computer readable storage medium, the program When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes: ROM, RAM, magnetic disk or light The various media that can store program code such as disk.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by those familiar with the art, all answers It is included within the scope of the present invention.Therefore, protection scope of the present invention should be subject to the protection scope in claims.

Claims (9)

1. a kind of method of business access, which is characterized in that the method is applied to the collection including at least two storage controls Group's storage system, at least two storage control are stored with all behaviour in the memory space of the cluster stocking system Make the resource lock of object, which comprises
The operational order of first storage control receiving host business;The operational order includes operated object mark;Described One storage control is any of described at least two storage control;
The resource lock that the operation object of the first storage control storage is determined according to the operated object mark is not Use state;
The resource lock of the operation object is locked, the resource lock after locking is use state;
The operation object is accessed according to the operational order.
2. the method according to claim 1, wherein the method also includes:
The operational order of Batch Processing is received, the operational order of the Batch Processing includes the operated object mark;
When determining the resource lock of the operation object of the first storage control storage is unused state, to the behaviour The resource lock for making object is locked;
All storage controls into the cluster storage system in addition to first storage control, which are sent, respectively locks Request message, the locking request message are used to indicate storage control and lock to the resource lock of the operation object;
After the completion of all storage controls lock the resource lock of the operation object in the cluster storage system, according to institute The operational order for stating Batch Processing accesses the operation object.
3. method according to claim 1 or 2, which is characterized in that the method also includes:
Receive the locking request message including the operated object mark of the second storage control transmission;The second storage control Device processed is any storage control in the cluster storage system in addition to first storage control;
Added according to resource lock of the locking request message to the operation object that first storage control stores Lock;
It is sent to second storage control and locks response message.
4. method according to claim 1 or 2, which is characterized in that access the behaviour according to the operational order described After making object, comprising:
By the resource lock release of the operation object of first storage control storage, the resource lock after release is not Use state;
After accessing the operation object according to the operational order of Batch Processing, comprising:
By the resource lock release of the operation object of first storage control storage;
All storage controls in addition to first storage control into the cluster storage system send state and become More message discharges the resource lock of the operation object to receive the storage control of the Status Change message.
5. a kind of storage control characterized by comprising
Storage unit, the resource lock for all operation objects in the memory space of storage cluster stocking system;
First receiving unit, for the operational order of receiving host business, the operational order includes operated object mark;
Unit is locked, the money of the operation object for determining the storage control storage according to the operated object mark Source lock is unused state, is locked to the resource lock of the operation object;The resource lock after locking is to have used shape State;
First access unit, for accessing the operation object according to the operational order.
6. storage control according to claim 5, which is characterized in that further include:
Second receiving unit, for receiving the operational order of Batch Processing, the operational order of the Batch Processing includes the behaviour Make object identity;
Transmission unit, for all storage controls respectively into the cluster storage system in addition to the storage control Locking request message is sent, the locking request message is used to indicate storage control and carries out to the resource lock of the operation object It locks;
Second access unit, for storage controls all in the cluster storage system to the resource lock of the operation object After the completion of locking, the operation object is accessed according to the operational order of the Batch Processing.
7. storage control according to claim 5 or 6, which is characterized in that further include:
Third receiving unit, the locking request including the operated object mark for receiving the transmission of the second storage control disappear Breath;Second storage control is any storage control in the cluster storage system in addition to the storage control Device;
The locking unit is also used to, the operation object stored according to the locking request message to the storage control Resource lock locked;
Transmission unit locks response message for sending to second storage control.
8. storage control according to claim 5 or 6, which is characterized in that further include:
Releasing unit is used for after first access unit accesses the operation object according to the operational order, by institute The resource lock release of the operation object of storage control storage is stated, the resource lock after release is unused state;
After the second access unit accesses the operation object according to the operational order of Batch Processing, by the storage control The resource lock release of the operation object of storage;
Transmission unit is also used to, all storage controls in addition to the storage control into the cluster storage system Status Change message is sent, to receive the storage control of the Status Change message for the resource lock of the operation object Release.
9. a kind of cluster storage system, which is characterized in that including memory space and at least two storage controls, described at least two A storage control is connected with the memory space, any storage control difference at least two storage control It is connected with other all storage controls;
The storage control is the described in any item storage controls of claim 5 to 8;
The memory space is for storing operation object.
CN201410655484.3A 2014-11-17 2014-11-17 A kind of method and storage control, cluster storage system of business access Active CN104461705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410655484.3A CN104461705B (en) 2014-11-17 2014-11-17 A kind of method and storage control, cluster storage system of business access

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410655484.3A CN104461705B (en) 2014-11-17 2014-11-17 A kind of method and storage control, cluster storage system of business access

Publications (2)

Publication Number Publication Date
CN104461705A CN104461705A (en) 2015-03-25
CN104461705B true CN104461705B (en) 2019-02-19

Family

ID=52907807

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410655484.3A Active CN104461705B (en) 2014-11-17 2014-11-17 A kind of method and storage control, cluster storage system of business access

Country Status (1)

Country Link
CN (1) CN104461705B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106372030A (en) * 2016-10-27 2017-02-01 郑州云海信息技术有限公司 Method and device for data synchronization of dual controller storage system
CN110008031B (en) * 2018-01-05 2022-04-15 北京金山云网络技术有限公司 Device operation method, cluster system, electronic device and readable storage medium
CN110209641A (en) * 2018-02-12 2019-09-06 杭州宏杉科技股份有限公司 A kind of trunking service processing method and device applied in more controlled storage systems
CN108572876B (en) * 2018-03-07 2020-11-20 北京神州绿盟信息安全科技股份有限公司 Method and device for realizing read-write lock
CN110580232B (en) * 2018-06-08 2021-10-29 杭州宏杉科技股份有限公司 Lock management method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945539A (en) * 2006-10-19 2007-04-11 华为技术有限公司 Method for distributing shared resource lock in computer cluster system and cluster system
CN101013381A (en) * 2007-01-26 2007-08-08 华中科技大学 Distributed lock based on object memory system
CN103248667A (en) * 2012-02-14 2013-08-14 阿里巴巴集团控股有限公司 Resource access method and system for distributed system
CN103731485A (en) * 2013-12-26 2014-04-16 华为技术有限公司 Network equipment, cluster storage system and distributed lock management method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050165938A1 (en) * 2003-12-24 2005-07-28 Linden Cornett Method, system, and program for managing shared resources

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1945539A (en) * 2006-10-19 2007-04-11 华为技术有限公司 Method for distributing shared resource lock in computer cluster system and cluster system
CN101013381A (en) * 2007-01-26 2007-08-08 华中科技大学 Distributed lock based on object memory system
CN103248667A (en) * 2012-02-14 2013-08-14 阿里巴巴集团控股有限公司 Resource access method and system for distributed system
CN103731485A (en) * 2013-12-26 2014-04-16 华为技术有限公司 Network equipment, cluster storage system and distributed lock management method

Also Published As

Publication number Publication date
CN104461705A (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN104461705B (en) A kind of method and storage control, cluster storage system of business access
US10691187B2 (en) Persistent reservations for virtual disk using multiple targets
EP3217248B1 (en) Method and system for writing data
CN103297456B (en) Access method and the distributed system of resource is shared under a kind of distributed system
CN101650646B (en) Method and device for realizing shared data consistency
CN103425592B (en) EMS memory management process in a kind of multiprocess system and device
US20180018197A1 (en) Virtual Machine Resource Allocation Method and Apparatus
US9917884B2 (en) File transmission method, apparatus, and distributed cluster file system
CN109525658A (en) A kind of production method, server, equipment, storage medium and operation system
CN103152390B (en) The node configuration method of distributed memory system, device, node and system
CN109634720B (en) Method, system and device for sharing FPGA (field programmable Gate array) board card by multiple virtual machines
CN109739435B (en) File storage and updating method and device
CN103744719A (en) Lock management method, lock management system, lock management system configuration method and lock management system configuration device
CN103051470A (en) Cluster and control method for magnetic disk heartbeat of cluster
CN110008031A (en) Apparatus operation method, group system, electronic equipment and read/write memory medium
CN106708608A (en) Distributed lock service method and acquisition method, and corresponding device
CN104793981B (en) A kind of online snapshot management method and device of cluster virtual machine
CN105450679B (en) Carry out the method and system of data cloud storage
CN104052799B (en) A kind of method that High Availabitity storage is realized using resource ring
CN109379223A (en) A kind of method and apparatus for realizing network interface card automated setting
CN104657240B (en) The Failure Control method and device of more kernel operating systems
CN106776032A (en) The treating method and apparatus of the I/O Request of distributed block storage
CN102868594B (en) Method and device for message processing
CN110275772A (en) A kind of data processing method and its relevant device
CN108446167A (en) A kind of distributed transaction processing method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant