CN113296700A - Storage space management method and device and server - Google Patents

Storage space management method and device and server Download PDF

Info

Publication number
CN113296700A
CN113296700A CN202110423180.4A CN202110423180A CN113296700A CN 113296700 A CN113296700 A CN 113296700A CN 202110423180 A CN202110423180 A CN 202110423180A CN 113296700 A CN113296700 A CN 113296700A
Authority
CN
China
Prior art keywords
storage space
data
space
area
configuration file
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110423180.4A
Other languages
Chinese (zh)
Inventor
刘浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Information Technologies Co Ltd
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 New H3C Information Technologies Co Ltd filed Critical New H3C Information Technologies Co Ltd
Priority to CN202110423180.4A priority Critical patent/CN113296700A/en
Publication of CN113296700A publication Critical patent/CN113296700A/en
Pending legal-status Critical Current

Links

Images

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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • 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/061Improving I/O performance
    • 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
    • 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/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks

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

The specification provides a storage space management method, a storage space management device and a server, and relates to the technical field of communication. A management method of a storage space comprises the following steps: dividing a metadata area and a data area in a storage space of a disk according to a first configuration file and a second configuration file respectively; organizing storage space in the metadata area according to a first configuration file to form a plurality of first data blocks, and generating a first space management tree; organizing storage space in the data area according to a second configuration file to form a plurality of second data blocks, and generating a second space management tree; when information is written into a disk, selecting a free data block from a metadata area or a data area according to a tree identifier carried in a data block application, and writing information to be written into the selected data block. By the method, the read-write performance and the reliability of the local file system of the server can be improved.

Description

