File management method, distributed storage system, and management node
First Claim
1. A file management method, wherein the method is applied to a distributed storage system, the distributed storage system comprises a management node and multiple storage nodes, and the method comprises:
- receiving, by the management node, a file creation request sent by a host to create a file in the distributed storage system;
allocating, by the management node to the file, first virtual space from global virtual address space of the distributed storage system according to the file creation request, wherein local virtual address space of each storage node in the distributed storage system corresponds to a part of the global virtual address space;
recording, by the management node, metadata of the file comprising information about the first virtual space allocated to the file, the information about the first virtual space points to first local virtual address space of a first storage node that stores the file; and
sending, by the management node, a file creation success response to the host carrying the information about the first virtual space.
1 Assignment
0 Petitions
Accused Products
Abstract
A file management method, a distributed storage system, and a management node are disclosed. In the distributed storage system, after receiving a file creation request sent by a host for requesting to create a file in a distributed storage system, a management node allocates, to the file, first virtual space from global virtual address space of the distributed storage system, where local virtual address space of each storage node in the distributed storage system is corresponding to a part of the global virtual address space. Then, the management node records metadata of the file, where the metadata of the file includes information about the first virtual space, and the information about the first virtual space is used to point to local virtual address space of a storage node that is used to store the file. Further, the management node sends, the information about the first virtual space to the host.
47 Citations
21 Claims
-
1. A file management method, wherein the method is applied to a distributed storage system, the distributed storage system comprises a management node and multiple storage nodes, and the method comprises:
-
receiving, by the management node, a file creation request sent by a host to create a file in the distributed storage system; allocating, by the management node to the file, first virtual space from global virtual address space of the distributed storage system according to the file creation request, wherein local virtual address space of each storage node in the distributed storage system corresponds to a part of the global virtual address space; recording, by the management node, metadata of the file comprising information about the first virtual space allocated to the file, the information about the first virtual space points to first local virtual address space of a first storage node that stores the file; and sending, by the management node, a file creation success response to the host carrying the information about the first virtual space. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A distributed storage system, comprising a management node and multiple storage nodes, wherein a local virtual address space of each of the multiple storage nodes corresponds to a part of a global virtual address space of the distributed storage system, wherein the management node is configured to:
-
receive a file creation request sent by a host to create a file in the distributed storage system; allocate, to the file, first virtual space from the global virtual address space according to the file creation request; record metadata of the file comprising information about the first virtual space allocated to the file, the information about the first virtual space points to first local virtual address space of a first storage node that stores the file; and send a file creation success response to the host carrying the information about the first virtual space. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A management node, comprising:
-
a communications interface configured to communicate with multiple storage nodes; and a processor coupled to the communications interface and configured to; receive a file creation request sent by a host to create a file in the distributed storage system; allocate, to the file, first virtual space from global virtual address space of the distributed storage system according to the file creation request, wherein local virtual address space of each storage node in the distributed storage system corresponds to a part of the global virtual address space; record metadata of the file comprising information about the first virtual space allocated to the file, the information about the first virtual space points to first local virtual address space of a first storage node that stores the file; and send a file creation success response to the host carrying the information about the first virtual space. - View Dependent Claims (16, 17, 18, 19, 20, 21)
-
Specification