I haven't released my small exploration for a long time, but my exploration has not stopped.
This article mainly introduces how to set up the environment for the new features of the ext4 file system, and how to use the new features of ext4.
1. New Features of The ext4 file system and environment construction
(1) Linux 3.2.2:
Http://pan.baidu.com/share/link? Consumer id = 164928 & UK = 989947490
For the upgrade method, see previous articles!
(2) e2fsporgs:
Http://pan.baidu.com/share/link? Consumer id = 164934 & UK = 989947490
1.Tar xvf e2fsprogs-1.42.tar.gz
2. CD e2fsprogs-1.42
3./configure -- prefix =/usr -- With-root-Prefix = "" -- enable-elf-shlibs -- disable-libblkid -- disable-libuuid -- disable-uuidd -- disable-fsck
4. Make
5. Make install
6. Install-libs
Chmod-v U + w/usr/lib/{libcom_err, libe2p, libext2fs, libss}.
This package installs a gzipped. Info
File but does not update the system dir file. Decompress the file and use the following command to update the system dir file.
Gunzip-V/usr/share/INFO/libext2fs.info.gz
Install-info -- Dir-file =/usr/share/INFO/DIR/usr/share/INFO/libext2fs.info
If necessary, create and install some additional documents by issuing the following command:
Makeinfo-o doc/com_err.info ../lib/ET/com_err.texinfo
Install-v-m644 DOC/com_err.info/usr/share/info
Install-info -- Dir-file =/usr/share/INFO/DIR/usr/share/INFO/com_err.info
Required:Yum install libblkid; YUM install UUID * yum
Install makeinfo
2. Usage of new features of ext4:
Mke2fs-T ext4-B 4096-O extents, huge_file, dir_index, flex_bg, bigalloc-C 1048576-e stride = 256, stripe-width = 1280, lazy_itable_init = 1, test_fs, discard/dev/SDD
Mount-O extents, bigalloc, mballoc, delalloc, barrier = 1, data = writeback, noatime, nodiratime, ACL, user_xattr/dev/SDD/opt/raid0-5/
Mount-T ext4-O delalloc, discard, stripe = 1280, journal_async_commit, noatime, nodiratime/dev/SDD/opt/raid0-5/
3. Performance Comparison Between ext4 and ext3 (3vs4)
4. Understanding of features (to be edited next time)