How to use ReiserFS file system in Linux environment

  
                  ReiserFS is a very good file system. It was also one of the earliest log file systems for Linux. The developers of ReiserFS are very powerful, and the entire file system is completely designed from scratch. Currently, ReiserFS can easily manage hundreds of G file systems, which is very important in enterprise applications. First, the characteristics of ReiserFS
1. Advanced Logging Mechanism ReiserFS has an advanced journaling/logging mechanism. The logging mechanism ensures that the corresponding logs are written to the hard disk before each actual data is modified. The security of files and data has been greatly improved. 2. Efficient disk space utilization Reiserfs does not allocate inodes for small files. Instead, these files are packaged and stored in the same disk partition. Other file systems place each small file in a disk partition. This means that if there are 10,000 small files, it will take 10,000 blocks. Think about how much more wasted disk space. 3. Unique Search Method ReiserFS is based on a fast balanced tree search. The balanced tree is excellent in performance, which is a very efficient algorithm. When ReiserFS searches for a large number of files, the search speed is much faster than ext2. The Reiserfs file system uses B*Tree to store files, while other file systems use B+Tree trees. B*Tree queries are much faster than B+Tree. Reiserfs is very fast in file positioning. In practice, ReiserFS handles files smaller than 1k 8 to 15 times faster than ext2! ReiserFS is superior to ext2 in almost every aspect. For specific data, please refer to the author's test article. More detailed tests can be found at: http://www.namesys.com/benchmarks/benchmark-results.html There are more detailed assessment data. 4. Support for massive disks ReiserFS is an excellent file system that can easily manage hundreds of G file systems. The ReiserFS file system supports a maximum file system size of 16TB. This is great for enterprise applications. 5. Excellent performance Due to its efficient storage and fast small file I/O characteristics, PCs using the ReiserFs file system take up 1/3 of the time to boot the X Window System than the ext2 file system on the same machine. . In addition, the ReiserFS file system supports a single file size of 4G files, which provides a better choice for large database systems on Linux applications. Second, use ReiserFS file system
1, compile the core This article takes the Reiserfs file system installed under 2.4.x core as an example, briefly describes its installation and use process. The version of the kernel version 2.4.x and later supports the Reiserfs file system by default. If your core does not currently support Reiserfs, download the reiserfs patch from http://www.namesys.com/and make sure the downloaded patch version is the same as your kernel version. After downloading, log in to the system as root, switch to the /usr/src/linux directory, and execute the command: #gunzip /path/to/linux-2.2.16-reiserfs-3.5.22-patch.gz #patch -p1 -i /path/to/linux-2.2.16-reiserfs-3.5.22-patch For the new kernel to support the Reiserfs filesystem, the compiler must first open the appropriate options. Currently, the kernel does not support the Reiserfs filesystem by default. Therefore, when compiling the kernel, configure the kernel to support the reiserfs file system. #make menuconfig In the menu "Code maturity level options", select the "Prompt for development and/or incomplete code/drivers." option. Then, go to the file system menu "File systems" and open the following options: <*>Reiserfs support Have reiserfs do extra internal checking The compile-time kernel of the Reiserfs file system is coming soon. Then compile the kernel and install the kernel.
#make bzImage #make module #make module_install #make install; 
Complete the kernel compilation and installation work. 2, compile the Reiserfs tool Below we will compile the ReiserFS tool, the corresponding code is stored in the /usr/src/linux/fs/reiserfs/utils directory, first make the compiler, and then make install to install the program. If you don't include these tools in your core, you'll need to download them separately. Download it here: ftp://ftp.namesys.com/pub/reiser ... progs-3.x.0j.tar.gz Unzip the file:
# tar zxvf reiserfsprogs-3.x.0j.tar. Gz # cd reiserfsprogs-3.x.0j # ./configure # make # make install 
Complete the compilation and installation of the Reiserfs tool. Then start the system with the new core. If nothing goes wrong, the new core already supports the Reiserfs file system. Third, use the new file system
1. Creating a Reiserfs File System To use the new file system, first create a Reiserfs file system: [root@test /sbin]# ./mkreiserfs -f /dev/sda3 The following is the information displayed when formatting the partition:
 <-------------mkreiserfs, 2001-------------> reiserfsprogs 3.x.0j =========== =========================================================== ================= LEAF NODE (8211) contains level=1, nr_items=2, free_space=3932 rdkey --------------- -------------------------------------------------- ------------- 
						
Copyright © Windows knowledge All Rights Reserved