Method and device for processing data request by storage system
A storage system and data processing technology, applied in the storage field, can solve the problems of metadata security to be improved, and achieve the effect of avoiding metadata loss and improving security
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0051] The first embodiment of a method for processing a data request by a storage system provided by the present invention will be described below. Refer to figure 1 , the first embodiment includes:
[0052] Step S101: In response to the write request sent by the client, according to an automatic thin provisioning policy, a logical space and a physical space are allocated for the data to be written.
[0053] This embodiment is applied to a storage system, where the storage system includes a client, a storage server, a first metadata node, and a second metadata node, wherein the client is used to send data requests, including but not limited to write requests, and the storage server uses For storing data, the first metadata node and the second metadata node are used to store metadata, and there is no essential difference between the two. Under normal operation, the metadata on the first metadata node and the second metadata node is consistent. The thin provisioning strategy ...
Embodiment 2
[0064] Based on the above description, the implementation process of Embodiment 2 will be introduced below. Refer to figure 2 , the second embodiment includes:
[0065] Step S201: Receive a data request sent by a client.
[0066] Step S202: Determine whether the data request is a write request, and if so, generate a metadata change instruction, and if not, generate a metadata query instruction.
[0067] Step S203 : in the caching mode, the owner node performs a modification operation according to the metadata modification instruction, and synchronizes the modification result to the backup node, and the backup node queries the corresponding metadata according to the metadata query instruction.
[0068] The so-called caching mode means that the owner node handles the modification and insertion operations of the metadata node, and the metadata query and modification results are backed up by the backup node in the form of transaction, and the backup node forwards the metadata ch...
Embodiment approach
[0081] As an optional implementation manner, the device includes:
[0082] State parameter obtaining module 305: used to obtain the running state parameter of the first metadata node;
[0083] Fault judgment module 306: used for judging whether the first metadata node is faulty according to the running state parameter.
[0084] As an optional implementation manner, the device further includes:
[0085] Request receiving module 307: for receiving the data request sent by the client;
[0086]Request judgment module 308: for judging whether the data request is a write request;
[0087] Metadata search module 309: used to search for corresponding metadata from the second metadata node according to the data request when both the first metadata node and the second metadata node are running normally if the request is not a write request , so as to determine the physical space where the data corresponding to the data request is located according to the metadata.
[0088] As an opt...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


