[root@xenserver-ds-testserver08 ~]# mkdir -p /tmp/e2fsprogs/build [root@xenserver-ds-testserver08 ~]# curl -lk $(url="https://sourceforge.net/projects/e2fsprogs/files/?source=navbar" && url1=$(awk -f'/' '{print $3}' <<< $url) && curl -lks $url|awk -f'"' '/tar.gz/{print "https://'$url1'"$2;exit}') | tar xz -c /tmp/e2fsprogs --strip-components=1 [root@xenserver-ds-testserver08 ~]# cd /tmp/e2fsprogs/build [root@xenserver-ds-testserver08 build]# yum -y install make gcc gcc-c automake [root@xenserver-ds-testserver08 build]# ../configure && make -j$(getconf _nprocessors_onln) && make install [root@xenserver-ds-testserver08 build]# sed -i 'n;n;/ext4 =/a \ttauto_64-bit_support = 1' /etc/mke2fs.conf [root@xenserver-ds-testserver08 build]# mke2fs -o 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize -i 4194304 /dev/sdd1 mke2fs 1.43.4 (31-jan-2017) creating filesystem with 732566385 4k blocks and 715424 inodes filesystem uuid: fda8888d-c512-4aaf-b38e-785c80d0283a superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848, 512000000, 550731776, 644972544 allocating group tables: done writing inode tables: done creating journal (262144 blocks): done writing superblocks and filesystem accounting information: done [root@xenserver-ds-testserver08 build]# mount /dev/sdd1 /backup/ [root@xenserver-ds-testserver08 build]# df -hp filesystem size used avail use% mounted on /dev/sdb1 18g 2.2g 15g 14% / devtmpfs 2.0g 0 2.0g 0% /dev tmpfs 2.0g 132k 2.0g 1% /dev/shm tmpfs 2.0g 1.5m 2.0g 1% /run tmpfs 2.0g 0 2.0g 0% /sys/fs/cgroup xenstore 2.0g 0 2.0g 0% /var/lib/xenstored /dev/loop0 55m 55m 0 100% /var/xen/xc-install /dev/sdb5 4.0g 240m 3.6g 7% /var/log tmpfs 394m 0 394m 0% /run/user/0 /dev/mapper/xslocalext--aecd19e7--4f23--9b30--5bcc--b38fdb955423-aecd19e7--4f23--9b30--5bcc--b38fdb955423 1.8t 820g 921g 48% /run/sr-mount/aecd19e7-4f23-9b30-5bcc-b38fdb955423 /dev/sdd1 2.8t 89m 2.6t 1% /backup
参考链接: