我将一个带有 4 个新 8TB 磁盘的 4 盘位机箱连接到我的 rPi。该磁盘显示lsblk
为 sda 到 sdd。按照此教程我创建了数组
mdadm -C /dev/md0 --level=raid5 --raid-devices=4 /dev/sda /dev/sdb /dev/sdc /dev/sdd
阵列开始自行构建,没有出现任何问题,2 天后(!)就完成了。的输出mdadm --detail /dev/md0
如下
/dev/md0:
Version : 1.2
Creation Time : Mon Nov 4 15:15:37 2019
Raid Level : raid5
Array Size : 23441682432 (22355.73 GiB 24004.28 GB)
Used Dev Size : 7813894144 (7451.91 GiB 8001.43 GB)
Raid Devices : 4
Total Devices : 4
Persistence : Superblock is persistent
Intent Bitmap : Internal
Update Time : Thu Nov 7 01:24:44 2019
State : clean
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Layout : left-symmetric
Chunk Size : 512K
Consistency Policy : bitmap
Name : raspberrypi:0 (local to host raspberrypi)
UUID : 05442287:97e027c2:1ddf5e37:c16c1428
Events : 35568
Number Major Minor RaidDevice State
0 8 0 0 active sync /dev/sda
1 8 16 1 active sync /dev/sdb
2 8 32 2 active sync /dev/sdc
4 8 48 3 active sync /dev/sdd
的输出cat /proc/mdstat
是
Personalities : [raid6] [raid5] [raid4]
md0 : active raid5 sdd[4] sdc[2] sdb[1] sda[0]
23441682432 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/59 pages [0KB], 65536KB chunk
这是我第一次使用mdadm
,但在这个状态下我看不出有什么不合适的地方。但是,当我尝试这样做时,sudo mkfs.ext4 /dev/md0
出现以下错误
mke2fs 1.44.5 (15-Dec-2018)
Creating filesystem with 5860420608 4k blocks and 366276608 inodes
Filesystem UUID: 30b59932-d4ca-47f9-9b58-50cb28fc579c
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, 5804752896
Allocating group tables: done
Writing inode tables: done
Creating journal (262144 blocks): mkfs.ext4: Attempt to read block from filesystem
resulted in short read while trying to create journal
我在这里真的很茫然,谷歌也没有帮助。任何想法都将不胜感激。
答案1
Ext4 在 32 位系统上限制为 16 TB。