Article Title: Upgrade Linux File System from ext3 to ext4. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Although ext4 has been released for some time, because some bugs have not been widely applied to the server production environment, ext4 is mature enough for desktop users. The latest RHEL 5.4 File System released last year is still ext3 by default. Recently, the Linux kernel developer and the ext4 File System maintainer Ted Ts o jumped to Google and continued to work on ext4 development and Linux kernel at Google. In a mailing list, Google Engineer Michael Rubin also mentioned some internal Google use of ext4. According to Google's internal tests, the performance of ext4 is very similar to that of high-performance xfs file systems. The main reason why Google chooses ext4 instead of xfs is that their existing system is ext2, in this way, it is easier to upgrade to ext4. Another interesting thing is that most people trust dbench and choose dbench as the file system testing tool.
How can I upgrade from ext3 to ext4? First, make sure that Linux kernel supports ext4. Second, note that ext3 is recommended for the/boot partition, because grub on the system may not support ext4, the special version of grub of commit is required to support ext4. use the following command to convert:
# Cd/; umount/dev/sda1
# Tune2fs-O extents, uninit_bg, dir_index/dev/sda1
Remember, fsck must be used for scanning after conversion to ext4; otherwise, the file system cannot be mounted. The-p parameter indicates "Automatic Repair:
# Fsck-pf/dev/sda1
Mount the ext4 File System:
# Mount-t ext4/dev/sda1/path//