[go: up one dir, main page]

CN119690909A - A FUSE-based file system data migration method, system, device and medium - Google Patents

A FUSE-based file system data migration method, system, device and medium Download PDF

Info

Publication number
CN119690909A
CN119690909A CN202510213099.1A CN202510213099A CN119690909A CN 119690909 A CN119690909 A CN 119690909A CN 202510213099 A CN202510213099 A CN 202510213099A CN 119690909 A CN119690909 A CN 119690909A
Authority
CN
China
Prior art keywords
data
fuse
file system
submodule
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
CN202510213099.1A
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.)
Shanghai Grid Electric Technology Co ltd
Original Assignee
Shanghai Grid Electric Technology 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 Shanghai Grid Electric Technology Co ltd filed Critical Shanghai Grid Electric Technology Co ltd
Priority to CN202510213099.1A priority Critical patent/CN119690909A/en
Publication of CN119690909A publication Critical patent/CN119690909A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及一种基于FUSE的文件系统数据迁移方法、系统、设备及介质,属于数据迁移保护技术领域。其中,该系统包括数据保护文件系统模块、FUSE文件系统模块、检测与反馈模块、系统配置与维护管理模块;所述数据保护文件系统模块包括元数据子模块和数据快照子模块,元数据子模块用于数据映射和相关元数据管理,数据快照子模块用于数据备份、唯一ID管理、校验管理;所述FUSE文件系统模块用于对数据进行混存、压缩、传输;所述检测与反馈模块用于记录文件操作和统计数据流量;所述系统配置与维护管理模块用于管理系统配置和日常维护任务;在不侵入内核的情况下实现文件系统,减少用户态和内核态的切换,提升文件系统数据迁移的效率,实现数据实时备份保护。

The present invention relates to a FUSE-based file system data migration method, system, device and medium, belonging to the field of data migration protection technology. The system includes a data protection file system module, a FUSE file system module, a detection and feedback module, and a system configuration and maintenance management module; the data protection file system module includes a metadata submodule and a data snapshot submodule, the metadata submodule is used for data mapping and related metadata management, and the data snapshot submodule is used for data backup, unique ID management, and verification management; the FUSE file system module is used for mixed storage, compression, and transmission of data; the detection and feedback module is used for recording file operations and statistical data flow; the system configuration and maintenance management module is used for managing system configuration and daily maintenance tasks; the file system is realized without intruding the kernel, reducing the switching between user state and kernel state, improving the efficiency of file system data migration, and realizing real-time data backup protection.

Description

