发明名称 DISTRIBUTED STORAGE SYSTEM AND FILE SYNCHRONIZATION METHOD
摘要 A distributed storage system receives a file from a client, stores the file into different storage units in the system, creates a system log in an access entry and creates a unit log in each storage unit. The system log records information of all files stored in the system, and the unit log in each storage unit records information of all files stored in the storage unit. When a file stored in a first storage unit is lost or destroyed, the system determines a second storage unit that stores the same file as the first storage unit according to the information recorded in the system log and the unit logs, and repairs the file in the first storage unit by copying the same file from the second storage unit to the first storage unit.
申请公布号 US2014379649(A1) 申请公布日期 2014.12.25
申请号 US201213813671 申请日期 2012.07.18
申请人 HONG FU JIN PRECISION INDUSTRY (ShenZhen) CO.,LTD. ;HON HAI PRECISION INDUSTRY CO., LTD. 发明人 Lee Chung-I;Lin Hai-Hong;Li Da-Peng
分类号 G06F17/30 主分类号 G06F17/30
代理机构 代理人
主权项 1. A file synchronization method being executed by a processor of a distributed storage system, the method comprising: receiving, via an access entry of the distributed storage system, a file sent from a client; designating multiple storage paths to store the file in the distributed storage system; storing the file into one or more storage units corresponding to the multiple storage paths in the distributed storage system; creating a system log in the access entry and a unit log in each storage unit, wherein the system log records information of all files stored in the distributed storage system, and the unit log records information of all files stored in the storage unit; collecting the unit logs stored in the storage units, and storing the collected unit logs in a preset storage location of the distributed storage system; determining if the file can be successfully read from a first storage unit; determining the file stored in the first storage unit is destroyed if the file fails to be read from the first storage unit, and determining a second storage unit that stores the same file by comparing the information recorded in the collected unit logs and the system log; and repairing the file stored in the first storage unit by copying the same file from the second storage unit to the first storage unit.
地址 Shenzhen CN