一、raid
报错
mdadm: RUN_ARRAY failed: Invalid argument
原因
zcat /proc/config.gz 查看配置
驱动未加载全
解决办法
modprobe dm-raid
modprobe raid0
然后创建raid
mdadm --create /dev/md1 --level=0 -n 2 /dev/nvme1n1 /dev/nvme2n1
自动加载驱动
1、先去掉黑名单/etc/modprobe.d/blacklist.conf
2、配置/etc/modules,假如raid0 和dm_raid
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. raid0 dm_raid
停止当前raid
mdadm --stop /dev/md127


发布评论