Introduction to Linux File system logs

Source: Internet
Author: User
Tags system log

We refer to inode blocks and block blocks as data storage areas or blocks of data, such as superblock, block blocks, inode bitmaps, etc., which are called intermediate or meta-data, because metadata changes frequently and there is a case of inconsistency with the actual data. So there is the file system log function.

Ext3 File System log: First put a copy of the block to be written into the log, when the IO data sent to the log to the log (the data submitted to the log), the block will be written to the file system, when sent to the file system IO data is completed, (the data submitted to the file system), the log block copy is discarded.

In fact, log records of metadata can restore the consistency of the file system structure. Can not log the actual data of the file, if not recorded can not recover data, ext3 let the system administrator decide what to log in, there are 3 modes:

  1. Log (Journal)

    All data and metadata for the file system are recorded in the log. The safest and slowest Ext3 file system.

  2. Reservation (Ordered)

    Only changes to the file system metadata are recorded in the log. The default ext3 log mode.

  3. Write Back (Writeback)

    Only changes to the file system metadata are recorded in the log. The fastest mode.

Introduction to Linux File system logs

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.