Data processing method and device in distributed file storage system
First Claim
1. A data writing method, comprising:
- receiving a data processing request from a host, the data processing request carrying a data identifier and a target data;
obtaining a redundancy information according to the data identifier, the redundancy information indicating a N+M redundancy protection for the target data, N being a default quantity of data strips, M being a default quantity of parity strips, N being a positive integer, and M being a positive integer;
dividing the target data into DSC data strips, DSC being less than N, and DSC being a positive integer;
combining at least M-DSC+1 empty data strips with the DSC data strips to obtain N′
actual data strips when DSC is less than M, M being less than N′
, and N′
being less than N;
using the DSC data strips as the N′
actual data strips when DSC greater than M;
generating M parity strips from the N′
actual data strips; and
writing the N′
actual data strips and the M parity strips to a distributed data storage system.
1 Assignment
0 Petitions
Accused Products
Abstract
A data processing method and a device in a distributed file storage system, where the method includes receiving, by a client agent, a data processing request which carries a file identifier, an offset address, a file length, and other information of a target file; obtaining, by the client agent, redundancy information according to the file identifier carried in the data processing request, where the redundancy information includes a quantity of data strips, N, of the distributed file storage system and a quantity of parity strips, M, of the distributed file storage system; determining a quantity of valid strips, DSC, of the target file according to the offset address and the length information; determining a quantity of actual strips, N′, of the target file according to the DSC and the M; and determining corresponding strips according to the N′ and processing the corresponding strips.
15 Citations
13 Claims
-
1. A data writing method, comprising:
-
receiving a data processing request from a host, the data processing request carrying a data identifier and a target data; obtaining a redundancy information according to the data identifier, the redundancy information indicating a N+M redundancy protection for the target data, N being a default quantity of data strips, M being a default quantity of parity strips, N being a positive integer, and M being a positive integer; dividing the target data into DSC data strips, DSC being less than N, and DSC being a positive integer; combining at least M-DSC+1 empty data strips with the DSC data strips to obtain N′
actual data strips when DSC is less than M, M being less than N′
, and N′
being less than N;using the DSC data strips as the N′
actual data strips when DSC greater than M;generating M parity strips from the N′
actual data strips; andwriting the N′
actual data strips and the M parity strips to a distributed data storage system. - View Dependent Claims (2, 3, 8, 9)
-
-
4. A server for data processing, comprising:
-
a memory comprising instructions; and a processor coupled to the memory, the processor being configured to execute the instructions to; receive a data processing request from a host, the data processing request carrying a data identifier and a target data; obtain a redundancy information according to the data identifier, the redundancy information indicating a N+M redundancy protection for the target data, N being a default quantity of data strips, M being a default quantity of parity strips, N being a positive integer, and M being a positive integer; divide the target data into DSC data strips, DSC being less than N, and DSC being a positive integer; combine at least M-DSC+1 empty data strips with the DSC data strips to obtain N′
actual data strips when DSC is less than M, M being less than N′
, and N′
being less than N;use the DSC data strips as the N′
actual data strips when DSC greater than M;generate M parity strips from the N′
actual data strips; andsend the N′
actual data strips and the M parity strips to a distributed data storage system. - View Dependent Claims (5, 6, 7, 10, 11, 12, 13)
-
Specification