Storage space management method and device and server
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method and an apparatus for managing a storage space, and a server.
Background
With the development of technologies such as high-definition video, image processing, video monitoring and the like, the capacity of data stored by users is becoming larger and larger, and the requirements of users on the read-write performance of data in a file system are synchronously increasing. Therefore, the lower read-write performance may cause the delay of user writing data or reading data to increase, reduce the friendliness of the file system, and affect the advancement of datamation.
The local file system, as a component in the file system of distributed storage, directly manages the storage space of the local disk, and when the disk is managed, the storage space is divided into data blocks of the same size. When a data block is written with information, the occupied data block may be scattered in the storage space of the disk, thereby resulting in fragmentation of the storage space, i.e. there is only a small storage space between adjacent, occupied data blocks. Disk fragmentation is a very important factor in the performance of the local file system. When a user needs to write continuous large data blocks into a disk (such as voice call recording, etc.), a large number of disk fragments cause that a local file system cannot apply for a completed disk space to store the large data blocks, so that the problem of retry over time and failure of application of the operation of applying for the storage space of the disk occurs, and the read-write performance of the local file system and the reliability of data read-write are reduced.
Disclosure of Invention
In order to overcome the problems in the related art, the specification provides a storage space management method, a storage space management device and a server.
In combination with the first aspect of the embodiments of the present specification, the present application provides a method for managing a storage space, including:
dividing a metadata area and a data area in a storage space of a disk according to a first configuration file and a second configuration file respectively;
organizing storage space in a metadata area according to a first configuration file to form a plurality of first data blocks, and generating a first space management tree, wherein the first data blocks are managed through the first space management tree;
organizing storage space in the data area according to a second configuration file to form a plurality of second data blocks, and generating a second space management tree, wherein the plurality of second data blocks are managed through the second space management tree;
when information is written into a disk, selecting a free data block from a metadata area or a data area according to a tree identifier carried in a data block application, and writing information to be written into the selected data block.
Optionally, after organizing the storage space in the data area according to the second configuration file to form a plurality of second data blocks and generating the second space management tree, the method further includes:
if the residual storage space of the metadata area is smaller than a first preset value, scanning the storage space of the data area;
and if the continuous target storage space with the second preset value exists in the residual storage space of the data area, dividing the target storage space into the metadata area, organizing the target storage space into a plurality of first data blocks according to the first configuration file, and updating the first space management tree.
Further, after the scanning the storage space of the data area, the method further includes:
and if the continuous target storage space with the second preset value does not exist in the residual storage space of the data area, alarming.
Optionally, the first configuration file includes a first occupation proportion of a storage space of the disk to the metadata area and a first space value of the storage space occupied by one data block in the metadata area;
the second configuration file comprises a second occupation proportion of the data area to the storage space of the disk and a second space value of the storage space occupied by one data block in the data area, wherein the first space value is smaller than the second space value, and the storage space occupied by the second data block is larger than the storage space occupied by the first data block.
In combination with the second aspect of the embodiments of the present specification, the present application provides a storage space management apparatus, including:
the dividing unit is used for dividing a metadata area and a data area in the storage space of the disk according to the first configuration file and the second configuration file respectively;
the management unit is used for organizing the storage space in the metadata area into a plurality of first data blocks according to a first configuration file and generating a first space management tree, wherein the first data blocks are managed through the first space management tree; organizing storage space in the data area according to a second configuration file to form a plurality of second data blocks, and generating a second space management tree, wherein the plurality of second data blocks are managed through the second space management tree;
and the writing unit is used for selecting an idle data block from the metadata area or the data area according to the tree identifier carried in the data block application when information is written into the disk, and writing the information to be written into the selected data block.
Optionally, the apparatus further includes:
the scanning unit is used for scanning the storage space of the data area if the residual storage space of the metadata area is smaller than a first preset value;
and the management unit is further used for dividing the target storage space into the metadata area if the continuous target storage space with the second preset value exists in the residual storage space of the data area, organizing the target storage space into a plurality of first data blocks according to the first configuration file, and updating the first space management tree.
Further, the management unit is further configured to alarm if the continuous target storage space with the second preset value does not exist in the remaining storage space of the data area.
Optionally, the first configuration file includes a first occupation proportion of a storage space of the disk to the metadata area and a first space value of the storage space occupied by one data block in the metadata area;
the second configuration file comprises a second occupation proportion of the data area to the storage space of the disk and a second space value of the storage space occupied by one data block in the data area, wherein the first space value is smaller than the second space value.
In combination with a third aspect of embodiments herein, the present application provides a server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the above method steps.
In connection with a fourth aspect of embodiments herein, the present application provides a machine-readable storage medium storing machine-executable instructions executable by a processor, the processor being caused by the machine-executable instructions to: implementing any of the above method steps.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, a metadata area and a data area are separately divided in a storage space of a server disk by distinguishing two types of configuration files, a first data block is organized and formed in the metadata area, a second data block is organized and formed in the data area, and space management trees for managing the metadata area and the data area are respectively generated.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a method for managing storage space according to the present application;
FIG. 2 is a schematic diagram of a disk storage space and a space management tree divided in a storage space management method according to the present application;
fig. 3 is a schematic structural diagram of a storage space management apparatus according to the present application;
fig. 4 is a schematic diagram of a server according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
The present application provides a method for managing a storage space, as shown in fig. 1, including:
and S100, dividing a metadata area and a data area in the storage space of the disk according to the first configuration file and the second configuration file respectively.
On a server (also referred to as a storage device) of the data center, a processor, a memory, and a machine-readable storage medium, which may be a disk in general, the server may manage the disk through a file system.
In the server, a configuration file may be preset, and the server may divide the storage space of the disk based on the configuration file to form a storage area, and organize and form a plurality of data blocks in the storage area. The configuration file may contain the proportion of the disk space occupied by the server and the amount of space required to organize the data blocks.
The server may be provided with a plurality of configuration files according to actual partitioning requirements, and the following description will be given by taking two configuration files, i.e., a first configuration file and a second configuration file, as an example. In the first profile, the occupancy may be set to 5% and in the second profile, the occupancy may be set to 95%. A storage area may be partitioned in the disc based on the first profile, which storage area may be used for storing metadata, subsequently referred to as a metadata area, and a storage area may be partitioned in the disc based on the second profile, which storage area may be used for storing data, subsequently referred to as a data area. Where metadata is descriptive information generated based on writing data to be written to disk.
Taking the storage space of the disk as 100GB (gigabytes ) as an example, based on the first occupancy ratio and the second occupancy ratio, a 5GB metadata area and a 95GB data area can be divided. When the division is performed, the division is performed by using a continuous physical storage space, that is, as shown in fig. 2, a 5GB metadata area is formed by division in advance after the index area of the disk, and a 95GB data area is formed by division after the metadata area. The index area is used for storing the storage location of the directory in the local file system, and the metadata and the data in the data block are read and written based on the index area, which is the same as the current implementation and is not described again.
S101, organizing storage spaces in the metadata area according to a first configuration file to form a plurality of first data blocks, and generating a first space management tree.
S102, organizing the storage space in the data area according to a second configuration file to form a plurality of second data blocks, and generating a second space management tree.
The configuration file may further include a space value, and the space value is used to organize the storage space to form the data block. For example, a first configuration file may include a first space value set to 16KB (kilobyte), a metadata region may include a plurality of first data blocks divided based on the first space value, and a second configuration file may include a plurality of second data blocks divided based on a second space value set to 1MB (megabyte).
For each storage region, the server may create a different spatial management tree to manage the data blocks formed therein. Thus, the server may create a first spatial management tree to manage the generated plurality of first data blocks with respect to the metadata area, and may create a second spatial management tree to manage the generated plurality of second data blocks with respect to the data area. Each space management tree has a corresponding identifier, as shown in fig. 2, a first space management tree corresponding to the metadata region is labeled as space management tree 1, and a second space management tree corresponding to the data region is labeled as space management tree 2. That is, a plurality of first data blocks are managed by the first space management tree (space management tree 1), and a plurality of second data blocks are managed by the second space management tree (space management tree 2).
In addition, since the information written into the data area is data that needs to be stored actually, and the information written into the metadata area is descriptive information generated for the data, the first space value can be set smaller than the second space value, so that the storage space occupied by the metadata is far smaller than the storage space occupied by the second data block and larger than the storage space occupied by the first data block. In this way, the storage space of the disk in the server can be more reasonably allocated, so that the server can more effectively manage the information written into the disk.
The specific tree building process may adopt a current tree building method, which is not described herein again.
S103, when information is written into the disk, selecting a free data block from the metadata area or the data area according to the tree identifier carried in the data block application, and writing the information to be written into the selected data block.
After the server completes the storage area division of the disk, the organization and formation of the data blocks and the creation of the space management tree, a write request sent from the outside and data to be written can be received. The server can apply for a storage space from the data area according to the data to be written, and generate metadata corresponding to the data to be written according to the data to be written. The data block application may include an application object identifier, where the application object identifier is used to indicate a storage area of the application storage space.
The information to be written may comprise data and metadata corresponding thereto. When writing the metadata, the application object in the data block application is identified as the space management tree 1, that is, the metadata needs to be written into the data block of the metadata area. At this time, the server may search for the metadata area based on the space management tree 1, select one or more free first data blocks from the metadata area, and write the metadata into the corresponding first data blocks, and the server may also search for the data area based on the space management tree 2, select one or more free second data blocks from the data area, and write the data into the selected second data blocks, thereby completing the write process of the metadata and the data. The specific way of finding and writing is similar to the current implementation and will not be described further herein.
In the embodiment of the present specification, a metadata area and a data area are separately divided in a storage space of a server disk by distinguishing two types of configuration files, a first data block is organized and formed in the metadata area, a second data block is organized and formed in the data area, and space management trees for managing the metadata area and the data area are respectively generated.
During the operation of the server, continuously writing metadata and data will cause the data blocks of both storage regions to be occupied. When the storage area is divided, the storage space occupied by the divided metadata area is relatively small, so that although the data area has a storage space of a space, the metadata area is full, and data cannot be written. In order to avoid the above problem, after the step S102, organizing the storage space in the data area into a plurality of second data blocks according to the second configuration file, and generating the second space management tree, the method further includes:
and S104, if the residual storage space of the metadata area is smaller than a first preset value, scanning the storage space of the data area.
And S105, if continuous target storage spaces with a second preset value exist in the residual storage spaces of the data area, dividing the target storage spaces into the metadata area, organizing the target storage spaces into a plurality of first data blocks according to the first configuration file, and updating the first space management tree.
And continuously updating the use condition of the storage space in the disk in the process of the operation of the server. When the storage space of the disk is divided, more storage space is generally reserved for the data area. Then, when information is continuously written into the disk, the metadata area may have a problem that data cannot be written due to excessive written information, and in order to avoid that the server performs processing when the metadata area is fully written, the server may preset a first preset value to start adjustment of storage spaces of the metadata area and the data area. The first preset value may be a percentage value, a size of a storage space, and the like, which is not limited thereto. For example, the first preset value may be set to 5% of the remaining storage space relative to the storage space occupied by the metadata area, that is, when the remaining storage space is less than 5%, the adjustment of the storage spaces of the metadata area and the data area is started.
When the remaining storage space of the metadata area is smaller than the first preset value, the server may scan the storage space of the data area to determine the state and continuity of the current second data block of the data area. A second preset value may also be set in the server, and the second preset value may also be a percentage value, the size of the storage space, and the like. For example, the second preset value indicates the size of the storage space, which is set to 2GB, and the size of the storage space is composed of the second data block, and of course, the second preset value may be set based on an actual situation, and the size of the second preset value is not limited.
At this time, if the remaining storage space of the data area includes 2GB of storage space, and the 2GB of storage space is physically continuous, then this segment of storage space may be used as the target storage space. The target storage space is processed again based on the first configuration file, the second data blocks contained in the 2GB are reorganized to form a plurality of first data blocks, and the first data blocks are attached to the space management tree 1 to be used as the storage space of the metadata area.
Therefore, the metadata can be continuously written into the metadata area, and correspondingly, the data can be continuously written into the data area, so that the file management of the server is more flexible.
Correspondingly, after the step S102, scanning the storage space of the data area, the method further includes:
and S106, if the continuous target storage space with the second preset value does not exist in the residual storage space of the data area, giving an alarm.
If the remaining storage space of the data area does not have the storage space of the second preset value, or although the storage space of the second preset value exists, the storage space is physically discontinuous on the disk, it is indicated that the migration from the storage space of the data area to the metadata area is difficult, and at this time, the server will give an alarm to prompt a worker to manually manage the server.
It should be noted that the target storage space of the determined data area does not necessarily require that the target storage space is continuous on the disk, but the continuous storage space reduces the difficulty of reorganizing and forming a plurality of data blocks based on the first space value when the portion of the storage space is re-divided into the metadata area, and therefore, the continuous storage space is preferentially selected to be migrated to the metadata area. If the difference is not satisfied, a mode of submitting the second preset value can be adopted to determine a section of continuous storage space as much as possible for division, for example, the decrement value can be set to be 100 MB.
Correspondingly, the present application also provides a device for managing storage space, as shown in fig. 3, including:
the dividing unit is used for dividing a metadata area and a data area in the storage space of the disk according to the first configuration file and the second configuration file respectively;
the management unit is used for organizing the storage space in the metadata area into a plurality of first data blocks according to a first configuration file and generating a first space management tree, wherein the first data blocks are managed through the first space management tree; organizing storage space in the data area according to a second configuration file to form a plurality of second data blocks, and generating a second space management tree, wherein the plurality of second data blocks are managed through the second space management tree;
and the writing unit is used for selecting an idle data block from the metadata area or the data area according to the tree identifier carried in the data block application when information is written into the disk, and writing the information to be written into the selected data block.
Optionally, the apparatus further includes:
the scanning unit is used for scanning the storage space of the data area if the residual storage space of the metadata area is smaller than a first preset value;
and the management unit is further used for dividing the target storage space into the metadata area if the continuous target storage space with the second preset value exists in the residual storage space of the data area, organizing the target storage space into a plurality of first data blocks according to the first configuration file, and updating the first space management tree.
Further, the management unit is further configured to alarm if the continuous target storage space with the second preset value does not exist in the remaining storage space of the data area.
Optionally, the first configuration file includes a first occupation proportion of a storage space of the disk to the metadata area and a first space value of the storage space occupied by one data block in the metadata area;
the second configuration file comprises a second occupation proportion of the data area to the storage space of the disk and a second space value of the storage space occupied by one data block in the data area, wherein the first space value is smaller than the second space value, and the storage space occupied by the second data block is larger than the storage space occupied by the first data block.
Correspondingly, the present application also provides a server, as shown in fig. 4, including a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing the method steps of any of the above.
Accordingly, the present application provides a machine-readable storage medium having stored thereon machine-executable instructions executable by a processor, the processor being caused by the machine-executable instructions to: implementing the method steps of any of the above.
The technical scheme provided by the implementation mode of the specification can have the following beneficial effects:
in the embodiment of the present specification, a metadata area and a data area are separately divided in a storage space of a server disk by distinguishing two types of configuration files, a first data block is organized and formed in the metadata area, a second data block is organized and formed in the data area, and space management trees for managing the metadata area and the data area are respectively generated.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only for the purpose of illustrating the preferred embodiments of the present disclosure and is not to be construed as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (10)

