hottub.patents
US 12,346,589 B2#2226592 Most CitedActiveUnited States (USPTO)Utility

Direct write strategy for a storage system, data processing method, apparatus, node, and storage medium

1Forward Citations (#2226592 Global)
1.0/yrCitation Velocity (#2226592 Global)
0.17Citation PageRank (#2226592 Global)
11Prior Art Cited
19Claims (3 Indep. · 16 Dep.)
13Drawings / Sheets

Abstract

This application discloses a storage system, a data processing method, an apparatus, a node, and a storage medium, and pertains to the field of data storage technologies. In the method, a client determines an address that is in a storage unit and that is used to store to-be-written data, and sends the to-be-written data to a first storage device that is in a storage node and that is corresponding to the storage unit, so that the first storage device stores the to-be-written data while a CPU of the storage node does not need to determine a hard disk LBA corresponding to virtual address space, and a hard disk does not need to determine a corresponding physical address based on the hard disk LBA.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 1.

Claims (19 — 3 Independent, 16 Dependent)

  1. Claim 1Independent Claim

    A storage system, comprising: a client; and a storage node comprising a first storage device; wherein the client is configured to: receive, from a metadata node, identifiers of multiple partitions, and identifiers of storage devices comprised in each of the multiple partitions, wherein the multiple partitions are partitions managed by the metadata node; obtain a write request, where the write request carries to-be-written data; in response to obtaining the write request, send, to the metadata node, an allocation request, where the allocation request is used to indicate the metadata node to allocate a storage unit to the to-be-written data; receive, from the metadata node, an allocation response, wherein the allocation response comprises an address of a first storage unit and an identifier of a first partition that is corresponding to the first storage unit and that is in the multiple partitions; determine, according to the identifier of the first partition and the identifiers of storage devices comprised in each of the multiple partitions, the first storage device corresponding to the first storage unit, wherein the first partition comprises the first storage device; and send a target write request to the first storage device, the target write request comprising the address of the first storage unit and the to-be-written data; and wherein the first storage device is configured to: in response to receiving the target write request, store the to-be-written data to the first storage device; and in response to receiving the target write request, establish a mapping relationship between the address of the first storage unit and a physical address of the to-be-written data in the first storage device, wherein the address of the first storage unit is an identity (ID) of the first storage unit and is not a hard disk logical block address (LBA).

  2. Claim 2Depends on #1

    The storage system according to claim 1, further comprising: a metadata node; wherein the client is further configured to: send a data volume of the to-be-written data to the metadata node; and wherein the metadata node is configured to: generate the address of the first storage unit based on the data volume of the to-be-written data.

  3. Claim 3Depends on #1

    The storage system according to claim 1, wherein the client being configured to send the address of the first storage unit and the to-be-written data to the first storage device comprises the client being configured to: send the address of the first storage unit and the to-be-written data to a network interface card of the storage node; and wherein the network interface card of the storage node is configured to: send the address of the first storage unit and the to-be-written data to the first storage device.

  4. Claim 4Depends on #1

    The storage system according to claim 1, further comprising: a second storage device, configured to: store recovered to-be-written data to a physical address of the second storage device after the first storage device becomes faulty; and establish a mapping relationship between the address of the first storage unit and the physical address of the second storage device.

  5. Claim 5Depends on #1

    The storage system according to claim 1, further comprising a plurality of metadata nodes, each metadata node of the plurality of metadata nodes being configured to manage one or more storage devices in the storage system.

  6. Claim 6Depends on #1

    The storage system according to claim 1, further comprising: a first metadata node, configured to divide storage devices managed by the first metadata node, to obtain a plurality of partitions.

  7. Claim 7Depends on #6

    The storage system according to claim 6, wherein each partition of the plurality of partitions is indicated by an identifier, and different partitions are indicated by different identifiers.

  8. Claim 8Independent Claim

    A method, comprising: receiving, from a metadata node, identifiers of multiple partitions, and identifiers of storage devices comprised in each of the multiple partitions, wherein the multiple partitions are partitions managed by the metadata node; obtaining a write request, where the write request carries to-be-written data; in response to obtaining the write request, sending, to the metadata node, an allocation request, where the allocation request is used to indicate the metadata node to allocate a storage unit to the to-be-written data; receiving, from the metadata node, an allocation response, wherein the allocation response comprises an address of a first storage unit and an identifier of a first partition that is corresponding to the first storage unit and that is in the multiple partitions; determining, according to the identifier of the first partition and the identifiers of storage devices comprised in each of the multiple partitions, a first storage device corresponding to the first storage unit, wherein the first partition comprises the first storage device, and wherein a storage system comprises a client and a storage node, and the storage node comprises a first storage device; sending, by the client, a target write request to the first storage device, wherein the target write request comprises the address of the first storage unit and the to-be-written data; in response to receiving the target write request, storing, by the first storage device, the to-be-written data to the first storage device; and in response to receiving the target write request, establishing, by the first storage device, a mapping relationship between the address of the first storage unit and a physical address of the to-be-written data in the first storage device, wherein the address of the first storage unit is an identity (ID) of the first storage unit and is not a logical block address (LBA).

  9. Claim 9Depends on #8

    The method according to claim 8, wherein the storage system further comprises the metadata node; and wherein the method further comprises: sending, by the client, a data volume of the to-be-written data to the metadata node; and wherein the metadata node generates the address of the first storage unit based on the data volume of the to-be-written data.

  10. Claim 10Depends on #8

    The method according to claim 8, wherein sending, by the client, the address of the first storage unit and the to-be-written data to the first storage device comprises: sending, by the client, the address of the first storage unit and the to-be-written data to a network interface card of the storage node, wherein the network interface card of the storage node sends the address of the first storage unit and the to-be-written data to the first storage device.

  11. Claim 11Depends on #8

    The method according to claim 8, further comprising: storing, by a second storage device of the storage system, recovered to-be-written data to a physical address of the second storage device after the first storage device is faulty; and establishing, by the second storage device, a mapping relationship between the address of the first storage unit and the physical address of the second storage device.

  12. Claim 12Depends on #8

    The method according to claim 8, wherein the storage system further comprises a plurality of metadata nodes, each metadata node of the plurality of metadata nodes being configured to manage one or more storage devices in the storage system.

  13. Claim 13Depends on #8

    The method according to claim 8, wherein the storage system further comprises a first metadata node, configured to divide storage devices managed by the first metadata node, to obtain a plurality of partitions.

  14. Claim 14Depends on #13

    The method according to claim 13, wherein each partition of the plurality of partitions is indicated by an identifier, and different partitions are indicated by different identifiers.

  15. Claim 15Independent Claim

    A computing node, comprising: a memory, and at least one processor coupled to the memory and configured to: receive, from a metadata node, identifiers of multiple partitions, and identifiers of storage devices comprised in each of the multiple partitions, wherein the multiple partitions are partitions managed by the metadata node; obtain a write request, where the write request carries to-be-written data; in response to obtaining the write request, send, to the metadata node, an allocation request, where the allocation request is used to indicate the metadata node to allocate a storage unit to the to-be-written data; receive, from the metadata node, an allocation response, wherein the allocation response comprises an address of a first storage unit and an identifier of a first partition that is corresponding to the first storage unit and that is in the multiple partitions; determine, according to the identifier of the first partition and the identifiers of storage devices comprised in each of the multiple partitions, a first storage device corresponding to the first storage unit, wherein the first partition comprises the first storage device; and send a target write request to the first storage device, wherein the target write request comprises the address of the first storage unit and the to-be-written data, and wherein the address of the first storage unit is an identity (ID) of the first storage unit and is not a logical block address (LBA).

  16. Claim 16Depends on #15

    The computing node according to claim 15, wherein the at least one processor is further configured to: send a data volume of the to-be-written data to the metadata node, the metadata node being in a storage system comprising the computing node; and wherein the address of the first storage unit is generated by the metadata node based on the data volume of the to-be-written data.

  17. Claim 17Depends on #15

    The computing node according to claim 15, wherein the at least one processor is further configured to: send the address of the first storage unit and the to-be-written data to a network interface card of a storage node.

  18. Claim 18Depends on #15

    The computing node according to claim 15, wherein the at least one processor is further configured to: request a metadata node to allocate the first storage unit.

  19. Claim 19Depends on #15

    The computing node according to claim 15, wherein the write request is triggered by a user operation.

Technical Overview & Description

CROSS-REFERENCE TO RELATED APPLICATIONS This application is a continuation of International Application No. PCT/CN2021/077840, filed on Feb. 25, 2021, which claims priority to Chinese Patent Application No. 202010220314.8, filed on Mar. 25, 2020 and Chinese Patent Application No. 202010574780.6, filed on Jun. 22, 2020. All of the aforementioned applications are hereby incorporated by reference in their entireties. TECHNICAL FIELD This application relates to the field of data storage technologies, and in particular, to a storage system, a data processing method, an apparatus, a node, and a storage medium. BACKGROUND With the development of data storage technologies, increasingly more data may be stored in a storage system that includes a client, a metadata node, and a storage node. Currently, a process in which the client writes data to the storage system may be as follows: The metadata node allocates virtual address space to the client; the client may send the allocated virtual address space and the to-be-written data to the storage node, and a central processing unit (CPU) of the storage node determines, based on a mapping relationship between the virtual address space and a hard disk logical block address (LBA), a hard disk LBA corresponding to the received virtual address space, and sends the hard disk LBA and the to-be-written data to a to-be-written hard disk corresponding to the determined hard disk LBA; and the to-be-written hard disk determines, based on a mapping relationship between a hard disk LBA and a physical address, a physical address corresponding to the received hard disk LBA, and writes the to-be-written data to physical address space corresponding to the physical address. In the foregoing data writing process, the CPU in the storage node further needs to determine the hard disk LBA corresponding to the virtual address space, to determine the to-be-written hard disk, and the to-be-written hard disk further needs to determine to-be-written physical

Cited By — Indexed Forward Citations (1 of 1 total)

References Cited — Backward Prior Art (11)

PatentTitleYearCitations