WO2023143596A1 - Storage method, storage management device, storage disk, and storage system - Google Patents

Storage method, storage management device, storage disk, and storage system Download PDF

Info

Publication number
WO2023143596A1
WO2023143596A1 PCT/CN2023/073766 CN2023073766W WO2023143596A1 WO 2023143596 A1 WO2023143596 A1 WO 2023143596A1 CN 2023073766 W CN2023073766 W CN 2023073766W WO 2023143596 A1 WO2023143596 A1 WO 2023143596A1
Authority
WO
WIPO (PCT)
Prior art keywords
storage
attribute
target data
disk
management device
Prior art date
Application number
PCT/CN2023/073766
Other languages
French (fr)
Chinese (zh)
Inventor
叶茂
王�锋
王华强
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2023143596A1 publication Critical patent/WO2023143596A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices

Definitions

  • Embodiments of the present invention relate to the field of data storage, and in particular, relate to a storage method, a storage management device, a storage disk, and a storage system.
  • the storage performance of different storage media granularity is also different, for example, the storage of single-level cell (single-level cell, SLC) storage particles High performance (fast reading, long life) but small capacity, while quad-level cell (QLC) storage has poor storage performance (slow reading, short life) but large capacity.
  • SLC single-level cell
  • QLC quad-level cell
  • Embodiments of the present invention provide a storage method, a storage management device, a storage disk, and a storage system, with the purpose of providing a more matching storage method for data according to the storage requirements of the data.
  • a method for managing data in a storage disk comprising: a storage management device updates an attribute label of target data from a first attribute to a second attribute, and the attribute label is used to indicate a storage method of the target data; The storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the storage method of the first storage disk.
  • the second storage method the storage medium corresponding to the first storage method is different from the storage medium corresponding to the second storage method, wherein the first storage method corresponds to the first attribute, and the second storage method corresponds to the second attribute;
  • the management device saves the address where the target data is stored on the first storage disk, and in response to the command to read the target data, the storage management device sends a read command to the first storage disk according to the address of the target data saved by the storage management device.
  • the first indication may be an attribute label of the target data.
  • the first indication may also be information indicating that the attribute label of the target data is updated from the first attribute to the second attribute.
  • the first indication may also be information directly indicating the second storage manner of the target data.
  • the attribute label of the target data is empty by default. This attribute tag can be assigned later.
  • the first storage disk is a flash disk.
  • the storage management device instructing the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk may include that the storage management device determines the target data The second storage mode of the data is notified to the first storage disk, or the storage management device may give reference information to the first storage disk. In fact, the storage management device does not directly determine the second storage mode of the target data.
  • the target data can be a PLOG.
  • the first storage manner may be any one of SLC storage, MLC storage, TLC storage, and QLC storage.
  • the second storage method may be any one of SLC storage, MLC storage, TLC storage, and QLC storage but is different from the first storage method.
  • the storage management device stores various attribute information of the data, and since data access needs to pass through the storage management device, the storage management device can accurately obtain the storage requirements of the data, set attribute tags for the target data through the storage management device, and the attribute tags There is a corresponding relationship with the storage mode, therefore, the storage management device can indicate the storage mode of the target data. In this way, the storage method of the target data can better match the storage requirements.
  • the storage management device receives the capacity of the first storage disk, and the capacity of the first storage disk includes the capacity corresponding to the first storage mode in the first storage disk and/or the capacity of the first storage disk.
  • the capacity corresponding to the second storage mode is the capacity corresponding to the capacity corresponding to the second storage mode.
  • the capacity corresponding to the first storage mode in the first storage disc may include the remaining capacity corresponding to the first storage mode in the first storage disc, or may include the entire capacity corresponding to the first storage mode in the first storage disc.
  • the capacity corresponding to the second storage mode in the first storage disc may include the remaining capacity corresponding to the second storage mode in the first storage disc, or may include the entire capacity corresponding to the second storage mode in the first storage disc.
  • the storage management device can better understand the capacity of the first storage disk to better manage the first storage disk.
  • the storage management device displays the capacity information of the first storage disk on the user interface, or the storage management device sends to the first storage disk a An indication of the corresponding capacity and/or the capacity corresponding to the second storage mode.
  • the storage management device determines that the attribute label in the first storage disk is consistent with the storage Correspondence between modes: the storage management device sends an indication for indicating the correspondence between attribute tags and storage modes to the first storage disk.
  • the second indication may be a relational table.
  • the storage management device can directly determine the storage method of all data, because the storage management device can accurately obtain the storage requirements of the data and can make the storage method of the data It matches the actual needs more.
  • the storage management device determines the correspondence between the attribute label and the storage mode in the first storage disk, including: when the first preset condition is met, the storage management device Determine the correspondence between the attribute label and the storage mode in the first storage disk, wherein the first preset condition includes at least one of the following: the storage management device receives an optimization command from the host, and the optimization command is used to instruct the storage management device to update the first A correspondence between attribute tags and storage methods in a storage disk; the storage management device receives an optimization request from the first storage disk, and the optimization request is used to instruct the storage management device to update the attribute tags and storage methods in the first storage disk Correspondence between: the remaining capacity of the first storage disk is less than the first preset threshold.
  • the remaining capacity of the first storage disk being smaller than the first preset threshold may be that the remaining capacity corresponding to the first storage mode in the first storage disk is smaller than the first preset threshold.
  • the storage management device By setting the first preset condition so that the storage management device updates the correspondence between the attribute label and the storage manner, it can be more flexibly determined when to adjust the correspondence between the attribute label and the storage manner.
  • the storage management device updating the attribute label of the target data from the first attribute to the second attribute includes: the storage management device according to the upper-level statistical information of the target data and/or Inherent attribute information updates the attribute label of the target data from the first attribute to the second attribute, and the upper layer statistical information includes the access frequency information and/or the last time the target data is accessed by the storage management device, and the target data
  • the inherent attribute information of the target data includes one or more of the following information: the type of the target data, the size of the target data, the type of the file to which the target data belongs; or, the storage management device according to the priority of the target data
  • the level updates the attribute label of the target data from the first attribute to the second attribute.
  • the priority level of the target data is determined according to the inherent attribute information of the target data. The priority level is used to determine the priority of the target data to participate in the storage mode conversion degree.
  • the access frequency of the target data may be the access frequency that can be counted by the storage management device within the first detection time range.
  • the first detection time range may be, for example, 2 minutes, that is, the access frequency of the target data is updated every 2 minutes. .
  • the storage management device updating the attribute label of the target data from the first attribute to the second attribute includes: when the second preset condition is met, the storage management device updates the attribute label of the target data from the first attribute to the second attribute Two attributes; wherein the second preset condition includes at least one of the following: when the access frequency is within the first frequency range and/or when the time last accessed is within the first time range; when the priority level of the target data is within the priority within the level range.
  • the first frequency range may be higher than a first access frequency threshold.
  • the first frequency range may also be lower than a second access frequency threshold, wherein the second access frequency threshold is lower than the first access frequency threshold.
  • the first time range may be earlier than the first access time.
  • the first time range may also be later than the second access time, wherein the second access time is later than the first access time.
  • the priority range may be below the first priority threshold. In this way, data below the first priority threshold does not participate in the storage mode conversion.
  • the priority range may be above a second priority threshold.
  • the second priority threshold is higher than the first priority threshold.
  • the value of the attribute label of the target data can be updated more flexibly to indicate the first
  • the storage disk performs in-disk storage mode conversion on the target data.
  • the storage management device before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the storage management device receives a write request of the target data; in response to For a write request, the storage management device determines that the attribute tag of the target data is the first attribute; the storage management device sends an instruction to the first storage disk to instruct the first storage disk to store the target data in a first storage manner.
  • the storage management device before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the storage management device sends a message indicating the second attribute to the second storage disk. An indication that the second storage disk stores a copy of the target data in the first storage mode; in response to the storage management device updating the attribute label of the target data from the first attribute to the second attribute, the storage management device sends the second storage disk the Instructing the second storage disk to convert the storage mode of the copy of the target data from the first storage mode to the second storage mode.
  • the first storage disk and the second storage disk belong to the same distributed storage system.
  • the storage modes of different copies of the target data can be synchronized.
  • Setting an attribute tag for the target data and determining the value of the attribute tag when writing the target data can enable the first storage disk to have an accurate indication or reference when storing the target data, thereby providing a more matching storage method for the target data.
  • a method for managing data in a storage disk includes: the storage disk receives a first instruction sent by a storage management device; The storage mode is converted to the second storage mode of the storage disk, and the storage medium corresponding to the first storage mode is different from the storage medium corresponding to the second storage mode.
  • the storage disk performs in-disk storage mode conversion on the target data. It should be understood that although the physical storage location of the target data in the storage disk has changed, the storage disk does not need to report the updated target data to the storage management device. The physical storage location on the storage disk.
  • the on-disk storage mode conversion may be performed in units of PLOGs.
  • the storage disk By determining the storage method according to the attribute label of the target data, the storage disk can provide a more matching storage method for the target data.
  • the storage disk converting the storage manner of the target data from the first storage manner of the storage disk to the second storage manner of the storage disk according to the first instruction includes: The attribute label of the target data is updated from the first attribute to the second attribute, and the attribute label is used to indicate the storage method of the target data, wherein the first attribute corresponds to the first storage method, and the second attribute corresponds to the second storage method; The attribute tag converts the storage mode of the target data from the first storage mode of the storage disk to the second storage mode of the storage disk.
  • the attribute tag By setting the attribute tag on the storage disk, the attribute tag can be updated according to the first indication to be synchronized with the storage management device, and the value of the attribute tag of the target data can be better managed and queried.
  • the storage disk before the storage disk receives the first indication sent by the storage management device, the storage disk receives the correspondence between the attribute label and the storage mode sent by the storage management device Indication of relationship.
  • the storage disk sends the capacity of the storage disk to the storage management device, and the capacity of the storage disk includes the capacity corresponding to the first storage mode and/or the second storage mode in the storage disk corresponding capacity.
  • the storage disk By sending its own storage information to the storage management device, the storage disk can enable the storage management device to better understand its own storage conditions, so that the storage management device can more flexibly allocate storage space and the like.
  • the storage disk before the storage disk sends the capacity of the storage disk to the storage management device, the storage disk receives request information sent by the storage management device, where the request information is used to acquire the capacity of the storage disk.
  • the probability that the storage disk sends its own storage information when unnecessary can be reduced, thereby avoiding unnecessary signaling interaction.
  • the storage disk before the storage disk receives the first instruction sent by the storage management device, the storage disk receives an instruction for instructing the storage disk to store the target data in a first storage manner .
  • the target data can be stored in a more matching storage manner when writing.
  • the storage disk when the storage disk detects that the remaining capacity in the disk is less than the second preset threshold, the storage disk updates the correspondence between the attribute label and the storage mode.
  • the storage of the storage disk can be made more flexible.
  • a storage management device including: a processing unit and a sending unit.
  • the processing unit is used to update the attribute label of the target data from the first attribute to the second attribute, and the attribute label is used to indicate the storage mode of the target data;
  • the sending unit is used to send the first instruction to the first storage disk, and the first instruction uses Instructing the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk, the storage medium corresponding to the first storage method and the second storage method
  • the storage media corresponding to the modes are different, wherein the first storage mode has a first corresponding relationship with the first attribute, and the second storage mode has a second corresponding relationship with the second attribute;
  • the processing unit is also used to respond to the command to read the target data, A read command is sent to the first storage disk according to the address information of the target data stored by the storage management device.
  • the storage management device further includes a receiving unit configured to receive the capacity of the first storage disk, where the capacity of the first storage disk includes The capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode.
  • the processing unit is further configured to display the capacity information of the first storage disk on the user interface; the sending unit is configured to send to the first storage disk the An indication of the capacity corresponding to the storage mode and/or the capacity corresponding to the second storage mode.
  • the processing unit is further configured to determine the correspondence between the attribute label and the storage mode, and the sending unit is further configured to send an indication to the first storage disk An indication of the correspondence between attribute labels and storage methods.
  • the processing unit is specifically configured to determine the correspondence between the attribute tag and the storage mode when the first preset condition is met, where the first preset condition includes At least one of the following: the storage management device receives an optimization command from the host, and the optimization command is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode; the storage management device receives an optimization request from the first storage disk, excellent The UL request is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode in the first storage disk; the remaining capacity of the first storage disk is less than a first preset threshold.
  • the processing unit is specifically configured to: update the attribute label of the target data from the first attribute to the second attribute according to the upper-level statistical information and/or inherent attribute information of the target data.
  • the upper-level statistical information includes the access frequency information of the target data stored by the storage management device and/or the time when the target data was last accessed
  • the inherent attribute information of the target data includes one or more of the following information: The type of the target data, the size of the target data, the type of the file to which the target data belongs; or, update the attribute label of the target data from the first attribute to the second attribute according to the priority level of the target data, and the target data
  • the priority level is determined according to the inherent attribute information of the target data, and the priority level is used to determine the priority of the target data to participate in the storage mode conversion.
  • the receiving unit is further configured to receive a write request of the target data; the processing unit is further configured to respond to the write request, and determine that the attribute label of the target data is the first attribute
  • the sending unit is further configured to send an instruction for instructing the first storage disk to store the target data in the first storage mode to the first storage disk.
  • the sending unit is further configured to send to the second storage disk an indication for instructing the second storage disk to store a copy of the target data in the first storage manner;
  • the management device updates the attribute label of the target data from the first attribute to the second attribute, and the sending unit is further configured to send to the second storage disk an instruction for the second storage disk to store the copy of the target data by the first storage disk.
  • the first storage mode of the disk is converted into an indication of the second storage mode of the first storage disk.
  • the first storage disk is a flash disk
  • the storage medium corresponding to the first storage method and the second storage method is one of the following storage media: SLC flash memory, MLC flash memory, TLC flash memory, QLC flash memory.
  • a storage disk including: a receiving unit and a processing unit.
  • the receiving unit is configured to receive the first instruction sent by the storage management device
  • the processing unit is configured to convert the storage method of the target data from the first storage method of the storage disk to the second storage method of the storage disk according to the first instruction.
  • the storage medium corresponding to the storage mode is different from the storage medium corresponding to the second storage mode.
  • the processing unit is specifically configured to update the attribute label of the target data from the first attribute to the second attribute, and the attribute label is used to indicate the storage mode of the target data, the The first attribute corresponds to the first storage method, and the second attribute corresponds to the second storage method; the processing unit is also used to convert the storage method of the target data from the first storage method of the storage disk to the second storage method of the storage disk according to the attribute label Way.
  • the receiving unit is further configured to receive an indication sent by the storage management device for indicating the correspondence between the attribute tag and the storage mode.
  • the sending unit is further configured to send the capacity of the storage disk to the storage management device, where the capacity of the storage disk includes the capacity corresponding to the first storage mode in the storage disk and/or The capacity corresponding to the second storage mode.
  • the receiving unit is further configured to instruct the storage disk to store the target data in the first storage manner.
  • the storage disk is a flash disk
  • the storage medium corresponding to the first storage mode and the second storage mode is one of the following storage media: SLC flash memory, MLC flash memory , TLC flash memory, QLC flash memory.
  • a fifth aspect provides a storage system, including the storage management device according to the third aspect and the storage disk according to the fourth aspect.
  • Fig. 1 is a schematic structural diagram of a storage system applicable to an embodiment of the present invention.
  • Fig. 2 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 3 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 4 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 5 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 6 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 7 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
  • Fig. 8 is a schematic structural diagram of a storage management device provided by an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a storage disk provided by an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a storage system provided by an embodiment of the present invention.
  • non-flash memory (not and flash, NAND flash) medium is a kind of non-volatile storage medium, that is, data can still be saved after power failure.
  • the internal storage structure unit of NAND flash memory is based on metal-oxide-semiconductor field-effect transistor (MOSFET), which is different from ordinary field-effect transistors in that the gate (control gate) and source There is a floating gate between the /drain and by utilizing this floating gate, data can be stored.
  • MOSFET metal-oxide-semiconductor field-effect transistor
  • Flash memory particles generally include single-level cells (single-level cells, SLC), multi-level cells (multi-level cells, MLC), triple-level cells (triple-level cells, TLC) and quad-level cells (quad- level cell, QLC).
  • SLC fast, long life, expensive.
  • Each unit can only store 1-bit information, and the stored data represents "0" or "1", by comparing the voltage of the SLC flash memory unit with the Vth voltage threshold, which means that the stored value is 0. Below the threshold means a 1 is stored. Since there are only two levels, the voltage gap between the two level voltages can be very high, making it easier to read the memory cell. The large voltage difference also makes the impact of wear relatively small, and the wider distribution of logic levels also helps to program or erase memory cells at lower voltages, further increasing the durability of the cells. Compared to other types of flash memory, SLC can store less data on the same die surfacer.
  • MLC can be used to store "00", "01”, “10", “11”.
  • the voltage of the flash memory cell needs to be compared with three threshold voltages (a total of 4 voltage bands), because it is compared with multiple threshold voltages, so the read operation needs to be more precise, resulting in a faster read speed than SLC flash memory. slow.
  • the raw bit error rate is also higher due to the lower voltage drop, and the effect of wear is more pronounced.
  • SLC it can store more data on the same die surfacer.
  • TLC can be used to store "000”, "001”, “010”, “011”, “100”, “101”, “110”, “111”.
  • the voltage of the flash memory cell needs to be compared with seven threshold voltages (8 voltage bands in total).
  • QLC can be used to store "0000”, “0001”, “0010”, “0011”, “0100”, “0101”, “0010”, “0111”, “1000”, “1001”, “1010”, “ 1011”, “1100”, “1101”, “1010”, “1111”, when reading, the voltage of the flash memory cell needs to be compared with fifteen threshold voltages (a total of 15 voltage bands).
  • different threshold voltages can be set to change the storage method. For example, if the threshold voltage number of a QLC particle is set to 1, the QLC particle can be used as an SLC particle, but the number of flash memory particles required is different. For example, data 1 originally occupies 16 QLC particles to store data. If SLC storage is used for up-storage, 64 QLC particles are required.
  • the two storage systems are described below with reference to FIG. 1 and FIG. 2 .
  • FIG. 1 is a schematic structural diagram of a storage system 100 .
  • a storage system 100 includes: a host 110 , a storage management device 120 and a storage disk 130 .
  • the host 110 may be a computer or other user equipment.
  • the host 110 may include any computing device known in the art, such as a server, a desktop computer, etc., and an operating system and other application programs are installed in the host 110 .
  • the host 110 can access files of the storage system 100, for example, the host 110 can provide a file access interface to an application program on the host through a file interface module.
  • the storage management device 120 is used to manage the metadata of the file, and process the metadata query and update request of the file by the host 110 .
  • the metadata of the file may include information such as the starting address of the file, the size of the allocated space, and the actual size of the file.
  • the storage management device 120 may include but not limited to: a server, a controller, and a processor. It should be understood that the storage management device 120 may be a device with a computing function for managing the storage disk 130 .
  • the storage disk 130 is used to store file data and process file access requests.
  • the storage disk 130 may include at least one storage disk.
  • the files are stored in the NAND storage disk.
  • the storage disk 130 may receive instructions from the storage management device 120 to perform write/read operations on data.
  • the storage disk 130 may include a solid-state disk (Solid-state drive, SSD) such as a standard SSD disk, or a PLOG-based SSD disk (referred to as a PLOG disk), and the PLOG disk may be an SSD disk that provides a PLOG interface.
  • SSD Solid-state drive
  • PLOG PLOG-based SSD disk
  • PLOG is an encapsulation of a section of the PLOG SSD disk that supports additional writing, named, and byte-level address space.
  • One SSD can contain multiple PLOGs.
  • the storage system 100 has only one storage node, and the one storage node includes only one storage disk.
  • the storage management device 120 and the storage disk 130 may be integrated together, that is, one device may have the functions of the storage management device 120 and the storage disk 130 at the same time.
  • the storage management device 120 may be set independently (as shown in FIG. 1 ), or may be a device having functions of the storage management device 120 and the storage disk 130 at the same time.
  • the following takes the storage management device 120 separately configured as an example for description.
  • storage system 100 may be a distributed storage system.
  • data 1 in file1 includes not only the part stored in storage disk 1 managed by storage node A, but also the copy 1 stored in storage disk 2 managed by storage node B and the storage disk managed by storage node C.
  • Copy 2 in 3 forms three copies for storage.
  • the storage system 100 includes at least two storage disks, which belong to different storage nodes.
  • multiple copies are usually set to be stored in different storage nodes.
  • a storage node may include multiple storage disks.
  • Different storage nodes correspond to different networks, and a storage node may be a controller, a processor, or a server. The controller, processor or server can be integrated into a storage device with the storage disk it manages.
  • the difference from a centralized storage system is that multiple storage nodes usually correspond to different network environments. At this time, the storage system may need to use the network to store and access files.
  • the storage system 100 stores data and accesses the data as follows: the storage management device 120 receives an instruction to store file1, first cuts file1, assumes that an 8K file1 is divided into two data blocks (each block is 4K), and calculates 1 4K redundancy check block.
  • the host 110 When the host 110 wants to access file1, the host sends a read command to the storage management device 120 to request access to file1, and the storage management device 120 sends a read command to the storage disk 130 according to the recorded storage location of file1.
  • the storage disk 130 may include one or more flash memory granularities, and the one or more flash memory granularities may include one or more of the following flash memory particles: SLC flash memory particles, MLC flash memory particles, TLC flash memory particles , QLC flash memory particles.
  • SLC flash granule storage is SLC storage
  • MLC flash granule storage is MLC storage
  • TLC flash granule storage is TLC storage
  • QLC flash memory Granular storage is QLC storage.
  • storage mode switching can be implemented in the storage disk 130.
  • the storage disk 130 can change the storage mode by updating the threshold voltage, for example, using QLC flash memory particles as SLC flash memory particles. Due to the better storage performance of SLC flash memory particles, it is generally used to store files with high importance and/or high access frequency, while QLC is generally used to store files with large file size (for example, greater than 100MB) and/or low access frequency .
  • the storage system 100 determines or updates its storage mode based on the spatial statistical heat information of data, but it is often not accurate and reasonable to determine the actual storage requirements of data based on heat statistics. For example, directory metadata data is used as key data, even if The heat statistics show that the heat is not high, and should not be taken in a low-performance way such as QLC storage.
  • FIG. 2 is a schematic flowchart of a storage method 200 provided by an embodiment of the present invention.
  • the storage method may be executed by the storage system 100 shown in FIG. 1 above.
  • the storage system 100 includes only one storage disk such as the first storage disk as an example. It should be understood that the storage disk 130 is equal to the first storage disk at this time.
  • the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the attribute Tags are used to indicate how the target data is stored.
  • the target data may be data that has been cut and whose size is the minimum storage size.
  • the target data can be any type of data, such as directory metadata, file metadata, etc., which is not limited in the present invention.
  • the target data can also be a collection of multiple data of the same or similar type under the same directory.
  • the target data is a collection of metadata of directory 1, metadata of file 1, and metadata of file 2, where file 1 and file2 said directory as directory1.
  • the storage management device 120 saves an attribute tag of the data, and the attribute tag may be an identifier, for example, a flag.
  • the storage management device 120 updates the attribute label of data 1 to attribute #1.
  • the storage management device updates the attribute label of the target data from the first attribute to the second attribute according to the first information.
  • the first information may include information about the target data, and optionally, may also include Other information, such as the total capacity of the storage system 100 .
  • the information of the target data may include inherent attribute information of the target data and/or upper-layer statistical information of the target data.
  • the inherent attribute information of the target data includes but not limited to one or more of the following information:
  • the type of the target data may include, for example, system files, application files, etc.
  • the types of data may, for example, be verification data, cache data, and the like.
  • the upper-level statistical information of the target data includes the access frequency and/or the last access time of the target data.
  • the access frequency of the target data may be the access frequency that can be counted by the storage management device 120 within the first detection time range.
  • the first detection time range may be, for example, 2 minutes, that is, the access frequency of the target data is updated every 2 minutes.
  • the upper-layer statistical information is the statistics made by the storage management device 120 based on the records of the read target data recorded by itself.
  • the access information of the target data Compared with the access information of the target data recorded inside the storage disk 130, the access information of the target data acquired by the storage management device 120 is more comprehensive.
  • the storage management device 120 may record and update the information of the target data, for example, when the access frequency of the target data changes, the storage management device 120 updates the access frequency of the target data.
  • the first information includes a first relationship
  • the first relationship is a corresponding relationship between the first information and the second attribute, so that the storage management device 120 can determine the attribute label of the target data according to the first information and the first relationship as Second attribute.
  • the first information includes relationship #1
  • relationship #1 is the relationship between the upper-level statistical information of the target data and the second attribute
  • the storage management device 120 can determine the target data according to the upper-level statistical information of the target data and relationship #1 the second attribute of .
  • Relationship #1 may be as shown in Table 1.
  • the first access frequency range may be higher than the first access frequency threshold. For example, if the first access frequency of Data 1 is higher than the first access frequency threshold, then the storage management device 120 determines that the attribute label of Data 1 is Attribute #1.
  • the first access frequency threshold may be, for example, 10 times/day.
  • the first access frequency range may be lower than the second access frequency threshold, for example, if the first access frequency of data 2 is lower than the second access frequency threshold, then the storage management device 120 determines the attribute label of data 2 for attribute #3.
  • the second access frequency threshold may be, for example, 1 time/day. The second access frequency threshold is lower than the first access frequency threshold.
  • the first access time range may be earlier than the first access time, for example, the last time data 3 is accessed is earlier than the first access time, then the storage management device 120 determines that the attribute tag of data 3 is an attribute #2, the first access time may be, for example, 20 days.
  • the first access time range may be later than the first access time, for example, the last time the data 4 was accessed is later than the first access time, then the storage management device 120 determines that the attribute label of the data 4 is Attribute #1, the first access time may be, for example, 20 days.
  • the second access time is later than the first access time.
  • the files under some directories may be frequently accessed at a specific time, and the storage management device 120 can analyze its statistical characteristics, and update the value of its attribute label in advance when the file is about to be accessed, so that the first A storage disk converts the storage mode of the data of the file in advance.
  • the access frequency of data 5 in the first time range is higher than the first access frequency threshold
  • the second time range includes the first time and the start time of the second time range is earlier than
  • the value of the attribute tag of data 5 may be updated to attribute #1, and when the time is outside the second time range, the value of the attribute tag of data 5 is attribute #2.
  • the first information includes relationship #2
  • relationship #2 is the upper-level statistical information of the target data and the relationship between the inherent attribute information of the target data and the second attribute, which can be based on the upper-level statistical information of the target data and the target data.
  • the intrinsic attribute information and relation #2 determine the second attribute of the target data.
  • Relationship #2 may be as shown in Table 2.
  • the second attribute of the target data can be determined by combining the upper layer statistical information and the intrinsic attribute information at the same time. For example, if the access frequency of data 6 is higher than the first access frequency threshold and data 6 is the data of the directory metafile, then it is determined that the second attribute of data 6 is attribute #1; the access frequency of data 7 is lower than the first access frequency threshold and If the size of the file to which it belongs is less than or equal to 16KB, then it is determined that the second attribute of data 7 is attribute #3; when the last access time of data 8 is earlier than the first access time and data 8 is file attribute metadata, then it is determined that the second attribute of data 8 is The second attribute is attribute #2; the last access time of data 9 is later than the first access time and the size of the file to which data 9 belongs is greater than 100MB, so the second attribute of data 9 is determined to be attribute #2.
  • the first information further includes the relationship between the priority level of the target data and the second attribute
  • the information of the target data further includes the priority level of the target data.
  • the priority level of the target data may be determined and recorded by the storage management device 120 .
  • the second attribute of the target data may be determined according to the priority level of the target data and relationship #3, which is the relationship between the priority level of the target data and the second attribute.
  • the priority level of the target data is within the priority level range, it may be determined that the attribute label of the target data is the second attribute.
  • the second attribute of the target data is attribute #1; when the priority level ranges from 3 to 6, the second attribute of the target data is attribute #2.
  • the relationship between the priority level and the second attribute may be preset, and may also be adjusted by the storage management device 120 according to requirements. For example, when more space needs to be released, the second attribute of data whose priority level ranges from 2 to 6 can be set as attribute #2.
  • the second attribute of the target data will not change, that is, the target data will not be converted into a storage mode.
  • the priority range may be below the first priority threshold.
  • the priority threshold is priority level 2, so that data lower than priority level 2 does not participate in the conversion of the storage mode.
  • the priority range may be above a second priority threshold.
  • the priority threshold is priority level 3, so that data higher than priority level 3 does not participate in the conversion of the storage mode. in.
  • the second priority threshold is higher than the first priority threshold.
  • the priority level of the target data may be determined according to the inherent attribute information of the target data and relationship #4, and the relationship #4 is the relationship between the inherent attribute information of the target data and the priority level of the target data.
  • the priority level of the target data can be determined and recorded when the target data is written.
  • the relationship between priority levels and inherent attributes, ie, relationship #4, can be shown in Table 4.
  • the priority level can be determined according to the inherent attribute information of the target data. For example, if data 16 is the data of the directory metafile, then determine that the priority level of data 16 is 1; if the file size of data 17 is less than or equal to 16KB, then determine that the priority level of data 17 is 2; if data 18 is file attribute metadata, then determine that the data 18 priority level is 3; data 19 layout metadata, then determine the priority level of data 19 is 1.
  • step S201 when the second preset condition is satisfied, step S201 is executed.
  • the second preset condition includes at least one of the following conditions:
  • the access frequency is within a first frequency range and/or the last time accessed is within a first time range
  • the storage management device 120 will update the value of its attribute tag.
  • storage system 100 may be a multi-replica storage system.
  • FIG. 3 is a schematic flowchart of a storage method 300 provided by an embodiment of the present invention.
  • FIG. 3 shows steps S301 to S305 of the storage method 300. The following describes the storage method 300 in the multi-copy scenario provided by the present invention in conjunction with FIG. 3 Be explained.
  • the storage management device updates an attribute label of target data from a first attribute to a second attribute.
  • This step is the same as the description of S201 above, to avoid redundancy, refer to the above, and will not repeat it here.
  • the storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the Describe the second storage mode of the first storage disk.
  • the storage management device sends a third instruction to the second storage disk, where the third instruction is used to instruct the first storage disk to convert the storage method of the copy of the target data from the first storage method of the first storage disk to the second storage method.
  • a second storage mode of a storage disk is used to instruct the first storage disk to convert the storage method of the copy of the target data from the first storage method of the first storage disk to the second storage method.
  • the storage disk 130 includes not only the first storage disk but also a second storage disk, and the target data is stored in the first storage disk, and a copy of the target data is stored in the second storage disk.
  • the storage disk 130 may also include more storage disks, which is not limited in the present invention.
  • the storage management device 120 sends an instruction for instructing the second storage disk to store a copy of the target data in the first storage mode to the second storage disk, and the second storage disk stores the copy of the target data according to the instruction.
  • the copy is stored in the first storage mode.
  • the third indication is the same as the first indication.
  • the storage system 100 may further include other storage nodes, and the first storage disk and the second storage disk belong to different storage nodes. It should be understood that the storage system 100 is a distributed storage system at this time, in other words, the method 300 may be applied to a distributed storage system.
  • the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
  • the first storage disk converting the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk according to the first instruction includes: the first storage disk converting the attribute of the target data
  • the label is updated from the first attribute to the second attribute.
  • the attribute label is used to indicate the storage method of the target data.
  • the first storage method has a first corresponding relationship with the first attribute, and the second storage method has a second corresponding relationship with the second attribute.
  • the first storage disk converts the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk according to the attribute tag.
  • the second storage disk converts the storage manner of the copy of the target data from the first storage manner of the second storage disk to the second storage manner of the second storage disk according to the first instruction.
  • the second storage disk converting the storage method of the copy of the target data from the first storage method of the second storage disk to the second storage method of the second storage disk according to the first instruction includes: the second storage disk converting the target data
  • the attribute label of the copy of is updated from the first attribute to the second attribute.
  • the attribute label is used to indicate the storage method of the target data.
  • the first storage method has a first correspondence with the first attribute
  • the second storage method has a relationship with the second attribute.
  • the second corresponding relationship: the second storage disk converts the storage method of the target data from the first storage method of the second storage disk to the second storage method of the first storage disk according to the attribute label.
  • the first storage mode of the second storage disk is the same as the first storage mode of the first storage disk
  • the second storage mode of the second storage disk is the same as the second storage mode of the first storage disk
  • the target data and A copy of the target data is stored in the same storage.
  • FIG. 4 shows a schematic flowchart of a storage method 400 provided by an embodiment of the present invention.
  • the correspondence between attribute tags and storage methods may be determined by the storage management device 120 or updated and sent to the first storage disk through the second instruction.
  • the storage management device determines a correspondence between an attribute tag and a storage mode in a first storage disk.
  • the storage management device 120 determining that the attribute label of the target data is the second attribute is equivalent to determining the second storage manner of the target data. In this way, the final storage mode of the target data is actually directly determined by the storage management device 120, so that the target data can be stored in a matching storage mode.
  • the storage management device 120 determining the correspondence between the attribute label and the storage mode includes determining the correspondence between the thermal attribute label and the storage mode according to the capacity of the first storage disk.
  • the storage management device sends a second indication to the first storage disk, where the second indication is used to indicate a correspondence between an attribute tag and a storage mode.
  • the second indication may be a relational table, for example, attribute #1 corresponds to storage mode 1, and attribute #2 corresponds to storage mode 2.
  • the storage management device updates the attribute label of the target data from the first attribute to the second attribute.
  • This step is the same as the description of S201 above, to avoid redundancy, refer to the above, and will not repeat it here.
  • the storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the Describe the second storage mode of the first storage disk.
  • the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
  • method 400 is to adjust the correspondence between attribute tags and storage methods to meet the requirements when the remaining storage space is limited, or when the remaining storage space is sufficient and storage performance needs to be improved.
  • the storage management device 120 updates the correspondence between the attribute tag and the storage mode in the first storage disk.
  • the first preset condition includes at least one of the following conditions:
  • the storage management device 120 receives an optimization command from the host.
  • the storage management device 120 receives an optimization request of the first storage disk.
  • FIG. 5 shows a schematic flowchart of a storage method 500 provided by an embodiment of the present invention. The case where the first preset condition is A will be described in conjunction with FIG. 5 .
  • the storage management device 120 determines the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk.
  • the storage management device sends request information to the first storage disk, where the request information is used to acquire the capacity of the first storage disk.
  • the capacity of the first storage disk may include the remaining capacity corresponding to the first storage method or the remaining capacity corresponding to the second storage method in the first storage disk, or, the capacity of the first storage disk may also include the remaining capacity of the entire first storage disk capacity.
  • the first storage disk After receiving the request information, the first storage disk sends the capacity of the first storage disk to the storage management device 120, where the capacity of the first storage disk includes the capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode. way corresponding capacity.
  • the storage management device determines a correspondence between attribute tags and storage modes in the first storage disk.
  • step S503 that is, the storage management device 120 determining the correspondence between the attribute label and the storage mode includes: determining the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk. Determining the correspondence between the attribute label and the storage method according to the capacity of the first storage disk may include: when the remaining capacity of the first storage disk is less than a first preset threshold, the storage management device 120 may update the correspondence between the attribute label and the storage method .
  • the remaining capacity of the first storage disk being less than the first preset threshold may be that the remaining capacity corresponding to the first storage mode is lower than threshold #1.
  • attribute #1 and attribute #2 correspond to storage method #1
  • attribute #3 corresponds to storage method #2
  • storage method #1 is better than storage method #2
  • now the remaining capacity corresponding to storage method #1 in the first storage disk is low
  • storage management device 120 may update attribute #2 to correspond to storage mode #2. It should be understood that in this way, the data stored in the storage mode #1 is reduced, so that more space can be "freed up" on the first storage disk.
  • the storage management device 120 may re-determine the configured capacity of the first storage disk according to the capacity of the first storage disk. For example, the storage management device 120 knows The used SLC capacity of the first storage disk occupies 90% of the originally configured SLC capacity and the used QLC capacity occupies 30% of the originally configured QLC capacity, and the storage management device 120 can add more SLC capacity to the storage disk 130 , for example by sending an indication to the storage disk 130 instructing it to convert half of the unused QLC capacity to SLC capacity.
  • the storage management device 120 configures capacities corresponding to different storage modes. For example, the storage space of the storage disk 130 may be configured as a 100MB SLC area and a 300MB QLC area.
  • the storage management device 120 may notify the user of the specific storage information of the storage disk 130 through the display of the user interface, so as to improve user experience.
  • the storage management device 120 may determine capacities corresponding to different storage modes of the first storage disk, so as to better allocate storage space or perform storage optimization.
  • the first preset condition is B
  • the host 110 can initiate an optimization request to the storage management device 120, and the storage management device 120 reconfirms the storage method of the data according to the optimization request and counts , or select some data to upgrade its storage method to a better storage method, for example, change the data originally stored in storage method 3 to storage method 2.
  • the host 110 can initiate an optimization request to the storage management device 120, and the storage management device 120 reconfirms the storage method of the data according to the optimization request and Statistics, or select some data to upgrade its storage method to a storage method that occupies less capacity, for example, change the file originally stored in storage method 1 to storage method 2.
  • the first preset condition is C
  • an optimization request is sent to the storage management device 120 for requesting to optimize the space of the first storage disk.
  • storage disk A detects that all remaining capacity in the disk is lower than threshold #1, then storage disk A sends an optimization request to storage management device 120 .
  • condition A and condition C lies in whether the storage management device 120 actively triggers or is triggered by the first storage disk and then reports to the storage management device 120 .
  • the storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk.
  • the method is converted to the second storage method of the first storage disk, wherein the first storage method has a first corresponding relationship with the first attribute,
  • the second storage manner has a second corresponding relationship with the second attribute.
  • the first storage mode may be any one of SLC storage, MLC storage, TLC storage, and QLC storage.
  • the second storage mode may be any one of SLC storage, MLC storage, TLC storage, and QLC storage. But the first storage method is different from the second storage method.
  • the first storage mode is SLC storage
  • the second storage mode may be MLC storage.
  • the first storage mode is SLC storage
  • the second storage mode may be QLC storage. It should be understood that the first storage manner and the second storage manner are storage manners for the same file at different times.
  • the first indication may be an attribute label of the target data.
  • the first indication may also be information indicating that the attribute label of the target data is updated from the first attribute to the second attribute.
  • the first indication may also be information directly indicating the second storage manner of the target data.
  • the first interface can be set on a standard SSD disk to implement the method described in the embodiment of the present invention.
  • the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
  • This step is the same as the above S304.
  • the first storage disk may also set an attribute tag for the stored target data, and the attribute tag may be an identifier, such as a flag.
  • the attribute label of the first disk setting data #1 is attribute #2.
  • the first storage disk may determine the second storage manner of the target data according to the value of the attribute tag. For example, the value of the attribute label of data 1 is updated from attribute #1 to attribute #2. Since attribute #1 corresponds to storage mode #1 and attribute #2 corresponds to storage mode #2, the first storage disk will change data 1 from storage mode # 1 converts to storage mode #2.
  • the target data in the first storage disk is converted from the first storage method of the first storage disk to the second storage method of the first storage disk, and the steps may be: migrating the target data from the first area to the second area, the storage granularity of the first area is different from that of the second area, for example, the storage granularity of the first area is SLC granules, and the storage granularity of the second area is QLC granules.
  • both the first area and the second area are in the first storage disk, so the location where the target data is recorded in the storage management device 120 is still in the first storage disk, only the object recorded in the first storage disk The specific storage location of the data has changed. In other words, the first storage disk only needs to migrate the storage location of the target data according to the second attribute, and does not need to report the specific storage location of the target data to the storage management device 120 .
  • the data is written in PLOG as a unit and the storage mode is converted.
  • the metadata of directory 1 the metadata of file 1
  • the metadata of file 2 are stored in In PLOG1
  • the attribute label of PLOG1 is attribute #1
  • the attribute label of PLOG1 is updated to attribute #2
  • the storage method of all data of PLOG1 should be changed from storage method #1 Change to storage mode #2.
  • the storage area of the first storage disk includes the QLC storage area and the SLC storage area, then storage disk A migrates PLOG1 to the SLC area on the disk, although the actual storage space of PLOG1 in the disk has changed However, since the data corresponding to PLOG1 is still in the first storage disk, and the location of each data in PLOG1 remains unchanged, there is no need to report the specific location of PLOG1 to the storage management device 120 .
  • FIG. 6 shows a schematic flowchart of a storage method 600 provided by an embodiment of the present invention, and the storage method 600 provided by the present invention will be described with reference to FIG. 6 .
  • the correspondence between the attribute tag and the storage mode may be independently determined by the first storage disk.
  • the first storage disk determines a correspondence between attribute tags and storage modes in the first storage disk.
  • this step may, for example, include determining the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk.
  • the capacity of the first storage disk satisfies a third preset condition
  • the first storage disk modifies the correspondence between the attribute label and the storage mode.
  • the third preset condition may be, for example, the The remaining capacity is less than a second preset threshold.
  • the remaining capacity of the first storage disk being smaller than the second preset threshold may be, for example, that the capacity corresponding to storage mode #1 in the first storage disk is lower than threshold #2, and the threshold #2 may be, for example, 1 GB.
  • this step may be that the first storage disk is preset with a correspondence between attribute tags and storage modes.
  • the correspondence between attribute tags and storage methods can be defined in the protocol.
  • the storage management device updates an attribute label of the target data from a first attribute to a second attribute, where the attribute label is used to indicate a storage manner of the target data.
  • the storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk.
  • the mode is converted to the second storage mode of the first storage disk, wherein the first storage mode has a first correspondence with the first attribute, and the second storage mode has a second correspondence with the second attribute. relation.
  • the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction. .
  • the first storage disk determines the storage method of the target data
  • the storage management device 120 only determines the attribute label of the target data for the target data and the first storage disk does not need to inform the storage management device 120 of the final storage method of the target data.
  • This method can enable the first storage disk to independently adjust the storage method of data in the disk, and the storage management device 120 can save the burden of regulation and the signaling overhead of the storage system 100 .
  • FIG. 7 shows a schematic flowchart of a storage method 700 provided by an embodiment of the present invention.
  • the storage method 700 provided by the embodiment of the present invention will be described with reference to FIG. 7 .
  • the storage management device receives a write request of target data.
  • This step may be, for example, before the target data is written into the first storage disk.
  • the storage management device determines that the attribute tag of the target data is the first attribute, where the attribute tag is used to indicate a storage manner of the target data.
  • the storage management device determines, according to the second information, that the attribute tag of the target data is the first attribute.
  • the second information may include inherent attribute information of the target data.
  • the storage management device 120 may also determine the first attribute of the target data according to the inherent attribute information of the target data and relationship #5, which is the relationship between the inherent attribute information of the data and the first attribute.
  • Relationship #5 may be as shown in Table 5. For example, if data 1 is a directory metafile, the storage management device 120 determines that the attribute tag of data 1 is attribute #1. For another example, if the data 2 is data of a large file (size greater than or equal to 100MB), the storage management device 120 determines that the attribute label of the data 2 is attribute #2.
  • the size of the target data may be the smallest unit stored on the storage disk, for example, it may be 8kb.
  • the first storage disk is a PLOG SSD disk
  • the target data can be a PLOG.
  • a PLOG disk can be an SSD disk that provides a PLOG interface.
  • a PLOG is an encapsulation of a section of the PLOG SSD disk that supports additional writing, named, and byte-level address space.
  • One SSD can contain multiple PLOGs.
  • the ID and attribute of the PLOG can be specified. For example, the attribute label of the PLOG whose ID is PLOG1 is indicated as attribute #2.
  • multiple data of the same or similar type in the same directory can be placed in the same PLOG.
  • the metadata of directory 1 is stored in PLOG1.
  • the PLOG can be converted as a unit.
  • the storage management device sends a fourth indication to the first storage disk, where the fourth indication is used to instruct the first storage disk to store the target data in a first storage manner, where the first The storage mode has a first corresponding relationship with the first attribute.
  • the fourth indication may be an attribute label of the target data.
  • the fourth indication may also be information indicating that the attribute label of the target data is updated from null to the first attribute.
  • the fourth indication may also be information directly indicating the first storage mode of the target data.
  • the first storage disk receives the fourth indication, and stores the target data in the first storage manner according to the fourth indication.
  • the storage management device updates the attribute label of the target data from the first attribute to the second attribute, where the attribute label is used to indicate a storage manner of the target data.
  • the storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk.
  • the mode is converted to the second storage mode of the first storage disk, wherein the first storage mode has a first correspondence with the first attribute, and the second storage mode has a second correspondence with the second attribute. relation.
  • the first storage disk changes the storage mode of the target data from the first storage method of the first storage disk to format to the second storage mode of the first storage disk.
  • the description of this step is the same as that of S203. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
  • FIG. 8 is a schematic structural diagram of a storage management device 800 provided by an embodiment of the present invention.
  • the storage management device 800 in FIG. 8 may be a specific example of the storage management device 120 in FIG. 1 .
  • the storage management device 800 shown in FIG. 8 can be used to execute the methods shown in FIGS. 2 to 7 , and can specifically implement the embodiments shown in FIGS. 1 to 7 . To avoid redundancy, the description will not be repeated.
  • the storage management device 800 shown in FIG. 8 includes a processing unit 801 and a sending unit 802 .
  • the processing unit 801 may execute step S201 in the method shown in FIG. 2 .
  • the processing unit 801 may also execute step S301 in the method shown in FIG. 3 .
  • the processing unit 801 may also execute steps S401 and S403 in the method shown in FIG. 4 .
  • the processing unit 801 may also execute step S503 in the method shown in FIG. 5 .
  • the processing unit 801 may also execute step S602 in the method shown in FIG. 6 .
  • the processing unit 801 may also execute steps S701, S702, and S705 in the method shown in FIG. 7 .
  • the sending unit 802 may execute step S202 in the method shown in FIG. 2 .
  • the sending unit 802 may execute steps S302 and S303 in the method shown in FIG. 3 .
  • the sending unit 802 may execute steps S402 and S404 in the method shown in FIG. 4 .
  • the sending unit 802 may execute step S501 in the method shown in FIG. 5 .
  • the sending unit 802 may execute step S603 in the method shown in FIG. 6 .
  • the sending unit 802 may execute steps S703 and S706 in the method shown in FIG. 7 .
  • the storage management device 800 further includes a receiving unit (not shown in the figure), and the receiving unit can execute step S502 in the method shown in FIG. 5 .
  • FIG. 9 is a schematic structural diagram of a storage disk 900 provided by an embodiment of the present invention.
  • the storage disk 900 in FIG. 9 may be a specific example of the storage node in FIG. 1 .
  • the storage management device 900 shown in FIG. 9 can be used to execute the methods shown in FIGS. 2 to 7 , and can specifically implement the embodiments shown in FIGS. 1 to 7 . To avoid redundancy, the description will not be repeated.
  • the storage disk 900 shown in FIG. 9 includes a receiving unit 901 and a processing unit 902 .
  • the receiving unit 901 may execute step S202 in the method shown in FIG. 2 .
  • the receiving unit 901 may also execute step S302 in the method shown in FIG. 3 .
  • the receiving unit 901 may also execute steps S402 and S404 in the method shown in FIG. 4 .
  • the receiving unit 901 may also execute step S501 in the method shown in FIG. 5 .
  • the receiving unit 901 may also execute step S603 in the method shown in FIG. 6 .
  • the receiving unit 901 may also execute steps S703 and S706 in the method shown in FIG. 6 .
  • the processing unit 902 may execute step S203 in the method shown in FIG. 2 .
  • the processing unit 902 may execute step S304 in the method shown in FIG. 3 .
  • the processing unit 902 may execute step S405 in the method shown in FIG. 4 .
  • the processing unit 902 may execute steps S601 and S604 in the method shown in FIG. 6 .
  • the processing unit 902 may execute steps S704 and S707 in the method shown in FIG. 7 .
  • the storage disk 900 further includes a sending unit (not shown in the figure), and the sending unit can execute step S502 in the method shown in FIG. 2 .
  • FIG. 10 is a schematic structural diagram of a storage system 1000 provided by an embodiment of the present invention.
  • the storage system 1000 includes a storage management device 1001 and a storage disk 1002 .
  • the storage management device 1001 may be the storage management device 800 described above, and the storage disk 1002 may be the storage disk 900 described above. To avoid redundancy, the description will not be repeated.
  • the disclosed systems, devices and methods can be implemented in other ways.
  • the device embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

