[go: up one dir, main page]

CN105354148B - A kind of data processing method and relevant apparatus - Google Patents

A kind of data processing method and relevant apparatus Download PDF

Info

Publication number
CN105354148B
CN105354148B CN201410416507.5A CN201410416507A CN105354148B CN 105354148 B CN105354148 B CN 105354148B CN 201410416507 A CN201410416507 A CN 201410416507A CN 105354148 B CN105354148 B CN 105354148B
Authority
CN
China
Prior art keywords
target
carry device
volume
operation requests
main
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
CN201410416507.5A
Other languages
Chinese (zh)
Other versions
CN105354148A (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 Cloud Computing 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 CN201410416507.5A priority Critical patent/CN105354148B/en
Publication of CN105354148A publication Critical patent/CN105354148A/en
Application granted granted Critical
Publication of CN105354148B publication Critical patent/CN105354148B/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 invention discloses a kind of data processing method and relevant apparatus, target carry device obtains the first operation requests operated to target volume, and first operation requests include the target identification of the target volume;The target carry device searches the corresponding main carry device of the target volume, the main carry device controls the operation to the target volume, and the main carry device and the target volume correspond according to the target identification;The target carry device sends the second operation requests to the main carry device, so that the main carry device controls the operation to the target volume according to second operation requests.Using the present invention, it can control each main carry device is distributed to the operation of each volume, to reduce the load of centralized servers, improve efficiency.

Description

A kind of data processing method and relevant apparatus
Technical field
The present invention relates to electronic technology field more particularly to a kind of data processing method and relevant apparatus.
Background technique
With the development of memory technology, it usually needs operated to the volume of storing data, volume is a kind of storage entity.? In distributed file system, the storage resource that file system is managed usually is not necessarily connection on the local node, but logical It crosses computer network to connect with carry device, the volume same in this way can be mounted to multiple carry devices, and pass through computer network Network is connected, and user can operate the volume from multiple carry devices.Due to that can be grasped from multiple carry devices to volume Make, therefore when being operated simultaneously from multiple carry devices to the volume, it may appear that consistency problem.It is usually portion in the field A centralized servers are affixed one's name to, to manage the operation of all volumes concentratedly, when user needs to operate some target volume, It is required to send the operation requests for operating target volume to centralized servers, then is controlled by centralized servers to target volume Operation, this mode uniformly manage the operations of all volumes by centralized servers, will lead to centralized servers load weight, efficiency It is low.
Summary of the invention
The embodiment of the present invention provides a kind of data processing method and relevant apparatus, can will be distributed to the operation of each volume Each main carry device is controlled, to reduce the load of centralized servers, is improved efficiency.
First aspect of the embodiment of the present invention provides a kind of data processing method, it may include:
Target carry device obtains the first operation requests operated to target volume, and first operation requests include institute State the target identification of target volume;
The target carry device searches the corresponding main carry device of the target volume according to the target identification, described Main carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
The target carry device sends the second operation requests to the main carry device, so that the main carry device root The operation to the target volume is controlled according to second operation requests.
Based in a first aspect, second operation requests are used in the first feasible embodiment of first aspect It requests that target data is written into the target volume, and second operation requests include that the mesh is written in the target data Target write address in mark volume;
The target carry device sends the second operation requests to the main carry device, so that the main carry device root The operation to the target volume is controlled according to second operation requests, comprising:
The target carry device sends the second operation requests, the second operation requests application to the main carry device The write permission of target write address described in the target volume is locked, so that the main carry device is according to second operation requests The write permission is configured for the target carry device.
The first feasible embodiment based on first aspect, in second of feasible embodiment of first aspect, The target carry device is sent to the main carry device after the second operation requests, further includes:
The target carry device obtains the write permission to the target write address of the main carry device configuration;
The target data is written into the target write address for the target carry device.
Based in a first aspect, second operation requests are used in the third feasible embodiment of first aspect It requests that target data is written into the target volume;
The target carry device sends the second operation requests to the main carry device, so that the main carry device root The operation to the target volume is controlled according to second operation requests, comprising:
The target carry device sends the second operation requests to the main carry device, and second operation requests include The target data, the target identification of the target volume and the target that the target data is written in the target volume Write address, so that the main carry device is according to second operation requests in the target write address in the target volume The target data is written.
Second aspect of the present invention provides a kind of data processing method, which comprises
Main carry device obtains the second operation requests for being operated to target volume that target carry device is sent, institute It states main carry device and the target volume corresponds, and the main carry device controls the operation to the target volume;
The main carry device controls the operation to the target volume according to second operation requests.
Based on second aspect, in the first feasible embodiment of second aspect, second operation requests are used for It requests that target data is written into the target volume, and second operation requests include that the mesh is written in the target data The target write address in volume is marked, target write address described in target volume described in the second operation requests application locking writes power Limit;
The main carry device controls the operation to the target volume according to second operation requests, comprising:
The main carry device is the target carry device configuration locking to described according to second operation requests The write permission of target write address, so that the target carry device obtains the write permission, and to the target write address The middle write-in target data.
Based on second aspect, in second of feasible embodiment of second aspect, second operation requests are used for It requests that target data is written in the target write address into the target volume;
The main carry device obtains the second operation for being operated to target volume that target carry device is sent and asks Before asking, further includes:
The main carry device receives the operation requests of at least one carry device transmission, and the operation requests are used to ask It asks in the target write address into the target volume and data is written;Wherein, each at least one described carry device Carry device operates the target volume by the main carry device;
Main carry device selection target carry device at least one described carry device.
Second of feasible embodiment based on second aspect, in the third feasible embodiment of second aspect In, second operation requests include the target data, the target identification of the target volume and in the target volume The target write address of the middle write-in target data;
The main carry device controls the operation to the target volume according to second operation requests, comprising:
The main carry device is write in the target write address in the target volume according to second operation requests Enter the target data.
Third aspect present invention provides a kind of carry device device, and the carry device includes:
First obtains module, for obtaining the first operation requests operated to target volume, first operation requests Target identification including the target volume;
Searching module, for searching the corresponding main carry device of the target volume, the main extension according to the target identification The operation set Kong Zhi to the target volume is carried, and the main carry device and the target volume correspond;
Sending module, for sending the second operation requests to the main carry device so that the main carry device according to Second operation requests control the operation to the target volume.
Based on the third aspect, in the first feasible embodiment of the third aspect, second operation requests are used for It requests that target data is written into the target volume, and second operation requests include that the mesh is written in the target data Target write address in mark volume;
The sending module is specifically used for sending the second operation requests, second operation requests to the main carry device The write permission of target write address described in target volume described in application locking, so that the main carry device is according to second operation Request is that the target carry device configures the write permission.
The first feasible embodiment based on the third aspect, in second of feasible embodiment of the third aspect, Described device further include:
Second obtains module, for obtain the main carry device configuration to writing power described in the target write address Limit;
Data module is write, for the target data to be written into the target write address.
Based on the third aspect, in the third feasible embodiment of the third aspect, second operation requests are used for It requests that target data is written into the target volume;
The sending module is specifically used for sending the second operation requests, second operation requests to the main carry device Including the target data, the target identification of the target volume and the target data is written in the target volume Target write address, so that the main carry device writes ground according to the target of second operation requests in the target volume The target data is written in location.
Fourth aspect present invention provides a kind of main carry device, and described device includes:
Third obtains module, for obtaining the second operation for being operated to target volume of target carry device transmission Request, the main carry device and the target volume correspond, and the main carry device control is to the behaviour of the target volume Make;
Control module, for controlling the operation to the target volume according to second operation requests.
Based on fourth aspect, in the first feasible embodiment of fourth aspect, second operation requests are used for It requests that target data is written into the target volume, and second operation requests include that the mesh is written in the target data The target write address in volume is marked, target write address described in target volume described in the second operation requests application locking writes power Limit;
The control module is specifically used for according to second operation requests, is the target carry device configuration locking To the write permission of the target write address, so that the target carry device obtains the write permission, and to the target The target data is written in write address.
Based on fourth aspect, in second of feasible embodiment of fourth aspect, second operation requests are used for It requests that target data is written in the target write address into the target volume;Described device further include:
Receiving module, for receiving the operation requests of at least one carry device transmission, the operation requests are used to ask It asks in the target write address into the target volume and data is written;Wherein, each at least one described carry device Carry device operates the target volume by the main carry device;
Selecting module, for the selection target carry device at least one described carry device.
Second of feasible embodiment based on fourth aspect, in the third feasible embodiment of fourth aspect In, second operation requests include the target data, the target identification of the target volume and in the target volume The target write address of the middle write-in target data;
The control module is specifically used for according to second operation requests, and the target in the target volume writes ground The target data is written in location.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, for ability For the those of ordinary skill of domain, without creative efforts, it can also be obtained according to these attached drawings other attached Figure.
Fig. 1 is a kind of flow diagram of data processing method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 4 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 5 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 6 is the flow diagram of another data processing method provided in an embodiment of the present invention;
Fig. 7 is a kind of application scenario diagram for writing data provided in an embodiment of the present invention;
Fig. 8 is the application scenario diagram that another kind provided in an embodiment of the present invention writes data;
Fig. 9 is a kind of structural schematic diagram of carry device provided in an embodiment of the present invention;
Figure 10 is the structural schematic diagram of another carry device provided in an embodiment of the present invention;
Figure 11 is a kind of structural schematic diagram of main carry device provided in an embodiment of the present invention;
Figure 12 is the structural schematic diagram of the main carry device of another kind provided in an embodiment of the present invention;
Figure 13 is the structural schematic diagram of another carry device provided in an embodiment of the present invention;
Figure 14 is the structural schematic diagram of another main carry device 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 some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Carry device in embodiments of the present invention can be mount point, and main carry device can be main mount point.At this Data processing method in inventive embodiments can be applied in distributed file system, the file system in distributed file system Managed physical memory resources of uniting not necessarily are directly connected on the local node, but pass through computer network and node phase Even.For storing data usually as a kind of storage entity, the same volume can be mounted on multiple mount points volume, and mount point can To be host, when user needs to access from mount point or operate volume, for example, data are written into volume, usually The some the file informations for needing to obtain volume, then again operate volume, and acquired the file information can be needs and volume is written Destination address in whether simultaneously have multiple mount points while going to write.In existing cluster file system, mount point obtains file The mode of information is to go to obtain the information for needing the volume operated to a centralized servers, which manages all volumes Operation is all the information that volume is obtained from centralized servers when each user removes the required volume operated from mount point.For example, When user needs that data are written into volume, needs to go to obtain from centralized servers and lock, be to go application to lock to centralized servers The write permission of target write address in fixed volume.Centralized servers need the operation to each volume to react, therefore load weight, effect Rate is low.
In the present invention, each main mount point will be distributed to the operation of each volume control, for example, have 1000 volumes, it can To be assigned to 100 main mount points, each main mount point only needs the operation rolled up to 10 to control.When user need from When the mount point of some target volume removes access volume, require to go to access the target volume by the main mount point of the target volume, often One volume has all corresponded to a main mount point, and main mount point is mainly used for controlling the operation of volume.The operation of volume can be Target data is written in a certain sector address into volume, is also possible to modify to the data in volume, deletes, shearing etc., or Person is creation or deletion volume.The every operation of volume is all controlled by main mount point.
Below in conjunction with attached drawing 1- attached drawing 8, data processing method provided in an embodiment of the present invention is introduced and is illustrated.
Fig. 1 is please referred to, is a kind of flow diagram of data processing method provided in an embodiment of the present invention;The present embodiment is It is described in detail from carry device side, as shown in Figure 1, the data processing method includes:
S100, target carry device obtain the first operation requests operated to target volume, first operation requests Target identification including the target volume;
In one embodiment, the volume that file system is managed has multiple, each volume is to can be mounted to multiple carries Point, user can go to operate volume from multiple mount points by main mount point.The operation of volume can be a certain into volume Sector address be written target data, be also possible to modify to the data in volume, delete, shearing etc., or creation or Delete volume.When user goes operation target volume from a target mount point of some target volume, needs to send the first operation and ask It asks, target carry device obtains the first operation requests operated to target volume, which includes target volume Target identification, it should be noted that each volume has a mark.Corresponding volume can be found according to the mark of volume.
S101, the target carry device search the corresponding main carry device of the target volume according to the target identification, The main carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
In one embodiment, target carry device parses first object mark entrained in the first operation requests, and According to the target identification parsed, the corresponding main carry device of target volume is searched.Main carry device control is to the one of target volume Cut operation.It has been prestored in each carry device in all volumes relevant to the carry device corresponding to the mark of each volume Main carry device, all volumes relevant to the hanging device are all volumes all using the hanging device as mount point.Each The carry device of volume can have it is multiple, the relevant volume of a hanging device can also have it is multiple, but each volume main carry Device only one.Main carry device can control the operation of multiple volumes.For example, 1000 volumes can be assigned to 100 main carry devices, wherein a kind of division mode is that the operation that each main carry device rolls up 10 controls.
Target carry device according to the target identification of target volume can find the target volume corresponding to main carry device, The purpose for searching main carry device corresponding to the target volume is, sends the second operation requests to main carry device, so that main Carry device controls the operation of the target volume.
S102, the target carry device sends the second operation requests to the main carry device, so that the main carry Device controls the operation to the target volume according to second operation requests.
In one embodiment, target carry device sends the second operation requests to the main carry device found, the Two operation requests may include the operation that user needs to carry out target volume, for example, if user needs that target volume is written Data manipulation, then the second operation requests may include the target write address for needing the target data and required write-in that are written Etc..Alternatively, the second operation requests are also possible to the request of application lock, it is write permission of the application locking to target write address. Main carry device can realize that the operation to target volume is controlled according to the second operation requests.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
It referring to figure 2., is the flow diagram of another data processing method provided in an embodiment of the present invention;The present embodiment It is to be described in detail from carry device side, number of targets is written into the target volume for requesting in second operation requests According to, and second operation requests include the target write address target data being written in the target volume;The present embodiment A kind of data processing method comprising steps of
S200, target carry device obtain the first operation requests operated to target volume, first operation requests Target identification including the target volume;
Step S200 of the embodiment of the present invention please refers to embodiment step S100 shown in FIG. 1, herein without repeating.
S201, the target carry device search the corresponding main carry device of the target volume according to the target identification, The main carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
Step S201 of the embodiment of the present invention please refers to embodiment step S101 shown in FIG. 1, herein without repeating.
S202, the target carry device send the second operation requests to the main carry device, and second operation is asked The write permission of target write address described in target volume described in application locking is sought, so that the main carry device is according to second behaviour Making request is that the target carry device configures the write permission.
As an alternative embodiment, the first operation requests are that user needs the target write address into target volume to write Enter target data, then the second operation requests are also for requesting that target data, and the second operation requests are written into target volume In include target write address, the second operation requests are that target carry device is sent to main carry device, the second operation requests Shen Please lock onto target volume in target write address write permission so that main carry device according to the second operation requests be target carry device Configure the write permission.In lock onto target volume the write permission of target write address be target carry device into target volume target write When target data being written in address, all data cannot be written into the target write address in other any carry devices, until the mesh After mark carry device discharges the write permission, other carry devices can operate the data in the target write address.
S203, the target carry device obtain writing to described in the target write address for the main carry device configuration Permission;
As an alternative embodiment, if main carry device is that target carry device is configured with to target write address After write permission, the configuration result of the write permission is returned to target carry device, target carry device obtains main carry device configuration The write permission to target write address.
The target data is written into the target write address for S204, the target carry device.
As an alternative embodiment, after target carry device is obtained to the write permission of target write address, it can Target data is written into target write address, and in target carry device to the process that target data is written in target write address In, other carry devices cannot carry out any operation to the target write address in the target volume, until target carry device to After main carry device discharges the write permission, other carry devices can be operated the data in the target write address.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
It referring to figure 3., is the flow diagram of another data processing method provided in an embodiment of the present invention;The present embodiment It is to be described in detail from carry device side, number of targets is written into the target volume for requesting in second operation requests According to;A kind of data processing method described in the present embodiment comprising steps of
S300, target carry device obtain the first operation requests operated to target volume, first operation requests Target identification including the target volume;
Step S300 of the embodiment of the present invention please refers to embodiment step S100 shown in FIG. 1, herein without repeating.
S301, the target carry device search the corresponding main carry device of the target volume according to the target identification, The main carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
Step S301 of the embodiment of the present invention please refers to embodiment step S101 shown in FIG. 1, herein without repeating.
S302, the target carry device send the second operation requests to the main carry device, and second operation is asked It asks including the target data, the target identification of the target volume and the target data is written in the target volume Target write address so that the main carry device is write according to the target of second operation requests in the target volume The target data is written in address.
As an alternative embodiment, the first operation requests are used to request to write in the target write address into target volume Enter target data, then the second operation requests are also that target data is written in target write address into target volume, in this embodiment, main Target data is directly written into volume from main carry device, therefore need to include the target for needing to be written in the second operation requests Data, the target identification of target volume and the target write address that target data is written in target volume, so that main carry device can With according to the second operation requests, target data is written in the target write address into target volume, to realize storage target data.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
It referring to figure 4., is another data processing method provided in an embodiment of the present invention, the present embodiment is filled from main carry It sets side to be described in detail, as shown in figure 4, the data processing method includes:
S400, main carry device obtain the second operation for being operated to target volume that target carry device is sent and ask It asks, the main carry device and the target volume correspond, and the main carry device controls the operation to the target volume;
In one embodiment, the volume that file system is managed has multiple, each volume is to can be mounted to multiple carries Point, user can go to operate volume from multiple mount points by main mount point.The operation of volume can be a certain into volume Sector address be written target data, be also possible to modify to the data in volume, delete, shearing etc., or creation or Delete volume.When user goes operation target volume from a target mount point of some target volume, the acquisition pair of target carry device The first operation requests that target volume is operated, and the second operation to the transmission of main carry device for being operated to target volume Request, main carry device obtain the second operation requests that target carry device is sent.Main carry device and target volume correspond, Main carry device mainly controls the operation of target volume.
S401, the main carry device control the operation to the target volume according to second operation requests.
In one embodiment, main carry device controls the operation to target volume according to the second operation requests, for example, if Operation to target volume is that target data is written in the target write address into target volume, then main carry device control is to target volume The write permission for target write address being written data that operation can be as target carry device configuration locking, so that target carry fills Target data can be written into the target write address in target volume by setting.Alternatively, main carry device controls the operation to target volume It is also possible to main carry device directly according to the target write address and target data in the second operation requests, into target volume Target data is written in target write address.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
It referring to figure 5., is another data processing method provided in an embodiment of the present invention, the present embodiment is filled from main carry It sets side to be described in detail, target data is written into the target volume for requesting in second operation requests, and described the Two operation requests include the target write address target data being written in the target volume, the second operation requests application Lock the write permission of target write address described in the target volume;As shown, the data processing method of the present embodiment includes step It is rapid:
S500, main carry device obtain the second operation for being operated to target volume that target carry device is sent and ask It asks, the main carry device and the target volume correspond, and the main carry device controls the operation to the target volume;
Step S500 of the embodiment of the present invention, referring to figure 4. shown in embodiment step S400, herein without repeating.
S501, the main carry device are the target carry device configuration locking according to second operation requests To the write permission of the target write address, so that the target carry device obtains the write permission, and to the target The target data is written in write address.
As an alternative embodiment, target carry device is used for the second operation requests that main carry device is sent It requests that target data is written into the target volume, and the second operation requests include target target data being written in target volume Write address, the write permission of target write address in the second operation requests application locking target volume.Main carry device is according to the second operation Request is the write permission to target write address of target carry device configuration locking, and configuration result is back to target carry dress It sets, so that target data is written into target write address for target carry device.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Fig. 6 is please referred to, is another data processing method provided in an embodiment of the present invention, the present embodiment is filled from main carry It sets side to be described in detail, second operation requests are used to request that target to be written in the target write address into the target volume Data;And second operation requests include the target data, the target identification of the target volume and in the mesh The target write address of the target data is written in mark volume;As shown, the data processing method of the present embodiment includes step It is rapid:
S600, the main carry device receive the operation requests of at least one carry device transmission, and the operation requests are equal For requesting that data are written in the target write address into the target volume;Wherein, at least one described carry device Each carry device operates the target volume by the main carry device;
As an alternative embodiment, target volume can be mounted at least one carry device, each carry dress It sets and is required to operate target volume by the main carry device of the target volume.Therefore a main carry device can receive to The operation requests that a few carry device is sent, if operation requests transmitted by each carry device are used into target volume Target write address in data are written, if do not coordinated to the operation requests of each carry device, it is possible that Consistency problem.
S601, main carry device selection target carry device at least one described carry device.
As an alternative embodiment, main carry device selects at least one the carry device for sending operation requests A carry device is selected as target carry device, the selection of target carry device can be random selection.Selected target Carry device is the carry device that main carry device needs to handle operation requests transmitted by the target carry device. Second operation requests transmitted by the main available target carry device of carry device.
S602, main carry device obtain the second operation for being operated to target volume that target carry device is sent and ask It asks, the main carry device and the target volume correspond, and the main carry device controls the operation to the target volume;
Step S602 of the embodiment of the present invention, referring to figure 4. shown in embodiment step S400, herein without repeating.
S603, for the main carry device according to second operation requests, the target in the target volume writes ground The target data is written in location.
As an alternative embodiment, the second operation requests transmitted by target carry device are for requesting to target Target data is written in target write address in volume;And the second operation requests include target data, the target identification of target volume And the target write address of target data is written in target volume.Main carry device is also possible to direct root to the control of target volume According to received second operation requests of institute, target data is written in the target write address in target volume.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Fig. 7 is please referred to, data application scene figure is write for one kind provided in an embodiment of the present invention, as shown, the applied field It include storage area network (the Storage Area where main carry device, target carry device and target volume in scape figure Network and SAN Protocols, SAN) in, main carry device and target carry device all can be hosts, such as figure institute Show, main carry device and target carry device include voltage source converter (voltage source converter, VSC), English Special net small computer system interface (Internet Small Computer System Interface, ISCSC) or small Type computer system interface (Small Computer System Interface, SCSI) or fiber channel (Fibre Channel, FC).Target carry device and main carry device run IOSservice process, and target carry device and master Carry device can carry out information exchange by IOSservice process.VSC is for externally providing block device interface, at SCSI layers Intercept and capture scsi command, ISCSC/SCSI/FC for providing the interface operated to target volume, target volume by SAN network and The connection of carry device.
Target carry device intercepts and captures the first operation requests of user by VSC at SCSI layers, which is used for Target volume is operated, and the first operation requests include the target identification of the target volume operated, VSC will be intercepted and captured The first operation requests be sent to virtual block service (virtual block Service, VBS) module and analyzed, according to mesh The target identification of mark volume searches the corresponding main carry device of target volume, target carry device target volume will be operated second Operation requests send the IOService process of main carry device to by IOService process.The purpose of second operation requests It is the write permission to target write address in target volume to main carry device application locking.Main carry device is according to the second operation Request is the write permission that target carry device configures target write address in target volume, and the write permission configured is passed through IOService process is back to target carry device.Target carry device obtains the write permission that main carry device is configured, and leads to It crosses ISCSC/SCSI/FC and corresponding target data is written into target volume.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Fig. 8 is please referred to, data application scene figure is write for another kind provided in an embodiment of the present invention, as shown, the application It include the storage area network SAN network where main carry device, target carry device and target volume, main carry in scene figure Device and target carry device all can be host, as shown, main carry device and target carry device include VSC or ISCSC or SCSI or FC.Target carry device and main carry device run IOSservice process, and target carry Device and main carry device can carry out information exchange by IOSservice process.VSC provides block device interface for external, In SCSI layers of intercepting and capturing scsi command, for providing the interface operated to target volume, target volume passes through ISCSC/SCSI/FC SAN network is connect with carry device.
Target carry device intercepts and captures the first operation requests of user by VSC at SCSI layers, which is used for Target volume is operated, and the first operation requests include the target identification of the target volume operated, if the first operation The purpose of request is that target data is written in the target write address into target volume, then the first operation requests include target volume Target identification needs the target data that the target write address and needs of write-in target data are written in target volume.VSC is by institute The first operation requests intercepted and captured are sent to VBS module and are analyzed, and it is corresponding to search target volume according to the target identification of target volume Main carry device, target carry device will be transmitted the second operation requests that target volume operates by IOService process To the IOService process of main carry device.Second operation requests may include the target identification of target volume, need in target volume The target data that the target write address and needs of middle write-in target data are written.The IOService process of target carry device According to received second operation requests of institute, corresponding target data is written into target volume by ISCSC/SCSI/FC.
It should be noted that in the present embodiment, user can also directly grasp target volume by main carry device Make, is the operation requests that main carry device intercepts and captures user by VSC at SCSI layers, then the operation requests are sent to main carry The IOService process of device, the IOService process of main carry device pass through ISCSC/SCSI/FC pairs of main carry device Target volume is operated.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
9- attached drawing 14 with reference to the accompanying drawing illustrates the specific reality of data processing relevant apparatus provided in an embodiment of the present invention It is existing.
Fig. 9 is please referred to, is a kind of structural schematic diagram of carry device provided in an embodiment of the present invention, as shown in figure 9, this reality Applying a kind of carry device described in example includes: the first acquisition module 100, searching module 101 and sending module 102.
First obtains module 100, and for obtaining the first operation requests operated to target volume, first operation is asked Seek the target identification including the target volume;
In one embodiment, the volume that file system is managed has multiple, each volume is to can be mounted to multiple carries Point, user can go to operate volume from multiple mount points by main mount point.The operation of volume can be a certain into volume Sector address be written target data, be also possible to modify to the data in volume, delete, shearing etc., or creation or Delete volume.When user goes operation target volume from a target mount point of some target volume, needs to send the first operation and ask It asks, target carry device first obtains module 100 and obtains the first operation requests operated to target volume, which asks Seek the target identification including target volume, it should be noted that each volume has a mark.It can be searched according to the mark of volume To corresponding volume.
Searching module 101, it is described for searching the corresponding main carry device of the target volume according to the target identification Main carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
In one embodiment, target carry device parses first object mark entrained in the first operation requests, looks into Look for module 101 and according to the target identification parsed, the corresponding main carry device of lookup target volume.Main carry device control pair The every operation of target volume.Each volume in all volumes relevant to the carry device has been prestored in each carry device The corresponding main carry device of mark, all volumes relevant to the hanging device are all volumes all with the hanging device for extension Loading point.Each volume carry device can have it is multiple, the relevant volume of a hanging device can also have it is multiple, but each Volume main carry device only one.Main carry device can control the operation of multiple volumes.For example, can be by 1000 Volume is assigned to 100 main carry devices, wherein a kind of division mode is that the operation that each main carry device rolls up 10 carries out Control.
Corresponding to target carry device searching module 101 can find the target volume according to the target identification of target volume Main carry device, the purpose for searching main carry device corresponding to the target volume are, send the second operation to main carry device Request, so that main carry device controls the operation of the target volume.
Sending module 102, for sending the second operation requests to the main carry device, so that the main carry device root The operation to the target volume is controlled according to second operation requests.
In one embodiment, target carry device sending module 102 sends second to the main carry device found Operation requests, the second operation requests may include the operation that user needs to carry out target volume, for example, if user needs to target It involves in row write and enters data manipulation, then the second operation requests may include the target data and required write-in for needing to be written Target write address etc..Alternatively, the second operation requests are also possible to the request of application lock, it is application locking to target write address Write permission.Main carry device can realize that the operation to target volume is controlled according to the second operation requests.
Optionally, target data, and described second are written into the target volume for requesting for second operation requests Operation requests include the target write address target data being written in the target volume;
The sending module 102 is specifically used for sending the second operation requests to the main carry device, second operation The write permission for requesting target write address described in target volume described in application locking, so that the main carry device is according to described second Operation requests are that the target carry device configures the write permission.
As an alternative embodiment, sending module 102 sends the second operation requests to main carry device.First behaviour Making request is that user needs the target write address into target volume that target data is written, then the second operation requests are also for requesting Target data is written into target volume, and includes target write address in the second operation requests, the second operation requests are target extension It carries and sets to the transmission of main carry device, the write permission of target write address in the second operation requests application locking target volume, so that Main carry device is that target carry device configures the write permission according to the second operation requests.Target write address in lock onto target volume Write permission is target carry device when target data is written in target write address into target volume, other any carry devices All data cannot be written into the target write address, after the target carry device discharges the write permission, other carry devices Data in the target write address can be operated.
Optionally, target data is written into the target volume for requesting in second operation requests;
The sending module 102 is specifically used for sending the second operation requests to the main carry device, second operation Request includes the target data, the target identification of the target volume and the number of targets is written in the target volume According to target write address so that the target of the main carry device according to second operation requests in the target volume The target data is written in write address.
As an alternative embodiment, sending module 102 sends the second operation requests to main carry device.First behaviour Make request and target data is written in the target write address into target volume for requesting, then the second operation requests are also to target volume Target data is directly mainly written from main carry device in this embodiment in middle target write address write-in target data into volume, Therefore it needs in the second operation requests to include target data that needs are written, the target identification of target volume and be write in target volume Enter the target write address of target data, so that main carry device can be according to the second operation requests, the target into target volume is write Target data is written in address, to realize storage target data.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Figure 10 is please referred to, is the structural schematic diagram of another carry device provided in an embodiment of the present invention, as shown in Figure 10, Carry device in the present embodiment includes the first acquisition module 100, searching module 101, the acquisition module of sending module 102, second 103 and write data module 104, wherein the first acquisition module 100, searching module 101, sending module 102 please refer to retouching for Fig. 9 It states, details are not described herein.
Second obtains module 103, for obtaining writing to described in the target write address for the main carry device configuration Permission;
As an alternative embodiment, if main carry device is that target carry device is configured with to target write address After write permission, the configuration result of the write permission is returned to target carry device, target carry device second obtains module 103 and obtains The write permission to target write address of main carry device configuration.
Data module 104 is write, for the target data to be written into the target write address.
As an alternative embodiment, writing data after target carry device is obtained to the write permission of target write address Module 104 can be written target data into target write address, and in target carry device to being written in target write address During target data, other carry devices cannot carry out any operation to the target write address in the target volume, until After target carry device discharges the write permission to main carry device, other carry devices can be to the data in the target write address It is operated.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Figure 11 is please referred to, is a kind of structural schematic diagram of main carry device provided in an embodiment of the present invention, as shown in figure 11, The main carry device of the present embodiment includes that third obtains module 200 and control module 201.
Third obtains module 200, for obtaining second for being operated to target volume of target carry device transmission Operation requests, the main carry device and the target volume correspond, and the main carry device control is to the target volume Operation;
In one embodiment, the volume that file system is managed has multiple, each volume is to can be mounted to multiple carries Point, user can go to operate volume from multiple mount points by main mount point.The operation of volume can be a certain into volume Sector address be written target data, be also possible to modify to the data in volume, delete, shearing etc., or creation or Delete volume.When user goes operation target volume from a target mount point of some target volume, the acquisition pair of target carry device The first operation requests that target volume is operated, and the second operation to the transmission of main carry device for being operated to target volume Request, main carry device third obtain module 200 and obtain the second operation requests that target carry device is sent.Main carry device with Target volume corresponds, and main carry device mainly controls the operation of target volume.
Control module 201, for controlling the operation to the target volume according to second operation requests.
In one embodiment, main carry device control module 201 controls the behaviour to target volume according to the second operation requests Make, for example, if being the target write address write-in target data into target volume, main carry device control to the operation of target volume The control of module 201 can be the operation of target volume and data is written to target write address for target carry device configuration locking Write permission, so that target data can be written into the target write address in target volume in target carry device.Alternatively, main carry dress It sets the control of control module 201 and main carry device is also possible to directly according to the target in the second operation requests to the operation of target volume Target data is written in the target write address into target volume in write address and target data.
Optionally, target data, and described second are written into the target volume for requesting for second operation requests Operation requests include the target write address target data being written in the target volume, the second operation requests application lock The write permission of target write address described in the fixed target volume;
The control module 201 is specifically used for according to second operation requests, is the target carry device configuration lock The fixed write permission to the target write address, so that the target carry device obtains the write permission, and to described The target data is written in target write address.
As an alternative embodiment, target carry device is used for the second operation requests that main carry device is sent It requests that target data is written into the target volume, and the second operation requests include target target data being written in target volume Write address, the write permission of target write address in the second operation requests application locking target volume.Main carry device control module 201 According to the second operation requests it is the write permission to target write address of target carry device configuration locking, and configuration result is back to Target carry device, so that target data is written into target write address for target carry device.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Figure 12 is please referred to, is the structural schematic diagram of the main carry device of another kind provided in an embodiment of the present invention, as shown, The main carry device of the present embodiment includes that third obtains module 200, control module 201, receiving module 202, selecting module 203, Wherein, third obtains the description that module 200 please refers to Figure 11, and details are not described herein.
Receiving module 202, for receiving the operation requests of at least one carry device transmission, the operation requests are used to It requests that data are written in the target write address into the target volume;Wherein, each at least one described carry device A carry device operates the target volume by the main carry device;
As an alternative embodiment, target volume can be mounted at least one carry device, each carry dress It sets and is required to operate target volume by the main carry device of the target volume.Therefore a main carry device receiving module 202 can receive the operation requests of at least one carry device transmission, if operation requests transmitted by each carry device are equal For data to be written in the target write address into target volume, if do not assisted to the operation requests of each carry device It adjusts, then it is possible that consistency problem.
Selecting module 203, for the selection target carry device at least one described carry device.
As an alternative embodiment, main carry device selecting module 203 is at least one for sending operation requests Select a carry device as target carry device in carry device, the selection of target carry device can be random selection. Selected target carry device is that main carry device needs to operation requests transmitted by the target carry device The carry device of reason.Second operation requests transmitted by the main available target carry device of carry device.
Optionally, second operation requests include the target data, the target identification of the target volume and The target write address of the target data is written in the target volume;
The control module 201 is specifically used for the target according to second operation requests, in the target volume The target data is written in write address.
As an alternative embodiment, the second operation requests transmitted by target carry device are for requesting to target Target data is written in target write address in volume;And the second operation requests include target data, the target identification of target volume And the target write address of target data is written in target volume.Control of the main carry device control module 201 to target volume It can be directly according to received second operation requests of institute, target data be written in the target write address in target volume.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Figure 13 is please referred to, is the structural schematic diagram of another carry device provided in an embodiment of the present invention, as shown, this The carry device of embodiment includes receiver 300, processor 301 and transmitter 302.
For obtaining the first operation requests operated to target volume, first operation requests include shown receiver The target identification of the target volume;
The processor is used to search the corresponding main carry device of the target volume, the master according to the target identification Carry device controls the operation to the target volume, and the main carry device and the target volume correspond;
The transmitter is used to send the second operation requests to the main carry device so that the main carry device according to Second operation requests control the operation to the target volume.
Optionally, the volume that file system is managed has multiple, each volume is to can be mounted to multiple mount points, Yong Huke To go to operate volume by main mount point from multiple mount points.The operation of volume can be the write-in of a certain sector address into volume Target data is also possible to modify to the data in volume, deletes, shearing etc., or creation or deletion volume.When with When operation target volume is gone from a target mount point of some target volume in family, need to send the first operation requests, target carry Device obtains the first operation requests operated to target volume, which includes the target identification of target volume, needs It is noted that each volume has a mark.Corresponding volume can be found according to the mark of volume.
Optionally, target carry device parses first object mark entrained in the first operation requests, and according to being solved The target identification of precipitation searches the corresponding main carry device of target volume.Every operation of the main carry device control to target volume.? Main carry corresponding to the mark of each volume in all volumes relevant to the carry device has been prestored in each carry device Device, all volumes relevant to the hanging device are all volumes all using the hanging device as mount point.The carry of each volume Device can have it is multiple, the relevant volume of a hanging device can also have it is multiple, but each volume main carry device only have One.Main carry device can control the operation of multiple volumes.For example, 1000 volumes can be assigned to 100 main extensions It carries and sets, wherein a kind of division mode is that the operation that each main carry device rolls up 10 controls.
Target carry device according to the target identification of target volume can find the target volume corresponding to main carry device, The purpose for searching main carry device corresponding to the target volume is, sends the second operation requests to main carry device, so that main Carry device controls the operation of the target volume.
Optionally, target carry device sends the second operation requests to the main carry device found, and the second operation is asked Asking may include operation that user needs to carry out target volume, for example, if user needs to carry out write-in data manipulation to target volume, Then the second operation requests may include the target data for needing to be written and target write address of required write-in etc..Alternatively, Second operation requests are also possible to the request of application lock, are write permission of the application locking to target write address.Main carry device It can realize that the operation to target volume is controlled according to the second operation requests.
Target data, and second operation requests are written into the target volume for requesting for second operation requests Including the target data to be written to the target write address in the target volume;
The transmitter is also used to send the second operation requests, the second operation requests application to the main carry device The write permission of target write address described in the target volume is locked, so that the main carry device is according to second operation requests The write permission is configured for the target carry device.
Optionally, the first operation requests are that user needs the target write address into target volume that target data is written, then the It includes that target writes ground that two operation requests, which are also for requesting that target data is written into target volume, and in the second operation requests, Location, the second operation requests are what target carry device was sent to main carry device, in the second operation requests application locking target volume The write permission of target write address, so that main carry device is that target carry device configures the write permission according to the second operation requests. The write permission of target write address is that mesh is being written into target volume for target carry device in target write address in lock onto target volume When marking data, all data cannot be written into the target write address in other any carry devices, until the target carry device is released After putting the write permission, other carry devices can operate the data in the target write address.
The receiver is also used to obtain the write permission to the target write address of the main carry device configuration;
The processor is also used to that the target data is written into the target write address.
Optionally, if main carry device is after target carry device is configured with the write permission to target write address, to target Carry device returns to the configuration result of the write permission, target carry device obtain main carry device configuration to target write address Write permission.
Optionally, after target carry device is obtained to the write permission of target write address, it can write into target write address Enter target data, and during target carry device is to target data is written in target write address, other carry devices Any operation cannot be carried out to the target write address in the target volume, until target carry device should to the release of main carry device After write permission, other carry devices can be operated the data in the target write address.
Target data is written into the target volume for requesting in second operation requests;
The transmitter is also used to send the second operation requests to the main carry device, and second operation requests include The target data, the target identification of the target volume and the target that the target data is written in the target volume Write address, so that the main carry device is according to second operation requests in the target write address in the target volume The target data is written.
Optionally, the first operation requests are used to request that target data to be written in target write address into target volume, then and the Two operation requests are also that target data is written in target write address into target volume, in this embodiment, mainly by main carry device Target data is directly written into volume, therefore needs to include the target data for needing to be written in the second operation requests, target volume Target identification and the target write address that target data is written in target volume, so that main carry device can be according to the second operation Request, target data is written in the target write address into target volume, to realize storage target data.
In the embodiment of the present invention, target carry device obtains the first operation requests operated to target volume, the first behaviour It include the target identification of target volume in requesting, target carry device is searched the corresponding main carry of target volume according to target identification and filled It sets, main carry device controls the operation to target volume, and main carry device and target volume correspond, and target carry device is again The second operation requests are sent to the main carry device inquired, so that main carry device is controlled according to the second operation requests to target The operation of volume.In the embodiment of the present invention, each main hanging device will be distributed to the control of each volume operation, avoided all volumes Control operation it is unified to centralized servers when caused server load weight defect, to improve efficiency.
Figure 14 is please referred to, is the structural schematic diagram of another main carry device provided in an embodiment of the present invention, as shown, The main carry device of the present embodiment includes receiver 400 and processor 401;
The second operation for being operated to target volume that the receiver is used to obtain the transmission of target carry device is asked It asks, the main carry device and the target volume correspond, and the main carry device controls the operation to the target volume;
The processor is used to control the operation to the target volume according to second operation requests.
Optionally, the volume that file system is managed has multiple, each volume is to can be mounted to multiple mount points, Yong Huke To go to operate volume by main mount point from multiple mount points.The operation of volume can be the write-in of a certain sector address into volume Target data is also possible to modify to the data in volume, deletes, shearing etc., or creation or deletion volume.When with When operation target volume is gone from a target mount point of some target volume in family, target volume is grasped in the acquisition of target carry device The first operation requests made, and the second operation requests for being operated to target volume, main carry are sent to main carry device Device obtains the second operation requests that target carry device is sent.Main carry device and target volume correspond, main carry device Mainly the operation of target volume is controlled.
Optionally, main carry device controls the operation to target volume, for example, if to target volume according to the second operation requests Operation be that target data is written in target write address into target volume, then main carry device control can be with to the operation of target volume It is the write permission for target write address being written for target carry device configuration locking data, so that target carry device can be to Target data is written in target write address in target volume.Alternatively, main carry device control is also possible to the operation of target volume For main carry device directly according to the target write address and target data in the second operation requests, the target into target volume writes ground Target data is written in location.
Target data, and second operation requests are written into the target volume for requesting for second operation requests Including the target data to be written to the target write address in the target volume, mesh described in the second operation requests application locking The write permission of target write address described in mark volume;
The processor is also used to according to second operation requests, is the target carry device configuration locking to institute The write permission of target write address is stated, so that the target carry device obtains the write permission, and writes ground to the target The target data is written in location.
Optionally, the second operation requests that target carry device is sent to main carry device are for requesting to the target volume Middle write-in target data, and the second operation requests include target write address target data being written in target volume, the second operation Request the write permission of target write address in application locking target volume.Main carry device is target carry dress according to the second operation requests The write permission to target write address of configuration locking is set, and configuration result is back to target carry device, so that target carry Target data is written into target write address for device.
Second operation requests are used to request that target data to be written in the target write address into the target volume;
The receiver is also used to receive the operation requests of at least one carry device transmission, and the operation requests are used to It requests that data are written in the target write address into the target volume;Wherein, each at least one described carry device A carry device operates the target volume by the main carry device;
The processor is also used to the selection target carry device at least one described carry device.
Optionally, target volume can be mounted at least one carry device, and each carry device is required to through the mesh The main carry device of mark volume operates target volume.Therefore a main carry device can receive at least one carry device hair The operation requests sent, if operation requests transmitted by each carry device are used to write in the target write address into target volume Enter data, if do not coordinated to the operation requests of each carry device, it is possible that consistency problem.
Optionally, main carry device one carry device of selection at least one the carry device for sending operation requests is made Selection for target carry device, target carry device can be random selection.Selected target carry device is main extension Carry the carry device set and need to be handled operation requests transmitted by the target carry device.Main carry device can obtain Take the second operation requests transmitted by target carry device.
Second operation requests include the target data, the target identification of the target volume and in the mesh The target write address of the target data is written in mark volume;
The processor is also used to institute of the main carry device according to second operation requests, in the target volume It states and the target data is written in target write address.
Optionally, the second operation requests transmitted by target carry device are for requesting the target write address into target volume Middle write-in target data;And the second operation requests include target data, the target identification of target volume and are write in target volume Enter the target write address of target data.Main carry device is also possible to directly according to institute received second behaviour the control of target volume It requests, target data is written in the target write address in target volume.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The steps in the embodiment of the present invention can be sequentially adjusted, merged and deleted according to actual needs.
Module or unit in the terminal of that embodiment of the invention can be combined, divided and deleted according to actual needs.
The components such as the microcontroller of the embodiment of the present invention, can with universal integrated circuit (such as central processor CPU), or with Specific integrated circuit (ASIC) Lai Shixian.
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.

Claims (20)

1. a kind of data processing method, which is characterized in that the described method includes:
Target carry device obtains the first operation requests operated to target volume, and first operation requests include the mesh Mark the target identification of volume;
The target carry device searches the corresponding main carry device of the target volume, the main extension according to the target identification The operation set Kong Zhi to the target volume is carried, institute relevant to the target carry device is prestored in the target carry device There are main carry device corresponding to the mark of each volume in volume, the corresponding main carry device of a volume, a main carry device Corresponding multiple volumes, the main carry device control the operation of the multiple volume;
The target carry device sends the second operation requests to the main carry device, so that the main carry device is according to institute State operation of the second operation requests control to the target volume.
2. the method as described in claim 1, which is characterized in that second operation requests are for requesting into the target volume Target data is written, and second operation requests include writing ground for the target that the target data is written in the target volume Location;
The target carry device sends the second operation requests to the main carry device, so that the main carry device is according to institute State operation of the second operation requests control to the target volume, comprising:
The target carry device sends the second operation requests, the second operation requests application locking to the main carry device The write permission of target write address described in the target volume, so that the main carry device is institute according to second operation requests It states target carry device and configures the write permission.
3. method according to claim 2, which is characterized in that the target carry device sends the to the main carry device After two operation requests, further includes:
The target carry device obtains the write permission to the target write address of the main carry device configuration;
The target data is written into the target write address for the target carry device.
4. the method as described in claim 1, which is characterized in that second operation requests are for requesting into the target volume Target data is written;
The target carry device sends the second operation requests to the main carry device, so that the main carry device is according to institute State operation of the second operation requests control to the target volume, comprising:
The target carry device sends the second operation requests to the main carry device, and second operation requests include described Target data, the target identification of the target volume and the target that the target data is written in the target volume write ground Location, so that the main carry device is written in the target write address in the target volume according to second operation requests The target data.
5. a kind of data processing method, which is characterized in that the described method includes:
Main carry device obtains the second operation requests for being operated to target volume that target carry device is sent, the master Carry device controls the operation to the target volume, prestores in the target carry device relevant to the target carry device Main carry device corresponding to the mark of each volume in all volumes, the corresponding main carry device of a volume, a main carry dress Corresponding multiple volumes are set, the main carry device controls the operation of the multiple volume;
The main carry device controls the operation to the target volume according to second operation requests.
6. method as claimed in claim 5, which is characterized in that second operation requests are for requesting into the target volume Target data is written, and second operation requests include writing ground for the target that the target data is written in the target volume Location, the write permission of target write address described in target volume described in the second operation requests application locking;
The main carry device controls the operation to the target volume according to second operation requests, comprising:
The main carry device is the target carry device configuration locking to the target according to second operation requests The write permission of write address so that the target carry device obtains the write permission, and is write into the target write address Enter the target data.
7. method as claimed in claim 5, which is characterized in that second operation requests are for requesting into the target volume Target write address in target data is written;
The main carry device obtain the second operation requests for being operated to target volume that target carry device is sent it Before, further includes:
The main carry device receive at least one carry device transmission operation requests, the operation requests be used to request to Data are written in the target write address in the target volume;Wherein, each carry at least one described carry device Device operates the target volume by the main carry device;
Main carry device selection target carry device at least one described carry device.
8. the method for claim 7, which is characterized in that second operation requests include the target data, described The target identification of target volume and the target write address that the target data is written in the target volume;
The main carry device controls the operation to the target volume according to second operation requests, comprising:
Institute is written in the target write address in the target volume according to second operation requests in the main carry device State target data.
9. a kind of target carry device, which is characterized in that the target carry device includes:
First obtains module, and for obtaining the first operation requests operated to target volume, first operation requests include The target identification of the target volume;
Searching module, for searching the corresponding main carry device of the target volume, the main carry dress according to the target identification The operation controlled to the target volume is set, prestores all volumes relevant to the target carry device in the target carry device In each volume mark corresponding to main carry device, the corresponding main carry device of volume, a main carry device is corresponding Multiple volumes, the main carry device control the operation of the multiple volume;
Sending module, for sending the second operation requests to the main carry device, so that the main carry device is according to Second operation requests control the operation to the target volume.
10. device as claimed in claim 9, which is characterized in that second operation requests are for requesting to the target volume Middle write-in target data, and second operation requests include writing ground for the target that the target data is written in the target volume Location;
The sending module is specifically used for sending the second operation requests, the second operation requests application to the main carry device The write permission of target write address described in the target volume is locked, so that the main carry device is according to second operation requests The write permission is configured for the target carry device.
11. device as claimed in claim 10, which is characterized in that described device further include:
Second obtains module, for obtaining the write permission to the target write address of the main carry device configuration;
Data module is write, for the target data to be written into the target write address.
12. device as claimed in claim 9, which is characterized in that second operation requests are for requesting to the target volume Middle write-in target data;
The sending module is specifically used for sending the second operation requests to the main carry device, and second operation requests include The target data, the target identification of the target volume and the target that the target data is written in the target volume Write address, so that the main carry device is according to second operation requests in the target write address in the target volume The target data is written.
13. a kind of main carry device, which is characterized in that described device includes:
Third obtains module, and the second operation for being operated to target volume for obtaining the transmission of target carry device is asked It asks, the main carry device and the target volume correspond, and the main carry device controls the operation to the target volume, Master corresponding to the mark of each volume in all volumes relevant to the target carry device is prestored in the target carry device Carry device, the corresponding main carry device of a volume, a main carry device correspond to multiple volumes, and the main carry device is to institute The operation for stating multiple volumes is controlled;
Control module, for controlling the operation to the target volume according to second operation requests.
14. device as claimed in claim 13, which is characterized in that second operation requests are for requesting to the target volume Middle write-in target data, and second operation requests include writing ground for the target that the target data is written in the target volume Location, the write permission of target write address described in target volume described in the second operation requests application locking;
The control module is specifically used for according to second operation requests, is the target carry device configuration locking to institute The write permission of target write address is stated, so that the target carry device obtains the write permission, and writes ground to the target The target data is written in location.
15. device as claimed in claim 13, which is characterized in that second operation requests are for requesting to the target volume In target write address in target data is written;Described device further include:
Receiving module, for receive at least one carry device transmission operation requests, the operation requests be used to request to Data are written in the target write address in the target volume;Wherein, each carry at least one described carry device Device operates the target volume by the main carry device;
Selecting module, for the selection target carry device at least one described carry device.
16. device as claimed in claim 15, which is characterized in that second operation requests include the target data, institute It states the target identification of target volume and the target write address of the target data is written in the target volume;
The control module is specifically used for according to second operation requests, in the target write address in the target volume The target data is written.
17. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating Machine program, the computer program is used to instruct relevant hardware, to complete method described in Claims 1-4 any one.
18. a kind of computer-readable storage medium, which is characterized in that the computer-readable storage medium is stored with calculating Machine program, the computer program is used to instruct relevant hardware, to complete method described in claim 5 to 8 any one.
19. a kind of target carry device, which is characterized in that the target carry device includes:
Receiver, processor and transmitter;
Wherein, the receiver, for obtaining the first operation requests operated to target volume, the first operation requests packet Include the target identification of the target volume;
The processor is used for, and according to the target identification, searches the corresponding main carry device of the target volume, the main carry Device controls the operation to the target volume, prestores in the target carry device relevant to the target carry device all Main carry device corresponding to the mark of each volume in volume, the corresponding main carry device of a volume, a main carry device pair Multiple volumes are answered, the main carry device controls the operation of the multiple volume;
The transmitter is used for, and the second operation requests is sent to the main carry device, so that the main carry device is according to institute State operation of the second operation requests control to the target volume.
20. a kind of main carry device, which is characterized in that
The main carry device includes: receiver and processor;
Wherein, the receiver is used for, and obtains the second operation for being operated to target volume that target carry device is sent Request, the main carry device control the operation to the target volume, prestore in the target carry device and hang with the target It carries and sets main carry device corresponding to the mark of each volume in relevant all volumes, the corresponding main carry device of a volume, One main carry device corresponds to multiple volumes, and the main carry device controls the operation of the multiple volume;
The processor is used for, and according to second operation requests, controls the operation to the target volume.
CN201410416507.5A 2014-08-21 2014-08-21 A kind of data processing method and relevant apparatus Active CN105354148B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410416507.5A CN105354148B (en) 2014-08-21 2014-08-21 A kind of data processing method and relevant apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410416507.5A CN105354148B (en) 2014-08-21 2014-08-21 A kind of data processing method and relevant apparatus

Publications (2)

Publication Number Publication Date
CN105354148A CN105354148A (en) 2016-02-24
CN105354148B true CN105354148B (en) 2019-02-26

Family

ID=55330122

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410416507.5A Active CN105354148B (en) 2014-08-21 2014-08-21 A kind of data processing method and relevant apparatus

Country Status (1)

Country Link
CN (1) CN105354148B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290711A (en) * 2020-01-21 2020-06-16 苏州浪潮智能科技有限公司 IO processing method and related device of RAID system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979408A (en) * 2005-12-08 2007-06-13 国际商业机器公司 Method and system for management apparatus access
CN101505472A (en) * 2008-02-05 2009-08-12 华为技术有限公司 User data server system and apparatus
CN103180852A (en) * 2012-08-09 2013-06-26 华为技术有限公司 Distributed data processing method and apparatus
CN103618780A (en) * 2013-11-22 2014-03-05 华为技术有限公司 Method and device for realizing multiple virtual machine mounted externally-arranged components

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005275937A (en) * 2004-03-25 2005-10-06 Fujitsu Ltd P2P network system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1979408A (en) * 2005-12-08 2007-06-13 国际商业机器公司 Method and system for management apparatus access
CN101505472A (en) * 2008-02-05 2009-08-12 华为技术有限公司 User data server system and apparatus
CN103180852A (en) * 2012-08-09 2013-06-26 华为技术有限公司 Distributed data processing method and apparatus
CN103618780A (en) * 2013-11-22 2014-03-05 华为技术有限公司 Method and device for realizing multiple virtual machine mounted externally-arranged components

Also Published As

Publication number Publication date
CN105354148A (en) 2016-02-24

Similar Documents

Publication Publication Date Title
US11310122B2 (en) Portable and flexible deployment of servers
EP3657358B1 (en) Method, device and system for persistent data processing, and readable storage medium
CN106487869B (en) Multi-cloud network proxy for controlling and standardizing tagged data
US11687354B2 (en) Virtual machine management using onboarding operations and openstack control
CN110677441B (en) Access method and device of object storage cluster
JP6888078B2 (en) Network function NF management method and NF management device
CN113268308B (en) Information processing method, device and storage medium
US8423734B2 (en) Making automated use of data volume copy service targets
US20170134495A1 (en) Method and apparatus for sharing collaboratively edited document
CN105389191A (en) Software upgrading method, apparatus and system based on local area network
US20080177948A1 (en) Method and apparatus for managing placement of data in a tiered storage system
CN105631023B (en) The method and apparatus of distributed lock service
CN106598692A (en) Method for creating mirror image file in logical volume and starting virtual machine, and server
US8600999B2 (en) System and method for efficient resource management
CN109561054B (en) Data transmission method, controller and access device
CN110557284A (en) data aggregation method and device based on client gateway
CN110519348A (en) A kind of mostly service distributed type assemblies deployment system and method
CN109873839A (en) Method, server and the distributed system of data access
CN106648838B (en) Resource pool management configuration method and device
US20230020458A1 (en) Automatic selection of network path connecting backup clients to a pool of multiple backup storage appliances
WO2016101662A1 (en) Data processing method and relevant server
CN110008029B (en) ceph metadata cluster directory distribution method, system, device and readable storage medium
CN105354148B (en) A kind of data processing method and relevant apparatus
US8433877B2 (en) Storage scalability management
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C41 Transfer of patent application or patent right or utility model
TA01 Transfer of patent application right

Effective date of registration: 20160801

Address after: 518000 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Applicant after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Applicant before: Shenzhen Huawei Technology Software Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220209

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technologies Co.,Ltd.

Address before: 518000 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right