如何增加软件 RAID0 阵列的大小?

如何增加软件 RAID0 阵列的大小?

我的Raid0数组由两个组成partition components

[root@rhel-85 ~]# mdadm --detail /dev/md0
/dev/md0:
           Version : 1.2
     Creation Time : Sun Jan  9 17:25:26 2022
        Raid Level : raid0
        Array Size : 3141632 (3.00 GiB 3.22 GB)
      Raid Devices : 2
     Total Devices : 2
       Persistence : Superblock is persistent

       Update Time : Sun Jan  9 17:25:26 2022
             State : clean 
    Active Devices : 2
   Working Devices : 2
    Failed Devices : 0
     Spare Devices : 0

            Layout : original
        Chunk Size : 512K

Consistency Policy : none

              Name : rhel-85:0  (local to host rhel-85)
              UUID : bf76445f:08e4dab7:3861a780:76912221
            Events : 0

    Number   Major   Minor   RaidDevice State
       0     259        8        0      active sync   /dev/nvme0n2p1
       1     259        5        1      active sync   /dev/nvme0n1p5
[root@rhel-85 ~]# 

我已经备份了 raid0 阵列中的所有数据。现在,我想将/dev/nvme0n2p5分区组件添加到Raid0数组中

进行备份后,我正在运行以下命令:

[root@rhel-85 ~]# umount /dev/md0
umount: /dev/md0: not mounted.

[root@rhel-85 ~]# cat /proc/mdstat 
Personalities : [raid0] [raid1] 
md0 : active raid0 nvme0n2p1[0] nvme0n1p5[1]
      3141632 blocks super 1.2 512k chunks

[root@rhel-85 ~]# mdadm --add /dev/md0 /dev/nvme0n2p5
mdadm: add new device failed for /dev/nvme0n2p5 as 2: Invalid argument

请告诉我什么命令可以/dev/nvme0n2p5Raid0阵列添加分区?

相关内容