Provided are a storage method, a storage management device, a storage disk, and a storage system. The storage method comprises: the storage management device updates an attribute tag of target data from a first attribute to a second attribute; and the storage management device sends a first indication to a first storage disk, wherein the first indication is used for instructing the first storage disk to convert a storage mode of the target data from a first storage mode of the first storage disk to a second storage mode of the first storage disk, and a storage medium corresponding to the first storage mode is different from a storage medium corresponding to the second storage mode. The storage method can be applied to an apparatus or system based on a NAND storage medium, and sets the value of the attribute tag of the target data by the storage management device to indicate a storage mode, thereby providing a more matched storage mode for data.

Description

存储方法、存储管理设备、存储盘和存储系统Storage method, storage management device, storage disk and storage system 技术领域technical field
本发明实施例涉及数据存储领域,具体地,涉及一种存储方法、存储管理设备、存储盘和存储系统。Embodiments of the present invention relate to the field of data storage, and in particular, relate to a storage method, a storage management device, a storage disk, and a storage system.
背景技术Background technique
基于与非闪存(not and flash,NAND flash)介质的存储盘在存储数据时,不同的存储介质粒度的存储性能也不同,例如,单层存储单元(single-level cell,SLC)存储颗粒的存储性能高(读取快、寿命长)但是容量小,而四层存储单元(quad-level cell,QLC)存储得力的存储性能差(读取慢、寿命短)但是容量大。When storage disks based on non-flash (not and flash, NAND flash) media store data, the storage performance of different storage media granularity is also different, for example, the storage of single-level cell (single-level cell, SLC) storage particles High performance (fast reading, long life) but small capacity, while quad-level cell (QLC) storage has poor storage performance (slow reading, short life) but large capacity.
然而在存储数据时,不同的数据实际的存储需求可能也不同,以及同一数据在不同时刻的存储需求(例如,需要以性能高的方式存储或者需要以节省容量的方式存储)可能也不同。因此,如何根据数据的存储需求为数据提供更加匹配的存储方式成为目前需要解决的问题之一。However, when storing data, the actual storage requirements of different data may be different, and the storage requirements of the same data at different times (for example, need to be stored in a high-performance manner or need to be stored in a capacity-saving manner) may also be different. Therefore, how to provide a more matching storage method for data according to the storage requirements of the data has become one of the problems that need to be solved at present.
发明内容Contents of the invention
本发明实施例提供一种存储方法、存储管理设备、存储盘和存储系统,目的是根据数据的存储需求为数据提供更为匹配的存储方式。Embodiments of the present invention provide a storage method, a storage management device, a storage disk, and a storage system, with the purpose of providing a more matching storage method for data according to the storage requirements of the data.
第一方面,提供了一种管理存储盘中数据的方法,该方法包括:存储管理设备将目标数据的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式;存储管理设备向第一存储盘发送第一指示,第一指示用于指示第一存储盘将目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,所述第一存储方式对应的存储介质不同于所述第二存储方式对应的存储介质,其中第一存储方式与第一属性对应,第二存储方式与第二属性对应;存储管理设备保存目标数据存储于第一存储盘的地址,响应于读取目标数据的命令,存储管理设备根据存储管理设备所保存的目标数据的地址向第一存储盘发出读取命令。In a first aspect, a method for managing data in a storage disk is provided, the method comprising: a storage management device updates an attribute label of target data from a first attribute to a second attribute, and the attribute label is used to indicate a storage method of the target data; The storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the storage method of the first storage disk. The second storage method, the storage medium corresponding to the first storage method is different from the storage medium corresponding to the second storage method, wherein the first storage method corresponds to the first attribute, and the second storage method corresponds to the second attribute; The management device saves the address where the target data is stored on the first storage disk, and in response to the command to read the target data, the storage management device sends a read command to the first storage disk according to the address of the target data saved by the storage management device.
可选地,第一指示可以是目标数据的属性标签。Optionally, the first indication may be an attribute label of the target data.
可选地,第一指示也可以是指示目标数据的属性标签由第一属性更新为第二属性的信息。Optionally, the first indication may also be information indicating that the attribute label of the target data is updated from the first attribute to the second attribute.
可选地,第一指示还可以是直接指示目标数据的第二存储方式的信息。Optionally, the first indication may also be information directly indicating the second storage manner of the target data.
可选地,目标数据的属性标签默认为空。该属性标签可以后续再进行赋值。Optionally, the attribute label of the target data is empty by default. This attribute tag can be assigned later.
可选地,第一存储盘为闪存盘。Optionally, the first storage disk is a flash disk.
可选地,存储管理设备指示第一存储盘将目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式可以包括存储管理设备确定目标数据的第二存储方式并通知第一存储盘,也可以是存储管理设备给第一存储盘一个参考信息,实际上存储管理设备并不直接决定目标数据的第二存储方式。Optionally, the storage management device instructing the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk may include that the storage management device determines the target data The second storage mode of the data is notified to the first storage disk, or the storage management device may give reference information to the first storage disk. In fact, the storage management device does not directly determine the second storage mode of the target data.
可选地,目标数据可以是一个PLOG。 Optionally, the target data can be a PLOG.
可选地,第一存储方式可以是SLC存储、MLC存储、TLC存储、QLC存储中的任一种。Optionally, the first storage manner may be any one of SLC storage, MLC storage, TLC storage, and QLC storage.
可选地,第二存储方式可以是SLC存储、MLC存储、TLC存储、QLC存储中的任一种但与第一存储方式不同。Optionally, the second storage method may be any one of SLC storage, MLC storage, TLC storage, and QLC storage but is different from the first storage method.
通过设置第一存储方式和第二存储方式对应不同的存储粒度,可以为不同的存储需求的数据提供不同存储性能的存储方式。By setting the first storage method and the second storage method to correspond to different storage granularities, storage methods with different storage performances can be provided for data with different storage requirements.
存储管理设备存储了数据的各种属性信息,并且由于数据的访问需要通过存储管理设备,因此存储管理设备可以准确地获得数据的存储需求,通过存储管理设备给目标数据设置属性标签,并且属性标签与存储方式存在对应关系,因此,存储管理设备可以指示该目标数据的存储方式。这样目标数据的存储方式可以更加匹配存储需求。The storage management device stores various attribute information of the data, and since data access needs to pass through the storage management device, the storage management device can accurately obtain the storage requirements of the data, set attribute tags for the target data through the storage management device, and the attribute tags There is a corresponding relationship with the storage mode, therefore, the storage management device can indicate the storage mode of the target data. In this way, the storage method of the target data can better match the storage requirements.
结合第一方面,在第一方面的某些实现方式中,存储管理设备接收第一存储盘的容量,第一存储盘的容量包括第一存储盘内第一存储方式对应的容量和/或第二存储方式对应的容量。With reference to the first aspect, in some implementation manners of the first aspect, the storage management device receives the capacity of the first storage disk, and the capacity of the first storage disk includes the capacity corresponding to the first storage mode in the first storage disk and/or the capacity of the first storage disk. The capacity corresponding to the second storage mode.
可选地,第一存储盘内第一存储方式对应的容量可以包括第一存储盘内第一存储方式对应的剩余容量,也可以包括第一存储盘内第一存储方式对应的全部容量。Optionally, the capacity corresponding to the first storage mode in the first storage disc may include the remaining capacity corresponding to the first storage mode in the first storage disc, or may include the entire capacity corresponding to the first storage mode in the first storage disc.
可选地,第一存储盘内第二存储方式对应的容量可以包括第一存储盘内第二存储方式对应的剩余容量,也可以包括第一存储盘内第二存储方式对应的全部容量。Optionally, the capacity corresponding to the second storage mode in the first storage disc may include the remaining capacity corresponding to the second storage mode in the first storage disc, or may include the entire capacity corresponding to the second storage mode in the first storage disc.
通过接收第一存储盘的容量,存储管理设备可以更好地了解第一存储盘的容量以更好地管理第一存储盘。By receiving the capacity of the first storage disk, the storage management device can better understand the capacity of the first storage disk to better manage the first storage disk.
结合第一方面,在第一方面的某些实现方式中,存储管理设备将第一存储盘的容量信息显示于用户界面,或者,存储管理设备向第一存储盘发送用于调整第一存储方式对应的容量和/或第二存储方式对应的容量的指示。With reference to the first aspect, in some implementation manners of the first aspect, the storage management device displays the capacity information of the first storage disk on the user interface, or the storage management device sends to the first storage disk a An indication of the corresponding capacity and/or the capacity corresponding to the second storage mode.
结合第一方面,在第一方面的某些实现方式中,在存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,存储管理设备确定第一存储盘内属性标签与存储方式之间的对应关系;存储管理设备向第一存储盘发送用于指示属性标签与存储方式之间的对应关系的指示。With reference to the first aspect, in some implementation manners of the first aspect, before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the storage management device determines that the attribute label in the first storage disk is consistent with the storage Correspondence between modes: the storage management device sends an indication for indicating the correspondence between attribute tags and storage modes to the first storage disk.
可选地,该第二指示可以是关系表。Optionally, the second indication may be a relational table.
通过由存储管理设备确定属性标签与所述存储方式之间的对应关系,这样,存储管理设备直接确定所有数据的存储方式,因为存储管理设备可以准确地获得数据的存储需求可以使得数据的存储方式更加其匹配实际的需求。By determining the correspondence between the attribute label and the storage method by the storage management device, the storage management device can directly determine the storage method of all data, because the storage management device can accurately obtain the storage requirements of the data and can make the storage method of the data It matches the actual needs more.
结合第一方面,在第一方面的某些实现方式中,存储管理设备确定第一存储盘内属性标签与存储方式之间的对应关系,包括:当满足第一预设条件时,存储管理设备确定第一存储盘内属性标签与存储方式之间的对应关系,其中第一预设条件包括以下至少一项:存储管理设备接收到来自主机的优化命令,优化命令用于指示存储管理设备更新第一存储盘内属性标签与存储方式之间的对应关系;存储管理设备接收到来自第一存储盘的优化请求,优化请求用于指示存储管理设备更新所述第一存储盘内属性标签与存储方式之间的对应关系;第一存储盘的剩余容量小于第一预设阈值。With reference to the first aspect, in some implementation manners of the first aspect, the storage management device determines the correspondence between the attribute label and the storage mode in the first storage disk, including: when the first preset condition is met, the storage management device Determine the correspondence between the attribute label and the storage mode in the first storage disk, wherein the first preset condition includes at least one of the following: the storage management device receives an optimization command from the host, and the optimization command is used to instruct the storage management device to update the first A correspondence between attribute tags and storage methods in a storage disk; the storage management device receives an optimization request from the first storage disk, and the optimization request is used to instruct the storage management device to update the attribute tags and storage methods in the first storage disk Correspondence between: the remaining capacity of the first storage disk is less than the first preset threshold.
可选地,第一存储盘的剩余容量小于第一预设阈值可以是第一存储盘中第一存储方式对应的剩余容量小于第一预设阈值。 Optionally, the remaining capacity of the first storage disk being smaller than the first preset threshold may be that the remaining capacity corresponding to the first storage mode in the first storage disk is smaller than the first preset threshold.
通过设置第一预设条件使得存储管理设备更新属性标签与所述存储方式之间的对应关系,可以更加灵活得确定何时要调整属性标签与所述存储方式之间的对应关系。By setting the first preset condition so that the storage management device updates the correspondence between the attribute label and the storage manner, it can be more flexibly determined when to adjust the correspondence between the attribute label and the storage manner.
通过根据第一存储盘的容量调整调整不同存储方式对应的容量,可以更加合理的配置,通过设置显示第一存储盘的容量给用户,可以提高用户体验。By adjusting the capacity corresponding to different storage modes according to the capacity of the first storage disk, more reasonable configuration can be achieved, and by setting and displaying the capacity of the first storage disk to the user, user experience can be improved.
结合第一方面,在第一方面的某些实现方式中,存储管理设备将目标数据的属性标签由第一属性更新为第二属性,包括:存储管理设备根据目标数据的上层统计信息和/或固有属性信息将目标数据的属性标签由第一属性更新为第二属性,上层统计信息包括由存储管理设备所存储的目标数据的访问频率信息和/或目标数据最后一次被访问的时间,目标数据的固有属性信息包括下述信息的一种或多种:所述目标数据的类型、所述目标数据的大小、所述目标数据所属的文件的类型;或者,存储管理设备根据目标数据的优先级等级将目标数据的属性标签由第一属性更新为第二属性,目标数据的优先级等级是根据目标数据的固有属性信息确定的,所述优先级等级用于确定目标数据参与存储模式转换的优先程度。With reference to the first aspect, in some implementation manners of the first aspect, the storage management device updating the attribute label of the target data from the first attribute to the second attribute includes: the storage management device according to the upper-level statistical information of the target data and/or Inherent attribute information updates the attribute label of the target data from the first attribute to the second attribute, and the upper layer statistical information includes the access frequency information and/or the last time the target data is accessed by the storage management device, and the target data The inherent attribute information of the target data includes one or more of the following information: the type of the target data, the size of the target data, the type of the file to which the target data belongs; or, the storage management device according to the priority of the target data The level updates the attribute label of the target data from the first attribute to the second attribute. The priority level of the target data is determined according to the inherent attribute information of the target data. The priority level is used to determine the priority of the target data to participate in the storage mode conversion degree.
可选地,目标数据的访问频率可以是第一检测时间范围内的可由存储管理设备统计到的访问频率,该第一检测时间范围例如可以是2min,也即每2min目标数据的访问频率更新一次。Optionally, the access frequency of the target data may be the access frequency that can be counted by the storage management device within the first detection time range. The first detection time range may be, for example, 2 minutes, that is, the access frequency of the target data is updated every 2 minutes. .
通过根据目标数据的信息确定目标数据的属性标签的值,可以为第一存储盘在存储目标数据时提供更加准确的参考或指示。By determining the value of the attribute label of the target data according to the information of the target data, a more accurate reference or indication can be provided for the first storage disc when storing the target data.
应理解,不同优先级等级的数据在考虑升级第一存储盘存储性能或者释放第一存储盘更多容量时是否更新属性标签的结果也会不同,对于部分数据而言,其存储需求始终不变,也就表示该部分数据不应当参与存储方式的转换。It should be understood that for data with different priority levels, when considering upgrading the storage performance of the first storage disk or releasing more capacity of the first storage disk, the results of whether to update the attribute label will also be different. For some data, the storage requirements are always the same , which means that this part of data should not participate in the conversion of storage methods.
通过设置目标数据的优先级等级在优先级范围内时将目标数据的属性标签由第一属性更新为第二属性,可以避免将一些不应当参与存储方式转换的数据也进行存储方式转换。By setting the priority level of the target data and updating the attribute label of the target data from the first attribute to the second attribute when the priority level of the target data is within the priority range, it is possible to avoid converting some data that should not participate in the storage mode conversion.
可选地,存储管理设备将目标数据的属性标签由第一属性更新为第二属性,包括:当满足第二预设条件时,存储管理设备将目标数据的属性标签由第一属性更新为第二属性;其中第二预设条件包括以下至少一项:当访问频率在第一频率范围内和/或最后一次被访问的时间在第一时间范围内时;当目标数据的优先级等级在优先级范围内时。Optionally, the storage management device updating the attribute label of the target data from the first attribute to the second attribute includes: when the second preset condition is met, the storage management device updates the attribute label of the target data from the first attribute to the second attribute Two attributes; wherein the second preset condition includes at least one of the following: when the access frequency is within the first frequency range and/or when the time last accessed is within the first time range; when the priority level of the target data is within the priority within the level range.
可选地,第一频率范围可以是高于第一访问频率阈值。Optionally, the first frequency range may be higher than a first access frequency threshold.
可选地,第一频率范围还可以是低于第二访问频率阈值,其中,第二访问频率阈值低于第一访问频率阈值。Optionally, the first frequency range may also be lower than a second access frequency threshold, wherein the second access frequency threshold is lower than the first access frequency threshold.
可选地,第一时间范围可以是早于第一访问时间。Optionally, the first time range may be earlier than the first access time.
可选地,第一时间范围还可以是晚于第二访问时间,其中,第二访问时间晚于第一访问时间。Optionally, the first time range may also be later than the second access time, wherein the second access time is later than the first access time.
可选地,优先级范围可以是低于第一优先级阈值。这样,低于第一优先级阈值的数据不参与存储方式转换。Optionally, the priority range may be below the first priority threshold. In this way, data below the first priority threshold does not participate in the storage mode conversion.
可选地,优先级范围可以是高于第二优先级阈值。这样,高于第二优先级阈值的数据不参与存储方式转换。其中。第二优先级阈值高于第一优先级阈值。Optionally, the priority range may be above a second priority threshold. In this way, data higher than the second priority threshold does not participate in the storage mode conversion. in. The second priority threshold is higher than the first priority threshold.
通过设置第二预设条件,可以更加灵活的更新目标数据的属性标签的值以指示第一 存储盘对目标数据进行盘内存储模式转换。By setting the second preset condition, the value of the attribute label of the target data can be updated more flexibly to indicate the first The storage disk performs in-disk storage mode conversion on the target data.
结合第一方面,在第一方面的某些实现方式中,在存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,存储管理设备接收目标数据的写入请求;响应于写入请求,存储管理设备确定目标数据的属性标签为第一属性;存储管理设备向第一存储盘发送用于指示第一存储盘以第一存储方式存储目标数据的指示。With reference to the first aspect, in some implementations of the first aspect, before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the storage management device receives a write request of the target data; in response to For a write request, the storage management device determines that the attribute tag of the target data is the first attribute; the storage management device sends an instruction to the first storage disk to instruct the first storage disk to store the target data in a first storage manner.
结合第一方面,在第一方面的某些实现方式中,在存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,存储管理设备向第二存储盘发送用于指示第二存储盘以第一存储方式存储目标数据的副本的指示;响应于存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述存储管理设备向第二存储盘发送用于指示所述第二存储盘将目标数据的副本的存储方式由所述第一存储方式转换为所述第二存储方式的指示。With reference to the first aspect, in some implementation manners of the first aspect, before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the storage management device sends a message indicating the second attribute to the second storage disk. An indication that the second storage disk stores a copy of the target data in the first storage mode; in response to the storage management device updating the attribute label of the target data from the first attribute to the second attribute, the storage management device sends the second storage disk the Instructing the second storage disk to convert the storage mode of the copy of the target data from the first storage mode to the second storage mode.
可选地,目标数据的副本与目标数据完全相同Optionally, a copy of the target data that is identical to the target data
可选地,第一存储盘和第二存储盘属于同一分布式存储系统。Optionally, the first storage disk and the second storage disk belong to the same distributed storage system.
通过设置目标数据的副本存储于第二存储盘并且当目标数据更新存储方式时目标数据的副本也更新存储方式,可以使得目标数据的不同副本可以同步其存储方式。By setting a copy of the target data to be stored in the second storage disk and updating the storage mode when the target data updates the storage mode, the storage modes of different copies of the target data can be synchronized.
在写入目标数据时给目标数据设置属性标签并且确定其属性标签的值,可以使得第一存储盘在对目标数据存储时有准确的指示或参考,从而为目标数据提供更加匹配的存储方式。Setting an attribute tag for the target data and determining the value of the attribute tag when writing the target data can enable the first storage disk to have an accurate indication or reference when storing the target data, thereby providing a more matching storage method for the target data.
第二方面,提供了一种管理存储盘中数据的方法,该方法包括:存储盘接收存储管理设备发送的第一指示;存储盘根据第一指示将目标数据的存储方式由存储盘的第一存储方式转换为存储盘的第二存储方式,第一存储方式对应的存储介质不同于第二存储方式对应的存储介质。In a second aspect, a method for managing data in a storage disk is provided. The method includes: the storage disk receives a first instruction sent by a storage management device; The storage mode is converted to the second storage mode of the storage disk, and the storage medium corresponding to the first storage mode is different from the storage medium corresponding to the second storage mode.
可选地,存储盘对目标数据进行盘内存储方式转换,应理解,虽然目标数据在存储盘内的物理存储位置发生了变化,但存储盘不需要向存储管理设备报告更新后的目标数据具体的在存储盘内的物理存储位置。该盘内存储方式转换可以是以PLOG为单位进行的转换。Optionally, the storage disk performs in-disk storage mode conversion on the target data. It should be understood that although the physical storage location of the target data in the storage disk has changed, the storage disk does not need to report the updated target data to the storage management device. The physical storage location on the storage disk. The on-disk storage mode conversion may be performed in units of PLOGs.
通过根据目标数据的属性标签确定存储方式,存储盘可以为目标数据提供更加匹配的存储方式。By determining the storage method according to the attribute label of the target data, the storage disk can provide a more matching storage method for the target data.
结合第二方面,在第二方面的某些实现方式中,存储盘根据第一指示将目标数据的存储方式由存储盘的第一存储方式转换为存储盘的第二存储方式包括:存储盘将目标数据的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式,其中第一属性与第一存储方式对应,第二属性与第二存储方式对应;存储盘根据属性标签将目标数据的存储方式由存储盘的第一存储方式转换为存储盘的第二存储方式。With reference to the second aspect, in some implementation manners of the second aspect, the storage disk converting the storage manner of the target data from the first storage manner of the storage disk to the second storage manner of the storage disk according to the first instruction includes: The attribute label of the target data is updated from the first attribute to the second attribute, and the attribute label is used to indicate the storage method of the target data, wherein the first attribute corresponds to the first storage method, and the second attribute corresponds to the second storage method; The attribute tag converts the storage mode of the target data from the first storage mode of the storage disk to the second storage mode of the storage disk.
通过在存储盘设置属性标签,该属性标签可以根据第一指示更新从而与存储管理设备同步,并且可以更好的管理、查询目标数据的属性标签的值。By setting the attribute tag on the storage disk, the attribute tag can be updated according to the first indication to be synchronized with the storage management device, and the value of the attribute tag of the target data can be better managed and queried.
结合第二方面,在第二方面的某些实现方式中,在存储盘接收存储管理设备发送的第一指示之前,存储盘接收存储管理设备发送的用于指示属性标签与存储方式之间的对应关系的指示。With reference to the second aspect, in some implementation manners of the second aspect, before the storage disk receives the first indication sent by the storage management device, the storage disk receives the correspondence between the attribute label and the storage mode sent by the storage management device Indication of relationship.
通过设置根据存储管理设备确定的第二存储方式以存储目标数据,可以更好地匹配 目标数据的存储需求。By setting the second storage method determined according to the storage management device to store the target data, it can be better matched Storage requirements for the target data.
结合第二方面,在第二方面的某些实现方式中,存储盘向存储管理设备发送存储盘的容量,存储盘的容量包括存储盘内第一存储方式对应的容量和/或第二存储方式对应的容量。With reference to the second aspect, in some implementation manners of the second aspect, the storage disk sends the capacity of the storage disk to the storage management device, and the capacity of the storage disk includes the capacity corresponding to the first storage mode and/or the second storage mode in the storage disk corresponding capacity.
通过向存储管理设备发送自身的存储信息,存储盘可以使得存储管理设备更加了解自身的存储情况,从而存储管理设备可以更灵活的分配存储空间等等。By sending its own storage information to the storage management device, the storage disk can enable the storage management device to better understand its own storage conditions, so that the storage management device can more flexibly allocate storage space and the like.
可选地,在存储盘向存储管理设备发送存储盘的容量之前,存储盘接收存储管理设备发送的请求信息,请求信息用于获取存储盘的容量。Optionally, before the storage disk sends the capacity of the storage disk to the storage management device, the storage disk receives request information sent by the storage management device, where the request information is used to acquire the capacity of the storage disk.
通过接收存储管理设备的请求信息,可以降低存储盘在不必要的时候发送自身的存储信息的概率,从而避免不必要的信令交互。By receiving the request information from the storage management device, the probability that the storage disk sends its own storage information when unnecessary can be reduced, thereby avoiding unnecessary signaling interaction.
结合第二方面,在第二方面的某些实现方式中,在存储盘接收存储管理设备发送的第一指示之前,存储盘接收用于指示存储盘以第一存储方式存储所述目标数据的指示。With reference to the second aspect, in some implementation manners of the second aspect, before the storage disk receives the first instruction sent by the storage management device, the storage disk receives an instruction for instructing the storage disk to store the target data in a first storage manner .
通过根据存储管理设备发送的指示确定目标数据的第一存储方式,可以使得目标数据以更加匹配的存储方式在写入时进行存储。By determining the first storage manner of the target data according to the instruction sent by the storage management device, the target data can be stored in a more matching storage manner when writing.
可选地,当存储盘检测到盘内的剩余容量小于第二预设阈值时,存储盘更新属性标签与存储方式之间的对应关系。Optionally, when the storage disk detects that the remaining capacity in the disk is less than the second preset threshold, the storage disk updates the correspondence between the attribute label and the storage mode.
通过设置存储盘根据自身的容量调整属性标签与存储方式之间的对应关系,可以使得存储盘的存储更加灵活。By setting the storage disk to adjust the corresponding relationship between the attribute label and the storage mode according to its own capacity, the storage of the storage disk can be made more flexible.
第三方面,提供了一种存储管理设备,包括:处理单元和发送单元。该处理单元用于将目标数据的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式;发送单元用于向第一存储盘发送第一指示,第一指示用于指示第一存储盘将目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,第一存储方式对应的存储介质与第二存储方式对应的存储介质不同,其中第一存储方式与第一属性具有第一对应关系,第二存储方式与第二属性具有第二对应关系;处理单元还用于响应于读取目标数据的命令,根据存储管理设备所存储的目标数据的地址信息向第一存储盘发出读取命令。In a third aspect, a storage management device is provided, including: a processing unit and a sending unit. The processing unit is used to update the attribute label of the target data from the first attribute to the second attribute, and the attribute label is used to indicate the storage mode of the target data; the sending unit is used to send the first instruction to the first storage disk, and the first instruction uses Instructing the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk, the storage medium corresponding to the first storage method and the second storage method The storage media corresponding to the modes are different, wherein the first storage mode has a first corresponding relationship with the first attribute, and the second storage mode has a second corresponding relationship with the second attribute; the processing unit is also used to respond to the command to read the target data, A read command is sent to the first storage disk according to the address information of the target data stored by the storage management device.
结合第三方面,在第三方面的某些实现方式中,该存储管理设备还包括接收单元,该接收单元用于接收第一存储盘的容量,第一存储盘的容量包括第一存储盘内第一存储方式对应的容量和/或所述第二存储方式对应的容量。With reference to the third aspect, in some implementation manners of the third aspect, the storage management device further includes a receiving unit configured to receive the capacity of the first storage disk, where the capacity of the first storage disk includes The capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode.
结合第三方面,在第三方面的某些实现方式中,处理单元还用于将第一存储盘的容量信息显示于用户界面;发送单元用于向第一存储盘发送用于调整第一存储方式对应的容量和/或第二存储方式对应的容量的指示。With reference to the third aspect, in some implementation manners of the third aspect, the processing unit is further configured to display the capacity information of the first storage disk on the user interface; the sending unit is configured to send to the first storage disk the An indication of the capacity corresponding to the storage mode and/or the capacity corresponding to the second storage mode.
结合第三方面,在第三方面的某些实现方式中,该处理单元还用于确定属性标签与所述存储方式之间的对应关系,发送单元还用于向第一存储盘发送用于指示属性标签与存储方式之间的对应关系的指示。With reference to the third aspect, in some implementation manners of the third aspect, the processing unit is further configured to determine the correspondence between the attribute label and the storage mode, and the sending unit is further configured to send an indication to the first storage disk An indication of the correspondence between attribute labels and storage methods.
结合第三方面,在第三方面的某些实现方式中,该处理单元具体用于当满足第一预设条件时,确定属性标签与存储方式之间的对应关系,其中第一预设条件包括以下至少一项:该存储管理设备接收到主机的优化命令,优化命令用于指示存储管理设备更新属性标签与存储方式之间的对应关系;该存储管理设备接收到第一存储盘的优化请求,优 化请求用于指示存储管理设备更新第一存储盘内属性标签与存储方式之间的对应关系;第一存储盘的剩余容量小于第一预设阈值。With reference to the third aspect, in some implementations of the third aspect, the processing unit is specifically configured to determine the correspondence between the attribute tag and the storage mode when the first preset condition is met, where the first preset condition includes At least one of the following: the storage management device receives an optimization command from the host, and the optimization command is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode; the storage management device receives an optimization request from the first storage disk, excellent The UL request is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode in the first storage disk; the remaining capacity of the first storage disk is less than a first preset threshold.
结合第三方面,在第三方面的某些实现方式中,处理单元具体用于:根据述目标数据的上层统计信息和/或固有属性信息将目标数据的属性标签由第一属性更新为第二属性,上层统计信息包括由存储管理设备所存储的目标数据的访问频率信息和/或目标数据最后一次被访问的时间,目标数据的固有属性信息包括下述信息的一种或多种:所述目标数据的类型、所述目标数据的大小、所述目标数据所属的文件的类型;或者,根据目标数据的优先级等级将目标数据的属性标签由第一属性更新为第二属性,目标数据的优先级等级是根据目标数据的固有属性信息确定的,优先级等级用于确定目标数据参与存储模式转换的优先程度。With reference to the third aspect, in some implementation manners of the third aspect, the processing unit is specifically configured to: update the attribute label of the target data from the first attribute to the second attribute according to the upper-level statistical information and/or inherent attribute information of the target data. Attributes, the upper-level statistical information includes the access frequency information of the target data stored by the storage management device and/or the time when the target data was last accessed, and the inherent attribute information of the target data includes one or more of the following information: The type of the target data, the size of the target data, the type of the file to which the target data belongs; or, update the attribute label of the target data from the first attribute to the second attribute according to the priority level of the target data, and the target data The priority level is determined according to the inherent attribute information of the target data, and the priority level is used to determine the priority of the target data to participate in the storage mode conversion.
结合第三方面,在第三方面的某些实现方式中,接收单元还用于接收目标数据的写入请求;处理单元还用于响应于写入请求,确定目标数据的属性标签为第一属性;发送单元还用于向第一存储盘发送用于指示第一存储盘以第一存储方式存储目标数据的指示。With reference to the third aspect, in some implementations of the third aspect, the receiving unit is further configured to receive a write request of the target data; the processing unit is further configured to respond to the write request, and determine that the attribute label of the target data is the first attribute The sending unit is further configured to send an instruction for instructing the first storage disk to store the target data in the first storage mode to the first storage disk.
结合第三方面,在第三方面的某些实现方式中,发送单元还用于向第二存储盘发送用于指示第二存储盘以第一存储方式存储目标数据的副本的指示;响应于存储管理设备将目标数据的属性标签由第一属性更新为第二属性,发送单元还用于向第二存储盘发送用于指示第二存储盘将目标数据的副本的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式的指示。With reference to the third aspect, in some implementation manners of the third aspect, the sending unit is further configured to send to the second storage disk an indication for instructing the second storage disk to store a copy of the target data in the first storage manner; The management device updates the attribute label of the target data from the first attribute to the second attribute, and the sending unit is further configured to send to the second storage disk an instruction for the second storage disk to store the copy of the target data by the first storage disk. The first storage mode of the disk is converted into an indication of the second storage mode of the first storage disk.
结合第三方面,在第三方面的某些实现方式中,第一存储盘是闪存盘,第一存储方式、第二存储方式对应的存储介质是下述存储介质中的一种:SLC闪存、MLC闪存、TLC闪存、QLC闪存。In conjunction with the third aspect, in some implementations of the third aspect, the first storage disk is a flash disk, and the storage medium corresponding to the first storage method and the second storage method is one of the following storage media: SLC flash memory, MLC flash memory, TLC flash memory, QLC flash memory.
第四方面,提供了一种存储盘,包括:接收单元和处理单元。该接收单元用于接收存储管理设备发送的第一指示,该处理单元用于根据第一指示将目标数据的存储方式由存储盘的第一存储方式转换为存储盘的第二存储方式,第一存储方式对应的存储介质不同于第二存储方式对应的存储介质。In a fourth aspect, a storage disk is provided, including: a receiving unit and a processing unit. The receiving unit is configured to receive the first instruction sent by the storage management device, and the processing unit is configured to convert the storage method of the target data from the first storage method of the storage disk to the second storage method of the storage disk according to the first instruction. The storage medium corresponding to the storage mode is different from the storage medium corresponding to the second storage mode.
结合第四方面,在第四方面的某些实现方式中,处理单元具体用于将目标数据的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式,所述第一属性与第一存储方式对应,第二属性与第二存储方式对应;处理单元还用于根据属性标签将目标数据的存储方式由存储盘的第一存储方式转换为存储盘的第二存储方式。With reference to the fourth aspect, in some implementations of the fourth aspect, the processing unit is specifically configured to update the attribute label of the target data from the first attribute to the second attribute, and the attribute label is used to indicate the storage mode of the target data, the The first attribute corresponds to the first storage method, and the second attribute corresponds to the second storage method; the processing unit is also used to convert the storage method of the target data from the first storage method of the storage disk to the second storage method of the storage disk according to the attribute label Way.
结合第四方面,在第四方面的某些实现方式中,接收单元还用于接收存储管理设备发送的用于指示属性标签与存储方式之间的对应关系的指示。With reference to the fourth aspect, in some implementation manners of the fourth aspect, the receiving unit is further configured to receive an indication sent by the storage management device for indicating the correspondence between the attribute tag and the storage mode.
结合第四方面,在第四方面的某些实现方式中,该发送单元还用于向存储管理设备发送存储盘的容量,存储盘的容量包括存储盘内第一存储方式对应的容量和/或第二存储方式对应的容量。With reference to the fourth aspect, in some implementation manners of the fourth aspect, the sending unit is further configured to send the capacity of the storage disk to the storage management device, where the capacity of the storage disk includes the capacity corresponding to the first storage mode in the storage disk and/or The capacity corresponding to the second storage mode.
结合第四方面,在第四方面的某些实现方式中,该接收单元还用于指示存储盘以第一存储方式存储目标数据的指示。With reference to the fourth aspect, in some implementation manners of the fourth aspect, the receiving unit is further configured to instruct the storage disk to store the target data in the first storage manner.
结合第四方面,在第四方面的某些实现方式中,存储盘是闪存盘,第一存储方式、第二存储方式对应的存储介质是下述存储介质中的一种:SLC闪存、MLC闪存、TLC闪存、QLC闪存。 In conjunction with the fourth aspect, in some implementations of the fourth aspect, the storage disk is a flash disk, and the storage medium corresponding to the first storage mode and the second storage mode is one of the following storage media: SLC flash memory, MLC flash memory , TLC flash memory, QLC flash memory.
第五方面,提供了一种存储系统,包括如第三方面所述的存储管理设备和如第四方面所述的存储盘。A fifth aspect provides a storage system, including the storage management device according to the third aspect and the storage disk according to the fourth aspect.
附图说明Description of drawings
图1是一种适用于本发明实施例的存储系统的示意性结构图。Fig. 1 is a schematic structural diagram of a storage system applicable to an embodiment of the present invention.
图2是本发明实施例提供的一种存储方法的示意性流程图。Fig. 2 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图3是本发明实施例提供的一种存储方法的示意性流程图。Fig. 3 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图4是本发明实施例提供的一种存储方法的示意性流程图。Fig. 4 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图5是本发明实施例提供的一种存储方法的示意性流程图。Fig. 5 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图6是本发明实施例提供的一种存储方法的示意性流程图。Fig. 6 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图7是本发明实施例提供的一种存储方法的示意性流程图。Fig. 7 is a schematic flowchart of a storage method provided by an embodiment of the present invention.
图8是本发明实施例提供的一种存储管理设备的示意性结构图。Fig. 8 is a schematic structural diagram of a storage management device provided by an embodiment of the present invention.
图9是本发明实施例提供的一种存储盘的示意性结构图。FIG. 9 is a schematic structural diagram of a storage disk provided by an embodiment of the present invention.
图10是本发明实施例提供的一种存储系统的示意性结构图。FIG. 10 is a schematic structural diagram of a storage system provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings.
为便于理解,首先对一些涉及到的概念解释。For ease of understanding, some concepts involved are explained first.
1、NAND闪存1. NAND flash memory
与非闪存(not and flash,NAND flash)介质是一种非易失性存储介质,即断电后仍能保存数据。NAND闪存的内部存储结构单元是基于金属氧化层半导体场效应晶体管(metal-oxide-semiconductor field-effect transistor,MOSFET),与普通场效应晶体管不同之处在于,在栅极(控制栅)和源极/漏极之间存在浮置栅,通过利用该浮置栅,可以存储数据。And non-flash memory (not and flash, NAND flash) medium is a kind of non-volatile storage medium, that is, data can still be saved after power failure. The internal storage structure unit of NAND flash memory is based on metal-oxide-semiconductor field-effect transistor (MOSFET), which is different from ordinary field-effect transistors in that the gate (control gate) and source There is a floating gate between the /drain and by utilizing this floating gate, data can be stored.
2、闪存颗粒2. Flash memory particles
闪存颗粒一般包括单层存储单元(single-level cell,SLC),多层存储单元(multi-level cell,MLC),三层存储单元(triple-level cell,TLC)以及四层存储单元(quad-level cell,QLC)。Flash memory particles generally include single-level cells (single-level cells, SLC), multi-level cells (multi-level cells, MLC), triple-level cells (triple-level cells, TLC) and quad-level cells (quad- level cell, QLC).
SLC,速度快,寿命长,价格贵。每个单元只能存储1比特大小的信息,其存储的数据代表“0”还是“1”,是通过将SLC闪存单元的电压与Vth电压阈值的比较,高于阈值即代表存储的是0,低于阈值代表存储的是1。由于只有两个电平,因此两个电平电压之间的电压差距可能非常高,这使得读取存储单元更为容易。大的电压差也使得磨损的影响相对小,逻辑电平的更宽分布也有助于以更低的电压对存储单元进行编程或者擦除,进一步增加了单元的耐用性。与其他类型的闪存相比,SLC在相同裸片磨面机上可以存储的数据更少。SLC, fast, long life, expensive. Each unit can only store 1-bit information, and the stored data represents "0" or "1", by comparing the voltage of the SLC flash memory unit with the Vth voltage threshold, which means that the stored value is 0. Below the threshold means a 1 is stored. Since there are only two levels, the voltage gap between the two level voltages can be very high, making it easier to read the memory cell. The large voltage difference also makes the impact of wear relatively small, and the wider distribution of logic levels also helps to program or erase memory cells at lower voltages, further increasing the durability of the cells. Compared to other types of flash memory, SLC can store less data on the same die surfacer.
MLC,可用于存储“00”,“01”,“10”,“11”。读取时,闪存单元的电压需要与三个阈值电压进行比较(总共4个电压带),因为要与多个阈值电压比较,因此读取操作需要更加精确,导致其读取速度比SLC闪存更慢。由于较低的电压差,原始误码率也更高,并且,磨损的影响更为显著。与SLC相比,其在相同裸片磨面机上可以存储的数据更多。 MLC, can be used to store "00", "01", "10", "11". When reading, the voltage of the flash memory cell needs to be compared with three threshold voltages (a total of 4 voltage bands), because it is compared with multiple threshold voltages, so the read operation needs to be more precise, resulting in a faster read speed than SLC flash memory. slow. The raw bit error rate is also higher due to the lower voltage drop, and the effect of wear is more pronounced. Compared with SLC, it can store more data on the same die surfacer.
TLC,可用于存储“000”,“001”,“010”,“011”,“100”,“101”,“110”,“111”。读取时,闪存单元的电压需要与七个阈值电压进行比较(总共8个电压带)。TLC, can be used to store "000", "001", "010", "011", "100", "101", "110", "111". When reading, the voltage of the flash memory cell needs to be compared with seven threshold voltages (8 voltage bands in total).
QLC,可用于存储“0000”,“0001”,“0010”,“0011”,“0100”,“0101”,“0010”,“0111”,“1000”,“1001”,“1010”,“1011”,“1100”,“1101”,“1010”,“1111”,读取时,闪存单元的电压需要与十五个阈值电压进行比较(总共15个电压带)。QLC, can be used to store "0000", "0001", "0010", "0011", "0100", "0101", "0010", "0111", "1000", "1001", "1010", " 1011", "1100", "1101", "1010", "1111", when reading, the voltage of the flash memory cell needs to be compared with fifteen threshold voltages (a total of 15 voltage bands).
3、存储模式转换3. Storage mode conversion
在一些实施例中,可以设置不同的阈值电压以改变存储方式。例如,一个QLC颗粒的阈值电压个数设置为1个,便可以将该QLC颗粒当做SLC颗粒使用,但需要的闪存颗粒数目并不同,例如,数据1原本占用16个QLC颗粒存储数据,若想采用SLC存储方式以进行上存储,则需要64个QLC颗粒。In some embodiments, different threshold voltages can be set to change the storage method. For example, if the threshold voltage number of a QLC particle is set to 1, the QLC particle can be used as an SLC particle, but the number of flash memory particles required is different. For example, data 1 originally occupies 16 QLC particles to store data. If SLC storage is used for up-storage, 64 QLC particles are required.
下面结合图1和图2对两种存储系统进行说明。The two storage systems are described below with reference to FIG. 1 and FIG. 2 .
图1是一种存储系统100的示意性结构图。FIG. 1 is a schematic structural diagram of a storage system 100 .
如图1所示,存储系统100包括:主机110,存储管理设备120和存储盘130。As shown in FIG. 1 , a storage system 100 includes: a host 110 , a storage management device 120 and a storage disk 130 .
在一些实施例中,主机110可以是计算机,也可以是其他用户设备。主机110可以包括当前技术已知的任何计算设备,如服务器、台式计算机等等,在主机110中安装有操作系统以及其他应用程序。主机110可以访问存储系统100的文件,例如,主机110可以通过文件接口模块提供文件访问接口给主机上的应用程序。In some embodiments, the host 110 may be a computer or other user equipment. The host 110 may include any computing device known in the art, such as a server, a desktop computer, etc., and an operating system and other application programs are installed in the host 110 . The host 110 can access files of the storage system 100, for example, the host 110 can provide a file access interface to an application program on the host through a file interface module.
存储管理设备120用于管理文件的元数据,处理主机110对于文件的元数据查询、更新请求等。文件的元数据可以包括文件的起始地址,分配的空间大小,文件实际大小等信息。The storage management device 120 is used to manage the metadata of the file, and process the metadata query and update request of the file by the host 110 . The metadata of the file may include information such as the starting address of the file, the size of the allocated space, and the actual size of the file.
在一些实施例中,存储管理设备120可以包括但不限于:服务器、控制器、处理器。应理解,存储管理设备120可以是一种具有计算功能的、用于管理存储盘130的设备。In some embodiments, the storage management device 120 may include but not limited to: a server, a controller, and a processor. It should be understood that the storage management device 120 may be a device with a computing function for managing the storage disk 130 .
存储盘130用于存储文件数据并处理对文件的访问请求。存储盘130可以包括至少一个存储盘。在本发明提供的实施例中,文件存储于NAND存储盘中。存储盘130可以接收来自于存储管理设备120的指令对数据进行写/读操作。The storage disk 130 is used to store file data and process file access requests. The storage disk 130 may include at least one storage disk. In the embodiment provided by the present invention, the files are stored in the NAND storage disk. The storage disk 130 may receive instructions from the storage management device 120 to perform write/read operations on data.
在一些实施例中,存储盘130可以包括固态硬盘(Solid-state drive,SSD)例如标准SSD盘,也可以是基于PLOG的SSD盘(简称PLOG盘),PLOG盘可以是提供PLOG接口的SSD盘,PLOG就是该PLOG SSD盘中一段支持追加写的,命名的,字节级地址空间的封装,一个SSD可包含多个PLOG。In some embodiments, the storage disk 130 may include a solid-state disk (Solid-state drive, SSD) such as a standard SSD disk, or a PLOG-based SSD disk (referred to as a PLOG disk), and the PLOG disk may be an SSD disk that provides a PLOG interface. , PLOG is an encapsulation of a section of the PLOG SSD disk that supports additional writing, named, and byte-level address space. One SSD can contain multiple PLOGs.
在一些实施例中,存储系统100只有1个存储节点,该1个存储节点只包括1个存储盘。In some embodiments, the storage system 100 has only one storage node, and the one storage node includes only one storage disk.
在一些实施例中,存储管理设备120可以与存储盘130可以集成在一起,也就是说,一个设备可以同时具有存储管理设备120和存储盘130的功能。In some embodiments, the storage management device 120 and the storage disk 130 may be integrated together, that is, one device may have the functions of the storage management device 120 and the storage disk 130 at the same time.
在本发明提供的实施例中,存储管理设备120可以独立设置(如图1),也可以为同时具有存储管理设备120和存储盘130的功能的设备。为描述方便,以下以存储管理设备120单独设置为例进行说明。In the embodiment provided by the present invention, the storage management device 120 may be set independently (as shown in FIG. 1 ), or may be a device having functions of the storage management device 120 and the storage disk 130 at the same time. For the convenience of description, the following takes the storage management device 120 separately configured as an example for description.
在一些实施例中,存储系统100可以是分布式存储系统。例如,file1中的数据1除了保存在存储节点A所管理的存储盘1的部分,还包括存储在存储节点B所管理的存储盘2中的副本1和存储在存储点C所管理的存储盘3中的副本2,形成三副本储存。也 即存储系统100至少包括2个存储盘,并且归属于不同的存储节点,此外为了数据的可靠性,通常会设置多副本保存在不同的存储节点中,存储节点可以包括多个存储盘,通常,不同的存储节点对应不同的网络,存储节点可以是一种控制器、处理器或者服务器。该控制器、处理器或者服务器可以和其管理的存储盘集成到一个存储设备中。In some embodiments, storage system 100 may be a distributed storage system. For example, data 1 in file1 includes not only the part stored in storage disk 1 managed by storage node A, but also the copy 1 stored in storage disk 2 managed by storage node B and the storage disk managed by storage node C. Copy 2 in 3 forms three copies for storage. also That is, the storage system 100 includes at least two storage disks, which belong to different storage nodes. In addition, for data reliability, multiple copies are usually set to be stored in different storage nodes. A storage node may include multiple storage disks. Usually, Different storage nodes correspond to different networks, and a storage node may be a controller, a processor, or a server. The controller, processor or server can be integrated into a storage device with the storage disk it manages.
与集中式存储系统不同之处在于,多个存储节点通常对应不同的网络环境,此时存储系统可能需要借助网络实现文件的存储和访问。The difference from a centralized storage system is that multiple storage nodes usually correspond to different network environments. At this time, the storage system may need to use the network to store and access files.
存储系统100存储数据以及访问数据的方法为:存储管理设备120接收到指令对file1进行存储,先对file1进行切割,假设一个8K的file1切分成2个数据块(每个块4K),计算出1个4K冗余校验块。The storage system 100 stores data and accesses the data as follows: the storage management device 120 receives an instruction to store file1, first cuts file1, assumes that an 8K file1 is divided into two data blocks (each block is 4K), and calculates 1 4K redundancy check block.
如果是plog盘,需要记录file1分到:If it is a plog disk, you need to record that file1 is assigned to:
存储盘1的plog1,offset=0,size=4K;存储盘2的plog1,offset=0,size=4K;存储盘3的plog1,offset=0,size=4K;plog1 of storage disk 1, offset=0, size=4K; plog1 of storage disk 2, offset=0, size=4K; plog1 of storage disk 3, offset=0, size=4K;
如果是标准盘,记录信息下述:存储盘1,offset=0,size=4K;存储盘2,offset=100,size=104K;存储盘3,offset=200,size=204K;If it is a standard disk, the recorded information is as follows: storage disk 1, offset=0, size=4K; storage disk 2, offset=100, size=104K; storage disk 3, offset=200, size=204K;
当主机110想要访问file1时,主机向存储管理设备120发出读取命令,要求访问file1,则存储管理设备120会根据所记录的file1的存储位置向存储盘130发出读取命令。When the host 110 wants to access file1, the host sends a read command to the storage management device 120 to request access to file1, and the storage management device 120 sends a read command to the storage disk 130 according to the recorded storage location of file1.
在一些实施例中,存储盘130可以包括一种或多种闪存粒度,该一种或多种闪存粒度可以包括以下闪存颗粒的一种或多种:SLC闪存颗粒、MLC闪存颗粒、TLC闪存颗粒、QLC闪存颗粒。以不同闪存颗粒作为存储介质即可实现不同的存储方式,例如,使用SLC闪存颗粒存储即为SLC存储,使用MLC闪存颗粒存储即为MLC存储,使用TLC闪存颗粒存储即为TLC存储,使用QLC闪存颗粒存储即为QLC存储。在一些实施例中,存储盘130内可以实现存储模式转换,具体的,存储盘130可以通过更新阈值电压以改变存储模式,例如,将QLC闪存颗粒用做SLC闪存颗粒。由于SLC闪存颗粒的存储性能更优,一般用于存储重要性高和/或访问频率高的文件,QLC则一般用于存储文件大小较大(例如,大于100MB)和/或访问频率低的文件。In some embodiments, the storage disk 130 may include one or more flash memory granularities, and the one or more flash memory granularities may include one or more of the following flash memory particles: SLC flash memory particles, MLC flash memory particles, TLC flash memory particles , QLC flash memory particles. Different storage methods can be realized by using different flash granules as storage media. For example, using SLC flash granule storage is SLC storage, using MLC flash granule storage is MLC storage, using TLC flash granule storage is TLC storage, and using QLC flash memory Granular storage is QLC storage. In some embodiments, storage mode switching can be implemented in the storage disk 130. Specifically, the storage disk 130 can change the storage mode by updating the threshold voltage, for example, using QLC flash memory particles as SLC flash memory particles. Due to the better storage performance of SLC flash memory particles, it is generally used to store files with high importance and/or high access frequency, while QLC is generally used to store files with large file size (for example, greater than 100MB) and/or low access frequency .
然而在存储数据时,不同的数据实际的存储需求可能也不同,以及同一数据在不同时刻存在不同的存储需求(例如,需要以性能高的方式存储或者需要以节省容量的方式存储)可能也不同。因此,如何根据数据的存储需求以精准地为数据提供匹配的存储方式成为目前的问题之一。However, when storing data, different data may have different actual storage requirements, and the same data may have different storage requirements at different times (for example, it needs to be stored in a high-performance manner or needs to be stored in a capacity-saving manner) may also be different . Therefore, how to accurately provide data with a matching storage method according to the storage requirements of the data has become one of the current problems.
目前,存储系统100通过根据数据的空间统计热度信息确定或者更新其存储方式,但基于热度统计以确定数据实际的存储需求,很多时候并不准确合理,例如,目录元数据数据作为关键数据,即使热度统计信息表现出的热度不高,也不应采取低性能的方式例如QLC存储。At present, the storage system 100 determines or updates its storage mode based on the spatial statistical heat information of data, but it is often not accurate and reasonable to determine the actual storage requirements of data based on heat statistics. For example, directory metadata data is used as key data, even if The heat statistics show that the heat is not high, and should not be taken in a low-performance way such as QLC storage.
因此,需要提出一种能够根据数据的存储需求为数据提供更加匹配的存储方式的方案。Therefore, it is necessary to propose a solution that can provide data with a more matching storage method according to the storage requirements of the data.
图2是本发明实施例提供的一种存储方法200的示意性流程图。FIG. 2 is a schematic flowchart of a storage method 200 provided by an embodiment of the present invention.
该存储方法可以由上述图1所示的存储系统100执行。为描述方便,以存储系统100只包括1个存储盘例如第一存储盘为例,应理解,此时存储盘130等于第一存储盘。The storage method may be executed by the storage system 100 shown in FIG. 1 above. For convenience of description, the storage system 100 includes only one storage disk such as the first storage disk as an example. It should be understood that the storage disk 130 is equal to the first storage disk at this time.
S201,存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述属性 标签用于指示所述目标数据的存储方式。S201. The storage management device updates the attribute label of the target data from the first attribute to the second attribute, the attribute Tags are used to indicate how the target data is stored.
目标数据可以是经过切割后且大小为最小存储大小的数据。The target data may be data that has been cut and whose size is the minimum storage size.
目标数据可以是任意类型的数据,例如目录元数据、文件元数据等等,本发明对比不作任何限定。目标数据还可以是多个相同目录下相同或相近类型的多个数据的合集,例如,目标数据为目录1的元数据、文件1的元数据、文件2的元数据的合集,其中,文件1和文件2所述目录为目录1。The target data can be any type of data, such as directory metadata, file metadata, etc., which is not limited in the present invention. The target data can also be a collection of multiple data of the same or similar type under the same directory. For example, the target data is a collection of metadata of directory 1, metadata of file 1, and metadata of file 2, where file 1 and file2 said directory as directory1.
在一些实施例中,存储管理设备120保存数据的属性标签,该属性标签可以是一种标识,例如,flag。示例性的,存储管理设备120更新数据1的属性标签为属性#1。In some embodiments, the storage management device 120 saves an attribute tag of the data, and the attribute tag may be an identifier, for example, a flag. Exemplarily, the storage management device 120 updates the attribute label of data 1 to attribute #1.
在一些实施例中,存储管理设备根据第一信息将目标数据的属性标签由第一属性更新为第二属性,可选地,第一信息可以包括目标数据的信息,可选地,还可以包括其他信息,例如存储系统100的总容量。In some embodiments, the storage management device updates the attribute label of the target data from the first attribute to the second attribute according to the first information. Optionally, the first information may include information about the target data, and optionally, may also include Other information, such as the total capacity of the storage system 100 .
可选地,目标数据的信息可以包括目标数据的固有属性信息和/或目标数据的上层统计信息。Optionally, the information of the target data may include inherent attribute information of the target data and/or upper-layer statistical information of the target data.
可选地,目标数据的固有属性信息包括但不限于下述信息的一种或多种:Optionally, the inherent attribute information of the target data includes but not limited to one or more of the following information:
所述目标数据的类型、所述目标数据的大小、所述目标数据所属的文件的类型等等。文件的类型可以例如包括系统文件、应用文件等等,数据类型可以例如是校验数据、缓存数据等等。The type of the target data, the size of the target data, the type of the file to which the target data belongs, and so on. The types of files may include, for example, system files, application files, etc., and the types of data may, for example, be verification data, cache data, and the like.
可选地,目标数据的上层统计信息包括所述目标数据的访问频率和/或最后一次被访问的时间。目标数据的访问频率可以是第一检测时间范围内的可由存储管理设备120统计到的访问频率,该第一检测时间范围例如可以是2min,也即每2min目标数据的访问频率更新一次。应理解,上层统计信息是存储管理设备120基于自身记录的读取目标数据的记录作出的统计,由于读取目标数据需要向存储管理设备120发出读取命令,因此,存储管理设备120可以获知准确的目标数据的访问信息。相较于存储盘130内部记录的目标数据的访问信息,存储管理设备120获取的目标数据的访问信息更为全面。Optionally, the upper-level statistical information of the target data includes the access frequency and/or the last access time of the target data. The access frequency of the target data may be the access frequency that can be counted by the storage management device 120 within the first detection time range. The first detection time range may be, for example, 2 minutes, that is, the access frequency of the target data is updated every 2 minutes. It should be understood that the upper-layer statistical information is the statistics made by the storage management device 120 based on the records of the read target data recorded by itself. The access information of the target data. Compared with the access information of the target data recorded inside the storage disk 130, the access information of the target data acquired by the storage management device 120 is more comprehensive.
可选地,当目标数据的信息变化时,存储管理设备120可以记录并且更新目标数据的信息,例如,目标数据的访问频率变化时,存储管理设备120更新该目标数据的访问频率。Optionally, when the information of the target data changes, the storage management device 120 may record and update the information of the target data, for example, when the access frequency of the target data changes, the storage management device 120 updates the access frequency of the target data.
在一些实施例中,第一信息包括第一关系,第一关系为第一信息和第二属性的对应关系,这样存储管理设备120可以根据第一信息和第一关系确定目标数据的属性标签为第二属性。In some embodiments, the first information includes a first relationship, and the first relationship is a corresponding relationship between the first information and the second attribute, so that the storage management device 120 can determine the attribute label of the target data according to the first information and the first relationship as Second attribute.
在一些实施例中,第一信息包括关系#1,关系#1为目标数据的上层统计信息和第二属性的关系,存储管理设备120可以根据目标数据的上层统计信息和关系#1确定目标数据的第二属性。关系#1可以如表1所示。In some embodiments, the first information includes relationship #1, and relationship #1 is the relationship between the upper-level statistical information of the target data and the second attribute, and the storage management device 120 can determine the target data according to the upper-level statistical information of the target data and relationship #1 the second attribute of . Relationship #1 may be as shown in Table 1.
表1