File system data migration method, system, equipment and medium based on FUSE
Technical Field
The invention belongs to the technical field of data migration protection, and particularly relates to a file system data migration method, system, equipment and medium based on FUSE.
Background
Data protection is the process of copying all or part of a data set from the hard disk or array of an application host to other storage media in order to prevent data loss due to system operational errors or system failures. The main stream data protection method comprises the steps of backing up related data of a tape drive, backing up main database data of a standby database, storing backup data of a local network and storing the backup data in different places.
Currently, in the field of data migration, various backup software is commonly used to realize redundant backup of data. However, the simple file copy mode of the third party backup software as a stand-alone application program is not suitable for applications such as databases, and when the opened file has a limitation that the opened file cannot be copied, the database must be closed first for backup, which is obviously impractical. In addition, the third party backup software has the problem of insufficient real-time performance in the data transmission process, namely, the data is written into the host firstly and then is synchronized to the standby machine, which may cause that the standby machine data is not updated timely, and if the data fails at this time, the standby machine data may not be complete and continuous enough. At the same time, the use of third party backup software may also cause degradation in server performance.
Disclosure of Invention
In order to solve the problems in the prior art, the invention provides a file system data migration method, a system, equipment and a medium based on FUSE.
The aim of the invention can be achieved by the following technical scheme:
A file system data migration system based on FUSE comprises a data protection file system module, a FUSE file system module, a detection and feedback module and a system configuration and maintenance management module;
The data protection file system module comprises a metadata sub-module and a data snapshot sub-module, wherein the metadata sub-module is used for data mapping and related metadata management, and the data snapshot sub-module is used for data backup, unique ID management and verification management;
The FUSE file system module is used for carrying out mixing, compression and transmission on the acquired data through a file system kernel mode interface and a file system user mode interface, and comprises a file system kernel mode interface submodule and a file system user mode interface submodule;
The detection and feedback module is used for recording file operation and statistical data flow and comprises a file operation recording submodule and a data flow statistical submodule;
The system configuration and maintenance management module is used for managing system configuration and daily maintenance tasks and comprises a file system mounting and dismounting sub-module, a remote storage fault short-circuit switch sub-module and a log management sub-module.
Preferably, the data map includes a local Super block data map, dentry data map, inode data map, and the related metadata management includes, but is not limited to, namespace management, storage path management, file attribute management, quota management, and file check management.
Preferably, the local Super block data map is used to manage global information of the file system, including but not limited to block size and inode number;
The Dentry data mapping is used for maintaining the corresponding relation between the file name and the inode so as to quickly locate the file;
The Inode data map is used to store metadata information for the file including, but not limited to, file size, creation time.
Preferably, the data backup comprises snapshot creation, idempotent assurance and consistency assurance;
the unique ID management distributes unique identification for each file operation and prevents the data from being repeatedly written in the related backup operation;
The check management comprises data check and interface check, wherein the data check is used for carrying out data check after the snapshot is created, so that the data in the snapshot is consistent with the original data, and the interface check is used for relevant interface check, so that the input parameters and the execution result are correct and consistent when the backup operation is called.
Preferably, the snapshot creation is used for creating a snapshot of the data of each operation, the snapshot comprises the state of the data at a specific time point so as to ensure that the data can be restored to the previous state when the data is lost or damaged, the idempotent guarantee is used for designing the snapshot operation into idempotent so as to ensure that the result is still the same after the operation is repeatedly executed, and the consistency guarantee is used for ensuring the consistency of the data during the snapshot operation.
Preferably, the kernel mode interface submodule of the file system processes data through a kernel mode interface, directly intercepts data in a VFS layer, realizes kernel mode data reading and writing, and maintains kernel mode data cache;
the file system user mode interface sub-module realizes file system operation in a user mode, and realizes user mode data reading and writing through interaction between FUSE and a kernel mode interface.
The remote storage fault short-circuit switch submodule is used for monitoring the remote storage state and providing a short-circuit switch to quickly switch a storage path to standby storage when the remote storage fails;
The log management submodule comprises log grade, switch configuration and log data rolling deletion, wherein the log data rolling deletion is carried out according to file time, size and the like, and the log comprises system fault log records and data operation log records and is used for recording log information in the running process of a system.
A file system data migration method based on FUSE is applied to the file system data migration system based on FUSE, and comprises the following steps:
When application is mounted on FUSE and system call is executed, the operation of the system call is routed to a FUSE driver through VFS, wherein the FUSE comprises a kernel module and a FUSE daemon;
The fuse driver creates a fuse request structure body and stores the request in a request queue, and the process of executing the operation is blocked;
The fuse daemon reads a fuse request of a kernel queue in the kernel module through/dev/fuse block equipment and submits operation to an underlying file system, wherein the underlying file system comprises EXT4 and F2FS;
After the bottom file system processes the request, the fuse daemon writes the reply back to the/dev/fuse block device, and the fuse driver marks the request as completed and wakes up the user process.
An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the FUSE-based file system data migration system described above when executing the computer program.
A storage medium containing computer executable instructions that when executed by a computer processor are for performing the FUSE-based file system data migration system described above.
The beneficial effects of the invention are as follows:
(1) The non-invasive kernel interaction is realized by introducing the FUSE, the file system is realized under the condition of not invading the kernel, the data migration of the file system is carried out in the user space, the incremental backup is directly carried out on the bottom layer by using the file system, the kernel code is not modified, the switching between the user mode and the kernel mode when the data is read and transmitted is reduced, and the data migration efficiency is effectively improved.
(2) The snapshot creation ensures that the data can be restored to the previous state when the data is lost or damaged, the idempotent property ensures that the repeated execution is the same as the result obtained by the repeated execution, the consistency of the data during the snapshot operation is ensured through the consistency guarantee, and the problem that the data is not updated timely is solved.
(3) By designing the buffer area, the data is accumulated to a certain amount or is sent in batches for a certain time, so that unnecessary memory allocation and copying are avoided as much as possible, the requirement of local data backup to a far end is met, the system call cost caused by frequent small data amount multi-group number sending is reduced, and the data sending speed is greatly improved.
Drawings
The present invention is further described below with reference to the accompanying drawings for the convenience of understanding by those skilled in the art.
FIG. 1 is a schematic diagram of a FUSE-based file system data migration system of the present invention.
Detailed Description
In order to further describe the technical means and effects adopted by the invention for achieving the preset aim, the following detailed description is given below of the specific implementation, structure, characteristics and effects according to the invention with reference to the attached drawings and the preferred embodiment.
Referring to fig. 1, a file system data migration system based on FUSE includes a data protection file system module, a FUSE file system module, a detection and feedback module, and a system configuration and maintenance management module;
The data protection file system module comprises a metadata sub-module and a data snapshot sub-module, wherein the metadata sub-module is used for data mapping and related metadata management, and the data snapshot sub-module is used for data backup, unique ID management and verification management;
The FUSE file system module is used for carrying out mixing, compression and transmission on the acquired data through a file system kernel mode interface and a file system user mode interface, and comprises a file system kernel mode interface submodule and a file system user mode interface submodule;
The detection and feedback module is used for recording file operation and statistical data flow and comprises a file operation recording submodule and a data flow statistical submodule;
The system configuration and maintenance management module is used for managing system configuration and daily maintenance tasks and comprises a file system mounting and dismounting sub-module, a remote storage fault short-circuit switch sub-module and a log management sub-module.
In this embodiment, the data map includes a local Super block data map, dentry data map, inode data map, where the related metadata management includes, but is not limited to, namespace management, storage path management, file attribute management, quota management, and file check management;
the local Super block data map is used for managing global information of a file system, wherein the global information comprises, but is not limited to, block sizes and inodes;
The Dentry data mapping is used for maintaining the corresponding relation between the file name and the inode so as to quickly locate the file;
the Inode data map is used for storing metadata information of a file, and the metadata information comprises, but is not limited to, file size and creation time;
It should be noted that, the local Super block, denry, inode are all file organization forms of linux vfs.
In this embodiment, the data backup includes snapshot creation, idempotent assurance, and consistency assurance, where the snapshot creation is used to create a snapshot for the data of each operation, where the snapshot includes the state of the data at a specific time point, and ensures that the state can be restored to the previous state when the data is lost or damaged, the idempotent assurance is used to design the snapshot operation into idempotent, and ensures that no matter how many times the operation is executed, the result is the same, no side effect is generated due to repeated execution, and the consistency assurance is used to ensure that the consistency of the data in the snapshot operation, that is, the state of the data reflected by the snapshot is consistent, and no partial update or no update occurs;
the unique ID management distributes unique identification for each file operation and prevents the data from being repeatedly written in the related backup operation;
Specifically, a 64-bit ID is adopted, the unique ID is indexed through index, the index is organized according to a tree structure and comprises a father catalog ID and a file ID, the backup file is indexed and searched through the index, and the unique ID is used for ensuring that the backup operation cannot cause data to be written for multiple times due to system errors or repeated requests, so that the problem of data repetition or inconsistency is avoided.
The check management comprises data check and interface check, wherein the data check is used for carrying out data check by a system after the snapshot is created, ensuring that the data in the snapshot is consistent with the original data and is not damaged or tampered, and the interface check is used for relevant interface check so as to ensure that the input parameters and the execution result are correct and consistent when the backup operation is invoked.
In this embodiment, the kernel mode interface submodule of the file system processes data through a kernel mode interface, directly intercepts data in the VFS layer, realizes kernel mode data reading and writing, and maintains kernel mode data cache;
the file system user mode interface sub-module realizes file system operation in a user mode, and realizes user mode data reading and writing through interaction between FUSE and a kernel mode interface.
It should be noted that, the mixing is to cache data in the memory, speed up the reading operation, the compressing is to reduce the volume of data transmission and improve the transmission efficiency, and the data is transmitted to the target storage location by the transmission.
In this embodiment, the file operation recording submodule is used to record detailed information of file operations, including but not limited to reading, writing, and modifying.
The data flow statistics sub-module is used for counting flow information of data, in particular, reading flow and writing flow of the data.
In this embodiment, the file system mounting and dismounting submodule is used for providing a mounting and dismounting function of the data protection file system;
the remote storage fault short-circuit switch submodule is used for monitoring a remote storage state, and providing a short-circuit switch to rapidly switch a storage path to standby storage when the remote storage fails;
The log management submodule comprises log grade, switch configuration and log data rolling deletion, wherein the log data rolling deletion is carried out according to file time, size and the like, and the log comprises system fault log records and data operation log records and is used for recording log information in the running process of a system.
A file system data migration method based on FUSE includes:
When application is installed on a FUSE and a system call is executed, the operation of the system call is routed to a FUSE driver through a VFS, wherein the FUSE comprises a kernel module and a user space daemon (FUSE daemon);
The fuse driver creates a fuse request structure body and stores the request in a request queue, and the process of executing the operation is blocked;
The fuse daemon reads a fuse request of a kernel queue in the kernel module through/dev/fuse block equipment and submits operation to an underlying file system, wherein the underlying file system comprises EXT4 and F2FS;
After the bottom file system processes the request, the fuse daemon writes the reply back to the/dev/fuse block device, and the fuse driver marks the request as completed and wakes up the user process.
In this embodiment, the application mounting on the FUSE includes mounting the specified fuse_path to the/dev/FUSE device via a mount function.
In this embodiment, when the FUSE reads data through the/dev/FUSE block device, the FUSE uses the splice block of the FUSE to perform memory zero copy, where the splice block allows the user space to transfer data between two kernel memory buffers, without copying the data to the user space.
Specifically, the buffer area form data containing the file descriptor is processed by the write_buf () method of the fuse daemon, so that one memory application and copy are omitted.
In this embodiment, the multithreaded mode read request is implemented by fuse_session_loop_mt, which is more efficient in request processing than a single thread.
Specifically, the Fuse daemon processes file operation requests based on libfuse libraries, and in a multithreading mode, the Fuse daemon starts with one thread, if more than two requests exist in a kernel queue, other threads can be automatically generated, and 10 threads are supported simultaneously by default to process the requests.
In this embodiment, for data to be protected, non-invasive kernel interaction is implemented through FUSE, and file system data migration is performed in user space without modifying kernel codes;
The method comprises the steps of intercepting data in a VFS file system layer, and mixing, compressing and transmitting the acquired data through a kernel mode interface of the file system and a user mode interface of the file system;
It should be noted that, when the kernel module is loaded, the kernel module is registered as a fuse file system driver of the Linux virtual file system, and the fuse file system driver mainly realizes that codes are located in a user space, so that the kernel is not required to be recompiled, and the own file system can be realized under the condition of not invading the kernel;
Specifically, a user-defined file system is realized in a user space through FUSE, remote call between a client and a server is processed through an RPC interface, so that remote backup and recovery of data are realized, FUSE backup file metadata are stored in a key-value form, the file metadata key is a compression code generated according to a father directory and a file ID, the file metadata value comprises file attribute information and file block information, the file metadata key is organized and stored through an index tree of the FUSE backup file system, the file metadata value of backup is obtained through the file metadata key index, and storage of file actual data is performed through the file block information.
In order to reduce the read speed gap between the processor and the memory, a cache memory is generally used to increase the speed of request response and data transmission, i.e. the data is first stored in a buffer area and then accessed and transmitted.
In this embodiment, in order to avoid the system call overhead caused by frequent transmission of small data volume and multiple sets of data, a buffer module is designed to avoid unnecessary memory allocation and duplication as much as possible by designing a buffer area, where the buffer area is a character queue, and includes sender buffering and receiver buffering;
the sender buffers additional data from the tail of the queue, takes out the data from the head of the queue and sends the data to the socket;
and the receiver buffers and takes out data from the head of the queue, and receives data in the socket from the tail of the queue.
Specifically, the buffer module stores the data in the buffer area before the data is transmitted, and the data is accumulated to a certain amount or is transmitted in batches after a certain time is reached, so that the data transmission speed is greatly improved.
The computer storage media of embodiments of the invention may take the form of any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing. Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The present invention is not limited in any way by the above-described preferred embodiments, but is not limited to the above-described preferred embodiments, and any person skilled in the art will appreciate that the present invention can be embodied in the form of a program for carrying out the method of the present invention, while the above disclosure is directed to equivalent embodiments capable of being altered or modified in a slight manner, any and all concise modifications, equivalent variations and alterations of the above embodiments are still within the scope of the present disclosure, all as may be made without departing from the scope of the present disclosure.

