Linux:mdadm create
Status:
cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4] [linear] [multipath] [raid0] [raid1] [raid10]
md0 : active raid5 nvme6n1[2] nvme7n1[0] nvme5n1[1] nvme4n1[4]
2343842304 blocks super 1.2 level 5, 512k chunk, algorithm 2 [4/4] [UUUU]
bitmap: 0/6 pages [0KB], 65536KB chunk
unused devices: <none>
Stop:
sudo mdadm --stop /dev/md0
Remove:
sudo mdadm --remove /dev/md0
Clear SuperBlock:
mdadm --zero-superblock /dev/nvme0n1
mdadm --create --verbose /dev/md0 --level=5 --raid-devices=3 /dev/sda /dev/sdb /dev/sdc
mdadm -Ds >> /etc/mdadm/mdadm.conf
nano /etc/mdadm/mdadm.conf
DEVICE /dev/nvme4n1 /dev/nvme5n1 /dev/nvme6n1 /dev/nvme7n1
ARRAY /dev/md0 metadata=1.2 name=r:0 UUID=d31cace8:c4b85958:b0bcfc97:c6cf31f8
mkfs.f2fs /dev/md0
mount UUID="841dea18-9a0b-47b4-a4b1-c2667a79ab6e" /f2fs
nano /etc/fstab
/dev/md0 /f2fs f2fs defaults,nofail,discard 0 0
建立完成之後:
update-initramfs -u
阅读剩余
THE END