A method for realizing data intercommunication between a lustre layered file system and an object storage s3

The rclus-s3 module enables data access between the Lustre hierarchical file system and the object storage S3, solving the problem that Lustre is not suitable for small file applications. It achieves a win-win situation of high bandwidth for large files and high performance for small files, and supports data access between different file systems.

CN117118995BActive Publication Date: 2026-11-27SHENZHEN VIRTUAL CLUSTERS INFORMATION TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310401680.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-04-10
Publication Date
2026-11-27
Estimated Expiration
2043-04-10

AI Technical Summary

Technical Problem

The Lustre hierarchical file system is not suitable for small file applications in cluster design and parallel architecture, cannot meet the high-performance transmission requirements of massive small files, and there are barriers to data access with the object storage s3 interface.

Method used

By deploying the rclus-s3 module, data access between the Lustre parallel hierarchical file system and the object storage S3 is achieved. Using the mkfs.lustre tool, the radosgw-admin interface, and the rclus-s3-admin operation, combined with the file-stream, sqlite-record, and fsapi-convert modules, the file system and the object storage system can communicate with each other and exchange data.

Benefits of technology

It achieves a win-win situation for the Lustre file system, enabling high bandwidth for large files and high performance for massive small files, meeting the needs of high-performance computing and low-latency scenarios, breaking down the barriers between file systems and object storage systems, and supporting data access between different file interface systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117118995B_ABST
    Figure CN117118995B_ABST
Patent Text Reader

Abstract

The application discloses a kind of implementation lustre layered file system and object storage s3 data intercommunication method, comprising the following steps: by mkfs.lustre Tool deployment a set of lustre parallel layered file system, file system is mounted to / data directory;Respectively create mgt, mdt, ost, client four functional components, using file system mounting mode this system is mounted parallel system, provide file system based on posix standard to outside;Configuration object storage system, using radosgw-admin interface tool configuration object storage s3 interface, provide a restful style http data storage access interface to outside;Deployment data conversion module rclus-s3, the subdirectory of previously created parallel layered system is linked with object storage data bucket Operation, by rclus-s3-admin creates relink operation, so that interface intercommunication between file system and object storage system;The application provides a kind of implementation lustre layered file system and object storage s3 data intercommunication method has realized the high-performance transmission of mass small file, reaches the advantages such as win-win effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of network transmission in computing systems, and more particularly to a method for enabling data exchange between the Lustre hierarchical file system and the object storage S3. Background Technology

[0002] The currently available open-source file system Lustre is a layered parallel file system that runs on the Linux operating system and provides a POSIX-compliant file system interface with a cluster-oriented storage architecture. Lustre offers a file system called Lustrefs that can run on kernels from various vendors. Unaffected by hardware architecture, it can be infinitely scaled and expanded in parallel, increasing or decreasing in terms of the number of client nodes, disk storage, and bandwidth. Lustre supports multiple deployment configurations, whose scalability far exceeds that of other production storage systems, including open-source distributed storage systems. Furthermore, Lustre has powerful horizontal scaling capabilities, enabling it to support large storage capacities and handle tens of thousands of simultaneous client accesses. LustreFS leverages the Lent network module to aggregate disk storage resources from multiple servers into a single global namespace. Using this unified global namespace to manage data shields upper-layer users and applications from the underlying physical hardware.

[0003] Lustrefs offers multiple access methods, including NFS, SMB, and HTTP protocols, as well as its built-in client. However, it's ultimately only suitable for POSIX-compliant file system access methods, making it ill-suited for the current era of big data, 5G, and cloud-native computing. Furthermore, Lustrefs' cluster design and parallel architecture are well-suited for scenarios with numerous clients concurrently reading and writing large files, but are currently unsuitable for small file applications, especially massive small file applications like Lots of Small Files (LOSF). Object storage's S3 interface, with its flat storage structure and HTTP-based access requests, is ideal for small file storage, particularly its flat data organization, which can handle massive and high-concurrency small file access. Therefore, a key challenge is combining these two completely different underlying storage methods and even two functional modules with entirely different upper-layer application architectures into a cohesive whole. This would leverage Lustrefs' high-concurrency large file performance while meeting the I / O bandwidth requirements of massive small files, and seamlessly integrate a user-friendly file tree display between the file system and object storage systems. Summary of the Invention

[0004] This invention provides a method for enabling data exchange between the Lustre hierarchical file system and object storage S3, solving the problem that Lustre's cluster design and parallel architecture are not suitable for small file applications. It has the advantages of meeting the high bandwidth requirements of large files while achieving high-performance transmission of massive amounts of small files, thus achieving a win-win situation.

[0005] A method for enabling data access between a Lustre hierarchical file system and object storage S3, according to an embodiment of this application, includes the following steps:

[0006] Deploy a Lustre parallel hierarchical file system using the mkfs.lustre tool and mount the file system to the / data directory;

[0007] Four functional components, mgt, mdt, ost, and client, are created respectively. This system is mounted on the parallel system using a file system mounting method, providing a file system based on the POSIX standard to the outside world.

