Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ RedHat / CentOS ext4 partition can not be formatted large supplementary ext4 formatting     - SME Linux network security policy server security (Linux)

- Install the latest development version of Wine on RedHat and Debian-based systems (Linux)

- Oracle 12c of the auto-increment Identity Columns (Database)

- Construction LVM-based raw device Oracle10g Database on Oracle Linux 5.11 (Database)

- Configuration OpenOCD + FT2232 under Ubuntu (Linux)

- Installation and operation GAMIT software under Linux operating system (Linux)

- RedHat Performance Tuning (Server)

- How to install Ubuntu strategy game Wesnoth 1.12.0 (Linux)

- MySQL migration tool used in the production environment (Database)

- Android start automatically and add and delete a desktop shortcut (Programming)

- Use of the storage-level replication technology will quickly clone a ASM database to the target environment (Database)

- How to install MySQL on Linux Dock (Database)

- After you change the GRUB boot disk partition repair (Linux)

- Use OpenSSL for RSA encryption and decryption (Linux)

- CentOS 6.4 of cron scheduled task configuration (Linux)

- Syncthing: Private Security Synchronization tool to synchronize files between computers / folder (Linux)

- Revised OpenJDK Java Memory Model (Programming)

- Linux, Google Test (GTest) test environment to build step (Linux)

- File SUID, SGID, Sticky property (Linux)

- Linux file content inspection - cat, tac, no, more, less, head, tail, od (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:      
 
- Windows 7 hard disk installation notes Debian (Linux)
- Network security system (Network)
- How to use the Docker Machine cluster deployment Swarm (Server)
- Linux System Getting Started Learning: the Linux Wireshark interface dead solve (Linux)
- Linux network cut package is not fully defragment (Linux)
- Linux System Getting Started Tutorial: Installing Brother printer in Linux (Linux)
- Ubuntu install the camera driver (Linux)
- CentOS7 installation performance monitoring system (Server)
- Shell script to delete empty folders recursively (Linux)
- MySQL5.6 based GTID master-slave replication (Database)
- Sturdy build secure Linux server (Linux)
- Oracle 11g to create a second instance on Linux (Database)
- Redis Design and Implementation study notes (Database)
- Linux with Windows Explorer as a security system (Linux)
- Zabbix API and PHP configuration (Server)
- Linux Troubleshooting: How to save the status of the SSH session is closed (Linux)
- Orabbix binding Python send graphical reports (Linux)
- Ubuntu 14.04 build Hadoop 2.5.1 standalone and pseudo-distributed environment (32-bit) (Server)
- ls command: 15 Level Linux interview question (Linux)
- CentOS 6.4 RPM install MySQL-5.6.22-1 (Database)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.