1. A method for managing storage space, comprising:
dividing a metadata area and a data area in a storage space of a disk according to a first configuration file and a second configuration file respectively;
organizing storage space in the metadata area according to the first configuration file to form a plurality of first data blocks, and generating a first space management tree, wherein the plurality of first data blocks are managed through the first space management tree;
organizing storage space in the data area according to the second configuration file to form a plurality of second data blocks, and generating a second space management tree, wherein the plurality of second data blocks are managed through the second space management tree;
and when information is written into the disk, selecting an idle data block from the metadata area or the data area according to the tree identifier carried in the data block application, and writing the information to be written into the selected data block.
2. The method of claim 1, further comprising, after said organizing the storage space in the data area into a plurality of second data blocks according to the second configuration file and generating a second space management tree:
if the residual storage space of the metadata area is smaller than a first preset value, scanning the storage space of the data area;
if continuous target storage spaces with a second preset value exist in the residual storage spaces of the data area, dividing the target storage spaces into the metadata area, organizing the target storage spaces into a plurality of first data blocks according to the first configuration file, and updating the first space management tree.
3. The method of claim 2, further comprising, after scanning the storage space of the data area:
and if the continuous target storage space with the second preset value does not exist in the residual storage space of the data area, giving an alarm.
4. The method of claim 1,
the first configuration file comprises a first occupation proportion of a metadata area to a storage space of a disk and a first space value of the storage space occupied by one data block in the metadata area;
the second configuration file comprises a second occupation proportion of a storage space of the data area to the disk and a second space value of the storage space occupied by one data block in the data area, wherein the first space value is smaller than the second space value, and the storage space occupied by the second data block is larger than the storage space occupied by the first data block.
5. An apparatus for managing a storage space, comprising:
the dividing unit is used for dividing a metadata area and a data area in the storage space of the disk according to the first configuration file and the second configuration file respectively;
a management unit, configured to organize storage spaces in the metadata area into a plurality of first data blocks according to the first configuration file, and generate a first space management tree, where the plurality of first data blocks are managed by the first space management tree; organizing storage space in the data area according to the second configuration file to form a plurality of second data blocks, and generating a second space management tree, wherein the plurality of second data blocks are managed through the second space management tree;
and the writing unit is used for selecting a free data block from the metadata area or the data area according to the tree identifier carried in the data block application when information is written into the disk, and writing the information to be written into the selected data block.
6. The apparatus of claim 5, further comprising:
the scanning unit is used for scanning the storage space of the data area if the residual storage space of the metadata area is smaller than a first preset value;
the management unit is further configured to, if a continuous target storage space with a second preset value exists in the remaining storage spaces of the data area, divide the target storage space into the metadata area, organize the target storage space into a plurality of first data blocks according to the first configuration file, and update the first space management tree.
7. The apparatus according to claim 6, wherein the management unit is further configured to perform an alarm if there is no continuous target storage space with the second preset value in the remaining storage space of the data area.
8. The apparatus of claim 5,
the first configuration file comprises a first occupation proportion of a metadata area to a storage space of a disk and a first space value of the storage space occupied by one data block in the metadata area;
the second configuration file comprises a second occupation proportion of a storage space of the data area to the disk and a second space value of the storage space occupied by one data block in the data area, wherein the first space value is smaller than the second space value, and the storage space occupied by the second data block is larger than the storage space occupied by the first data block.
9. A server comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions executable by a processor, the processor being caused by the machine-executable instructions to: carrying out the method steps of any one of claims 1 to 4.
CN202110423180.4A 2021-04-20 2021-04-20 Storage space management method and device and server Pending CN113296700A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110423180.4A CN113296700A (en) 2021-04-20 2021-04-20 Storage space management method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110423180.4A CN113296700A (en) 2021-04-20 2021-04-20 Storage space management method and device and server

