无法挂载 18TB 的 raid 6

Blu*_*thm 2 linux raid ubuntu mount

当我尝试在 Ubuntu Linux 上安装我的 raid 6 时收到以下错误

mount /dev/md3 /mnt/md3
mount: 文件太大

我有另一个raid 1(仅限2TB)并且工作正常..有什么想法吗?

当我尝试

./mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize /dev/md3
Run Code Online (Sandbox Code Playgroud)

我收到以下输出

mke2fs 1.43-WIP (22-Sep-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
274700288 inodes, 4395201024 blocks
219760051 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2248146944
134131 block groups
32768 blocks per group, 32768 fragments per group
2048 inodes per group
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, 1934917632,
        2560000000, 3855122432

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
Run Code Online (Sandbox Code Playgroud)

当我尝试挂载时仍然收到以下错误

挂载:文件太大

来自 dmesg 的错误

EXT4-fs (md3): filesystem too large to mount safely on this system
Run Code Online (Sandbox Code Playgroud)

esq*_*foz 12

这是您当前版本的 e2fsprogs 的问题,它包含在 mke2fs 中。版本 1.41 及更低版本将在大于 16TB 的卷上进行操作时出错。

也就是说,解决这个问题的方法是从 Linux 内核存储库编译e2fsprogs的当前分支,并使用这些工具创建文件系统(截至撰写本文时,将安装 1.43-WIP 22-Sep-2012)。

请注意,这些是开发工具,可能并不完全稳定。此外,需要安装“git”、“gcc”(或其他 C 编译器)和“make”才能构建工具。

[root@gauss ~] git clone git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
[root@gauss ~]# cd e2fsprogs
[root@gauss e2fsprogs]# mkdir build ; cd build/
[root@gauss build]# ../configure
[root@gauss build]# make
[root@gauss build]# make install
[root@gauss misc]# cd misc
[root@gauss misc]# ./mke2fs -O 64bit,has_journal,extents,huge_file,flex_bg,uninit_bg,dir_nlink,extra_isize /dev/md3
Run Code Online (Sandbox Code Playgroud)

此外,Ronny Egners 博客对于将 e2fsprogs 的 work in progress 分支与大型文件系统一起使用有一些有用的见解。

  • 错误表明这是 32 位内核的限制。不幸的是,解决此问题的唯一方法是迁移/重新刻录到 64 位内核。 (2认同)