我试图根据这个教程创建RAID 5。但是,当我运行mdadm -C /dev/md0 -l=5 -n=4 /dev/sd[b-e]1时,我会得到以下错误:
mdadm: invalid raid level: =5下面是mdadm -E /dev/sd[b-e]的输出:
/dev/sdb:
MBR Magic : aa55
Partition[0] : 4294965247 sectors at 2048 (type fd)
/dev/sdc:
MBR Magic : aa55
Partition[0] : 4294965247 sectors at 2048 (type fd)
/dev/sdd:
MBR Magic : aa55
Partition[0] : 4294965247 sectors at 2048 (type fd)
/dev/sde:
MBR Magic : aa55
Partition[0] : 4294965247 sectors at 2048 (type fd)下面是mdadm --examine /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1的输出:
mdadm: No md superblock detected on /dev/sdb1.
mdadm: No md superblock detected on /dev/sdc1.
mdadm: No md superblock detected on /dev/sdd1.
mdadm: No md superblock detected on /dev/sde1.下面是fdisk -l | grep sd的输出:
Disk /dev/sda: 300.0 GB, 300000000000 bytes
/dev/sda1 * 2048 626687 312320 83 Linux
/dev/sda2 626688 34187263 16780288 82 Linux swap / Solaris
/dev/sda3 34187264 139059199 52435968 83 Linux
/dev/sda4 139059200 585936895 223438848 83 Linux
Disk /dev/sdc: 8001.6 GB, 8001563222016 bytes
/dev/sdc1 2048 4294967294 2147482623+ fd Linux raid autodetect
Disk /dev/sdb: 8001.6 GB, 8001563222016 bytes
/dev/sdb1 2048 4294967294 2147482623+ fd Linux raid autodetect
Disk /dev/sdd: 24003.1 GB, 24003062267904 bytes
/dev/sdd1 2048 4294967294 2147482623+ fd Linux raid autodetect
Disk /dev/sde: 8001.6 GB, 8001563222016 bytes
/dev/sde1 2048 4294967294 2147482623+ fd Linux raid autodetectsda是系统空间,我想用别人来存储数据。
发布于 2018-09-07 01:20:45
您的命令不正确,应该是:
$ mdadm -C /dev/md0 -l 5 -n 4 /dev/sd[b-e]1如果您想使用=符号,请使用这些开关,如下所示:
$ mdadm -C /dev/md0 --level=5 --raid-devices=4 /dev/sd[b-e]1每个手册页:
-l, --level=
Set RAID level. When used with --create, options are: linear, raid0, 0,
stripe, raid1, 1, mirror, raid4, 4, raid5, 5, raid6, 6, raid10, 10,
multipath, mp, faulty, container. Obviously some of these are synonymous.https://unix.stackexchange.com/questions/467420
复制相似问题