Publications (1)

Publication Number Publication Date
CN113296700A true CN113296700A (en) 2021-08-24

Family

ID=77319993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110423180.4A Pending CN113296700A (en) 2021-04-20 2021-04-20 Storage space management method and device and server

Country Status (1)

Country Link
CN (1) CN113296700A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914236A (en) * 2023-01-05 2023-04-04 中国联合网络通信集团有限公司 Storage space distribution adjusting method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1963814A (en) * 2006-11-29 2007-05-16 珠海市泰德企业有限公司 Managing method of data of memorizer
CN103282899A (en) * 2011-12-23 2013-09-04 华为技术有限公司 File system data storage method and access method and device therefor
CN103577470A (en) * 2012-08-03 2014-02-12 上海交通大学 File system and method for improving performances of web server
CN107665098A (en) * 2017-09-05 2018-02-06 联想(北京)有限公司 Information processing method, storage device and computer-readable storage medium
CN108255408A (en) * 2016-12-28 2018-07-06 中国电信股份有限公司 Date storage method and system
CN110795386A (en) * 2018-07-31 2020-02-14 杭州海康威视系统技术有限公司 Data writing method and server
CN111221776A (en) * 2019-12-30 2020-06-02 上海交通大学 Method, system and medium for implementing file system facing nonvolatile memory

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1963814A (en) * 2006-11-29 2007-05-16 珠海市泰德企业有限公司 Managing method of data of memorizer
CN103282899A (en) * 2011-12-23 2013-09-04 华为技术有限公司 File system data storage method and access method and device therefor
CN103577470A (en) * 2012-08-03 2014-02-12 上海交通大学 File system and method for improving performances of web server
CN108255408A (en) * 2016-12-28 2018-07-06 中国电信股份有限公司 Date storage method and system
CN107665098A (en) * 2017-09-05 2018-02-06 联想(北京)有限公司 Information processing method, storage device and computer-readable storage medium
CN110795386A (en) * 2018-07-31 2020-02-14 杭州海康威视系统技术有限公司 Data writing method and server
CN111221776A (en) * 2019-12-30 2020-06-02 上海交通大学 Method, system and medium for implementing file system facing nonvolatile memory

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914236A (en) * 2023-01-05 2023-04-04 中国联合网络通信集团有限公司 Storage space distribution adjusting method and device, electronic equipment and storage medium
CN115914236B (en) * 2023-01-05 2023-07-25 中国联合网络通信集团有限公司 Storage space allocation adjustment method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US7401174B2 (en) File system defragmentation and data processing method and apparatus for an information recording medium
US6823417B2 (en) Memory controller for memory card manages file allocation table
JP4859837B2 (en) Information recording medium access device and data recording method
US7694087B2 (en) Duplicate data storing system, duplicate data storing method, and duplicate data storing program for storage device
US8069306B2 (en) Data area managing method in information recording medium and information processor employing data area managing method
US8589617B2 (en) Write once recording device
US20070288711A1 (en) Snapshot copy management method used for logic volume manager
US20080288710A1 (en) Semiconductor Memory Device and Its Control Method
US7624230B2 (en) Information processing apparatus, information processing method and storage system using cache to reduce dynamic switching of mapping between logical units and logical devices
CN106970765B (en) Data storage method and device
JP2002123421A (en) Remapping control method for flash memory and structure for flash memory therefor
CN109189772B (en) File management method and system for storage medium without file system
US10922276B2 (en) Online file system check
CN113568582B (en) Data management method, device and storage equipment
CN116466879B (en) CXL memory module, memory data replacement method and computer system
US8176103B2 (en) File access method and system
CN113296700A (en) Storage space management method and device and server
CN109753224B (en) Storage structure and storage structure configuration method
EP1623326A2 (en) Storage system class distinction cues for run-time data management
CN109582235B (en) Management metadata storage method and device
CN110764694A (en) Method and system for controlling storage space
CN111913664B (en) Data writing method and device
US8782353B2 (en) Information processing device having data field and operation methods of the same
JP2009205591A (en) Access module, information recording module, and information recording system
CN112052217B (en) Snapshot implementation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210824