[0008] Configure the object storage system, and use the radosgw-admin interface tool to configure the object storage S3 interface to provide a RESTful HTTP data storage and access interface to the outside world.

[0009] Deploy the data transformation module rclus-s3 to link the subdirectories of the previously created parallel hierarchical system with the object storage data bucket. Create a relink operation through rclus-s3-admin to enable interoperability between the file system and the object storage system.

[0010] The configuration module sets relevant file conversion strategies, including file writing, deletion, and reading operations, enables automatic conversion, and writes the configuration conversion information to the database, recording some metadata information;

[0011] Configure multi-user virtual sub-file system isolation function, that is, enable different Lustre parallel clients to achieve data interoperability with different object gateways and storage buckets, and achieve logical space isolation.

[0012] Preferably, the method includes the following steps:

[0013] The file-stream function monitors the front-end Lustrefs file system interface.

[0014] Once a client is detected performing read, write, add, or delete operations on a file, the message queue is immediately initialized, and a file retrieval function is registered to it for command execution.

[0015] Message-queue is the network multithreaded module in this module. After receiving a client request, it will call back file-stream to register file processing functions during the message queue queuing phase.

[0016] The sqlite-record database dump process is called repeatedly throughout the file lifecycle of the dumped file. After the file stream triggers the message queue to send a queue message, this database dump function begins to record the metadata information, own group information, and xattr additional attribute values ​​of other files for all files. After recording all these file attribute information, it is sent to the fsapi-convert module via probe to perform object file S3 interface dump.

[0017] Preferably, the method further includes the following steps:

[0018] The node that receives the Probing message from fsapi-convert executes the callback information and replies to file-stream. It uses the convert module to convert the file into a file interface format suitable for object interface access, which mainly involves the file ID, file block information, data body content, and object key-value pairs. Then, it calls the sqlite-record database conversion function to add an external check table record of the corresponding object file information in the original file information.

[0019] The technical solutions provided in this application embodiment may include the following beneficial effects:

[0020] This invention proposes a method for enabling data interoperability between the Lustrefs hierarchical file system and object storage S3. Using this method, when writing a large number of small files and massive amounts of images to Lustrefs, the client directly writes the files to object storage S3. By leveraging object storage's flat, key-value pair-based storage method, metadata dependencies are eliminated, and the barriers between the parallel hierarchical file system and the object storage system are broken down. This enables data interoperability between Lustrefs files transferred to object storage and object storage data transferred to the file system, allowing different file interface systems to coexist and achieve file interoperability. This makes Lustrefs suitable for various high-performance computing workloads and low-density, high-IO, low-latency scenarios, satisfying both the high bandwidth requirements of large files and the high-performance transmission of massive amounts of small files, achieving a win-win situation. Attached Figure Description

[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 and Figure 2 This is a schematic diagram illustrating a method for implementing data exchange between the Lustre hierarchical file system and object storage S3 according to the present invention. Detailed Implementation

[0023] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.

[0025] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0026] This invention utilizes the rclus-s3 conversion module, implemented using this method. This module connects the Lustre parallel hierarchical file system and object storage, providing an S3 interface. The object storage server, acting as a Lustre client, deploys the rclus-s3 module to enable data interoperability. The rclus-s3 module allows two completely different systems to access and store data. This enables the system to be used in various storage scenarios and meet different workloads, enabling S3 object storage for data conversion and the Lustrefs file interface to meet the POSIX standard file system requirements. When an object data bucket is connected to the file system, the rclus-s3 module transparently presents the S3 object as a file to the user interface and allows the results to be written back to the S3 object storage system. The method described in this paper combines the Lustrefs file system with the S3 object interface, establishing a channel for data exchange, storage, and retrieval, enabling the Lustre hierarchical parallel file system and object storage S3 to access, read, and coexist. This enables Lustre to be used in a variety of high-performance computing workloads, low-density high-IO and low-latency scenarios, meeting all customer needs and accelerating the rapid development of big data, cloud computing, and supercomputers.

[0027] Please see Figure 1 and Figure 2 This invention provides a method for enabling data access between the Lustre hierarchical file system and object storage S3, comprising the following steps:

[0028] Deploy a Lustre parallel hierarchical file system using the mkfs.lustre tool and mount the file system to the / data directory;

[0029] Four functional components, mgt, mdt, ost, and client, are created respectively. This system is mounted on the parallel system using a file system mounting method, providing a file system based on the POSIX standard to the outside world.

[0030] Configure the object storage system, and use the radosgw-admin interface tool to configure the object storage S3 interface to provide a RESTful HTTP data storage and access interface to the outside world.

[0031] Deploy the data transformation module rclus-s3 to link the subdirectories of the previously created parallel hierarchical system with the object storage data bucket. Create a relink operation through rclus-s3-admin to enable interoperability between the file system and the object storage system.