Claims (10)

1.一种基于FUSE的文件系统数据迁移系统,其特征在于,包括数据保护文件系统模块、FUSE文件系统模块、检测与反馈模块、系统配置与维护管理模块;1. A FUSE-based file system data migration system, characterized by comprising a data protection file system module, a FUSE file system module, a detection and feedback module, and a system configuration and maintenance management module; 所述数据保护文件系统模块包括元数据子模块和数据快照子模块,所述元数据子模块用于数据映射和相关元数据管理,所述数据快照子模块用于数据备份、唯一ID管理、校验管理;The data protection file system module includes a metadata submodule and a data snapshot submodule, wherein the metadata submodule is used for data mapping and related metadata management, and the data snapshot submodule is used for data backup, unique ID management, and verification management; 所述FUSE文件系统模块用于通过文件系统内核态接口和文件系统用户态接口对取到的数据进行混存、压缩、传输,包括文件系统内核态接口子模块和文件系统用户态接口子模块;The FUSE file system module is used to store, compress and transmit the acquired data through the file system kernel state interface and the file system user state interface, and includes a file system kernel state interface submodule and a file system user state interface submodule; 所述检测与反馈模块用于记录文件操作和统计数据流量,包括文件操作记录子模块和数据流量统计子模块;The detection and feedback module is used to record file operations and statistical data traffic, including a file operation recording submodule and a data traffic statistics submodule; 所述系统配置与维护管理模块用于管理系统配置和日常维护任务,包括文件系统挂载与卸载子模块、远程存储故障短路开关子模块、日志管理子模块。The system configuration and maintenance management module is used to manage system configuration and daily maintenance tasks, and includes a file system mounting and unmounting submodule, a remote storage fault short-circuit switch submodule, and a log management submodule. 2.根据权利要求1所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述数据映射包括本地Super block数据映射、Dentry数据映射、Inode数据映射,所述相关元数据管理包括但不限于命名空间管理、存储路径管理,文件属性管理、配额管理、文件校验管理。2. According to the FUSE-based file system data migration system of claim 1, it is characterized in that the data mapping includes local Super block data mapping, Dentry data mapping, and Inode data mapping, and the related metadata management includes but is not limited to namespace management, storage path management, file attribute management, quota management, and file verification management. 3.根据权利要求2所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述本地Super block数据映射用于管理文件系统的全局信息,所述全局信息包括但不限于块大小和inode数量;3. The FUSE-based file system data migration system according to claim 2, wherein the local Super block data mapping is used to manage the global information of the file system, and the global information includes but is not limited to the block size and the number of inodes; 所述Dentry数据映射用于维护文件名与inode的对应关系以便快速定位文件;The Dentry data mapping is used to maintain the correspondence between the file name and the inode so as to quickly locate the file; 所述Inode数据映射用于存储文件的元数据信息,所述元数据信息包括但不限于文件大小、创建时间。The Inode data mapping is used to store metadata information of the file, and the metadata information includes but is not limited to the file size and creation time. 4.根据权利要求1所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述数据备份包括快照创建、幂等性保证、一致性保证;4. The FUSE-based file system data migration system according to claim 1, wherein the data backup includes snapshot creation, idempotence guarantee, and consistency guarantee; 所述唯一ID管理为每次文件操作分配唯一标识,防止相关备份操作中数据重复写入;The unique ID management assigns a unique identifier to each file operation to prevent duplicate writing of data in related backup operations; 所述校验管理包括数据校验和接口校验,所述数据校验用于在创建快照后进行数据校验,确保快照中的数据与原始数据一致,所述接口校验用于相关接口校验,以保证在调用备份操作时,传入的参数和执行的结果是正确和一致的。The verification management includes data verification and interface verification. The data verification is used to perform data verification after creating a snapshot to ensure that the data in the snapshot is consistent with the original data. The interface verification is used to verify the relevant interfaces to ensure that when calling the backup operation, the parameters passed in and the execution results are correct and consistent. 5.根据权利要求4所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述快照创建用于对每次操作的数据创建一个快照,所述快照包含数据在特定时间点的状态,以确保在发生数据丢失或损坏时可以恢复到之前的状态,所述幂等性保证用于将快照操作设计为幂等,以确保重复执行操作后结果仍然一样,所述一致性保证用于确保快照操作时数据的一致性。5. According to the FUSE-based file system data migration system of claim 4, it is characterized in that the snapshot creation is used to create a snapshot of the data for each operation, and the snapshot contains the state of the data at a specific point in time to ensure that the previous state can be restored when data loss or damage occurs. The idempotence guarantee is used to design the snapshot operation as idempotent to ensure that the result remains the same after repeated execution of the operation. The consistency guarantee is used to ensure the consistency of data during the snapshot operation. 6.根据权利要求1所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述文件系统内核态接口子模块通过内核态接口处理数据,直接在VFS层截获数据,实现内核态的数据读取和写入,维护内核态的数据缓存;6. The FUSE-based file system data migration system according to claim 1, characterized in that the file system kernel state interface submodule processes data through the kernel state interface, directly intercepts data at the VFS layer, realizes kernel state data reading and writing, and maintains kernel state data cache; 所述文件系统用户态接口子模块在用户态实现文件系统操作,通过FUSE与内核态接口交互,实现用户态的数据读取和写入。The file system user state interface submodule implements file system operations in the user state, interacts with the kernel state interface through FUSE, and implements data reading and writing in the user state. 7.根据权利要求1所述的基于FUSE的文件系统数据迁移系统,其特征在于,所述文件系统挂载与卸载子模块用于提供数据保护文件系统的挂载和卸载功能;所述远程存储故障短路开关子模块用于监控远程存储状态,在远程存储发生故障时,提供短路开关以快速切换存储路径到备用存储;7. The FUSE-based file system data migration system according to claim 1, characterized in that the file system mounting and unmounting submodule is used to provide the mounting and unmounting functions of the data protection file system; the remote storage fault short-circuit switch submodule is used to monitor the remote storage status, and when a remote storage fails, a short-circuit switch is provided to quickly switch the storage path to the backup storage; 所述日志管理子模块包括日志等级与开关配置和日志数据滚动删除;所述日志数据滚动删除按照文件时间、大小等进行,所述日志包括系统故障日志记录和数据操作日志记录,用于记录系统运行过程中的日志信息。The log management submodule includes log level and switch configuration and log data rolling deletion; the log data rolling deletion is performed according to file time, size, etc. The log includes system fault log records and data operation log records, which are used to record log information during system operation. 8.一种基于FUSE的文件系统数据迁移方法,其特征在于,应用于如权利要求1-7任一所述的基于FUSE的文件系统数据迁移系统,包括:8. A FUSE-based file system data migration method, characterized in that it is applied to the FUSE-based file system data migration system as claimed in any one of claims 1 to 7, comprising: 当application挂载在FUSE上并且执行系统调用时,通过VFS将系统调用的操作路由至fuse driver,所述FUSE包含一个内核模块和一个fuse daemon;When the application is mounted on FUSE and executes a system call, the system call operation is routed to the fuse driver through VFS. The FUSE includes a kernel module and a fuse daemon. 所述fuse driver创建一个fuse request结构体并把请求保存在请求队列中,执行操作的进程会被阻塞;The fuse driver creates a fuse request structure and saves the request in the request queue. The process executing the operation will be blocked. 所述fuse daemon通过/dev/fuse块设备读取所述内核模块中内核队列的fuserequest,并且提交操作到底层文件系统中,所述底层文件系统包括EXT4和F2FS;The fuse daemon reads the fuserequest of the kernel queue in the kernel module through the /dev/fuse block device, and submits the operation to the underlying file system, wherein the underlying file system includes EXT4 and F2FS; 当所述底层文件系统处理完请求后,所述fuse daemon将reply写回所述/dev/fuse块设备,所述fuse driver标记所述请求为已完成并唤醒用户进程。When the underlying file system completes processing the request, the fuse daemon writes a reply back to the /dev/fuse block device, and the fuse driver marks the request as completed and wakes up the user process. 9.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1-7中任一所述的基于FUSE的文件系统数据迁移系统。9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the FUSE-based file system data migration system as described in any one of claims 1 to 7 is implemented. 10.一种包含计算机可执行指令的存储介质,其特征在于,所述计算机可执行指令在由计算机处理器执行时用于执行如权利要求1-7中任一所述的基于FUSE的文件系统数据迁移系统。10. A storage medium comprising computer executable instructions, wherein the computer executable instructions are used to execute the FUSE-based file system data migration system as described in any one of claims 1 to 7 when executed by a computer processor.
CN202510213099.1A 2025-02-26 2025-02-26 A FUSE-based file system data migration method, system, device and medium Pending CN119690909A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510213099.1A CN119690909A (en) 2025-02-26 2025-02-26 A FUSE-based file system data migration method, system, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510213099.1A CN119690909A (en) 2025-02-26 2025-02-26 A FUSE-based file system data migration method, system, device and medium

