首先添加磁盘,扫描磁盘
创建分区
[root@localhost ~]# gdisk /dev/sdb
查看当前系统上所有启用 了Raid的设备
格式化
挂载
创建md1
[root@localhost ~]# mdadm -C /dev/md1 -a yes -l 1 -n 2 /dev/sdb{3,4}
mdadm: Note: this array has metadata at the start and
may not be suitable as a boot device. If you plan to
store '/boot' on this device please ensure that
your boot-loader understands md/v1.x metadata, or use
--metadata=0.90
mdadm: largest drive (/dev/sdb4) exceeds size (1047552K) by more than 1%
Continue creating array? y
mdadm: Defaulting to version 1.2 metadata
mdadm: array /dev/md1 started.
[root@localhost ~]#
挂载md1