Storage method and distributed storage system
AssigneeSurcloud Corp.
InventorsDonglin WANG, Yu QI
Life of this patent
Estimating the term…
Abstract
Embodiments of the present invention provide a storage method and a distributed storage system. The storage method is applied to the distributed storage system comprising at least two storage control nodes and one storage pool shared by at least two storage control nodes. The storage pool includes at least two storage units. When data is to be written to the storage pool by any one of storage control nodes, the method comprises judging whether or not there exists a duplicate storage unit whose data content is the same as the currently-written data in the storage pool, and allocating one free storage unit from the storage pool and writing the currently-written data to the free storage unit when judgment result is NO.
Claims20
A storage method applied to a distributed storage system comprising at least two storage control nodes and a storage pool shared by the at least two storage control nodes, the storage pool including at least two storage units, the method comprising:
- judging whether or not there exists a duplicate storage unit whose data content is the same as currently-written data in the storage pool when the currently-written data is to be written into the storage pool by any one of the storage control nodes, and
- allocating a free storage unit from the storage pool and writing the currently-written data into the free storage unit when the judgment result is NO.
A distributed storage system including at least two storage control nodes and a storage pool shared by the at least two storage control nodes, the storage control node comprising:
- a judgment module configured to judge whether or not there is a duplicate storage unit in the storage pool where data content is the same as currently-written data;
- a free unit management module configured to allocate a free storage unit from the storage pool;
- and
- a writing module configured to return a storage address of the duplicate storage unit when the judgment result returned by the judgment module is YES;
- otherwise to write the currently-written data to the free storage unit allocated by the free unit management module, and return the storage address of the free storage unit to which the currently-written data has been written.
Dependencies are inferred from the claim text.