Publications (1)

Publication Number Publication Date
CN119690909A true CN119690909A (en) 2025-03-25

Family

ID=95041412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510213099.1A Pending CN119690909A (en) 2025-02-26 2025-02-26 A FUSE-based file system data migration method, system, device and medium

Country Status (1)

Country Link
CN (1) CN119690909A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120203742A1 (en) * 2011-02-08 2012-08-09 International Business Machines Corporation Remote data protection in a networked storage computing environment
CN118502846A (en) * 2024-06-07 2024-08-16 江苏润和软件股份有限公司 User state file system performance optimization method based on system call interception technology

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120203742A1 (en) * 2011-02-08 2012-08-09 International Business Machines Corporation Remote data protection in a networked storage computing environment
CN118502846A (en) * 2024-06-07 2024-08-16 江苏润和软件股份有限公司 User state file system performance optimization method based on system call interception technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LINUX_XIN: "Linux文件系统(一)---虚拟文件系统VFS----超级块、inode、dentry、file", 《HTTPS://WWW.CNBLOGS.COM/LINUX-XIN/P/8126999.HTML》, 27 December 2017 (2017-12-27), pages 1 - 12 *
大数据老司机: "Flink 的容错机制是什么?", 《HTTPS://CLOUD.TENCENT.COM/DEVELOPER/NEWS/1294953》, 18 January 2024 (2024-01-18), pages 1 *