[0032] The configuration module sets relevant file conversion strategies, including file writing, deletion, and reading operations, enables automatic conversion, and writes the configuration conversion information to the database, recording some metadata information;

[0033] Configure multi-user virtual sub-file system isolation function, that is, enable different Lustre parallel clients to achieve data interoperability with different object gateways and storage buckets, and achieve logical space isolation.

[0034] The most important part of the entire implementation is the rclus-s3 module, and the design method of this module will be introduced in detail below. This functional module is mainly started on the object storage server node and involves three main functions: initializing the three main components mentioned above in order from bottom to top: file-stream, sqlite-record, and fsapi-convert.

[0035] This is understandable and includes the following steps:

[0036] The file-stream function monitors the front-end Lustrefs file system interface.

[0037] Once a client is detected performing read, write, add, or delete operations on a file, the message queue is immediately initialized, and a file retrieval function is registered to it for command execution.

[0038] Message-queue is the network multithreaded module in this module. After receiving a client request, it will call back file-stream to register file processing functions during the message queue queuing phase.

[0039] The sqlite-record database dump process is called repeatedly throughout the file lifecycle of the dumped file. After the file stream triggers the message queue to send a queue message, this database dump function begins to record the metadata information, own group information, and xattr additional attribute values ​​of other files for all files. After recording all these file attribute information, it is sent to the fsapi-convert module via probe to perform object file S3 interface dump.

[0040] It is understandable that the following steps are also included:

[0041] The node that receives the Probing message from fsapi-convert executes the callback information and replies to file-stream. It uses the convert module to convert the file into a file interface format suitable for object interface access, mainly involving file ID, file block information, data body content, object key-value pairs, etc. Then, it calls the sqlite-record database conversion function to add an external check table record of the corresponding object file information in the original file information.

[0042] The technical solutions provided in this application embodiment may include the following beneficial effects:

[0043] This invention proposes a method for enabling data interoperability between the Lustrefs hierarchical file system and object storage S3. Using this method, when writing a large number of small files and massive amounts of images to Lustrefs, the client directly writes the files to object storage S3. By leveraging object storage's flat, key-value pair-based storage method, metadata dependencies are eliminated, and the barriers between the parallel hierarchical file system and the object storage system are broken down. This enables data interoperability between Lustrefs files transferred to object storage and object storage data transferred to the file system, allowing different file interface systems to coexist and achieve file interoperability. This makes Lustrefs suitable for various high-performance computing workloads and low-density, high-IO, low-latency scenarios, satisfying both the high bandwidth requirements of large files and the high-performance transmission of massive amounts of small files, achieving a win-win situation.

[0044] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A method for enabling data access between a Lustre hierarchical file system and object storage S3, characterized in that, Includes the following steps: Deploy a Lustre parallel hierarchical file system using the mkfs.lustre tool and mount the file system to the / data directory; Four functional components, mgt, mdt, ost, and client, are created respectively. This system is mounted on the parallel system using a file system mounting method, providing a file system based on the POSIX standard to the outside world. Configure the object storage system, and use the radosgw-admin interface tool to configure the object storage S3 interface to provide a RESTful HTTP data storage and access interface to the outside world. Deploy the data transformation module rclus-s3 to link the subdirectories of the previously created parallel hierarchical system with the object storage data buckets. Create a relink operation through rclus-s3-admin to enable interoperability between the file system and the object storage system. Once a client is detected performing read, write, add, or delete operations on a file, the message queue is immediately initialized, and a file retrieval function is registered to it for command execution. Message-queue is the network multithreaded module in this module. After receiving a client request, it will call back file-stream to register file processing functions during the message queue queuing phase. The sqlite-record database dump process is called repeatedly throughout the file lifecycle of the dumped file. After the file stream triggers the message queue to send a queue message, this database dump function begins to record the metadata information, own group information, and xattr additional attribute values ​​of other files for all files. After recording all these file attribute information, it is sent to the fsapi-convert module via probe to perform object file S3 interface dump. The configuration module sets relevant file conversion strategies, including file writing, deletion, and reading operations, enables automatic conversion, and writes the configuration conversion information to the database, recording some metadata information; Configure multi-user virtual sub-file system isolation function, that is, enable different Lustre parallel clients to achieve data interoperability with different object gateways and storage buckets, and achieve logical space isolation.

2. The method for realizing data access between the Lustre hierarchical file system and object storage S3 according to claim 1, characterized in that, Includes the following steps: The file-stream function monitors the front-end Lustrefs file system interface.

3. The method for realizing data access between the Lustre hierarchical file system and object storage S3 according to claim 2, characterized in that, It also includes the following steps: The node that receives the Probing message from fsapi-convert executes the callback information and replies to file-stream. It uses the convert module to convert the file into a file interface format suitable for object interface access, which mainly involves the file ID, file block information, data body content, and object key-value pairs. Then, it calls the sqlite-record database conversion function to add an external check table record of the corresponding object file information in the original file information.

Citation Information

Patent Citations

  • Multi-tier storage system with direct client access to archive storage tier

    US10901943B1