背景 我最近有一个 3.0TB 的芯片,它位于具有 RAID 1 冗余的 Synology NAS 的 Linux raid 中。我最近购买了两个 8.0TB 驱动器,想备份 3.0TB 驱动器,但我的 Synology 总是随机关闭并且遇到高级时刻。为了解决这个问题,我将所有驱动器放入运行 Linux Mint 18.x Live 的计算机中。我正在尝试安装两个 raid,以便我可以将 3.0TB 的 rsync 到 8.0TB raid。
问题
我无法重建任何袭击,因此无法访问任何驱动器。我的fidsk -l
输出是这样的:
mint ~ # fdisk -l
Disk /dev/loop0: 1.5 GiB, 1618886656 bytes, 3161888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: DB2D71AC-EF2C-4540-A8E5-03C5D8F72D01
Device Start End Sectors Size Type
/dev/nvme0n1p1 40 409639 409600 200M EFI System
/dev/nvme0n1p2 409640 552935535 552525896 263.5G Apple HFS/HFS+
/dev/nvme0n1p3 552935536 554205071 1269536 619.9M Apple boot
/dev/nvme0n1p4 554205184 554237951 32768 16M Microsoft reserved
/dev/nvme0n1p5 554237952 1000214527 445976576 212.7G Microsoft basic data
Disk /dev/sda: 7.3 TiB, 8001563222016 bytes, 15628053168 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: 0A352E59-20D3-4471-AE03-F44E1C73E3EE
Device Start End Sectors Size Type
/dev/sda1 2048 4982527 4980480 2.4G Linux RAID
/dev/sda2 4982528 9176831 4194304 2G Linux RAID
/dev/sda5 9453280 15627846239 15618392960 7.3T Linux RAID
Disk /dev/sdb: 2.7 TiB, 3000592982016 bytes, 5860533168 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: FDB68AFA-6AA2-4AFF-B950-A65803C3E831
Device Start End Sectors Size Type
/dev/sdb1 256 4980735 4980480 2.4G Linux RAID
/dev/sdb2 4980736 9175039 4194304 2G Linux RAID
/dev/sdb3 9437184 5860328351 5850891168 2.7T Linux RAID
Disk /dev/sdc: 7.3 TiB, 8001563222016 bytes, 15628053168 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: 655B6D2C-8FDB-40B2-8A57-4A4C6CEA81FA
Device Start End Sectors Size Type
/dev/sdc1 2048 4982527 4980480 2.4G Linux RAID
/dev/sdc2 4982528 9176831 4194304 2G Linux RAID
/dev/sdc5 9453280 15627846239 15618392960 7.3T Linux RAID
Disk /dev/sdd: 465.8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: AB7A0C0E-F0F0-4169-A6CC-AFD36D13706B
Device Start End Sectors Size Type
/dev/sdd1 40 409639 409600 200M EFI System
/dev/sdd2 409640 976510983 976101344 465.5G Apple HFS/HFS+
Disk /dev/sde: 14.9 GiB, 16008609792 bytes, 31266816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 112D01E3-9B10-4E53-831E-6122DE30212F
Device Start End Sectors Size Type
/dev/sde1 40 409639 409600 200M EFI System
/dev/sde2 409640 31004631 30594992 14.6G Apple HFS/HFS+
Disk /dev/sdf: 3.8 GiB, 4026531840 bytes, 7864320 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: C0FCDDB9-DB52-4F40-8615-EB3CE0E2D4F4
Device Start End Sectors Size Type
/dev/sdf1 2048 7864286 7862239 3.8G Microsoft basic data
唯一重要的驱动器是/dev/sda, /dev/sdb, /dev/sdc
我尝试过的事情
mdadm -Asf && vgchange -ay
根据 Synology 网站返回的建议
mdadm: Devices UUID-f2e5c234:6e894003:d490d253:6ab62f4d and UUID-f8782d0e:605a2e0e:4c50beb7:39f5970b have the same name: /dev/md/2
mdadm: Duplicate MD device names in conf file were found.
好的mdadm --assemble --scan
回报是一样的。
mdadm --stop /dev/sdb
我在阅读时也尝试过这里。总而言之,他们说 mdadm 拥有该驱动器,因此您无法正常安装它,但由于它是一个驱动器,您可以销毁 mdadm raid 元数据并正常安装它。此代码返回
mdadm --stop /dev/sdb
mdadm: /dev/sdb does not appear to be an md device
尝试独立安装单个驱动器并mdadm -A /dev/sdb
返回:
mdadm: /dev/sdb does not appear to be an md device
为什么我认为事情没有坏掉 过去,当它的死兄弟也插入时,我已经成功安装了 3.0 TB /dev/sdb 驱动器。在这些情况下,mdadm 只是说它用一个驱动器构建了阵列。我知道这些 8.0TB 驱动器可以工作,因为我刚刚从 Synology 服务器中取出它们,尽管它们不是采用 RAID 1 配置,而是采用 Synology Hybrid RAID,我不知道这是否有什么区别。
我认为问题是什么
老实说,我相信(以我极其有限的经验),问题来自于同一台机器上同时存在两个 RAID 阵列,这让 mdadm 感到困惑。我认为解决方案可能与编辑/etc/mdadm.conf
指定哪个 RAID 属于哪个,然后再次尝试组装有关。然而,我感到独立尝试重建阵列表示驱动器似乎不是 md 设备。所以现在我不知道该怎么办。