Similar Documents

Publication Publication Date Title
US12099606B2 (en) Systems and methods for protecting against malware attacks
JP6522812B2 (en) Fast Crash Recovery for Distributed Database Systems
KR101658964B1 (en) System and method for datacenter workflow automation scenarios using virtual databases
US10831614B2 (en) Visualizing restoration operation granularity for a database
KR101617339B1 (en) Virtual database system
EP1918836B1 (en) Apparatus and method for a hardware-based file system
CN104813321B (en) The content and metadata of uncoupling in distributed objects store the ecosystem
US8117166B2 (en) Method and system for creating snapshots by condition
US10725666B2 (en) Memory-based on-demand data page generation
US8484161B2 (en) Live file system migration
US7752492B1 (en) Responding to a failure of a storage system
US20220114064A1 (en) Online restore for database engines
US6606685B2 (en) System and method for intercepting file system writes
US8214377B2 (en) Method, system, and program for managing groups of objects when there are different group types
US7921093B2 (en) Information processing apparatus and information processing method
US10409804B2 (en) Reducing I/O operations for on-demand demand data page generation
US9767015B1 (en) Enhanced operating system integrity using non-volatile system memory
US11561864B1 (en) Creating database clones at a specified point-in-time
KR20150021117A (en) Enhanced data management virtualization system
US10049036B2 (en) Reliable distributed messaging using non-volatile system memory
US9305049B2 (en) Addressing cross-allocated blocks in a file system
US11341163B1 (en) Multi-level replication filtering for a distributed database
US20250199928A1 (en) Scalable exactly-once data processing using transactional streaming writes
US11093290B1 (en) Backup server resource-aware discovery of client application resources
US20220342851A1 (en) File system event monitoring using metadata snapshots

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