Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RedHat / CentOS ext4 partition can not be formatted large supplementary ext4 formatting     - How to use Linux iptables tool for network sharing (Linux)

- Oracle 11g maintenance partitions (eight) - Renaming Partitions (Database)

- OpenCV 3.0 + Python 2.7 installation and testing under Ubuntu 14.04 (Linux)

- OpenGL Superb Learning Notes - New Patterns (Programming)

- Getting Started with Linux system to learn: How to compress JPEG images on the command line (Linux)

- Oracle GoldenGate tutorial Second, configure and use (Database)

- Linux smart small switch rfkill (Linux)

- Why not use the ifconfig command under RedHat Linux 5 (Linux)

- GNU Linux system variables (sysctl configuration commands) integrated use (Linux)

- C language keywords Comments (Programming)

- Hadoop1.2.1 plug compilation (Server)

- Summarize small problems encountered in the use Lua (Programming)

- Nginx introduced Dynamic Module Architecture (Server)

- Oracle can not change the tablespace to backup mode in non-archive mode (Database)

- It is time to upgrade your gulp 4.0 (Programming)

- Oracle 11g creates virtual private directory RMAN-06004 ORA-00942 error handling (Database)

- Linux partition command (Linux)

- Usage Linux device tree (Programming)

- Linux shell string interception and stitching (Linux)

- Linux disk and File System Concepts (Linux)

 
         
  RedHat / CentOS ext4 partition can not be formatted large supplementary ext4 formatting
     
  Add Date : 2018-11-21      
         
         
         
  RedHat / CentOS ext4 partition can not be formatted large supplementary ext4 formatting

Under normal circumstances, XFS appears as a massive case of lost data is a small file IO scene. In this scenario, inode occupied teach large.

Formatted by the above manner, the smaller inode number. Through extensive testing, we can improve file system performance mkfs.ext4 after using the following method.

Methods Summary: in /etc/mke2fs.conf file, ext4 configuration to open 64-bit capabilities.

[Root @ node21 ~] # cat /etc/mke2fs.conf
[Defaults]
 base_features = sparse_super, filetype, resize_inode, dir_index, ext_attr
 blocksize = 4096
 inode_size = 256
 inode_ratio = 16384

[Fs_types]
 ext3 = {
  features = has_journal
 }
 ext4 = {
  features = has_journal, extent, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize
  auto_64-bit_support = 1 ### newly added line, tells the system to use the way 64-bit format. Avoid direct mkfs.ext4 error.
  inode_size = 256
 }
 ext4dev = {
  features = has_journal, extent, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize
  inode_size = 256
  options = test_fs = 1
 }
 small = {
  blocksize = 1024
  inode_size = 128
  inode_ratio = 4096
 }
 floppy = {
  blocksize = 1024
  inode_size = 128
  inode_ratio = 8192
 }
 news = {
  inode_ratio = 4096
 }
 largefile = {
  inode_ratio = 1048576
  blocksize = -1
 }
 largefile4 = {
  inode_ratio = 4194304
  blocksize = -1
 }
 hurd = {
      blocksize = 4096
      inode_size = 128
 }
[Root @ node21 ~] #

[Root @ node21 ~] # df -h
Filesystem Size Used Avail Use% Mounted on
/ Dev / sda3 259G 29G 217G 12% /
tmpfs 16G 0 16G 0% / dev / shm
/ Dev / sda1 194M 34M 151M 19% / boot
/ Dev / sdf1 39T 21T 18T 54% / mnt / source
/ Dev / md127 5.4T 1.8T 3.4T 35% / public
/ Dev / sdg1 22T 42G 21T 1% / mnt / public_back
[Root @ node21 ~] # df -i
Filesystem Inodes IUsed IFree IUse% Mounted on
/ Dev / sda3 17195008 383263 16811745 3% /
tmpfs 4106354 1 4106353 1% / dev / shm
/ Dev / sda1 51200 41 51159 1% / boot
/ Dev / sdf1 8203124224 34192419 8168931805 1% / mnt / source ### XFS file system, 40T capacity.
/ Dev / md127 366288896 2338559 363950337 1% / public
/ Dev / sdg1 1464844288 295 1464843993 1% / mnt / public_back ### ext4 file system, 22T capacity.

