Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Red Hat / CentOS ext4 format large partitions above 16T

Shulou Source: shulou.com Published: 2022-06-03 03:44:25 10月03日 Update

Red Hat/CentoSext4 Format Large Partitions

XX project, the client server operating system is redhat version 6.4, 40 terabytes of disk space used to store structured data, but not mounted to any directory. For MPP cluster database, considering the installation directory and data storage directory of our database, it is necessary to mount the disk space under/opt directory, but due to the large disk space, it is impossible to format it into ext4 format. In this case, it is necessary to install an rpm patch package of e2fsprogs version 1.42 or above to upgrade the formatting tool, so that the 40T disk can be formatted into ext4 format.

Since no rpm installation package was found at that time, only the e2fsprogs-1.42.tar.gz installation package was found. The steps are as follows:

tar zxvf e2fsprogs-1.42.tar.gz

cd e2fsprogs-1.42

mkdir build

cd build/

../ configure

make

make install

(There may be errors in the build process, which can be ignored and continued)

mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg, uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/sdb1

mount /dev/sdb1 /opt

References:

http://www.zzidcc.com/a/jiejuefangan/20140218/262.html

Later, I found the download address of rpm package of e2fsprogs version 1.42 and above:

http://rpm.pbone.net/index.php3? ... =e2fsprogs&dist[]=93&dist[]=74&dist[]=94&dist[]=79&dist[]=0&field[]=1&field[]=2

The above are all operations in the enterprise production environment for your reference. If there are other ways, please comment and share ^-^.

Tags: Format data directory disk version space database reference storage red hat operating system enterprise reference address client tool method server step environment Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn macOS MySQL NVidia