![将磁盘转换为 RAID 1?救援模式](https://linux22.com/image/206483/%E5%B0%86%E7%A3%81%E7%9B%98%E8%BD%AC%E6%8D%A2%E4%B8%BA%20RAID%201%EF%BC%9F%E6%95%91%E6%8F%B4%E6%A8%A1%E5%BC%8F.png)
如何将当前设置转换为 RAID 1 设置
root@rescue:~# fdisk -l /dev/sda /dev/sdb
Disk /dev/sda: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x03c70bcf
Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 1126399 1124352 549M 7 HPFS/NTFS/exFAT
/dev/sda2 1126400 937701039 936574640 446.6G 7 HPFS/NTFS/exFAT
Disk /dev/sdb: 447.1 GiB, 480103981056 bytes, 937703088 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 455FA666-C539-4642-B924-B4D8622682AA
猫 /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
unused devices: <none>
df-h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 16G 0 16G 0% /dev
178.33.xxx.49:/home/pub/rescue.v8 1.8T 369G 1.3T 23% /nfs
tmpfs 16G 1.4M 16G 1% /rw
aufs 16G 1.4M 16G 1% /
178.33.xxx.49:/home/pub/pro-power 1.8T 369G 1.3T 23% /power
178.33.xxx.49:/home/pub/commonnfs 1.8T 369G 1.3T 23% /common
tmpfs 32G 0 32G 0% /dev/shm
tmpfs 16G 9.7M 16G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
tmpfs 16G 8.0K 16G 1% /tmp
LSBLK
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sdb 8:16 0 447.1G 0 disk
sda 8:0 0 447.1G 0 disk
├─sda2 8:2 0 446.6G 0 part
└─sda1 8:1 0 549M 0 part
我想将系统转换为 RAID 1 /dev/sda
&/dev/sdb