Method for clearing junk data and file access server

A metadata server and junk data technology, applied in the field of communication, can solve the problem of a sharp increase in message volume, and achieve the effect of reducing message interaction

Inactive Publication Date: 2011-12-14
NANJING ZHONGXING XIN SOFTWARE CO LTD
View PDF8 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The main purpose of the present invention is to provide a method for clearing junk data and a file access server, so as to at least solve the problem that the above-mentioned traditional reporting-arbitration mechanism for judging junk data will cause a sharp increase in the amount of messages

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for clearing junk data and file access server
  • Method for clearing junk data and file access server
  • Method for clearing junk data and file access server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0027] figure 2 It is a flow chart of clearing garbage data according to Embodiment 1 of the present invention. Such as figure 2 shown, including the following steps:

[0028] In step S202, the file access server determines the data range to be cleaned of junk data, and sends a request to the metadata server to clear junk data.

[0029] In step S204, the file access server receives the valid data information of the data within the data range that needs to be cleaned of junk data from the metadata server.

[0030] Step S206, the file access server determines the junk data to be cleared according to the valid data information, and clears the junk data.

[0031] In this embodiment, by determining the data range that needs to be cleaned of junk data, the junk data is determined and cleared according to the valid data information issued by the metadata server, thereby effectively reducing the number of file access servers and metadata in a multi-data server environment. The m...

Embodiment 2

[0037] image 3 It is a flow chart of clearing garbage data according to Embodiment 2 of the present invention. Such as image 3 shown, including the following steps:

[0038] Step S302, delineate the range of data blocks that participate in scanning garbage. There are many storage devices under the file access server, which are organized in a certain form to provide data access services. Therefore, the rubbish sweeping process can also be flexibly configured: (1) sweep rubbish with the entire file access server as a unit (sweep all storage devices under the file server together). (2) Scan garbage on a single storage device basis (sweep garbage on each storage device under the file access server). In order to facilitate the management of data in the storage device, the memory of the file access server generally stores the metadata information of the data on the storage device. To delineate the garbage sweep, you only need to put a mark on the corresponding metadata informa...

Embodiment 3

[0044] Figure 4 It is a flow chart of clearing garbage data according to Embodiment 3 of the present invention. Such as Figure 4 shown, including the following steps:

[0045] Step S402, initiate garbage sweeping, the method of initiating is not limited.

[0046] Steps S404 to S406, determine the range of data participating in the round sweeping of garbage, the range may be the data on a single storage device, or the data of all storage devices under the file access server. The metadata information corresponding to the data blocks on the storage device will be stored in the memory of the file access server, and it is only necessary to mark the metadata information corresponding to the data blocks participating in garbage sweeping. It is very important to determine the range of data blocks participating in this round of sweeping garbage, and all aspects must be considered comprehensively to prevent accidental deletion.

[0047] Step S408, send garbage scanning requests to...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The present invention provides a method for clearing garbage data and a file access server. The method includes: the file access server determines the data range to be cleared of garbage data, and sends a request for clearing garbage data to a metadata server; the file access server receives metadata The valid data information of the data within the data range that needs to be cleaned of junk data sent by the data server; the file access server determines the junk data that needs to be cleared according to the valid data information, and clears the junk data. Through the present invention, the garbage data is determined and cleared according to the effective data information issued by the metadata server by determining the data range that needs to be cleaned up, thereby effectively reducing the number of file access servers and metadata servers in a multi-data server environment. The message interaction among them achieves the safe and efficient effect of garbage data removal.

Description

technical field [0001] The invention relates to the communication field, in particular to a method for clearing garbage data and a file access server. Background technique [0002] Distributed file systems are widely used in cloud storage, IPTV, streaming media servers and other business occasions. The main business is to store users' files safely and securely. As time goes by and users increase, massive amounts of data will be stored on storage devices. Due to the timeliness of files, users will actively delete some worthless files. At the same time, for the needs of business development, sometimes delete some junk files (such as user logout, user overdue and no renewal, etc.), to save storage costs. [0003] Sweeping garbage is a destructive operation, especially deleting on storage devices. If improper design causes files to be deleted by mistake, it will cause major accidents. Therefore, the design of the distributed file system needs to be considered in the process o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/30H04L29/06
Inventor 李彬陈阳彭杰
Owner NANJING ZHONGXING XIN SOFTWARE CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products