Method for accessing distributed storage system, related apparatus, and related system
AssigneeHuawei Technologies Co., Ltd.
InventorDingguo Yang
Life of this patent
Estimating the term…
Abstract
In a distributed storage system, a first storage node receives a first data read request for reading first data. The first data request includes a first address of the first data. The first storage node determines that the first data are stored in a first storage device included in the first storage node based on the first address. Based on the determination, the first storage node checks whether the first storage device is in a trusted access state. Further, the first storage node obtains the first data when the first storage device is in the trusted access state.
Claims8
A data accessing method performed by a first storage node, in a distributed storage system including a plurality of storage nodes and a management node, wherein each of the storage nodes includes storage devices, the method comprising:
- receiving a first data read request for reading first data, wherein the first data read request includes a first address of the first data;
- determining, based on the first address, that the first data is stored in a first storage device of the first storage node;
- determining, in accordance with the determining that the first data is stored in the first storage device, that the first storage device is in a trusted access state indicating that the first storage device is online and not in a reconstruction process;
- and
- obtaining, in accordance with determining that the first storage device is in the trusted access state, the first data.
A first storage node, configured to carry out a data accessing method in a distributed storage system including a plurality of storage nodes and a management node, wherein each of the storage nodes includes storage devices, and wherein the first storage node comprises:
- a processor;
- and
- a non-transitory computer-readable medium including computer-executable instructions that, when executed by the processor, cause the first storage node to perform the data access method, comprising:
- receiving a first data read request for reading first data, wherein the first data read request includes a first address of the first data;
- determining, based on the first address, that the first data is stored in a first storage device of the first storage node;
- determining, in accordance with the determining that the first data is stored in the first storage device, that the first storage device is in a trusted access state indicating that the first storage is online and not in a reconstruction process;
- and
- obtaining, in accordance with determining that the first storage device is in the trusted access state, the first data.
A first storage node, configured to carry out a data accessing method in a distributed storage system including a plurality of storage nodes and a management node, wherein each of the storage nodes includes storage devices, and wherein the first storage node comprises:
- a processor;
- and
- a non-transitory computer-readable medium including computer-executable instructions that, when executed by the processor, cause the first storage node to perform the data access method, comprising:
- receiving a first data read request for reading first data from a terminal, wherein the first data read request includes a first address of the first data;
- determining, based on the first address, that the first data is stored in a first storage device of the first storage node;
- determining, in accordance with the determining that the first data is stored in the first storage device, that the first storage device is in a trusted access state indicating that the first storage device is online and not in a reconstruction process;
- and
- obtaining, in accordance with determining that the first storage device is in the trusted access state, the first data,
- wherein the first storage node stores a first system map recording a state of each of all storage devices in the distributed storage system,
- wherein the determining that the first storage device is in a trusted access state comprises:
- searching the first system map for a state of the first storage device,
- wherein the plurality of storage nodes includes a second node including a second storage device, and the first system map has a version ID, and
- wherein the method further comprises:
- receiving a second data read request for reading second data, wherein the second data read request includes a second address of the second data;
- determining, based on the second address, that the second data are stored in the second storage device of the second node;
- attaching the version ID of the first system map to the second data read request to generate a modified second data read request;
- forwarding the modified second data read request to the second storage node to indicate to the second storage node to carry out the further operations of:
- comparing the version ID included in the modified second data read request to a version ID of a second system map stored in the second storage node;
- obtaining the second data from the second storage device in accordance with determining, based on the comparing, that the version ID included in the second data read request is the same as the version ID of the second system map;
- and
- sending the second data to the first storage node.
Dependencies are inferred from the claim text.