终端1记录
[***@archlinux ~]$ mdadm
Usage: mdadm --help
for help
[***@archlinux ~]$ mdadm --help
mdadm is used for building, managing, and monitoring
Linux md devices (aka RAID arrays)
Usage: mdadm --create device options...
Create a new array from unused devices.
mdadm --assemble device options...
Assemble a previously created array.
mdadm --build device options...
Create or assemble an array without metadata.
mdadm --manage device options...
make changes to an existing array.
mdadm --misc options... devices
report on or modify various md related devices.
mdadm --grow options device
resize/reshape an active array
mdadm --incremental device
add/remove a device to/from an array as appropriate
mdadm --monitor options...
Monitor one or more array for significant changes.
mdadm device options...
Shorthand for --manage.
Any parameter that does not start with ‘-‘ is treated as a device name
or, for --examine-bitmap, a file name.
The first such name is often the name of an md device. Subsequent
names are often names of component devices.
For detailed help on the above major modes use --help after the mode
e.g.
mdadm --assemble --help
For general help on options use
mdadm --help-options
[***@archlinux ~]$
终端2记录
[***@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 75G 0 part
├─sda2 8:2 0 75G 0 part /
└─sda3 8:3 0 73.6G 0 part
sdb 8:16 0 465.8G 0 disk
└─sdb1 8:17 0 465.8G 0 part
└─md0 9:0 0 465.6G 0 raid1 /mnt/WDRAID1
sdc 8:32 0 465.8G 0 disk
└─sdc1 8:33 0 465.8G 0 part
[***@archlinux ~]$
终端3记录
[***@archlinux ~]$ sudo mdadm --incremental
[sudo] password for ***:
mdadm: --incremental requires a device.
[***@archlinux ~]$ sudo mdadm --incremental /dev/sdc1
mdadm: not adding /dev/sdc1 to active array (without --run) /dev/md/0
[***@archlinux ~]$ sudo mdadm --incremental /dev/sdc1 --run /dev/md/0
mdadm: /dev/sdc1 attached to /dev/md/0 which is already active.
[***@archlinux ~]$
终端4记录
[***@archlinux ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 223.6G 0 disk
├─sda1 8:1 0 75G 0 part
├─sda2 8:2 0 75G 0 part /
└─sda3 8:3 0 73.6G 0 part
sdb 8:16 0 465.8G 0 disk
└─sdb1 8:17 0 465.8G 0 part
└─md0 9:0 0 465.6G 0 raid1 /mnt/WDRAID1
sdc 8:32 0 465.8G 0 disk
└─sdc1 8:33 0 465.8G 0 part
└─md0 9:0 0 465.6G 0 raid1 /mnt/WDRAID1
[***@archlinux ~]$
原文:https://www.cnblogs.com/zhangshaojian/p/14459711.html