Table 1

如表1所示,当访问频率在第一访问频率范围内,可以确定目标数据的属性标签为第二属性。在一些实施例中,第一访问频率范围可以是高于第一访问频率阈值,例如,数据1的第一访问频率高于第一访问频率阈值,则存储管理设备120确定数据1的属性标签为属性#1。该第一访问频率阈值例如可以是10次/天。在又一些实施例中,第一访问频率范围可以是低于第二访问频率阈值,例如,数据2的第一访问频率低于第二访问频率阈值,则存储管理设备120确定数据2的属性标签为属性#3。该第二访问频率阈值例如可以是1次/天。第二访问频率阈值低于第一访问频率阈值。As shown in Table 1, when the access frequency is within the first access frequency range, it may be determined that the attribute label of the target data is the second attribute. In some embodiments, the first access frequency range may be higher than the first access frequency threshold. For example, if the first access frequency of Data 1 is higher than the first access frequency threshold, then the storage management device 120 determines that the attribute label of Data 1 is Attribute #1. The first access frequency threshold may be, for example, 10 times/day. In some other embodiments, the first access frequency range may be lower than the second access frequency threshold, for example, if the first access frequency of data 2 is lower than the second access frequency threshold, then the storage management device 120 determines the attribute label of data 2 for attribute #3. The second access frequency threshold may be, for example, 1 time/day. The second access frequency threshold is lower than the first access frequency threshold.
如表1所示,当最后一次被访问的时间在第一访问时间范围内,可以确定目标数据的属性标签为第二属性。在一些实施例中,第一访问时间范围可以是早于第一访问时间,例如,数据3最后一次被访问的时间早于第一访问时间,则存储管理设备120确定数据3的属性标签为属性#2,该第一访问时间可以例如是20天。在又一些实施例中,第一访问时间范围可以是晚于第一访问时间,例如,数据4最后一次被访问的时间晚于第一访问时间,则存储管理设备120确定数据4的属性标签为属性#1,该第一访问时间可以例如是20天。第二访问时间晚于第一访问时间。As shown in Table 1, when the last accessed time is within the first access time range, it may be determined that the attribute label of the target data is the second attribute. In some embodiments, the first access time range may be earlier than the first access time, for example, the last time data 3 is accessed is earlier than the first access time, then the storage management device 120 determines that the attribute tag of data 3 is an attribute #2, the first access time may be, for example, 20 days. In some other embodiments, the first access time range may be later than the first access time, for example, the last time the data 4 was accessed is later than the first access time, then the storage management device 120 determines that the attribute label of the data 4 is Attribute #1, the first access time may be, for example, 20 days. The second access time is later than the first access time.
如表1所示,部分目录下的文件可能在特定的时间会被频繁访问,存储管理设备120可以分析其统计特征,在该文件即将可能被访问时提前更新其属性标签的值,以便于第一存储盘提前将该文件的数据进行存储方式转换。例如,数据5在第一时间范围内访问频率高于第一访问频率阈值,当时间处于第二时间范围内时,该第二时间范围包含第一时间并且第二时间范围的起始时间早于第一时间范围的起始时间,可以将数据5的属性标签的值更新为属性#1,而当时间处于第二时间范围以外时,数据5的属性标签的值为属性#2。As shown in Table 1, the files under some directories may be frequently accessed at a specific time, and the storage management device 120 can analyze its statistical characteristics, and update the value of its attribute label in advance when the file is about to be accessed, so that the first A storage disk converts the storage mode of the data of the file in advance. For example, the access frequency of data 5 in the first time range is higher than the first access frequency threshold, when the time is in the second time range, the second time range includes the first time and the start time of the second time range is earlier than At the start time of the first time range, the value of the attribute tag of data 5 may be updated to attribute #1, and when the time is outside the second time range, the value of the attribute tag of data 5 is attribute #2.
应理解,访问频率高的数据以及最后一次被访问的时间较近的数据可以看做热点数据,因此,该类数据一般采取性能更佳的存储方式进行存储。上述表1的属性1、属性2、属性3分别对应的存储方式性能应当由好到差。这样,对不同统计特征的数据可以实现更加匹配的存储方式。 It should be understood that data with a high access frequency and data with a relatively recent access time can be regarded as hot data. Therefore, such data is generally stored in a storage method with better performance. The performance of the storage methods corresponding to attribute 1, attribute 2, and attribute 3 in Table 1 above should range from good to poor. In this way, data with different statistical characteristics can be stored in a more matching manner.
在一些实施例中,第一信息包括关系#2,关系#2为目标数据的上层统计信息以及目标数据的固有属性信息和第二属性的关系,可以根据目标数据的上层统计信息以及目标数据的固有属性信息和关系#2确定目标数据的第二属性。In some embodiments, the first information includes relationship #2, and relationship #2 is the upper-level statistical information of the target data and the relationship between the inherent attribute information of the target data and the second attribute, which can be based on the upper-level statistical information of the target data and the target data. The intrinsic attribute information and relation #2 determine the second attribute of the target data.
关系#2可以如表2所示。Relationship #2 may be as shown in Table 2.
表2
Table 2
如表2所示,可以同时结合上层统计信息和固有属性信息确定目标数据的第二属性。例如,数据6的访问频率高于第一访问频率阈值并且数据6为目录元文件的数据,则确定数据6的第二属性为属性#1;数据7的访问频率低于第一访问频率阈值并且所属文件大小小于或等于16KB,则确定数据7的第二属性为属性#3;数据8最后一次被访问的时间早于第一访问时间并且数据8为文件属性元数据,则确定数据8的第二属性为属性#2;数据9最后一次被访问的时间晚于第一访问时间并且数据9所属文件大小大于100MB,确定数据9的第二属性为属性#2。As shown in Table 2, the second attribute of the target data can be determined by combining the upper layer statistical information and the intrinsic attribute information at the same time. For example, if the access frequency of data 6 is higher than the first access frequency threshold and data 6 is the data of the directory metafile, then it is determined that the second attribute of data 6 is attribute #1; the access frequency of data 7 is lower than the first access frequency threshold and If the size of the file to which it belongs is less than or equal to 16KB, then it is determined that the second attribute of data 7 is attribute #3; when the last access time of data 8 is earlier than the first access time and data 8 is file attribute metadata, then it is determined that the second attribute of data 8 is The second attribute is attribute #2; the last access time of data 9 is later than the first access time and the size of the file to which data 9 belongs is greater than 100MB, so the second attribute of data 9 is determined to be attribute #2.
在一些实施例中,第一信息还包括目标数据的优先级等级和第二属性的关系,目标数据的信息还包括目标数据的优先级等级。在一种可能的方式中,目标数据的优先级等级可以由存储管理设备120确定并记录。可以根据目标数据的优先级等级和关系#3确定目标数据的第二属性,关系#3为目标数据的优先级等级和第二属性的关系。在一些实施例中,目标数据的优先级等级在优先级等级范围内时,可以确定目标数据的属性标签为第二属性。In some embodiments, the first information further includes the relationship between the priority level of the target data and the second attribute, and the information of the target data further includes the priority level of the target data. In a possible manner, the priority level of the target data may be determined and recorded by the storage management device 120 . The second attribute of the target data may be determined according to the priority level of the target data and relationship #3, which is the relationship between the priority level of the target data and the second attribute. In some embodiments, when the priority level of the target data is within the priority level range, it may be determined that the attribute label of the target data is the second attribute.
表3
table 3
如表3,优先级等级范围为1至2时,目标数据的第二属性为属性#1;优先级等级范围为3至6时,目标数据的第二属性为属性#2。 As shown in Table 3, when the priority level ranges from 1 to 2, the second attribute of the target data is attribute #1; when the priority level ranges from 3 to 6, the second attribute of the target data is attribute #2.
该优先级等级与第二属性的关系可以是预设好的,也可以由存储管理设备120根据需求进行调整。例如,需要释放更多的空间时,可以设置优先级等级范围为2至6的数据的第二属性为属性#2。The relationship between the priority level and the second attribute may be preset, and may also be adjusted by the storage management device 120 according to requirements. For example, when more space needs to be released, the second attribute of data whose priority level ranges from 2 to 6 can be set as attribute #2.
应理解,当目标数据的优先级等级不属于该优先级等级范围内时,该目标数据的第二属性不变化,也即该目标数据不会进行存储方式转换。It should be understood that when the priority level of the target data does not belong to the priority level range, the second attribute of the target data will not change, that is, the target data will not be converted into a storage mode.
优先级范围可以是低于第一优先级阈值。例如,优先级阈值为优先级等级2,这样,低于优先级等级2的数据不参与存储方式转换。The priority range may be below the first priority threshold. For example, the priority threshold is priority level 2, so that data lower than priority level 2 does not participate in the conversion of the storage mode.
优先级范围可以是高于第二优先级阈值。例如,优先级阈值为优先级等级3,这样,高于优先级等级3的数据不参与存储方式转换。其中。第二优先级阈值高于第一优先级阈值。The priority range may be above a second priority threshold. For example, the priority threshold is priority level 3, so that data higher than priority level 3 does not participate in the conversion of the storage mode. in. The second priority threshold is higher than the first priority threshold.
在一种可能的实现方式中,目标数据的优先级等级可以根据目标数据的固有属性信息和关系#4确定,关系#4为目标数据的固有属性信息和目标数据的优先级等级的关系。目标数据的优先级等级可以在目标数据写入时就进行确定并记录。优先级等级和固有属性的关系即关系#4可以如表4所示。In a possible implementation manner, the priority level of the target data may be determined according to the inherent attribute information of the target data and relationship #4, and the relationship #4 is the relationship between the inherent attribute information of the target data and the priority level of the target data. The priority level of the target data can be determined and recorded when the target data is written. The relationship between priority levels and inherent attributes, ie, relationship #4, can be shown in Table 4.
表4
Table 4
如表4所示,可以根据目标数据的固有属性信息确定优先级等级。例如,数据16目录元文件的数据,则确定数据16优先级等级为1;数据17属文件大小小于或等于16KB,则确定数据17优先级等级为2;数据18文件属性元数据,则确定数据18优先级等级为3;数据19布局元数据,则确定数据19优先级等级为1。As shown in Table 4, the priority level can be determined according to the inherent attribute information of the target data. For example, if data 16 is the data of the directory metafile, then determine that the priority level of data 16 is 1; if the file size of data 17 is less than or equal to 16KB, then determine that the priority level of data 17 is 2; if data 18 is file attribute metadata, then determine that the data 18 priority level is 3; data 19 layout metadata, then determine the priority level of data 19 is 1.
应理解,目标数据的固有属性的类型多于优先级等级的个数,这样,可以节约存储管理设备120的管理开销。It should be understood that the types of inherent attributes of the target data are more than the number of priority levels, so that the management overhead of the storage management device 120 can be saved.
在一些实施例中,当满足第二预设条件时,执行步骤S201。In some embodiments, when the second preset condition is satisfied, step S201 is executed.
第二预设条件包括至少一种下述条件:The second preset condition includes at least one of the following conditions:
当所述访问频率在第一频率范围内和/或所述最后一次被访问的时间在第一时间范围内时;When the access frequency is within a first frequency range and/or the last time accessed is within a first time range;
当所述目标数据的优先级等级在优先级范围内时。When the priority level of the target data is within the priority range.
应理解,当目标数据的第一信息变化且满足第二预设条件时,存储管理设备120将更新其属性标签的值。It should be understood that when the first information of the target data changes and meets the second preset condition, the storage management device 120 will update the value of its attribute tag.
在一些实施例中,存储系统100可以是多副本存储系统。In some embodiments, storage system 100 may be a multi-replica storage system.
图3为本发明实施例提供的一种存储方法300的示意性流程图,图3示出了存储方法300的步骤S301至S305,以下结合图3对本发明提供的多副本场景下的存储方法300进行说明。FIG. 3 is a schematic flowchart of a storage method 300 provided by an embodiment of the present invention. FIG. 3 shows steps S301 to S305 of the storage method 300. The following describes the storage method 300 in the multi-copy scenario provided by the present invention in conjunction with FIG. 3 Be explained.
S301,存储管理设备将目标数据的属性标签由第一属性更新为第二属性。 S301. The storage management device updates an attribute label of target data from a first attribute to a second attribute.
该步骤同上述S201的描述相同,为避免冗余,可参见前文,在此不再赘述。This step is the same as the description of S201 above, to avoid redundancy, refer to the above, and will not repeat it here.
S302,存储管理设备向第一存储盘发送第一指示,第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式。S302. The storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the Describe the second storage mode of the first storage disk.
该步骤同后文S202的描述相同,为避免冗余,可参见后文,在此不再赘述。This step is the same as the description of S202 below, to avoid redundancy, refer to the following, and will not be repeated here.
S303,存储管理设备向第二存储盘发送第三指示,第三指示用于指示第一存储盘将目标数据的副本的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式。S303. The storage management device sends a third instruction to the second storage disk, where the third instruction is used to instruct the first storage disk to convert the storage method of the copy of the target data from the first storage method of the first storage disk to the second storage method. A second storage mode of a storage disk.
在一些实施例中,存储盘130除了包括第一存储盘,还包括第二存储盘,并且,目标数据存储在第一存储盘内,目标数据的副本存储在第二存储盘内。应理解。该存储盘130还可以包括更多的存储盘,本发明对比不作限定。In some embodiments, the storage disk 130 includes not only the first storage disk but also a second storage disk, and the target data is stored in the first storage disk, and a copy of the target data is stored in the second storage disk. should be understood. The storage disk 130 may also include more storage disks, which is not limited in the present invention.
可选地,在步骤S303之前,存储管理设备120向第二存储盘发送用于指示第二存储盘以第一存储方式存储目标数据的副本的指示,第二存储盘根据该指示将目标数据的副本以第一存储方式进行存储。Optionally, before step S303, the storage management device 120 sends an instruction for instructing the second storage disk to store a copy of the target data in the first storage mode to the second storage disk, and the second storage disk stores the copy of the target data according to the instruction. The copy is stored in the first storage mode.
可选地,第三指示与第一指示相同。Optionally, the third indication is the same as the first indication.
可选地,存储系统100还可以包括其他的存储节点,并且第一存储盘和第二存储盘归属于不同的存储节点。应理解,此时存储系统100为分布式存储系统,换言之,方法300可以应用于分布式存储系统。Optionally, the storage system 100 may further include other storage nodes, and the first storage disk and the second storage disk belong to different storage nodes. It should be understood that the storage system 100 is a distributed storage system at this time, in other words, the method 300 may be applied to a distributed storage system.
S304,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式。S304. The first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
可选地,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式包括:第一存储盘将目标数据的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式,其中第一存储方式与第一属性具有第一对应关系,第二存储方式与第二属性具有第二对应关系;第一存储盘根据属性标签将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式。Optionally, the first storage disk converting the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk according to the first instruction includes: the first storage disk converting the attribute of the target data The label is updated from the first attribute to the second attribute. The attribute label is used to indicate the storage method of the target data. The first storage method has a first corresponding relationship with the first attribute, and the second storage method has a second corresponding relationship with the second attribute. ; The first storage disk converts the storage method of the target data from the first storage method of the first storage disk to the second storage method of the first storage disk according to the attribute tag.
S305,第二存储盘根据第一指示将目标数据的副本的存储方式由第二存储盘的第一存储方式转换为第二存储盘的第二存储方式。S305. The second storage disk converts the storage manner of the copy of the target data from the first storage manner of the second storage disk to the second storage manner of the second storage disk according to the first instruction.
可选地,第二存储盘根据第一指示将目标数据的副本的存储方式由第二存储盘的第一存储方式转换为第二存储盘的第二存储方式包括:第二存储盘将目标数据的副本的属性标签由第一属性更新为第二属性,属性标签用于指示目标数据的存储方式,其中第一存储方式与第一属性具有第一对应关系,第二存储方式与第二属性具有第二对应关系;第二存储盘根据属性标签将目标数据的存储方式由第二存储盘的第一存储方式转换为第一存储盘的第二存储方式。Optionally, the second storage disk converting the storage method of the copy of the target data from the first storage method of the second storage disk to the second storage method of the second storage disk according to the first instruction includes: the second storage disk converting the target data The attribute label of the copy of is updated from the first attribute to the second attribute. The attribute label is used to indicate the storage method of the target data. The first storage method has a first correspondence with the first attribute, and the second storage method has a relationship with the second attribute. The second corresponding relationship: the second storage disk converts the storage method of the target data from the first storage method of the second storage disk to the second storage method of the first storage disk according to the attribute label.
可选地,第二存储盘的第一存储方式与第一存储盘的第一存储方式相同,并且第二存储盘的第二存储方式与第一存储盘的第二存储方式相同,目标数据和目标数据的副本以相同的存储方式进行存储。Optionally, the first storage mode of the second storage disk is the same as the first storage mode of the first storage disk, and the second storage mode of the second storage disk is the same as the second storage mode of the first storage disk, and the target data and A copy of the target data is stored in the same storage.
图4示出了本发明实施例提供的一种存储方法400的示意性流程图。FIG. 4 shows a schematic flowchart of a storage method 400 provided by an embodiment of the present invention.
在一些实施例中,属性标签与存储方式的对应关系可以是由存储管理设备120确定 或更新的并且通过第二指示发送给第一存储盘。In some embodiments, the correspondence between attribute tags and storage methods may be determined by the storage management device 120 or updated and sent to the first storage disk through the second instruction.
S401,存储管理设备确定第一存储盘内属性标签与存储方式之间的对应关系。S401. The storage management device determines a correspondence between an attribute tag and a storage mode in a first storage disk.
应理解,存储管理设备120确定目标数据的属性标签为第二属性相当于确定目标数据的第二存储方式。这样,目标数据最终的存储方式实际由存储管理设备120直接决定,可以使得目标数据可以以匹配的存储方式进行存储。It should be understood that the storage management device 120 determining that the attribute label of the target data is the second attribute is equivalent to determining the second storage manner of the target data. In this way, the final storage mode of the target data is actually directly determined by the storage management device 120, so that the target data can be stored in a matching storage mode.
可选地,存储管理设备120确定属性标签与存储方式之间的对应关系包括根据第一存储盘的容量确定热属性标签与存储方式之间的对应关系。Optionally, the storage management device 120 determining the correspondence between the attribute label and the storage mode includes determining the correspondence between the thermal attribute label and the storage mode according to the capacity of the first storage disk.
S402,存储管理设备向第一存储盘发送第二指示,第二指示用于指示属性标签与存储方式的对应关系。S402. The storage management device sends a second indication to the first storage disk, where the second indication is used to indicate a correspondence between an attribute tag and a storage mode.
可选地,第二指示可以是关系表,例如,属性#1对应存储方式1,属性#2对应存储方式2。Optionally, the second indication may be a relational table, for example, attribute #1 corresponds to storage mode 1, and attribute #2 corresponds to storage mode 2.
S403,存储管理设备将目标数据的属性标签由第一属性更新为第二属性。S403. The storage management device updates the attribute label of the target data from the first attribute to the second attribute.
该步骤同上述S201的描述相同,为避免冗余,可参见前文,在此不再赘述。This step is the same as the description of S201 above, to avoid redundancy, refer to the above, and will not repeat it here.
S404,存储管理设备向第一存储盘发送第一指示,第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式。S404. The storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk to the Describe the second storage mode of the first storage disk.
该步骤同后文S202的描述相同,为避免冗余,可参见后文,在此不再赘述。This step is the same as the description of S202 below, to avoid redundancy, refer to the following, and will not be repeated here.
S405,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式。S405, the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
该步骤同上述S304的描述相同,为避免冗余,可参见前文,在此不再赘述。This step is the same as the above description of S304, to avoid redundancy, refer to the above, and will not repeat it here.
应理解,方法400目的是当剩余存储空间有限时,或者当剩余存储空间充足且需要提高存储性能时,可以通过调整属性标签与存储方式之间的对应关系以适应需求。It should be understood that the purpose of method 400 is to adjust the correspondence between attribute tags and storage methods to meet the requirements when the remaining storage space is limited, or when the remaining storage space is sufficient and storage performance needs to be improved.
在一些实施例中,当满足第一预设条件时,存储管理设备120更新所述第一存储盘内所述属性标签与所述存储方式之间的对应关系。In some embodiments, when the first preset condition is satisfied, the storage management device 120 updates the correspondence between the attribute tag and the storage mode in the first storage disk.
该第一预设条件包括下述条件的至少一种:The first preset condition includes at least one of the following conditions:
A、第一存储盘的剩余容量小于第一预设阈值时。A. When the remaining capacity of the first storage disk is less than a first preset threshold.
B、存储管理设备120接收到主机的优化命令。B. The storage management device 120 receives an optimization command from the host.
C、存储管理设备120接收到第一存储盘的优化请求。C. The storage management device 120 receives an optimization request of the first storage disk.
图5示出了本发明实施例提供的一种存储方法500的示意性流程图,结合图5对第一预设条件为A时进行说明。FIG. 5 shows a schematic flowchart of a storage method 500 provided by an embodiment of the present invention. The case where the first preset condition is A will be described in conjunction with FIG. 5 .
如图5,存储管理设备120根据第一存储盘的容量确定属性标签与存储方式之间的对应关系。As shown in FIG. 5 , the storage management device 120 determines the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk.
S501,存储管理设备向第一存储盘发送请求信息,该请求信息用于获取第一存储盘的容量。S501. The storage management device sends request information to the first storage disk, where the request information is used to acquire the capacity of the first storage disk.
第一存储盘的容量可以包括第一存储盘内第一存储方式对应的剩余容量或者第二存储方式对应的剩余容量,再或者,第一存储盘的容量还可以包括第一存储盘全部的剩余容量。The capacity of the first storage disk may include the remaining capacity corresponding to the first storage method or the remaining capacity corresponding to the second storage method in the first storage disk, or, the capacity of the first storage disk may also include the remaining capacity of the entire first storage disk capacity.
S502,第一存储盘接收到该请求信息后,向存储管理设备120发送所述第一存储盘的容量,所述第一存储盘的容量包括第一存储方式对应的容量和/或第二存储方式对应的 容量。S502. After receiving the request information, the first storage disk sends the capacity of the first storage disk to the storage management device 120, where the capacity of the first storage disk includes the capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode. way corresponding capacity.
S503,存储管理设备确定第一存储盘内属性标签与存储方式的对应关系。S503. The storage management device determines a correspondence between attribute tags and storage modes in the first storage disk.
在一些实施例中,步骤S503也即存储管理设备120确定属性标签与存储方式的对应关系包括:根据第一存储盘的容量确定属性标签与存储方式之间的对应关系。根据第一存储盘的容量确定属性标签与存储方式之间的对应关系可以包括:第一存储盘的剩余容量小于第一预设阈值时,存储管理设备120可以更新属性标签与存储方式的对应关系。可选地,第一存储盘的剩余容量小于第一预设阈值可以是第一存储方式对应的剩余容量低于阈值#1。例如,属性#1和属性#2对应存储方式#1,属性#3对应存储方式#2,存储方式#1优于存储方式#2,现在第一存储盘中存储方式#1对应的剩余容量低于阈值#1,存储管理设备120可以更新属性#2对应存储方式#2。应理解,这样以存储方式#1存储的数据减少,从而第一存储盘可以“腾出”更多的空间。In some embodiments, step S503, that is, the storage management device 120 determining the correspondence between the attribute label and the storage mode includes: determining the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk. Determining the correspondence between the attribute label and the storage method according to the capacity of the first storage disk may include: when the remaining capacity of the first storage disk is less than a first preset threshold, the storage management device 120 may update the correspondence between the attribute label and the storage method . Optionally, the remaining capacity of the first storage disk being less than the first preset threshold may be that the remaining capacity corresponding to the first storage mode is lower than threshold #1. For example, attribute #1 and attribute #2 correspond to storage method #1, attribute #3 corresponds to storage method #2, storage method #1 is better than storage method #2, and now the remaining capacity corresponding to storage method #1 in the first storage disk is low Based on threshold #1, storage management device 120 may update attribute #2 to correspond to storage mode #2. It should be understood that in this way, the data stored in the storage mode #1 is reduced, so that more space can be "freed up" on the first storage disk.
在一些实施例中,可选地,存储管理设备120接收到第一存储盘的容量后,可以根据该第一存储盘的容量重新确定第一存储盘的配置容量,例如,存储管理设备120获知第一存储盘的已使用的SLC容量占据原先配置的SLC容量的90%并且已使用的QLC容量占据原先配置的QLC容量的30%,存储管理设备120可以为存储盘130增加更多的SLC容量,例如通过发送指示给存储盘130指示其将未使用的QLC容量的一半转换为SLC容量。可选地,在存储系统初始化时,存储管理设备120就配置不同的存储方式对应的容量,例如,可以配置存储盘130的存储空间为100MB的SLC区域和300MB的QLC区域。In some embodiments, optionally, after receiving the capacity of the first storage disk, the storage management device 120 may re-determine the configured capacity of the first storage disk according to the capacity of the first storage disk. For example, the storage management device 120 knows The used SLC capacity of the first storage disk occupies 90% of the originally configured SLC capacity and the used QLC capacity occupies 30% of the originally configured QLC capacity, and the storage management device 120 can add more SLC capacity to the storage disk 130 , for example by sending an indication to the storage disk 130 instructing it to convert half of the unused QLC capacity to SLC capacity. Optionally, when the storage system is initialized, the storage management device 120 configures capacities corresponding to different storage modes. For example, the storage space of the storage disk 130 may be configured as a 100MB SLC area and a 300MB QLC area.
在一些实施例中,可选地,存储管理设备120接收到第一存储盘的容量后,可以通过用户界面的显示以告知用户存储盘130的具体的存储信息,提高用户体验。In some embodiments, optionally, after receiving the capacity of the first storage disk, the storage management device 120 may notify the user of the specific storage information of the storage disk 130 through the display of the user interface, so as to improve user experience.
应理解,这样存储管理设备120可以确定第一存储盘的不同存储方式对应的容量,从而可以更好地分配存储空间或者进行存储优化。It should be understood that, in this way, the storage management device 120 may determine capacities corresponding to different storage modes of the first storage disk, so as to better allocate storage space or perform storage optimization.
对第一预设条件是B时进行说明。例如,当主机110的用户认为存储系统100的性能需要向高性能方向转换,可以通过主机110给存储管理设备120发起优化请求,存储管理设备120根据该优化请求,重新确认数据的存储方式并统计,或者选择部分数据升级其存储方式为更优的存储方式,例如,将原本以存储方式3存储的数据改为以存储方式2存储。再例如,当主机110的用户认为存储系统100的性能需要向高容量方向转换,可以通过主机110给存储管理设备120发起优化请求,存储管理设备120根据该优化请求,重新确认数据的存储方式并统计,或者选择部分数据升级其存储方式为占用容量更少的存储方式,例如,将原本以存储方式1存储的文件改为以存储方式2存储。The case where the first preset condition is B will be described. For example, when the user of the host 110 thinks that the performance of the storage system 100 needs to be converted to a high performance direction, the host 110 can initiate an optimization request to the storage management device 120, and the storage management device 120 reconfirms the storage method of the data according to the optimization request and counts , or select some data to upgrade its storage method to a better storage method, for example, change the data originally stored in storage method 3 to storage method 2. For another example, when the user of the host 110 thinks that the performance of the storage system 100 needs to be converted to a high-capacity direction, the host 110 can initiate an optimization request to the storage management device 120, and the storage management device 120 reconfirms the storage method of the data according to the optimization request and Statistics, or select some data to upgrade its storage method to a storage method that occupies less capacity, for example, change the file originally stored in storage method 1 to storage method 2.
对第一预设条件是C时进行说明。在一些实施例中,第一存储盘检测到盘内的剩余存储容量小于第一预设阈值内,则向存储管理设备120发出优化请求,用于请求对第一存储盘空间进行优化。例如,存储盘A检测到盘内的全部剩余容量低于阈值#1,则存储盘A向存储管理设备120发出优化请求。应理解,条件A和条件C的区别在于存储管理设备120主动触发还是由第一存储盘触发再向存储管理设备120上报。The case where the first preset condition is C will be described. In some embodiments, when the first storage disk detects that the remaining storage capacity in the disk is less than the first preset threshold, an optimization request is sent to the storage management device 120 for requesting to optimize the space of the first storage disk. For example, storage disk A detects that all remaining capacity in the disk is lower than threshold #1, then storage disk A sends an optimization request to storage management device 120 . It should be understood that the difference between condition A and condition C lies in whether the storage management device 120 actively triggers or is triggered by the first storage disk and then reports to the storage management device 120 .
S202,所述存储管理设备向第一存储盘发送第一指示,所述第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其中所述第一存储方式与所述第一属性具有第一对应关系, 所述第二存储方式与所述第二属性具有第二对应关系。S202. The storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk. The method is converted to the second storage method of the first storage disk, wherein the first storage method has a first corresponding relationship with the first attribute, The second storage manner has a second corresponding relationship with the second attribute.
在一些实施例中,第一存储方式可以是SLC存储、MLC存储、TLC存储、QLC存储的任一种。在一些实施例中,第二存储方式可以是SLC存储、MLC存储、TLC存储、QLC存储的任一种。但第一存储方式不同于第二存储方式。例如,第一存储方式为SLC存储,第二存储方式可以为MLC存储。再例如,第一存储方式为SLC存储,第二存储方式可以为QLC存储。应理解,第一存储方式和第二存储方式是针对同一文件在不同时间下的存储方式。In some embodiments, the first storage mode may be any one of SLC storage, MLC storage, TLC storage, and QLC storage. In some embodiments, the second storage mode may be any one of SLC storage, MLC storage, TLC storage, and QLC storage. But the first storage method is different from the second storage method. For example, the first storage mode is SLC storage, and the second storage mode may be MLC storage. For another example, the first storage mode is SLC storage, and the second storage mode may be QLC storage. It should be understood that the first storage manner and the second storage manner are storage manners for the same file at different times.
对“第一指示”进行说明。The "first instruction" will be described.
在一些实施例中,第一指示可以是目标数据的属性标签。In some embodiments, the first indication may be an attribute label of the target data.
在一些实施例中,第一指示也可以是指示目标数据的属性标签由第一属性更新为第二属性的信息。In some embodiments, the first indication may also be information indicating that the attribute label of the target data is updated from the first attribute to the second attribute.
在一些实施例中,第一指示还可以是直接指示目标数据的第二存储方式的信息。In some embodiments, the first indication may also be information directly indicating the second storage manner of the target data.
在一些实施例中,存储管理设备120和第一存储盘之间存在第一接口,该第一接口用于存储管理设备120更新目标数据的属性标签时自动获取目标数据更新后的属性标签的值。In some embodiments, there is a first interface between the storage management device 120 and the first storage disk, and the first interface is used to automatically obtain the value of the updated attribute label of the target data when the storage management device 120 updates the attribute label of the target data .
在一些实施例中,可以在标准SSD盘上设置该第一接口,以实现本发明实施例所述的方法。In some embodiments, the first interface can be set on a standard SSD disk to implement the method described in the embodiment of the present invention.
S203,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式。S203, the first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction.
该步骤与上述S304相同。This step is the same as the above S304.
可选地,第一存储盘可以对所存储的目标数据也设置属性标签,该属性标签可以是一种标识,例如flag。例如,第一存储盘设置数据#1的属性标签为属性#2。Optionally, the first storage disk may also set an attribute tag for the stored target data, and the attribute tag may be an identifier, such as a flag. For example, the attribute label of the first disk setting data #1 is attribute #2.
可选地,第一存储盘可以根据属性标签的值确定目标数据的第二存储方式。例如,数据1的属性标签的值由属性#1更新为属性#2,由于属性#1对应存储方式#1,属性#2对应存储方式#2,则第一存储盘将数据1由存储方式#1转换为存储方式#2。Optionally, the first storage disk may determine the second storage manner of the target data according to the value of the attribute tag. For example, the value of the attribute label of data 1 is updated from attribute #1 to attribute #2. Since attribute #1 corresponds to storage mode #1 and attribute #2 corresponds to storage mode #2, the first storage disk will change data 1 from storage mode # 1 converts to storage mode #2.
第一存储盘内对目标数据由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其步骤可以为:将目标数据从第一区域迁移到第二区域,第一区域的存储粒度与第二区域的存储粒度不同,例如,第一区域的存储粒度为SLC颗粒,第二区域的存储粒度为QLC颗粒。应理解,第一区域和第二区域都在该第一存储盘内,因此该目标数据在存储管理设备120记录的位置仍然在第一存储盘内,只是第一存储盘内所记录的该目标数据的具体存储位置发生了变化。换言之,第一存储盘只需要根据第二属性执行对目标数据的存储位置迁移即可,并不需要向存储管理设备120报告目标数据的具体存储位置。The target data in the first storage disk is converted from the first storage method of the first storage disk to the second storage method of the first storage disk, and the steps may be: migrating the target data from the first area to the second area, the storage granularity of the first area is different from that of the second area, for example, the storage granularity of the first area is SLC granules, and the storage granularity of the second area is QLC granules. It should be understood that both the first area and the second area are in the first storage disk, so the location where the target data is recorded in the storage management device 120 is still in the first storage disk, only the object recorded in the first storage disk The specific storage location of the data has changed. In other words, the first storage disk only needs to migrate the storage location of the target data according to the second attribute, and does not need to report the specific storage location of the target data to the storage management device 120 .
可选地,将数据以PLOG为单元进行写入以及存储模式转换,例如,目录1下有文件1,文件2,则目录1的元数据,文件1的元数据,文件2的元数据存入PLOG1内,并且PLOG1的属性标签为属性#1,由于PLOG1的访问频率高于第一频率阈值,因此PLOG1的属性标签更新为属性#2,则PLOG1的全部数据的存储方式应当由存储方式#1更换为存储方式#2。第一存储盘的存储区域包括QLC存储区域和SLC存储区域,则存储盘A将PLOG1迁移到盘内的SLC区域,虽然PLOG1在盘内的实际存储空间发生了 变化,但由于PLOG1对应的数据仍在第一存储盘内,并且PLOG1内的每个数据的位置不变,因此,无需向存储管理设备120上报该PLOG1的具体位置。Optionally, the data is written in PLOG as a unit and the storage mode is converted. For example, if there are file 1 and file 2 under directory 1, the metadata of directory 1, the metadata of file 1, and the metadata of file 2 are stored in In PLOG1, and the attribute label of PLOG1 is attribute #1, since the access frequency of PLOG1 is higher than the first frequency threshold, the attribute label of PLOG1 is updated to attribute #2, then the storage method of all data of PLOG1 should be changed from storage method #1 Change to storage mode #2. The storage area of the first storage disk includes the QLC storage area and the SLC storage area, then storage disk A migrates PLOG1 to the SLC area on the disk, although the actual storage space of PLOG1 in the disk has changed However, since the data corresponding to PLOG1 is still in the first storage disk, and the location of each data in PLOG1 remains unchanged, there is no need to report the specific location of PLOG1 to the storage management device 120 .
图6示出了本发明实施例提供的一种存储方法600的示意性流程图,结合图6对本发明提供的存储方法600进行说明。FIG. 6 shows a schematic flowchart of a storage method 600 provided by an embodiment of the present invention, and the storage method 600 provided by the present invention will be described with reference to FIG. 6 .
在一些实施例中,属性标签与存储方式的对应关系可以由第一存储盘自主确定。In some embodiments, the correspondence between the attribute tag and the storage mode may be independently determined by the first storage disk.
S601,第一存储盘确定第一存储盘内属性标签与存储方式之间的对应关系。S601. The first storage disk determines a correspondence between attribute tags and storage modes in the first storage disk.
在一些实施例中,该步骤可以例如包括根据第一存储盘的容量确定属性标签与存储方式之间的对应关系。可选地,当第一存储盘的容量满足第三预设条件时,第一存存储盘修改属性标签与存储方式之间的对应关系,该第三预设条件可以例如是第一存储盘的剩余容量小于第二预设阈值。第一存储盘的剩余容量小于第二预设阈值可以例如是第一存储盘中的存储方式#1对应的容量低于阈值#2,该阈值#2可以例如是1GB。In some embodiments, this step may, for example, include determining the correspondence between the attribute label and the storage mode according to the capacity of the first storage disk. Optionally, when the capacity of the first storage disk satisfies a third preset condition, the first storage disk modifies the correspondence between the attribute label and the storage mode. The third preset condition may be, for example, the The remaining capacity is less than a second preset threshold. The remaining capacity of the first storage disk being smaller than the second preset threshold may be, for example, that the capacity corresponding to storage mode #1 in the first storage disk is lower than threshold #2, and the threshold #2 may be, for example, 1 GB.
在一些实施例中,该步骤可以是第一存储盘预置有属性标签与存储方式之间的对应关系。换言之,属性标签与存储方式之间的对应关系可以为协议中定义好的。In some embodiments, this step may be that the first storage disk is preset with a correspondence between attribute tags and storage modes. In other words, the correspondence between attribute tags and storage methods can be defined in the protocol.
S602,存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式。S602. The storage management device updates an attribute label of the target data from a first attribute to a second attribute, where the attribute label is used to indicate a storage manner of the target data.
该步骤的说明与S201相同,为避免冗余,可参见前文,在此不再赘述。The description of this step is the same as that of S201. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
S603,所述存储管理设备向第一存储盘发送第一指示,所述第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其中所述第一存储方式与所述第一属性具有第一对应关系,所述第二存储方式与所述第二属性具有第二对应关系。S603. The storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk. The mode is converted to the second storage mode of the first storage disk, wherein the first storage mode has a first correspondence with the first attribute, and the second storage mode has a second correspondence with the second attribute. relation.
该步骤的说明与S202相同,避免冗余,可参见前文,在此不再赘述。The description of this step is the same as that of S202, to avoid redundancy, refer to the above, and will not be repeated here.
S604,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方式转换为第一存储盘的第二存储方式。。S604. The first storage disk converts the storage manner of the target data from the first storage manner of the first storage disk to the second storage manner of the first storage disk according to the first instruction. .
该步骤的说明与S203相同,为避免冗余,可参见前文,在此不再赘述。The description of this step is the same as that of S203. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
应理解,第一存储盘决定目标数据的存储方式,而存储管理设备120仅仅给目标数据确定目标数据的属性标签并且第一存储盘也并不需要告知存储管理设备120目标数据最终的存储方式。该方式可以使得第一存储盘自主的调整盘内数据的存储方式,并且存储管理设备120可以节省调控的负担以及节省存储系统100的信令开销。It should be understood that the first storage disk determines the storage method of the target data, and the storage management device 120 only determines the attribute label of the target data for the target data and the first storage disk does not need to inform the storage management device 120 of the final storage method of the target data. This method can enable the first storage disk to independently adjust the storage method of data in the disk, and the storage management device 120 can save the burden of regulation and the signaling overhead of the storage system 100 .
图7示出了本发明实施例提供的存储方法700的示意性流程图。FIG. 7 shows a schematic flowchart of a storage method 700 provided by an embodiment of the present invention.
结合图7对本发明实施例提供的存储方法700进行说明。The storage method 700 provided by the embodiment of the present invention will be described with reference to FIG. 7 .
S701,存储管理设备接收到目标数据的写入请求。S701. The storage management device receives a write request of target data.
该步骤例如可以是在目标数据写入第一存储盘之前。This step may be, for example, before the target data is written into the first storage disk.
S702,存储管理设备响应于写入请求,确定目标数据的属性标签为第一属性,属性标签用于指示所述目标数据的存储方式。S702. In response to the write request, the storage management device determines that the attribute tag of the target data is the first attribute, where the attribute tag is used to indicate a storage manner of the target data.
可选地,存储管理设备响应于写入请求,根据第二信息确定目标数据的属性标签为第一属性。Optionally, in response to the write request, the storage management device determines, according to the second information, that the attribute tag of the target data is the first attribute.
可选地,第二信息可以包括目标数据的固有属性信息。Optionally, the second information may include inherent attribute information of the target data.
在初次写入数据时,存储管理设备120还可以根据目标数据的固有属性信息和关系#5确定目标数据的第一属性,关系#5为数据的固有属性信息和第一属性的关系。 When writing data for the first time, the storage management device 120 may also determine the first attribute of the target data according to the inherent attribute information of the target data and relationship #5, which is the relationship between the inherent attribute information of the data and the first attribute.
表5
table 5
关系#5可以如表5所示。例如,数据1为目录元文件,则存储管理设备120确定数据1的属性标签为属性#1。又例如,数据2为大文件(大小大于等于100MB)的数据,则存储管理设备120确定数据2的属性标签为属性#2。Relationship #5 may be as shown in Table 5. For example, if data 1 is a directory metafile, the storage management device 120 determines that the attribute tag of data 1 is attribute #1. For another example, if the data 2 is data of a large file (size greater than or equal to 100MB), the storage management device 120 determines that the attribute label of the data 2 is attribute #2.
在一些实施例中,目标数据的大小可以为存储盘存储的最小单元,例如可以是8kb。在另一些实施例中,第一存储盘是PLOG SSD盘,并且目标数据可以是一个PLOG。PLOG盘可以是提供PLOG接口的SSD盘,PLOG就是该PLOG SSD盘中一段支持追加写的,命名的,字节级地址空间的封装,一个SSD可包含多个PLOG。在该PLOG SSD盘中新增一个PLOG时,可以指明该PLOG的ID和属性,例如,指明ID为PLOG1的PLOG的属性标签为属性#2。In some embodiments, the size of the target data may be the smallest unit stored on the storage disk, for example, it may be 8kb. In other embodiments, the first storage disk is a PLOG SSD disk, and the target data can be a PLOG. A PLOG disk can be an SSD disk that provides a PLOG interface. A PLOG is an encapsulation of a section of the PLOG SSD disk that supports additional writing, named, and byte-level address space. One SSD can contain multiple PLOGs. When adding a new PLOG to the PLOG SSD disk, the ID and attribute of the PLOG can be specified. For example, the attribute label of the PLOG whose ID is PLOG1 is indicated as attribute #2.
可选地,可以将同一目录下的多个相同或相似类型的数据放到同一PLOG内,例如,目录1下有文件1,文件2,则目录1的元数据,文件1的元数据,文件2的元数据存入PLOG1内。这样,在后续的存储方式转换时,可以PLOG为单元进行转换。应理解,由于同一目录下的文件一般是同时读取的,其统计特征一般也是相同的,而相同或相近的类型的数据则也一般采取相同的存储方式,因此,可以减少信令交互,降低存储管理设备120的管理成本。Optionally, multiple data of the same or similar type in the same directory can be placed in the same PLOG. For example, if there are file 1 and file 2 in directory 1, then the metadata of directory 1, the metadata of file 1, and file 2 metadata is stored in PLOG1. In this way, when the subsequent storage mode is converted, the PLOG can be converted as a unit. It should be understood that since the files in the same directory are generally read at the same time, their statistical characteristics are generally the same, and the same or similar types of data are generally stored in the same way, so signaling interactions can be reduced and The management cost of the storage management device 120 .
S703,所述存储管理设备向第一存储盘发送第四指示,所述第四指示用于指示所述第一存储盘将所述目标数据的存储方式为第一存储方式,其中所述第一存储方式与所述第一属性具有第一对应关系。S703. The storage management device sends a fourth indication to the first storage disk, where the fourth indication is used to instruct the first storage disk to store the target data in a first storage manner, where the first The storage mode has a first corresponding relationship with the first attribute.
可选地,第四指示可以是目标数据的属性标签。Optionally, the fourth indication may be an attribute label of the target data.
可选地,第四指示也可以是指示目标数据的属性标签由空更新为第一属性的信息。Optionally, the fourth indication may also be information indicating that the attribute label of the target data is updated from null to the first attribute.
可选地,第四指示还可以是直接指示目标数据的第一储方式的信息。Optionally, the fourth indication may also be information directly indicating the first storage mode of the target data.
S704,第一存储盘接收第四指示,根据第四指示以第一存储方式存储目标数据。S704. The first storage disk receives the fourth indication, and stores the target data in the first storage manner according to the fourth indication.
该步骤的说明与S203类似,为避免冗余,可参见前文,在此不再赘述。The description of this step is similar to that of S203. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
S705,存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式。S705. The storage management device updates the attribute label of the target data from the first attribute to the second attribute, where the attribute label is used to indicate a storage manner of the target data.
该步骤的说明与S201相同,为避免冗余,可参见前文,在此不再赘述。The description of this step is the same as that of S201. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
S706,所述存储管理设备向第一存储盘发送第一指示,所述第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其中所述第一存储方式与所述第一属性具有第一对应关系,所述第二存储方式与所述第二属性具有第二对应关系。S706. The storage management device sends a first indication to the first storage disk, where the first indication is used to instruct the first storage disk to change the storage mode of the target data from the first storage method of the first storage disk. The mode is converted to the second storage mode of the first storage disk, wherein the first storage mode has a first correspondence with the first attribute, and the second storage mode has a second correspondence with the second attribute. relation.
该步骤的说明与S202相同,为避免冗余,可参见前文,在此不再赘述。The description of this step is the same as that of S202. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
S707,第一存储盘根据第一指示将目标数据的存储方式由第一存储盘的第一存储方 式转换为第一存储盘的第二存储方式。该步骤的说明与S203相同,为避免冗余,可参见前文,在此不再赘述。S707. According to the first instruction, the first storage disk changes the storage mode of the target data from the first storage method of the first storage disk to format to the second storage mode of the first storage disk. The description of this step is the same as that of S203. To avoid redundancy, reference may be made to the foregoing, and details will not be repeated here.
上文结合图1至图7详细的描述了本发明实施例的方法实施例,下面结合图8至图10,详细描述本发明实施例的装置实施例。应理解,方法实施例的描述与装置实施例的描述相互对应,因此,未详细描述的部分可以参见前面方法实施例。The method embodiment of the embodiment of the present invention is described in detail above with reference to FIG. 1 to FIG. 7 , and the device embodiment of the embodiment of the present invention is described in detail below with reference to FIG. 8 to FIG. 10 . It should be understood that the descriptions of the method embodiments correspond to the descriptions of the device embodiments, therefore, for parts not described in detail, reference may be made to the foregoing method embodiments.
图8是本发明实施例提供的存储管理设备800的示意性结构图。图8中的存储管理设备800可以是图1的存储管理设备120的一个具体的例子。图8所示的存储管理设备800可以用于执行图2至图7所示的方法,并且可以具体实现图1至图7所示的实施例,为避免冗余,不再重复描述。FIG. 8 is a schematic structural diagram of a storage management device 800 provided by an embodiment of the present invention. The storage management device 800 in FIG. 8 may be a specific example of the storage management device 120 in FIG. 1 . The storage management device 800 shown in FIG. 8 can be used to execute the methods shown in FIGS. 2 to 7 , and can specifically implement the embodiments shown in FIGS. 1 to 7 . To avoid redundancy, the description will not be repeated.
图8所示的存储管理设备800包括处理单元801和发送单元802。The storage management device 800 shown in FIG. 8 includes a processing unit 801 and a sending unit 802 .
该处理单元801可以执行图2所示的方法中的步骤S201。The processing unit 801 may execute step S201 in the method shown in FIG. 2 .
该处理单元801还可以执行图3所示的方法中的步骤S301。The processing unit 801 may also execute step S301 in the method shown in FIG. 3 .
该处理单元801还可以执行图4所示的方法中的步骤S401、S403。The processing unit 801 may also execute steps S401 and S403 in the method shown in FIG. 4 .
该处理单元801还可以执行图5所示的方法中的步骤S503。The processing unit 801 may also execute step S503 in the method shown in FIG. 5 .
该处理单元801还可以执行图6所示的方法中的步骤S602。The processing unit 801 may also execute step S602 in the method shown in FIG. 6 .
该处理单元801还可以执行图7所示的方法中的步骤S701、S702、S705。The processing unit 801 may also execute steps S701, S702, and S705 in the method shown in FIG. 7 .
该发送单元802可以执行图2所示的方法中的步骤S202。The sending unit 802 may execute step S202 in the method shown in FIG. 2 .
该发送单元802可以执行图3所示的方法中的步骤S302、S303。The sending unit 802 may execute steps S302 and S303 in the method shown in FIG. 3 .
该发送单元802可以执行图4所示的方法中的步骤S402、S404。The sending unit 802 may execute steps S402 and S404 in the method shown in FIG. 4 .
该发送单元802可以执行图5所示的方法中的步骤S501。The sending unit 802 may execute step S501 in the method shown in FIG. 5 .
该发送单元802可以执行图6所示的方法中的步骤S603。The sending unit 802 may execute step S603 in the method shown in FIG. 6 .
该发送单元802可以执行图7所示的方法中的步骤S703、S706。The sending unit 802 may execute steps S703 and S706 in the method shown in FIG. 7 .
在一些实施例中,该存储管理设备800还包括接收单元(图中未示出),该接收单元可以执行图5所示的方法中的步骤S502。In some embodiments, the storage management device 800 further includes a receiving unit (not shown in the figure), and the receiving unit can execute step S502 in the method shown in FIG. 5 .
图9是本发明实施例提供的存储盘900的示意性结构图。图9中的存储盘900可以是图1的存储节点的一个具体的例子。图9所示的存储管理设备900可以用于执行图2至图7所示的方法,并且可以具体实现图1至图7所示的实施例,为避免冗余,不再重复描述。FIG. 9 is a schematic structural diagram of a storage disk 900 provided by an embodiment of the present invention. The storage disk 900 in FIG. 9 may be a specific example of the storage node in FIG. 1 . The storage management device 900 shown in FIG. 9 can be used to execute the methods shown in FIGS. 2 to 7 , and can specifically implement the embodiments shown in FIGS. 1 to 7 . To avoid redundancy, the description will not be repeated.
图9所示的存储盘900包括接收单元901和处理单元902。The storage disk 900 shown in FIG. 9 includes a receiving unit 901 and a processing unit 902 .
该接收单元901可以执行图2所示的方法中的步骤S202。The receiving unit 901 may execute step S202 in the method shown in FIG. 2 .
该接收单元901还可以执行图3所示的方法中的步骤S302。The receiving unit 901 may also execute step S302 in the method shown in FIG. 3 .
该接收单元901还可以执行图4所示的方法中的步骤S402、S404。The receiving unit 901 may also execute steps S402 and S404 in the method shown in FIG. 4 .
该接收单元901还可以执行图5所示的方法中的步骤S501。The receiving unit 901 may also execute step S501 in the method shown in FIG. 5 .
该接收单元901还可以执行图6所示的方法中的步骤S603。The receiving unit 901 may also execute step S603 in the method shown in FIG. 6 .
该接收单元901还可以执行图6所示的方法中的步骤S703、S706。The receiving unit 901 may also execute steps S703 and S706 in the method shown in FIG. 6 .
该处理单元902可以执行图2所示的方法中的步骤S203。The processing unit 902 may execute step S203 in the method shown in FIG. 2 .
该处理单元902可以执行图3所示的方法中的步骤S304。The processing unit 902 may execute step S304 in the method shown in FIG. 3 .
该处理单元902可以执行图4所示的方法中的步骤S405。The processing unit 902 may execute step S405 in the method shown in FIG. 4 .
该处理单元902可以执行图6所示的方法中的步骤S601、S604。 The processing unit 902 may execute steps S601 and S604 in the method shown in FIG. 6 .
该处理单元902可以执行图7所示的方法中的步骤S704、S707。The processing unit 902 may execute steps S704 and S707 in the method shown in FIG. 7 .
在一些实施例中,该存储盘900还包括发送单元(图中未示出),该发送单元可以执行图2所示的方法中的步骤S502。In some embodiments, the storage disk 900 further includes a sending unit (not shown in the figure), and the sending unit can execute step S502 in the method shown in FIG. 2 .
图10是本发明实施例提供的存储系统1000的示意性结构图。存储系统1000包括存储管理设备1001和存储盘1002。该存储管理设备1001可以是上文所述的存储管理设备800,该存储盘1002可以是上文所述的存储盘900。为避免冗余,不再重复描述。FIG. 10 is a schematic structural diagram of a storage system 1000 provided by an embodiment of the present invention. The storage system 1000 includes a storage management device 1001 and a storage disk 1002 . The storage management device 1001 may be the storage management device 800 described above, and the storage disk 1002 may be the storage disk 900 described above. To avoid redundancy, the description will not be repeated.
应理解,在本发明实施例中,术语“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系。例如,A和/或B,可以表示:单独存在A,单独存在B,同时存在A和B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。It should be understood that in the embodiments of the present invention, the term "and/or" is only an association relationship describing associated objects, indicating that there may be three relationships. For example, A and/or B may mean: A exists alone, B exists alone, or both A and B exist simultaneously. In addition, the character "/" in this article generally indicates that the contextual objects are an "or" relationship.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those skilled in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为避免冗余,可参见前文,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, and to avoid redundancy, refer to the preceding , which will not be repeated here.
在本发明所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (29)

  1. 一种管理存储盘中数据的方法,其特征在于,包括:A method for managing data in a storage disk, comprising:
    存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式;The storage management device updates the attribute label of the target data from the first attribute to the second attribute, and the attribute label is used to indicate the storage mode of the target data;
    所述存储管理设备向第一存储盘发送第一指示,所述第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其中所述第一存储方式与所述第一属性对应,所述第二存储方式与所述第二属性对应,所述第一存储方式对应的存储介质不同于所述第二存储方式对应的存储介质。The storage management device sends a first instruction to the first storage disk, where the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk is the second storage method of the first storage disk, wherein the first storage method corresponds to the first attribute, the second storage method corresponds to the second attribute, and the first storage method corresponds to The storage medium is different from the storage medium corresponding to the second storage manner.
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    所述存储管理设备接收所述第一存储盘的容量,所述第一存储盘的容量包括所述第一存储盘内所述第一存储方式对应的容量和/或所述第二存储方式对应的容量。The storage management device receives the capacity of the first storage disk, and the capacity of the first storage disk includes a capacity corresponding to the first storage mode in the first storage disk and/or a capacity corresponding to the second storage mode. capacity.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method according to claim 2, further comprising:
    所述存储管理设备将所述第一存储盘的容量信息显示于用户界面,或者,The storage management device displays the capacity information of the first storage disk on a user interface, or,
    所述存储管理设备向所述第一存储盘发送用于调整所述第一存储方式对应的容量和/或所述第二存储方式对应的容量的指示。The storage management device sends an instruction for adjusting the capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode to the first storage disk.
  4. 根据权利要求1至3中任一项所述的方法,其特征在于,在所述存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,所述方法还包括:The method according to any one of claims 1 to 3, wherein before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the method further comprises:
    所述存储管理设备确定所述第一存储盘内所述属性标签与所述存储方式之间的对应关系;The storage management device determines the correspondence between the attribute tag and the storage mode in the first storage disk;
    所述存储管理设备向所述第一存储盘发送用于指示所述第一存储盘内所述属性标签与所述存储方式之间的对应关系的指示。The storage management device sends an indication to the first storage disk to indicate the correspondence between the attribute tag and the storage mode in the first storage disk.
  5. 根据权利要求4所述的方法,其特征在于,所述存储管理设备确定所述第一存储盘内所述属性标签与所述存储方式之间的对应关系,包括:The method according to claim 4, wherein the storage management device determines the correspondence between the attribute label and the storage mode in the first storage disk, comprising:
    当满足第一预设条件时,所述存储管理设备确定所述第一存储盘内所述属性标签与所述存储方式之间的对应关系,When the first preset condition is met, the storage management device determines the correspondence between the attribute tag and the storage mode in the first storage disk,
    其中所述第一预设条件包括以下至少一项:Wherein the first preset condition includes at least one of the following:
    所述存储管理设备接收到来自主机的优化命令,所述优化命令用于指示所述存储管理设备更新所述第一存储盘内所述属性标签与所述存储方式之间的对应关系;The storage management device receives an optimization command from the host, where the optimization command is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode in the first storage disk;
    所述存储管理设备接收到来自所述第一存储盘的优化请求,所述优化请求用于指示所述存储管理设备更新所述第一存储盘内所述属性标签与所述存储方式之间的对应关系;The storage management device receives an optimization request from the first storage disk, where the optimization request is used to instruct the storage management device to update the relationship between the attribute label and the storage mode in the first storage disk. Correspondence;
    所述第一存储盘的剩余容量小于第一预设阈值。The remaining capacity of the first storage disk is less than a first preset threshold.
  6. 根据权利要求1至5中任一项所述的方法,其特征在于,所述存储管理设备将目标数据的属性标签由第一属性更新为第二属性,包括:The method according to any one of claims 1 to 5, wherein the storage management device updates the attribute label of the target data from the first attribute to the second attribute, comprising:
    所述存储管理设备根据所述目标数据的上层统计信息和/或固有属性信息将所述目标数据的所述属性标签由所述第一属性更新为所述第二属性,所述上层统计信息包括由所述存储管理设备所存储的目标数据的访问频率信息和/或目标数据最后一次被访问的时间,所述目标数据的固有属性信息包括下述信息的一种或多种:所述目标数据的类型、所述目标数据的大小、所述目标数据所属的文件的类型; The storage management device updates the attribute label of the target data from the first attribute to the second attribute according to upper-level statistical information and/or inherent attribute information of the target data, the upper-level statistical information including The access frequency information of the target data stored by the storage management device and/or the time when the target data was last accessed, the intrinsic attribute information of the target data includes one or more of the following information: the target data type, the size of the target data, the type of the file to which the target data belongs;
    或者,所述存储管理设备根据所述目标数据的优先级等级将所述目标数据的所述属性标签由所述第一属性更新为所述第二属性,所述目标数据的优先级等级是根据所述目标数据的固有属性信息确定的,所述优先级等级用于确定所述目标数据参与存储模式转换的优先程度。Or, the storage management device updates the attribute label of the target data from the first attribute to the second attribute according to the priority level of the target data, and the priority level of the target data is based on Determined by the inherent attribute information of the target data, the priority level is used to determine the priority of the target data to participate in storage mode conversion.
  7. 根据权利要求1至6中任一项所述的方法,其特征在于,在所述存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,所述方法还包括:The method according to any one of claims 1 to 6, wherein before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the method further comprises:
    所述存储管理设备接收所述目标数据的写入请求;The storage management device receives a write request of the target data;
    响应于所述写入请求,所述存储管理设备确定所述目标数据的属性标签为所述第一属性;In response to the write request, the storage management device determines that the attribute tag of the target data is the first attribute;
    所述存储管理设备向所述第一存储盘发送用于指示所述第一存储盘以所述第一存储方式存储所述目标数据的指示。The storage management device sends an instruction for instructing the first storage disk to store the target data in the first storage manner to the first storage disk.
  8. 根据权利要求7所述的方法,其特征在于,在所述存储管理设备将目标数据的属性标签由第一属性更新为第二属性之前,所述方法还包括:The method according to claim 7, wherein before the storage management device updates the attribute label of the target data from the first attribute to the second attribute, the method further comprises:
    所述存储管理设备向第二存储盘发送用于指示所述第二存储盘以所述第一存储方式存储所述目标数据的副本的指示;The storage management device sends an instruction for instructing the second storage disk to store a copy of the target data in the first storage manner to the second storage disk;
    响应于所述存储管理设备将目标数据的属性标签由第一属性更新为第二属性,所述存储管理设备向所述第二存储盘发送用于指示所述第二存储盘将所述目标数据的副本的存储方式由所述第一存储方式转换为所述第二存储方式的指示。In response to the storage management device updating the attribute label of the target data from the first attribute to the second attribute, the storage management device sends a message to the second storage disk for instructing the second storage disk to update the target data An indication that the storage mode of the copy of the copy is converted from the first storage mode to the second storage mode.
  9. 一种管理存储盘中数据的方法,其特征在于,包括:A method for managing data in a storage disk, comprising:
    存储盘接收存储管理设备发送的第一指示;The storage disk receives the first instruction sent by the storage management device;
    所述存储盘根据所述第一指示将所述目标数据的存储方式由所述存储盘的第一存储方式转换为所述存储盘的第二存储方式,所述第一存储方式对应的存储介质不同于所述第二存储方式对应的存储介质。The storage disk converts the storage method of the target data from the first storage method of the storage disk to the second storage method of the storage disk according to the first instruction, and the storage medium corresponding to the first storage method It is different from the storage medium corresponding to the second storage manner.
  10. 根据权利要求9所述的方法,其特征在于,所述存储盘根据所述第一指示将所述目标数据的存储方式由所述存储盘的第一存储方式转换为所述存储盘的第二存储方式包括:The method according to claim 9, wherein the storage disk converts the storage mode of the target data from the first storage mode of the storage disc to the second storage mode of the storage disc according to the first instruction. Storage methods include:
    所述存储盘将所述目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式,其中所述第一属性与所述第一存储方式对应,所述第二属性与所述第二存储方式对应;The storage disk updates the attribute label of the target data from a first attribute to a second attribute, and the attribute label is used to indicate a storage mode of the target data, wherein the first attribute is the same as the first storage mode Correspondingly, the second attribute corresponds to the second storage mode;
    所述存储盘根据所述属性标签将目标数据的存储方式由所述存储盘的第一存储方式转换为所述存储盘的第二存储方式。The storage disk converts the storage manner of the target data from the first storage manner of the storage disk to the second storage manner of the storage disk according to the attribute tag.
  11. 根据权利要求10所述的方法,其特征在于,在所述存储盘接收存储管理设备发送的第一指示之前,所述方法还包括:The method according to claim 10, wherein before the storage disk receives the first instruction sent by the storage management device, the method further comprises:
    所述存储盘接收所述存储管理设备发送的用于指示所述存储盘内所述属性标签与所述存储方式之间的对应关系的指示。The storage disk receives the indication sent by the storage management device for indicating the correspondence between the attribute tag and the storage mode in the storage disk.
  12. 根据权利要求10或11所述的方法,其特征在于,所述方法还包括:The method according to claim 10 or 11, wherein the method further comprises:
    所述存储盘向所述存储管理设备发送所述存储盘的容量,所述存储盘的容量包括所述存储盘内所述第一存储方式对应的容量和/或所述第二存储方式对应的容量。The storage disk sends the capacity of the storage disk to the storage management device, and the capacity of the storage disk includes a capacity corresponding to the first storage mode and/or a capacity corresponding to the second storage mode in the storage disk. capacity.
  13. 根据权利要求9至12中任一项所述的方法,其特征在于,在所述存储盘接收存 储管理设备发送的第一指示之前,所述方法还包括:The method according to any one of claims 9 to 12, characterized in that receiving the stored Before the first instruction sent by the storage management device, the method further includes:
    所述存储盘接收用于指示所述存储盘以所述第一存储方式存储所述目标数据的指示。The storage disk receives an indication for instructing the storage disk to store the target data in the first storage manner.
  14. 一种存储管理设备,其特征在于,包括:A storage management device, characterized in that it includes:
    处理单元,用于将目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式;a processing unit, configured to update the attribute label of the target data from the first attribute to the second attribute, the attribute label being used to indicate the storage mode of the target data;
    发送单元,用于向第一存储盘发送第一指示,所述第一指示用于指示所述第一存储盘将所述目标数据的存储方式由所述第一存储盘的第一存储方式转换为所述第一存储盘的第二存储方式,其中所述第一存储方式与所述第一属性具有第一对应关系,所述第二存储方式与所述第二属性具有第二对应关系,所述第一存储方式对应的存储介质不同于所述第二存储方式对应的存储介质。a sending unit, configured to send a first instruction to the first storage disk, the first instruction is used to instruct the first storage disk to convert the storage method of the target data from the first storage method of the first storage disk is a second storage mode of the first storage disk, wherein the first storage mode has a first corresponding relationship with the first attribute, and the second storage mode has a second corresponding relationship with the second attribute, The storage medium corresponding to the first storage manner is different from the storage medium corresponding to the second storage manner.
  15. 根据权利要求14所述的存储管理设备,其特征在于,所述存储管理设备还包括接收单元,用于接收所述第一存储盘的容量,所述第一存储盘的容量包括所述第一存储盘内所述第一存储方式对应的容量和/或所述第二存储方式对应的容量。The storage management device according to claim 14, further comprising a receiving unit configured to receive the capacity of the first storage disk, and the capacity of the first storage disk includes the first The capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode in the storage disk.
  16. 根据权利要求14或15所述的存储管理设备,其特征在于,The storage management device according to claim 14 or 15, characterized in that,
    所述处理单元还用于将所述第一存储盘的容量信息显示于用户界面;或者,The processing unit is further configured to display the capacity information of the first storage disk on a user interface; or,
    所述发送单元用于向所述第一存储盘发送用于调整第一存储方式对应的容量和/或第二存储方式对应的容量的指示。The sending unit is configured to send an instruction for adjusting the capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode to the first storage disk.
  17. 根据权利要求14至16中任一项所述的存储管理设备,其特征在于,所述处理单元还用于确定所述第一存储盘内所述属性标签与所述存储方式之间的对应关系,The storage management device according to any one of claims 14 to 16, wherein the processing unit is further configured to determine the correspondence between the attribute label and the storage mode in the first storage disk ,
    所述发送单元还用于向所述第一存储盘发送用于指示所述第一存储盘内所述属性标签与所述存储方式之间的对应关系的指示。The sending unit is further configured to send, to the first storage disk, an indication for indicating a correspondence between the attribute tag and the storage mode in the first storage disk.
  18. 根据权利要求17所述的存储管理设备,其特征在于,所述处理单元具体用于当满足第一预设条件时,确定所述第一存储盘内所述属性标签与所述存储方式之间的对应关系,The storage management device according to claim 17, wherein the processing unit is specifically configured to determine the relationship between the attribute label and the storage mode in the first storage disk when the first preset condition is met. corresponding relationship,
    其中所述第一预设条件包括以下至少一项:Wherein the first preset condition includes at least one of the following:
    所述存储管理设备接收到来自主机的优化命令,所述优化命令用于指示所述存储管理设备更新所述第一存储盘内所述属性标签与所述存储方式之间的对应关系;The storage management device receives an optimization command from the host, where the optimization command is used to instruct the storage management device to update the correspondence between the attribute label and the storage mode in the first storage disk;
    所述存储管理设备接收到来自所述第一存储盘的优化请求,所述优化请求用于指示所述存储管理设备更新所述第一存储盘内所述属性标签与所述存储方式之间的对应关系;The storage management device receives an optimization request from the first storage disk, where the optimization request is used to instruct the storage management device to update the relationship between the attribute label and the storage mode in the first storage disk. Correspondence;
    所述第一存储盘的剩余容量小于第一预设阈值。The remaining capacity of the first storage disk is less than a first preset threshold.
  19. 根据权利要求14至18中任一项所述的存储管理设备,所述处理单元具体用于:According to the storage management device according to any one of claims 14 to 18, the processing unit is specifically configured to:
    根据所述目标数据的上层统计信息和/或固有属性信息将所述目标数据的所述属性标签由所述第一属性更新为所述第二属性,所述上层统计信息包括由所述存储管理设备所存储的目标数据的访问频率信息和/或目标数据最后一次被访问的时间,所述目标数据的固有属性信息包括下述信息的一种或多种:所述目标数据的类型、所述目标数据的大小、所述目标数据所属的文件的类型;The attribute label of the target data is updated from the first attribute to the second attribute according to the upper-level statistical information and/or inherent attribute information of the target data, the upper-level statistical information includes information managed by the storage The access frequency information of the target data stored in the device and/or the time when the target data was last accessed, the inherent attribute information of the target data includes one or more of the following information: the type of the target data, the The size of the target data, the type of the file to which the target data belongs;
    或者,根据所述目标数据的优先级等级将所述目标数据的所述属性标签由所述第一属性更新为所述第二属性,所述目标数据的优先级等级是根据所述目标数据的固有属性信息确定的,所述优先级等级用于确定所述目标数据参与存储模式转换的优先程度。 Or, update the attribute label of the target data from the first attribute to the second attribute according to the priority level of the target data, and the priority level of the target data is based on the priority level of the target data Determined by the inherent attribute information, the priority level is used to determine the priority of the target data to participate in the storage mode conversion.
  20. 根据权利要求14至19中任一项所述的存储管理设备,其特征在于,所述接收单元还用于接收所述目标数据的写入请求;The storage management device according to any one of claims 14 to 19, wherein the receiving unit is further configured to receive a write request of the target data;
    所述处理单元还用于响应于所述写入请求,确定所述目标数据的属性标签为所述第一属性;The processing unit is further configured to determine that the attribute label of the target data is the first attribute in response to the write request;
    所述发送单元还用于向所述第一存储盘发送用于指示所述第一存储盘以所述第一存储方式存储所述目标数据的指示。The sending unit is further configured to send an indication to the first storage disk to instruct the first storage disk to store the target data in the first storage manner.
  21. 根据权利要求14至20中任一项所述的存储管理设备,其特征在于,所述发送单元还用于向第二存储盘发送用于指示所述第二存储盘以所述第一存储方式存储所述目标数据的副本的指示;The storage management device according to any one of claims 14 to 20, wherein the sending unit is further configured to send to the second storage disk a message indicating that the second storage disk uses the first storage mode storing an indication of a copy of said target data;
    响应于所述处理单元将目标数据的属性标签由第一属性更新为第二属性,所述发送单元还用于向所述第二存储盘发送用于指示所述第二存储盘将所述目标数据的副本的存储方式由所述第一存储方式转换为所述第二存储方式的指示。Responsive to the processing unit updating the attribute label of the target data from the first attribute to the second attribute, the sending unit is further configured to send to the second storage disk a An indication that the storage mode of the copy of the data is converted from the first storage mode to the second storage mode.
  22. 根据权利要求14至21中任一项所述的存储管理设备,其特征在于,所述第一存储盘是闪存盘,所述第一存储方式对应的存储介质、所述第二存储方式对应的存储介质为下述存储介质中的一种:SLC闪存、MLC闪存、TLC闪存、QLC闪存。The storage management device according to any one of claims 14 to 21, wherein the first storage disk is a flash disk, the storage medium corresponding to the first storage mode, and the storage medium corresponding to the second storage mode The storage medium is one of the following storage media: SLC flash memory, MLC flash memory, TLC flash memory, and QLC flash memory.
  23. 一种存储盘,其特征在于,包括:A storage disk, characterized in that, comprising:
    接收单元,用于接收存储管理设备发送的第一指示;a receiving unit, configured to receive the first indication sent by the storage management device;
    处理单元,用于根据所述第一指示将目标数据的存储方式由所述存储盘的第一存储方式转换为所述存储盘的第二存储方式,所述第一存储方式对应的存储介质不同于所述第二存储方式对应的存储介质。a processing unit, configured to convert the storage mode of the target data from the first storage mode of the storage disk to the second storage mode of the storage disk according to the first instruction, and the storage media corresponding to the first storage mode are different A storage medium corresponding to the second storage manner.
  24. 根据权利要求23所述的存储盘,其特征在于,所述处理单元具体用于将所述目标数据的属性标签由第一属性更新为第二属性,所述属性标签用于指示所述目标数据的存储方式,其中所述第一属性与所述第一存储方式对应,所述第二属性与所述第二存储方式对应;The storage disk according to claim 23, wherein the processing unit is specifically configured to update the attribute label of the target data from a first attribute to a second attribute, and the attribute label is used to indicate that the target data storage method, wherein the first attribute corresponds to the first storage method, and the second attribute corresponds to the second storage method;
    所述处理单元还用于根据所述属性标签将目标数据的存储方式由所述存储盘的第一存储方式转换为所述存储盘的第二存储方式。The processing unit is further configured to convert the storage mode of the target data from the first storage mode of the storage disk to the second storage mode of the storage disk according to the attribute tag.
  25. 根据权利要求23或24所述的存储盘,其特征在于,所述接收单元还用于接收所述存储管理设备发送的用于指示所述存储盘内所述属性标签与所述存储方式之间的对应关系的指示。The storage disk according to claim 23 or 24, wherein the receiving unit is further configured to receive information sent by the storage management device for indicating the difference between the attribute label and the storage method in the storage disk. indication of the corresponding relationship.
  26. 根据权利要求23至25中任一项所述的存储盘,其特征在于,所述存储盘还包括发送单元,所述发送单元用于向所述存储管理设备发送所述存储盘的容量,所述存储盘的容量包括所述存储盘内所述第一存储方式对应的容量和/或所述第二存储方式对应的容量。The storage disk according to any one of claims 23 to 25, wherein the storage disk further comprises a sending unit configured to send the capacity of the storage disk to the storage management device, so The capacity of the storage disk includes the capacity corresponding to the first storage mode and/or the capacity corresponding to the second storage mode in the storage disc.
  27. 根据权利要求23至26中任一项所述的存储盘,其特征在于,所述接收单元还用于接收指示所述存储盘以所述第一存储方式存储所述目标数据的指示。The storage disk according to any one of claims 23 to 26, wherein the receiving unit is further configured to receive an instruction instructing the storage disk to store the target data in the first storage manner.
  28. 根据权利要求23至27中任一项所述的存储盘,其特征在于,所述存储盘是闪存盘,所述第一存储方式对应的存储介质、所述第二存储方式对应的存储介质为下述存储介质中的一种:SLC闪存、MLC闪存、TLC闪存、QLC闪存。The storage disk according to any one of claims 23 to 27, wherein the storage disk is a flash disk, and the storage medium corresponding to the first storage mode and the storage medium corresponding to the second storage mode are One of the following storage media: SLC flash memory, MLC flash memory, TLC flash memory, QLC flash memory.
  29. 一种存储系统,其特征在于,包括:如权利要求14-22中任一项所述的存储管 理设备和如权利要求23-28中任一项所述的存储盘。 A storage system, characterized by comprising: the storage tube according to any one of claims 14-22 management device and the storage disk according to any one of claims 23-28.
