我有一台远程服务器,有 2 个磁盘(每个磁盘 2000 GB),使用软件 RAID1 连接。我能否以某种方式断开第二个磁盘与 RAID 的连接并将其独立用于存储无需重装系统(Ubuntu)并将数据保留在第一个磁盘上?
猫 /proc/mdstat:
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10]
md0 : active raid1 sdb2[1] sda2[0]
499392 blocks super 1.2 [2/2] [UU]
md1 : active raid1 sda3[0] sdb3[1]
7996416 blocks super 1.2 [2/2] [UU]
md2 : active raid1 sda4[0] sdb4[1]
1944881152 blocks super 1.2 [2/2] [UU]
bitmap: 1/15 pages [4KB], 65536KB chunk
fdisk -l:
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 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: 83BCC898-32B3-432D-B4E3-87B3995B386C
Device Start End Sectors Size Type
/dev/sda1 2048 4095 2048 1M BIOS boot
/dev/sda2 4096 1003519 999424 488M Linux RAID
/dev/sda3 1003520 17004543 16001024 7.6G Linux RAID
/dev/sda4 17004544 3907028991 3890024448 1.8T Linux RAID
Disk /dev/sdb: 1.8 TiB, 2000398934016 bytes, 3907029168 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: A0DBD375-0E50-4C5A-A7A7-9584D2BF8950
Device Start End Sectors Size Type
/dev/sdb1 2048 4095 2048 1M BIOS boot
/dev/sdb2 4096 1003519 999424 488M Linux RAID
/dev/sdb3 1003520 17004543 16001024 7.6G Linux RAID
/dev/sdb4 17004544 3907028991 3890024448 1.8T Linux RAID
Disk /dev/md2: 1.8 TiB, 1991558299648 bytes, 3889762304 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
Disk /dev/md1: 7.6 GiB, 8188329984 bytes, 15992832 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
Disk /dev/md0: 487.7 MiB, 511377408 bytes, 998784 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
答案1
从技术上来说,从 RAID 1 中删除磁盘将被视为故障驱动器。它将继续发挥作用,但处于“降级”状态。这是理论上然而,在实践中这可能是一个坏主意。如果可以的话,最好的选择是将文件复制到其他地方,甚至进行驱动器克隆。
如果您无法将驱动器克隆到备用硬盘,请拉出一个,格式化它,复制文件,然后将其用作主硬盘。
但请,备份您的文件,并且不要认为互联网上某人的言论就是法律。
另一方面,一些硬件 RAID 的东西。