Distributed File System and Data Block Consistency Managing Method Thereof
First Claim
1. A CHUNK consistency managing method in a distributed file system, and said method comprising the following steps of:
- A. when generating a CHUNK, a file location register generating a counter value corresponding to the generated CHUNK and storing the counter value in both file access servers and the file location register;
B. when writing data into a CHUNK, a file access client writing the data into a main and standby file access servers, and if the data is successfully written into both the main and standby file access servers, the file access client doing not to revise the counter value of the CHUNK into which the data is written;
otherwise, the file access client increasing the counter value of the CHUNK into which the data is written in the file access servers into which the data is written successfully with a predetermined step length;
C. said file location register, based on the counter values of the current CHUNK reported by the main and standby file access servers respectively, taking the CHUNK in a file access server whose counter value is maximal as normal and valid CHUNK, and taking the CHUNKs in other file access servers as abnormal CHUNKs and reconstructing the abnormal CHUNKs.
1 Assignment
0 Petitions
Accused Products
Abstract
A distributed file system and a data block consistency managing method thereof are disclosed. The method comprises: a file location register generates the values of the counters corresponding to CHUNKs and the values of the counters are simultaneously stored in file access servers and a file location register; when writing data into a CHUNK, a file access client writes data into both the main and standby file access servers and revises the values of counters of CHUNKs in the file access servers into which data is written normally; the file location register takes the CHUNK whose counter has the maximal value as the normal and valid one according to the corresponding values of the counters of corresponding CHUNK reported by the main and standby file access servers.
29 Citations
11 Claims
-
1. A CHUNK consistency managing method in a distributed file system, and said method comprising the following steps of:
-
A. when generating a CHUNK, a file location register generating a counter value corresponding to the generated CHUNK and storing the counter value in both file access servers and the file location register; B. when writing data into a CHUNK, a file access client writing the data into a main and standby file access servers, and if the data is successfully written into both the main and standby file access servers, the file access client doing not to revise the counter value of the CHUNK into which the data is written;
otherwise, the file access client increasing the counter value of the CHUNK into which the data is written in the file access servers into which the data is written successfully with a predetermined step length;C. said file location register, based on the counter values of the current CHUNK reported by the main and standby file access servers respectively, taking the CHUNK in a file access server whose counter value is maximal as normal and valid CHUNK, and taking the CHUNKs in other file access servers as abnormal CHUNKs and reconstructing the abnormal CHUNKs. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A distributed file system, said system comprising at least one file access server and at least one file location register connected together through a network;
- said file access server connecting to a data storage;
a user sending a data writing request to said file access server and said file location register via a file access client and increasing counter value of the CHUNK in the file access server to which data is written normally with a predetermined step length;
wherein, said file access server is configured with at least a main and standby file access servers; andsaid file location register is used to generate the counter value corresponding to the CHUNK, and control reconstruction for abnormal CHUNKs according to the counter value of the CHUNK reported by the main and standby file access servers.
- said file access server connecting to a data storage;
Specification