一、格式化時發生錯誤訊息:


# mkfs -t ext4 /dev/vg0/lv_data
mke2fs 1.42.7 (21-Jan-2013)
mkfs.ext4: Size of device (0x131a47800 blocks) /dev/vg0/lv_data too big to be expressed in 32 bits using a block-size of 4096.


二、設定方式:


1.下載套件:

e2fsprogs


2,

#tar -xzvf e2fsprogs-1.42.7.tar.gz
#cd e2fsprogs-1.42.7
#mkdir build
#cd build
#../configure
#make
#make install


2.


vim /etc/mke2fs.conf


[fs_types]
    ext4 = {
        features = has_journal,extent,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize
        auto_64-bit_support = 1     #  <--- add this line
        inode_size = 256
    }



3.


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


4. mount successfuly



重要!!

如果重開機後切出來的磁區不見了:

# partprobe
# mount -a
partprobe 是一個可以修改kernel中分區表的工具(指令),可以使kernel重新讀取分區表的資訊。




reference:

https://www.unix-ninja.com/p/Formatting_Ext4_volumes_beyond_the_16TB_limit

http://blog.ronnyegner-consulting.de/2011/08/18/ext4-and-the-16-tb-limit-now-solved/