e2fsprogs version of Red Hat / CentOS 6.5 is 1.41.12 low, you can not create more than 16TB file system

Download the latest e2fsprogs, compile and install
ftp://ftp.ntu.edu.tw/linux/kernel/people/tytso/e2fsprogs/

tar zxvf e2fsprogs-1.42.10.tar.gz
cd e2fsprogs-1.42.10
mkdir build
cd build /
../configure
make
make install
  
mke2fs -O 64bit, has_journal, extents, huge_file, flex_bg, uninit_bg, dir_nlink, extra_isize -i 4194304 / dev / sda1

mount / dev / sda1 / mnt

Troubleshooting performance:

[Root @ localhost ~] # mount / dev / sda1 / mnt /
mount: wrong fs type, bad option, bad superblock on / dev / sda1,
      missing codepage or helper program, or other error
      In some cases useful info is found in syslog - try
      dmesg | tail or so

[Root @ localhost ~] # mkfs.ext4 / dev / sda1
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: Size of device / dev / sda1 too big to be expressed in 32 bits
 using a blocksize of 4096.


[Root @ localhost ~] # mkfs.ext4 -b 8192
Warning: blocksize 8192 not usable on most systems.
mke2fs 1.41.12 (17-May-2010)
mkfs.ext4: 8192-byte blocks too big for system (max 4096)
Proceed anyway? (Y, n) y
Warning: 8192-byte blocks too big for system (max 4096), forced to continue
Filesystem label =
OS type: Linux
Block size = 8192 (log = 3)
Fragment size = 8192 (log = 3)
Stride = 0 blocks, Stripe width = 0 blocks
1464926208 inodes, 2929459075 blocks
146472953 blocks (5.00%) reserved for the super user
First data block = 0
Maximum filesystem blocks = 4311218176
44706 block groups
65528 blocks per group, 65528 fragments per group
32768 inodes per group
Superblock backups stored on blocks:
 65528, 196,584, 327,640, 458,696, 589,752, 1,638,200, 1,769,256, 3,210,872,
 5307768, 8191000, 15923304, 22476104, 40955000, 47769912, 143309736,
 157 332 728, 204 775 000, 429 929 208, 1023875000, 1101329096, 1289787624
     
         
         
         
  More:      
 
- Some of the bibliographic management tools to good use on linux (Linux)
- Linux console password solution (Programming)
- Linux System Getting Started Learning: Disable Ubuntu Apport internal error reporting procedures (Linux)
- ORA-12154: TNS: could not resolve the connect identifier specified solve (Database)
- Linux print file and send mail (Linux)
- CentOS 6.6 install rsync server (Server)
- Recover Ubuntu 14.04 wakes up from standby in case mouse keyboard appears dead (Linux)
- Oracle Linux 6.4 (BOND) dual NIC teaming combat - Annotated (Linux)
- Oracle database on the hit rate of query summary (Database)
- Quick Install software RAID on Linux (Linux)
- Computer black magic: tail recursion (Programming)
- Installation and configuration of Hadoop under Linux (Server)
- To install MySQL on Linux (Database)
- Use mysqldump MySQL database backup - Linux Shell Scripting (Database)
- Deployment Kubernetes manage Docker example cluster on Ubuntu (Server)
- Construction Spark source and application development environment (Server)
- The first IOS Objective-C program (Programming)
- Use the command line MySQL database backup and recovery (Database)
- Download Google Android source code under Ubuntu 4.4 (Linux)
- Tune in high resolution to 1280x800 in Fedora 14 (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.