PCT/CN2023/073766 2022-01-30 2023-01-30 Storage method, storage management device, storage disk, and storage system WO2023143596A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210114438.7 2022-01-30
CN202210114438.7A CN116560561A (en) 2022-01-30 2022-01-30 Storage method, storage management device, storage disk and storage system

Publications (1)

Publication Number Publication Date
WO2023143596A1 true WO2023143596A1 (en) 2023-08-03

Family

ID=87470748

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/073766 WO2023143596A1 (en) 2022-01-30 2023-01-30 Storage method, storage management device, storage disk, and storage system

Country Status (2)

Country Link
CN (1) CN116560561A (en)
WO (1) WO2023143596A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555493A (en) * 2024-01-11 2024-02-13 北京星辰天合科技股份有限公司 Data processing method, system, device, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080215800A1 (en) * 2000-01-06 2008-09-04 Super Talent Electronics, Inc. Hybrid SSD Using A Combination of SLC and MLC Flash Memory Arrays
US20150179269A1 (en) * 2013-12-25 2015-06-25 Aplus Flash Technology, Inc. HYBRID NAND WITH ALL-BL m-PAGE OPERATION SCHEME
CN106843762A (en) * 2017-01-17 2017-06-13 北京联想核芯科技有限公司 The method and solid state hard disc of managing storage area
CN107943713A (en) * 2017-11-22 2018-04-20 深圳忆联信息系统有限公司 A kind of method and solid state hard disc for lifting solid state hard disc reading performance
CN113703681A (en) * 2021-08-26 2021-11-26 杭州海康存储科技有限公司 Hard disk management method and device, hard disk device and storage medium
CN113821158A (en) * 2020-06-20 2021-12-21 华为技术有限公司 Flash memory, storage medium conversion method and computing device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080215800A1 (en) * 2000-01-06 2008-09-04 Super Talent Electronics, Inc. Hybrid SSD Using A Combination of SLC and MLC Flash Memory Arrays
US20150179269A1 (en) * 2013-12-25 2015-06-25 Aplus Flash Technology, Inc. HYBRID NAND WITH ALL-BL m-PAGE OPERATION SCHEME
CN106843762A (en) * 2017-01-17 2017-06-13 北京联想核芯科技有限公司 The method and solid state hard disc of managing storage area
CN107943713A (en) * 2017-11-22 2018-04-20 深圳忆联信息系统有限公司 A kind of method and solid state hard disc for lifting solid state hard disc reading performance
CN113821158A (en) * 2020-06-20 2021-12-21 华为技术有限公司 Flash memory, storage medium conversion method and computing device
CN113703681A (en) * 2021-08-26 2021-11-26 杭州海康存储科技有限公司 Hard disk management method and device, hard disk device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117555493A (en) * 2024-01-11 2024-02-13 北京星辰天合科技股份有限公司 Data processing method, system, device, storage medium and electronic equipment
CN117555493B (en) * 2024-01-11 2024-05-10 北京星辰天合科技股份有限公司 Data processing method, system, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN116560561A (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11922039B2 (en) Storage device that secures a block for a stream or namespace and system having the storage device
US10996863B1 (en) Nonvolatile memory with configurable zone/namespace parameters and host-directed copying of data across zones/namespaces
TWI805323B (en) Storage device
US11023371B2 (en) Memory system and method for controlling nonvolatile memory
WO2017000658A1 (en) Storage system, storage management device, storage device, hybrid storage device, and storage management method
US9075754B1 (en) Managing cache backup and restore
US20200159419A1 (en) System and method for optimization of global data placement to mitigate wear-out of write cache and nand flash
US9021222B1 (en) Managing incremental cache backup and restore
TWI684098B (en) Memory system and control method for controlling non-volatile memory
US10296250B2 (en) Method and apparatus for improving performance of sequential logging in a storage device
US11740801B1 (en) Cooperative flash management of storage device subdivisions
JP2008015769A (en) Storage system and writing distribution method
KR20210027642A (en) Apparatus and method for transmitting map information in memory system
US11416145B2 (en) Efficient space management for high performance writable snapshots
WO2015007155A1 (en) Data storage method and apparatus
WO2023143596A1 (en) Storage method, storage management device, storage disk, and storage system
US20170351428A1 (en) Performance penalty avoidance for solid state drive
US20220350779A1 (en) File system cloning method and apparatus
WO2021035555A1 (en) Data storage method and apparatus for solid state disk and solid state disk (ssd)
TW201606778A (en) Memory system, host device and information processing system
US11256418B2 (en) Logical address history management in memory device
KR20210039185A (en) Apparatus and method for providing multi-stream operation in memory system
KR20200132043A (en) Apparatus and method for sharing data attribute from memory system, data processing system or network server
WO2021243486A1 (en) Data storage method and system, and processor
US20230409200A1 (en) Method and device for data storage

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23746473

Country of ref document: EP

Kind code of ref document: A1